diff --git a/app-ht/web/exts-src/base/1.0.0/ui/device-cat-select/device-cat-select-jqcontrol.js b/app-ht/web/exts-src/base/1.0.0/ui/device-cat-select/device-cat-select-jqcontrol.js deleted file mode 100644 index 096425f..0000000 --- a/app-ht/web/exts-src/base/1.0.0/ui/device-cat-select/device-cat-select-jqcontrol.js +++ /dev/null @@ -1,116 +0,0 @@ -(function ($) { - $.extend({ - //初始化配置 - initcat: function (e, p) { - p = $.extend({ - urlOrData: null, // 地址获取设备类型数据 - deviceParentCat: '', // 一级分类控件ID - deviceChildCat: '', //二级分类控件ID - animate: { showClass: '', hideClass: '' }, // 显示/隐藏动画效果 - onChoice: false // 选择后执行的事件 - }, p); - var deviceParentCat = p.deviceParentCat ? p.deviceParentCat : 'deviceParentCat'; - var deviceChildCat = p.deviceChildCat ? p.deviceChildCat : 'deviceChildCat'; - var option = { - _LoadParentCat:function (control,getDeviceCatListURL) { - $.ajax({ - type: "post", - url: getDeviceCatListURL, - dataType:"json", - data: $.csrf({"parentId":0}), - success:function(msg){ - if(msg['status'] == 1){ - var data = eval(msg['modelList']); - var html = ""; - for(var s in data){ - html = html +""; - } - $(control).html(html); - //触发二级选择 - //$("#deviceParentCat").trigger("change"); - }else{ - //提示确认失败 - alert("加载失败"); - } - }, - error:function(msg){ - //提示确认失败 - alert("加载异常"); - } - }); - }, - _Change:function(pid,getDeviceCatListURL,childselect){ - if(pid == ""){ - $("#"+childselect).html(""); - return false; - } - $.ajax({ - type: "post", - url:getDeviceCatListURL, - dataType:"json", - data: $.csrf({"parentId":pid}), - success:function(msg){ - if(msg['status'] == 1){ - var data = eval(msg['modelList']); - var html = ""; - var cat_id = $("#hid_cat_id").val(); - for(var s in data){ - if(parseInt(cat_id) == parseInt(data[s]['id'])){ - html = html +""; - }else{ - html = html +""; - } - } - $("#"+childselect).html(html); - }else{ - alert("加载失败"); - } - }, - error:function(msg){ - //提示确认失败 - alert("加载异常"); - } - }); - }, - //加载数据 - loadData: function () { - if (typeof p.urlOrData == 'string') { - option._LoadParentCat($("#"+deviceParentCat),p.urlOrData); - var pid = $("#"+deviceParentCat).val(); - option._Change(pid,p.urlOrData,deviceChildCat); - - } - } - } - - option.loadData(); - $(e).bind("change",function(){ - var pid = $("#"+deviceParentCat).val(); - option._Change(pid,p.urlOrData,deviceChildCat); - }); - } - }); - - $.fn.extend({ - initcat: function (p) { - return this.each(function () { - $.initcat(this, p); - }); - } - }); -})(jQuery); -/* - 使用方法: - - $(function () { - $('#deviceParentCat').initcat({ - urlOrData: '', // 地址获取设备类型数据 - deviceParentCat: 'deviceParentCat', // 一级分类控件ID - deviceChildCat: 'deviceChildCat', //二级分类控件ID - animate: { showClass: 'animated flipInX', hideClass: 'animated flipOutX' }, - onChoice: function (data) { - console.log(data); - } - }); - }); - */ \ No newline at end of file diff --git a/app-ht/web/exts-src/base/1.0.0/ui/device-cat-select/device-cat-select.js b/app-ht/web/exts-src/base/1.0.0/ui/device-cat-select/device-cat-select.js deleted file mode 100644 index 1232bc3..0000000 --- a/app-ht/web/exts-src/base/1.0.0/ui/device-cat-select/device-cat-select.js +++ /dev/null @@ -1,71 +0,0 @@ -//获取父级分类 -function loadParentCat($dataurl){ - $.ajax({ - type: "post", - url: $dataurl, - dataType:"json", - data: $.csrf({"parentId":0}), - success:function(msg){ - if(msg['status'] == 1){ - var data = eval(msg['modelList']); - var html = ""; - for(var s in data){ - html = html +""; - } - $("#deviceParentCat").html(html); - //触发二级选择 - //$("#deviceParentCat").trigger("change"); - }else{ - //提示确认失败 - alert("加载失败"); - } - }, - error:function(msg){ - //提示确认失败 - alert("加载异常"); - } - }); -} - -function loadDeviceCat($dataurl){ - var pid = $("#deviceParentCat").val(); - if(pid == ""){ - $("#deviceChildCat").html(""); - return false; - } - $.ajax({ - type: "post", - url: $dataurl, - dataType:"json", - data: $.csrf({"parentId":pid}), - success:function(msg){ - if(msg['status'] == 1){ - var data = eval(msg['modelList']); - var html = ""; - var cat_id = $("#hid_cat_id").val(); - for(var s in data){ - if(parseInt(cat_id) == parseInt(data[s]['id'])){ - html = html +""; - }else{ - html = html +""; - } - } - $("#deviceChildCat").html(html); - }else{ - alert("加载失败"); - } - }, - error:function(msg){ - //提示确认失败 - alert("加载异常"); - } - }); -} -/* 使用方法 - - loadParentCat(''); - loadDeviceCat(''); - $("#deviceParentCat").bind("change",function(){ - loadDeviceCat('<1?=Url::toRoute("/device/model/get-device-cat-list")?>'); - }); -*/ diff --git a/app-ht/web/exts-src/mall/res/css/box.css b/app-ht/web/exts-src/mall/res/css/box.css deleted file mode 100644 index df51708..0000000 --- a/app-ht/web/exts-src/mall/res/css/box.css +++ /dev/null @@ -1,200 +0,0 @@ -body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, fieldset, textarea { - margin: 0; -} -.inner_container_box.cell_layout .inner_side, .inner_container_box.cell_layout .inner_main { - display: table-cell; - vertical-align: top; - word-wrap: break-word; - word-break: break-all; -} -.img_pick_panel.side_l.cell_layout .inner_side { - width: 18%; -} -.img_pick_panel .group_list { - overflow-y: auto; -} -.inner_menu:first-child { - border-top-width: 0; -} -.inner_menu { - border-top: 1px solid #e7e7eb; -} -.inner_menu_item:hover, .inner_menu_item.selected { - background-color: #f4f5f9; -} -.inner_menu_item { - position: relative; - line-height: 32px; -} -.inner_menu_link { - display: block; - color: #222; - padding-left: 1em; - text-decoration: none; -} -.img_pick_panel .inner_menu_link { - padding-left: 1.5em; -} -.inner_menu_item:hover a, .inner_menu_item.selected a { - text-decoration: none; -} -.inner_menu_link strong { - display: inline-block; - margin-top: -2px; - width: auto; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - word-wrap: normal; - max-width: 80px; - font-weight: 400; - font-style: normal; - vertical-align: middle; - cursor: pointer; -} -.img_pick_panel .inner_menu_link strong { - max-width: 86px; -} -.group_list .num { - display: inline-block; - padding-left: 3px; - font-style: normal; - color: #8d8d8d; -} -.inner_container_box.cell_layout .inner_main { - width: 2000px; -} -.img_pick_panel .img_pick_area { - position: relative; - overflow-y: auto; - overflow-x: hidden; - height: 600px; -} -.img_pick { - padding: 20px; -} -.img_pick { - padding-bottom: 5px; - text-align: center; -} -.img_pick .img_list { - margin-right: -20px; -} -.img_pick .img_item { - float: left; - text-align: center; -} -.img_pick .img_item { - position: relative; - margin-right: 11px; - margin-bottom: 10px; -} -.frm_radio_label, .frm_checkbox_label { - display: inline-block; - text-align: left; - cursor: pointer; - margin-right: 1em; -} -.img_pick .img_item_bd { - margin: 0; - border: 1px solid #e7e7eb; - width: 117px; -} -.img_pick .img_item .pic { - display: block; - border-bottom: 1px solid #e7e7eb; -} -.img_pick .img_item .pic { - width: 117px; - height: 117px; -} -.img_pick .img_item .lbl_content { - height: 32px; - line-height: 32px; - text-align: left; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} -.img_pick .img_item .lbl_content { - display: block; - padding: 0 9px; -} -ul, ol { - padding-left: 0; - list-style-type: none; -} -.inner_side { - padding-top: 20px; -} -.hqy-panel-pager .pagination { - margin: 0; - padding: 0; - float: right; -} -.pager li, .pagination>li { - display: inline; -} -.pagination>li>a, .pagination>li>span { - position: relative; - float: left; - padding: 6px 12px; - margin-left: -1px; - line-height: 1.42857143; - color: #337ab7; - text-decoration: none; - background-color: #fff; - border: 1px solid #ddd; -} -.pagination>.disabled>a, .pagination>.disabled>a:focus, .pagination>.disabled>a:hover, .pagination>.disabled>span, .pagination>.disabled>span:focus, .pagination>.disabled>span:hover { - color: #777; - cursor: not-allowed; - background-color: #fff; - border-color: #ddd; -} -.pagination>li:first-child>a, .pagination>li:first-child>span { - margin-left: 0; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; -} -.hqy-panel-pager .summary { - float: left; - line-height: 34px; -} -.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover { - z-index: 2; - color: #fff; - cursor: default; - background-color: #337ab7; - border-color: #337ab7; -} -.img_pick .img_item_bd.selected .selected_mask { - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; -} -.img_pick .img_item_bd.selected .selected_mask_inner { - width: 118px; - height: 118px; - -moz-opacity: .6; - -khtml-opacity: .6; - opacity: .6; - background-color: #000; - filter: alpha(opacity=60); -} -.img_pick .img_item_bd.selected .selected_mask_icon { - position: absolute; - top: 0; - left: 0; - background: transparent url(../images/icon_card_selected218877.png) no-repeat 0 0; - width: 117px; - height: 117px; - vertical-align: middle; - display: inline-block; - background-position: 50% 50%; -} -.hqy-panel-pager { - display: none; -} \ No newline at end of file diff --git a/app-ht/web/exts-src/mall/res/css/res.css b/app-ht/web/exts-src/mall/res/css/res.css deleted file mode 100644 index a494a14..0000000 --- a/app-ht/web/exts-src/mall/res/css/res.css +++ /dev/null @@ -1,1279 +0,0 @@ -.processor_bar -{ - background-color: #e9e9e9; - background-image: linear-gradient(to bottom,#f3f2f2 0,#dfdfdf 100%); - background-image: -moz-linear-gradient(top,#f3f2f2 0,#dfdfdf 100%); - background-image: -o-linear-gradient(top,#f3f2f2 0,#dfdfdf 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#f3f2f2),to(#dfdfdf)); - background-image: -webkit-linear-gradient(top,#f3f2f2 0,#dfdfdf 100%); - border-bottom: 1px solid #cecece; - box-shadow: inset 0 1px 0 0 #f8f8f8; - moz-box-shadow: inset 0 1px 0 0 #f8f8f8; - webkit-box-shadow: inset 0 1px 0 0 #f8f8f8; -} -.dialog .processor_bar -{ - border-bottom: 1px solid #b1b1b1; - box-shadow: inset 0 1px 0 0 #f8f8f8,0 1px 2px 0 #cacaca; - moz-box-shadow: inset 0 1px 0 0 #f8f8f8,0 1px 2px 0 #cacaca; - webkit-box-shadow: inset 0 1px 0 0 #f8f8f8,0 1px 2px 0 #cacaca; -} -.processor_bar.ie .step -{ - background: transparent url(../images/bg_processor_ie218877.png) no-repeat 0 0; -} -.processor_bar.ie .step.current -{ - background-color: #62a256; - background-image: none; -} -.processor_bar .step -{ - background: transparent url(../images/bg_processor218877.png) no-repeat 0 0; - color: #747474; - line-height: 36px; - text-align: center; -} -.processor_bar .step.pprev -{ - background-position: right 0; -} -.processor_bar .step.pprev h4 -{ - padding-right: 14px; -} -.processor_bar .step.prev -{ - background-position: right -85px; -} -.processor_bar .step.prev h4 -{ - padding-right: 14px; -} -.processor_bar .step.current -{ - background-color: #5fa054; - background-image: linear-gradient(to bottom,#78bc6d 0,#4f8d44 100%); - background-image: -moz-linear-gradient(top,#78bc6d 0,#4f8d44 100%); - background-image: -o-linear-gradient(top,#78bc6d 0,#4f8d44 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#78bc6d),to(#4f8d44)); - background-image: -webkit-linear-gradient(top,#78bc6d 0,#4f8d44 100%); - color: #fff; -} -.processor_bar .step.next -{ - background-position: left -41px; -} -.processor_bar .step.next h4 -{ - padding-left: 8px; -} -.processor_bar .step.nnext -{ - background-position: left -1px; -} -.processor_bar .step.nnext h4 -{ - padding-left: 8px; -} -.processor_bar h4 -{ - font-style: normal; - font-weight: 400; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - width: auto; - word-wrap: normal; -} -.processor_bar -{ - background-color: #fff; - background-image: none; - border-color: #e6e7ea; - box-shadow: none; - moz-box-shadow: none; - webkit-box-shadow: none; -} -.dialog .processor_bar -{ - border-color: #e6e7ea; - box-shadow: none; - moz-box-shadow: none; - webkit-box-shadow: none; -} -.processor_bar.ie .step -{ - background-image: url(../images/bg_processor218877.png); -} -.processor_bar.ie .step.current -{ - background-color: #44b549; -} -.processor_bar .step -{ - background: transparent url(../images/bg_processor218877.png) no-repeat 0 0; - line-height: 44px; -} -.processor_bar .step.prev -{ - background-position: right -44px; -} -.processor_bar .step.current -{ - background-color: #44b549; - background-image: none; -} -.processor_bar .step.next -{ - background-position: 0 -88px; -} -.processor_bar .step.nnext -{ - background-position: 0 0; -} -.img_pick -{ - padding: 20px; -} -.img_pick .img_item -{ - float: left; - text-align: center; -} -.img_pick .img_item .pic -{ - border-bottom: 1px solid #e7e7eb; - display: block; -} -.img_pick .img_item .pic:hover -{ - cursor: hand; - cursor: pointer; -} -.img_pick .img_item .lbl_content -{ - height: 32px; - line-height: 32px; - overflow: hidden; - text-align: left; - text-overflow: ellipsis; - white-space: nowrap; -} -.group_list .num -{ - color: #8d8d8d; - display: inline-block; - font-style: normal; - padding-left: 3px; -} -.group_list dt.inner_menu_item -{ - background-color: #f4f5f9; -} -.tag_control .frm_input_box -{ - display: block; - height: auto; - line-height: 1.6; - padding-top: 4px; - width: auto; -} -.tag_control .frm_input -{ - margin: 0 0 4px 5px; - width: 10em; -} -.tag_control .frm_tips -{ - width: 100%; -} -.tag_control .tag -{ - background-color: #f4f5f9; - cursor: pointer; - display: inline-block; - line-height: 22px; - line-height: 24px; - margin-bottom: 4px; - margin-right: 5px; - padding: 0 18px 0 9px; - position: relative; - vertical-align: top; -} -.tag_control .tag .icon_tag_del -{ - background: url("../images/media_list_img_z29d335.png") 0 0 no-repeat; - display: inline-block; - height: 14px; - position: absolute; - right: 2px; - top: 4px; - vertical-align: middle; - width: 14px; -} -.tag_control .tag:hover .icon_tag_del -{ - background: url("../images/media_list_img_z29d335.png") 0 -24px no-repeat; -} - -.img_pick_panel -{ -} -.img_pick_panel .side_r .inner_menu_item .icon14_common -{ - margin-right: 2px; -} -.img_pick_panel .img_pick -{ - margin-right: -45px; -} -.img_pick_panel .img_pick .img_item -{ - border: 1px solid #e7e7eb; - margin-bottom: 20px; - margin-right: 15px; - *width: 245px; -} -.img_pick_panel .img_pick .img_item .pic -{ - height: 245px; - width: 245px; -} -.img_pick_panel .img_pick .check_content -{ - display: block; - height: 32px; - line-height: 32px; - overflow: hidden; -} -.img_pick_panel .img_pick .check_content .frm_checkbox_label -{ - line-height: 1.6; - margin-right: 0; -} -.img_pick_panel .img_pick .check_content .icon_checkbox -{ - margin-right: 4px; - margin-top: 8px; - vertical-align: top; -} -.img_pick_panel .img_pick .check_content .lbl_content -{ - display: inline-block; - padding: 0; - width: 118px; -} -.msg_card_opr_item_inner { - display: inline-block; - vertical-align: top; - width: 98.5%; - margin: 13px 0; - line-height: 18px; - height: 18px; - cursor: pointer; - border-left: 1px solid #e7e7eb; -} -.img_pick_panel .img_pick .msg_card_opr_item_inner -{ - border: 0; - margin: 5px 0; -} -.img_pick_panel .img_pick .img_item_bd -{ - position: relative; -} -.img_pick_panel .img_pick .img_mask -{ - background-color: rgba(0,0,0,0.5); - height: 169px; - left: 0; - position: absolute; - top: 0; - width: 100%; -} -.img_pick_panel .img_pick .img_mask p -{ - color: #fff; - margin-top: 80px; - padding: 0 15px; -} -.global_mod -{ - padding: 10px 20px; -} -.global_mod .global_info -{ - margin-top: 4px; -} -.global_mod .global_info .global_info_ele -{ - margin-right: 1em; -} -.mod_info -{ - height: 30px; - line-height: 30px; -} -.mod_info .group_name -{ - margin-right: 1em; -} -.mod_info a -{ - margin-right: 1em; -} -.pagination_wrp -{ - padding: 0 20px 20px; - padding-top: 20px; -} -.oper_group -{ - background-color: #f4f5f9; - border-bottom: 1px solid #e7e7eb; - padding: 10px 20px; -} -.oper_group .oper_ele -{ - margin-right: 1em; -} -.oper_group .frm_controls -{ - height: 30px; - line-height: 30px; - width: 68px; -} -.tool_bar.tool_bar_tips -{ - margin-top: 10px; - padding-bottom: 0; - padding-top: 0; -} -.group_select .frm_radio_label -{ - margin-right: 0; - width: 49%; -} -.group_select .frm_radio_label:nth-child(odd) -{ - margin-right: 2px; - width: 49%; -} -.group_select .frm_radio_label:nth-child(even) -{ - width: 46%; -} -.frm_control_group.radio_row .frm_controls -{ - display: block; - margin-bottom: 1em; -} -.frm_control_group.radio_row .frm_tips -{ - margin-left: 19px; - padding-top: 0; -} -.popover_edit .frm_label -{ - float: none; -} -.popover_edit .frm_controls -{ - display: block; -} -.edit_disabled -{ - cursor: default; -} -.edit_disabled .msg_card_opr_item_inner -{ - cursor: default; -} -.edit_disabled:hover .icon18_common.edit_gray -{ - background: url("../images/media_list_img_z29d335.png") 0 -48px no-repeat; -} -.disabled_origin -{ - cursor: default; -} -.disabled_origin .msg_card_opr_item_inner -{ - cursor: default; -} -.icon_original -{ - display: inline-block; - height: 18px; - vertical-align: middle; - width: 34px; -} -.icon_original.access -{ - background: url("../images/media_list_img_z29d335.png") 0 -76px no-repeat; -} -.icon_original.access:hover -{ - background: url("../images/media_list_img_z29d335.png") 0 -104px no-repeat; -} -.icon_original.accessed -{ - background: url("../images/media_list_img_z29d335.png") 0 -132px no-repeat; - cursor: default; -} -.icon_original.disabled -{ - background: url("../images/media_list_img_z29d335.png") 0 -160px no-repeat; - cursor: default; -} -.step_wrp .step1 .agreement -{ - display: block; - margin: 20px auto; - width: 760px; -} -.step_wrp .step1 .msg_content -{ - margin-bottom: 20px; - max-height: 310px; - overflow-y: auto; -} -.step_wrp .step1 .tool_area -{ - padding: 0 0 0 55px; -} -.step_wrp .step2 .history_tag -{ - background-color: #e5e7ec; - color: #222; - cursor: pointer; - display: inline-block; - padding: 0 7px; - text-align: center; -} -.step_wrp .form -{ - padding: 30px 100px; -} -.img_water_tips -{ - line-height: 32px; - margin-right: 1em; -} - -.inner_container_box.cell_layout .inner_main { - width: 2000px; -} -.inner_container_box .bd { - min-height: 530px; -} -.inner_container_box { - background-color: #fff; - border: 1px solid #e7e7eb; -} -.inner_container_box.cell_layout .inner_side { - max-width: 240px; -} -.page_media_list .inner_container_box.cell_layout.side_r .inner_side { - width: 17%; -} -.inner_container_box.cell_layout .inner_side, .inner_container_box.cell_layout .inner_main { - display: table-cell; - vertical-align: top; - word-wrap: break-word; - word-break: break-all; -} -.side_r.inner_container_box .inner_side { - border-right: 1px solid #e7e7eb; -} - -.inner_container_box:after { - content: "\200B"; - display: block; - height: 0; - clear: both; -} - -.inner_menu { - border-top: 1px solid #e7e7eb; -} -.inner_menu:first-child { - border-top-width: 0; -} -.inner_menu_item:hover, .inner_menu_item.selected { - background-color: #f4f5f9; -} -.inner_menu_item { - position: relative; - line-height: 32px; -} -.inner_menu_link { - display: block; - color: #222; - padding-left: 1em; - text-decoration: none; -} -.inner_menu_item:hover a, .inner_menu_item.selected a { - text-decoration: none; -} -.inner_menu_link strong { - display: inline-block; - margin-top: -2px; - width: auto; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - word-wrap: normal; - max-width: 80px; - font-weight: 400; - font-style: normal; - vertical-align: middle; - cursor: pointer; -} -.group_list .num { - display: inline-block; - padding-left: 3px; - font-style: normal; - color: #8d8d8d; -} -.icon14_common { - width: 14px; - height: 14px; - vertical-align: middle; - display: inline-block; - line-height: 100px; - overflow: hidden; -} -.icon14_common.add_gray { - background: url("../images/base_z2b638f.png") 0 -3638px no-repeat; -} -.img_pick_panel .side_r .inner_menu_item .icon14_common { - margin-right: 2px; -} -.main_hd { - line-height: 40px; -} -.main_hd h2 { - font-weight: 400; - font-style: normal; -} -.main_hd h2 { - font-size: 16px; - padding: 0 30px; - line-height: 75px; -} -.tab_navs { - text-align: center; - line-height: 30px; - border-bottom: 1px solid #e7e7eb; - box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.5); - -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.5); - -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.5); -} -.main_hd .title_tab { - margin-top: -14px; -} -.tab_navs { - text-align: center; - line-height: 30px; - border-bottom: 1px solid #e7e7eb; - box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.5); - -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.5); - -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.5); -} -.title_tab .tab_navs { - line-height: 40px; - border-bottom-color: #e7e7eb; - box-shadow: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; -} -.page_media_list ul, .page_media_list ol { - padding-left: 0; - list-style-type: none; -} -.tab_nav { - float: left; - font-size: 14px; -} -.title_tab .tab_nav { - margin-bottom: -1px; -} -.tab_nav a { - display: block; - text-decoration: none; - color: #222; - outline: 0; - padding: 0 20px; -} -.title_tab .tab_nav a { - padding: 0 18px; -} -.title_tab .tab_nav.first a, .title_tab .tab_nav:first-child a { - padding-left: 30px; -} -.page_media_list .main_bd { - padding: 20px 0 40px 0; -} -.tab_navs:after { - content: "\200B"; - display: block; - height: 0; - clear: both; -} -.title_tab .tab_nav.selected { - background: 0; - border-bottom: 3px solid #44b549; -} -.page_media_list { - background-color: #fff; -} -.img_pick_panel { - padding: 0 30px; -} -.global_mod { - padding: 10px 20px; -} -.global_mod .global_info { - margin-top: 4px; -} -.global_mod.float_layout .global_info { - float: left; -} -.global_mod .global_extra { - text-align: right; -} -.global_mod.float_layout:after { - content: "\200B"; - display: block; - height: 0; - clear: both; -} -.global_mod .global_info .global_info_ele { - margin-right: 1em; -} -.upload_box { - display: inline-block; - line-height: 1.6; - vertical-align: middle; -} -.upload_box { - position: relative; - z-index: 1; -} - -.img_water_tips { - margin-right: 1em; - line-height: 32px; -} -.mini_tips.weak_text { - color: #8d8d8d; -} -.btn_default { - background-color: #fff; - background-image: -moz-linear-gradient(top,#fff 0,#fff 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fff)); - background-image: -webkit-linear-gradient(top,#fff 0,#fff 100%); - background-image: -o-linear-gradient(top,#fff 0,#fff 100%); - background-image: linear-gradient(to bottom,#fff 0,#fff 100%); - border-color: #e7e7eb; - color: #222; -} -.btn_default:hover { - background-color: #e7e7eb; - background-image: -moz-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#e7e7eb),to(#e7e7eb)); - background-image: -webkit-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: -o-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: linear-gradient(to bottom,#e7e7eb 0,#e7e7eb 100%); - border-color: #dadbe0; - box-shadow: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - color: #222; -} - -.btn_primary { - background-color: #44b549; - background-image: -moz-linear-gradient(top,#44b549 0,#44b549 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#44b549),to(#44b549)); - background-image: -webkit-linear-gradient(top,#44b549 0,#44b549 100%); - background-image: -o-linear-gradient(top,#44b549 0,#44b549 100%); - background-image: linear-gradient(to bottom,#44b549 0,#44b549 100%); - border-color: #44b549; - color: #fff; -} -.btn_primary:hover { - background-color: #2f9833; - background-image: -moz-linear-gradient(top,#2f9833 0,#2f9833 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#2f9833),to(#2f9833)); - background-image: -webkit-linear-gradient(top,#2f9833 0,#2f9833 100%); - background-image: -o-linear-gradient(top,#2f9833 0,#2f9833 100%); - background-image: linear-gradient(to bottom,#2f9833 0,#2f9833 100%); - border-color: #2f9833; - box-shadow: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - color: #fff; -} -.btn:hover { - text-decoration: none; -} -.btn_disabled { - background-color: #e7e7eb; - background-image: -moz-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#e7e7eb),to(#e7e7eb)); - background-image: -webkit-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: -o-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: linear-gradient(to bottom,#e7e7eb 0,#e7e7eb 100%); - border-color: #dadbe0; - color: #a5a6aa; - cursor: default; -} -.oper_group { - padding: 10px 20px; - background-color: #f4f5f9; - border-bottom: 1px solid #e7e7eb; -} -.group:after { - content: "\200B"; - display: block; - height: 0; - clear: both; -} -.frm_controls { - display: table-cell; - vertical-align: top; - float: none; - width: auto; -} -.oper_group .oper_ele { - margin-right: 1em; -} -.oper_group .frm_controls { - width: 68px; - height: 30px; - line-height: 30px; -} -input[type="checkbox"], input[type="radio"] { - box-sizing: border-box; - padding: 0; -} -.frm_radio, .frm_checkbox { - position: absolute; - left: -999em; -} -.icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -286px no-repeat; - width: 16px; - height: 16px; - vertical-align: middle; - display: inline-block; -} -.icon_radio, .icon_checkbox { - margin-right: 3px; - margin-top: -2px; -} -.msg_card_ft { - background-color: #f4f5f9; - border-top: 1px solid #e7e7eb; -} -.grid_item { - float: left; -} -.size1of3 { - width: 25%; -} -.msg_card_opr_item { - text-align: center; -} -.grid_line .no_extra.grid_item { - float: none; - width: auto; - overflow: hidden; -} - -.icon18_common { - width: 18px; - height: 18px; - vertical-align: middle; - display: inline-block; - line-height: 100px; - overflow: hidden; -} -.icon18_common.edit_gray:hover, a:hover .icon18_common.edit_gray { - background: url("../images/base_z2b638f.png") 0 -5555px no-repeat; -} -.icon18_common.edit_gray { - background: url("../images/base_z2b638f.png") 0 -5527px no-repeat; -} -.icon18_common.move_gray { - background: url("../images/base_z2b638f.png") 0 -5163px no-repeat; -} -.icon18_common.move_gray:hover, a:hover .icon18_common.move_gray { - background: url("../images/base_z2b638f.png") 0 -5191px no-repeat; -} -a:hover .icon18_common.del_gray, .icon18_common.del_gray:hover { - background: url("../images/base_z2b638f.png") 0 -4855px no-repeat; -} -.icon18_common.del_gray { - background: url("../images/base_z2b638f.png") 0 -4827px no-repeat; -} -.icon18_common.link_gray { - background: url("../images/base_z2b638f.png") 0 -4883px no-repeat -} - -.icon18_common.link_gray:hover,.hover .icon18_common.link_gray,a:hover .icon18_common.link_gray { - background: url("../images/base_z2b638f.png") 0 -4911px no-repeat -} -.vm_box { - display: inline-block; - height: 100%; - vertical-align: middle; -} -.grid_line:after { - content: "\200B"; - display: block; - height: 0; - clear: both; -} - -.r { - float: right; -} -.l { - float: left; -} -.page_media_list dl, -.page_media_list dd, -.page_media_list h2, -.page_media_list ul, -.page_media_list p -{ - margin: 0; -} - -.popover_close { - display: none; - position: absolute; - right: 10px; - top: 22px; - background: url("../images/base_z2b638f.png") 0 -2544px no-repeat -} - -.popover_close:hover { - background: url("../images/base_z2b638f.png") 0 -2570px no-repeat -} - -.popover { - width: 257px; - position: absolute; - margin-top: 12px; - z-index: 999 -} - -.popover .popover_inner { - border: 1px solid #d9dadc; - word-wrap: break-word; - word-break: break-all; - padding: 30px; - background-color: #fff; - box-shadow: none; - -moz-box-shadow: none; - -webkit-box-shadow: none -} - -.popover .popover_arrow { - position: absolute; - left: 50%; - margin-left: -8px; - margin-top: -8px; - display: inline-block; - width: 0; - height: 0; - border-width: 8px; - border-style: dashed; - border-color: transparent; - border-top-width: 0; - border-bottom-color: #d9dadc; - border-bottom-style: solid -} - -.popover .popover_arrow_out { - top: 0 -} - -.popover .popover_arrow_in { - border-bottom-color: #fff; - top: 1px -} - -.popover .popover_title { - font-size: 14px; - font-weight: 700 -} - -.popover .popover_tips { - color: #8d8d8d -} - -.popover .popover_bar { - text-align: center; - margin-top: 20px -} - -.popover .popover_bar .btn { - margin: 0 .3em -} - -.popover.simple .popover_bar { - text-align: left -} - -.popover.simple .btn { - margin-left: 0; - margin-right: .6em -} - -.popover.pos_left .popover_arrow { - left: 42px -} - -.popover.pos_right .popover_arrow { - left: auto; - right: 28px -} - -.popover.normal_flow { - position: relative; - width: auto; - z-index: 0 -} - -.popover.normal_flow .popover_inner { - padding: 14px 20px; - box-shadow: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - border-color: #e7e7eb -} - -.popover.normal_flow .popover_content { - width: auto -} - -.popover.normal_flow .popover_arrow_out { - border-bottom-color: #e7e7eb -} - -.popover.arrow_left { - margin-left: 8px; - margin-top: 0 -} - -.popover.arrow_left .popover_arrow { - top: 25px; - left: 0; - display: inline-block; - width: 0; - height: 0; - border-width: 8px; - border-style: dashed; - border-color: transparent; - border-left-width: 0; - border-right-color: #d9dadc; - border-right-style: solid -} - -.popover.arrow_left .popover_arrow_in { - left: 1px; - border-right-color: #fff -} - -.popover.z_top { - z-index: 10000 -} - -.popover { - width: 290px; - border: 0; - -webkit-box-shadow:none; -} - -.popover .popover_title { - font-weight: 400; - font-style: normal; - padding-bottom: 5px -} - -.popover .frm_input_box { - display: block; - width: auto -} - -.popover .popover_bar { - text-align: justify; - text-justify: distribute-all-lines; - font-size: 0 -} - -.popover .popover_bar:after { - display: inline-block; - width: 100%; - height: 0; - font-size: 0; - margin: 0; - padding: 0; - overflow: hidden; - content: "." -} - -.popover .popover_bar .tj_item { - font-size: 14px; - text-align: left; - text-justify: auto -} - -.popover .popover_bar .btn { - margin: 0 -} -label { - font-weight: normal; -} -.frm_input, .frm_textarea { - width: 100%; - background-color: transparent; - border: 0; - outline: 0; -} -.frm_input { - height: 30px; - margin: 0; -} -.frm_input_box { - display: inline-block; - position: relative; - height: 30px; - line-height: 30px; - vertical-align: middle; - width: 278px; - font-size: 14px; - padding: 0 10px; - border: 1px solid #e7e7eb; - box-shadow: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - border-radius: 0; - -moz-border-radius: 0; - -webkit-border-radius: 0; - background-color: #fff; -} -.popover .frm_input_box { - display: block; - width: auto; -} -.frm_msg { - display: none; - overflow: hidden; -} -.frm_controls:after { - content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "; - visibility: hidden; - clear: both; - height: 0!important; - display: block; - line-height: 0; -} -.btn { - min-width: 60px; -} -.btn { - display: inline-block; - overflow: visible; - padding: 0 22px; - height: 30px; - line-height: 30px; - vertical-align: middle; - text-align: center; - text-decoration: none; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - font-size: 14px; - border-width: 1px; - border-style: solid; - cursor: pointer; -} -.frm_tips, .frm_msg { - padding-top: 4px; - width: 300px; -} - - -.frm_radio_label, .frm_checkbox_label { - display: inline-block; - text-align: left; - cursor: pointer; - margin-right: 1em; -} - -.icon_radio { - background: url("../images/base_z2b638f.png") 0 0 no-repeat; - width: 16px; - height: 16px; - vertical-align: middle; - display: inline-block; - margin-top: -0.2em; - *margin-top: 0 -} - -.icon_radio.selected,.selected .icon_radio { - background: url("../images/base_z2b638f.png") 0 -26px no-repeat -} - -.icon_radio.selected.disabled,.selected.disabled .icon_radio { - background: url("../images/base_z2b638f.png") 0 -52px no-repeat -} - -.icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -78px no-repeat; - width: 16px; - height: 16px; - vertical-align: middle; - display: inline-block; - margin-top: -0.2em; - *margin-top: 0 -} - -.icon_checkbox.selected,.selected .icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -104px no-repeat -} - -.icon_checkbox.disabled,.disabled .icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -130px no-repeat -} - -.icon_checkbox.selected.disabled,.selected.disabled .icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -156px no-repeat -} -.icon_radio { - margin-right: 4px -} - -.icon_checkbox { - margin-right: 4px -} - -.frm_select_box { - display: inline-block; - *display: inline; - *zoom: 1; - position: relative; - background-color: #fff; - background-image: -moz-linear-gradient(top,#fff 0,#fff 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fff)); - background-image: -webkit-linear-gradient(top,#fff 0,#fff 100%); - background-image: -o-linear-gradient(top,#fff 0,#fff 100%); - background-image: linear-gradient(to bottom,#fff 0,#fff 100%); - border-color: #e7e7eb; - color: #222; - vertical-align: middle; - font-size: 14px; - *top: .6em; - *margin-right: 5px; - padding: 4px 0; - border: 1px solid #e7e7eb; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - *background-color: transparent; - *border-color: transparent; - *padding-top: 0; - *padding-bottom: 0 -} - -.frm_select_box button { - color: #222 -} - -.frm_select_box:hover { - background-color: #e7e7eb; - background-image: -moz-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: -webkit-gradient(linear,0 0,0 100%,from(#e7e7eb),to(#e7e7eb)); - background-image: -webkit-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: -o-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%); - background-image: linear-gradient(to bottom,#e7e7eb 0,#e7e7eb 100%); - border-color: #dadbe0; - box-shadow: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - color: #000 -} - -.frm_select_box:hover button { - color: #222 -} - -.frm_select_label { - *margin-top: -0.2em -} - -.frm_select { - position: relative; - z-index: 1; - height: 22px; - padding: 0 30px 0 10px; - line-height: 22px; - background-color: transparent; - border: 0; - outline: 0 -} -.icon_radio,.icon_checkbox { - margin-right: 3px; - margin-top: -2px; - *margin-top: 0 -} - -.icon_radio { - background: url("../images/base_z2b638f.png") 0 -182px no-repeat; - width: 16px; - height: 16px; - vertical-align: middle; - display: inline-block -} - -.icon_radio.selected,.selected .icon_radio { - background: url("../images/base_z2b638f.png") 0 -208px no-repeat -} - -.icon_radio.disabled,.disabled .icon_radio { - background: url("../images/base_z2b638f.png") 0 -234px no-repeat -} - -.icon_radio.selected.disabled,.selected.disabled .icon_radio { - background: url("../images/base_z2b638f.png") 0 -260px no-repeat -} - -.icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -286px no-repeat; - width: 16px; - height: 16px; - vertical-align: middle; - display: inline-block -} - -.icon_checkbox.selected,.selected .icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -312px no-repeat -} - -.icon_checkbox.disabled,.disabled .icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -338px no-repeat -} - -.icon_checkbox.selected.disabled,.selected.disabled .icon_checkbox { - background: url("../images/base_z2b638f.png") 0 -364px no-repeat -} -.img_item_bd { - width: 245px; -} \ No newline at end of file diff --git a/app-ht/web/exts-src/mall/res/images/base_z2b638f.png b/app-ht/web/exts-src/mall/res/images/base_z2b638f.png deleted file mode 100644 index 7a3f53d..0000000 Binary files a/app-ht/web/exts-src/mall/res/images/base_z2b638f.png and /dev/null differ diff --git a/app-ht/web/exts-src/mall/res/images/bg_processor218877.png b/app-ht/web/exts-src/mall/res/images/bg_processor218877.png deleted file mode 100644 index 23d6319..0000000 Binary files a/app-ht/web/exts-src/mall/res/images/bg_processor218877.png and /dev/null differ diff --git a/app-ht/web/exts-src/mall/res/images/bg_processor_ie218877.png b/app-ht/web/exts-src/mall/res/images/bg_processor_ie218877.png deleted file mode 100644 index c50c590..0000000 Binary files a/app-ht/web/exts-src/mall/res/images/bg_processor_ie218877.png and /dev/null differ diff --git a/app-ht/web/exts-src/mall/res/images/icon_card_selected218877.png b/app-ht/web/exts-src/mall/res/images/icon_card_selected218877.png deleted file mode 100644 index d290812..0000000 Binary files a/app-ht/web/exts-src/mall/res/images/icon_card_selected218877.png and /dev/null differ diff --git a/app-ht/web/exts-src/mall/res/images/media_list_img_z29d335.png b/app-ht/web/exts-src/mall/res/images/media_list_img_z29d335.png deleted file mode 100644 index 48a3671..0000000 Binary files a/app-ht/web/exts-src/mall/res/images/media_list_img_z29d335.png and /dev/null differ diff --git a/app-ht/web/exts-src/mall/res/js/base.js b/app-ht/web/exts-src/mall/res/js/base.js deleted file mode 100644 index 23122c1..0000000 --- a/app-ht/web/exts-src/mall/res/js/base.js +++ /dev/null @@ -1,199 +0,0 @@ - -var template=function(e,n){ - return template["object"==typeof n?"render":"compile"].apply(template,arguments); -}; -!function(e,n){ - "use strict"; - e.version="2.0.1",e.openTag="<#",e.closeTag="#>",e.isEscape=!0,e.isCompress=!1,e.parser=null, - e.render=function(e,n){ - var t=r(e); - return void 0===t?o({ - id:e, - name:"Render Error", - message:"No Template" - }):t(n); - },e.compile=function(n,r){ - function a(t){ - try{ - return new l(t)+""; - }catch(i){ - return u?(i.id=n||r,i.name="Render Error",i.source=r,o(i)):e.compile(n,r,!0)(t); - } - } - var c=arguments,u=c[2],s="anonymous"; - "string"!=typeof r&&(u=c[1],r=c[0],n=s); - try{ - var l=i(r,u); - }catch(p){ - return p.id=n||r,p.name="Syntax Error",o(p); - } - return a.prototype=l.prototype,a.toString=function(){ - return l.toString(); - },n!==s&&(t[n]=a),a; - },e.helper=function(n,t){ - e.prototype[n]=t; - },e.onerror=function(e){ - var t="[template]:\n"+e.id+"\n\n[name]:\n"+e.name; - e.message&&(t+="\n\n[message]:\n"+e.message),e.line&&(t+="\n\n[line]:\n"+e.line, - t+="\n\n[source]:\n"+e.source.split(/\n/)[e.line-1].replace(/^[\s\t]+/,"")),e.temp&&(t+="\n\n[temp]:\n"+e.temp), - n.console&&console.error(t); - }; - var t={},r=function(r){ - var o=t[r]; - if(void 0===o&&"document"in n){ - var i=document.getElementById(r); - if(i){ - var a=i.value||i.innerHTML; - return e.compile(r,a.replace(/^\s*|\s*$/g,"")); - } - }else if(t.hasOwnProperty(r))return o; - },o=function(n){ - function t(){ - return t+""; - } - return e.onerror(n),t.toString=function(){ - return"{Template Error}"; - },t; - },i=function(){ - e.prototype={ - $render:e.render, - $escape:function(e){ - return"string"==typeof e?e.replace(/&(?![\w#]+;)|[<>"']/g,function(e){ - return{ - "<":"<", - ">":">", - '"':""", - "'":"'", - "&":"&" - }[e]; - }):e; - }, - $string:function(e){ - return"string"==typeof e||"number"==typeof e?e:"function"==typeof e?e():""; - } - }; - var n=Array.prototype.forEach||function(e,n){ - for(var t=this.length>>>0,r=0;t>r;r++)r in this&&e.call(n,this[r],r,this); - },t=function(e,t){ - n.call(e,t); - },r="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",o=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,i=/[^\w$]+/g,a=new RegExp(["\\b"+r.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),c=/\b\d[^,]*/g,u=/^,+|,+$/g,s=function(e){ - return e=e.replace(o,"").replace(i,",").replace(a,"").replace(c,"").replace(u,""), - e=e?e.split(/,+/):[]; - }; - return function(n,r){ - function o(n){ - return g+=n.split(/\n/).length-1,e.isCompress&&(n=n.replace(/[\n\r\t\s]+/g," ")), - n=n.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n"),n=w[1]+"'"+n+"'"+w[2], - n+"\n"; - } - function i(n){ - var t=g; - if(p?n=p(n):r&&(n=n.replace(/\n/g,function(){ - return g++,"$line="+g+";"; - })),0===n.indexOf("=")){ - var o=0!==n.indexOf("=="); - if(n=n.replace(/^=*|[\s;]*$/g,""),o&&e.isEscape){ - var i=n.replace(/\s*\([^\)]+\)/,""); - $.hasOwnProperty(i)||/^(include|print)$/.test(i)||(n="$escape($string("+n+"))"); - }else n="$string("+n+")"; - n=w[1]+n+w[2]; - } - return r&&(n="$line="+t+";"+n),a(n),n+"\n"; - } - function a(e){ - e=s(e),t(e,function(e){ - h.hasOwnProperty(e)||(c(e),h[e]=!0); - }); - } - function c(e){ - var n; - "print"===e?n=O:"include"===e?(y.$render=$.$render,n=E):(n="$data."+e,$.hasOwnProperty(e)&&(y[e]=$[e], - n=0===e.indexOf("$")?"$helpers."+e:n+"===undefined?$helpers."+e+":"+n)),m+=e+"="+n+","; - } - var u=e.openTag,l=e.closeTag,p=e.parser,f=n,d="",g=1,h={ - $data:!0, - $helpers:!0, - $out:!0, - $line:!0 - },$=e.prototype,y={},m="var $helpers=this,"+(r?"$line=0,":""),v="".trim,w=v?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],b=v?"if(content!==undefined){$out+=content;return content}":"$out.push(content);",O="function(content){"+b+"}",E="function(id,data){if(data===undefined){data=$data}var content=$helpers.$render(id,data);"+b+"}"; - t(f.split(u),function(e){ - e=e.split(l); - var n=e[0],t=e[1]; - 1===e.length?d+=o(n):(d+=i(n),t&&(d+=o(t))); - }),f=d,r&&(f="try{"+f+"}catch(e){e.line=$line;throw e}"),f="'use strict';"+m+w[0]+f+"return new String("+w[3]+")"; - try{ - var T=new Function("$data",f); - return T.prototype=y,T; - }catch(j){ - throw j.temp="function anonymous($data) {"+f+"}",j; - } - }; - }(); - e.openTag="{",e.closeTag="}",e.parser=function(n){ - n=n.replace(/^\s/,""); - var t=n.split(" "),r=t.shift(),o=e.keywords,i=o[r]; - return i&&o.hasOwnProperty(r)?(t=t.join(" "),n=i.call(n,t)):e.prototype.hasOwnProperty(r)?(t=t.join(","), - n="=="+r+"("+t+");"):(n=n.replace(/[\s;]*$/,""),n="="+n),n; - },e.keywords={ - "if":function(e){ - return"if("+e+"){"; - }, - "else":function(e){ - return e=e.split(" "),e="if"===e.shift()?" if("+e.join(" ")+")":"","}else"+e+"{"; - }, - "/if":function(){ - return"}"; - }, - each:function(e){ - e=e.split(" "); - var n=e[0]||"$data",t=e[1]||"as",r=e[2]||"$value",o=e[3]||"$index",i=r+","+o; - return"as"!==t&&(n="[]"),"$each("+n+",function("+i+"){"; - }, - "/each":function(){ - return"});"; - }, - echo:function(e){ - return"print("+e+");"; - }, - include:function(e){ - e=e.split(" "); - var n=e[0],t=e[1],r=n+(t?","+t:""); - return"include("+r+");"; - } - },e.helper("$each",function(e,n){ - var t=Array.isArray||function(e){ - return"[object Array]"===Object.prototype.toString.call(e); - }; - if(t(e))for(var r=0,o=e.length;o>r;r++)n.call(e,e[r],r,e);else for(r in e)n.call(e,e[r],r); - }); -}(template,this);; - - -String.prototype.format = function(t) { - return this.replace(/\{(\w+)\}/g, - function(n, r) { - return void 0 !== t[r] ? t[r] : n; - }); -} - -String.prototype.html = function(t) { - var n = ["&", "&", "<", "<", ">", ">", " ", " ", '"', """, "'", "'"]; - t === !1 && n.reverse(); - for (var r = 0, - e = this; r < n.length; r += 2) e = e.replace(new RegExp(n[r], "g"), n[1 + r]); - return e; -} -$.fn.disable = function(t) { - t = t || "btn_disabled"; - var s = this.hasClass("btn_input") ? this.find("button") : this; - return s.attr("disabled", "disabled"), - this.parent().hasClass("btn_input") ? this.parent().addClass(t) : this.addClass(t), - this; -}; -$.fn.enable = function(t) { - t = t || "btn_disabled"; - var s = this.hasClass("btn_input") ? this.find("button") : this; - return s.attr("disabled", !1), - this.parent().hasClass("btn_input") ? this.parent().removeClass(t) : this.removeClass(t), - this; -}; \ No newline at end of file diff --git a/app-ht/web/exts-src/mall/res/js/checkbox.html.js b/app-ht/web/exts-src/mall/res/js/checkbox.html.js deleted file mode 100644 index 6141ceb..0000000 --- a/app-ht/web/exts-src/mall/res/js/checkbox.html.js +++ /dev/null @@ -1,4 +0,0 @@ -define("tpl/biz_web/ui/checkbox.html.js", [], - function(e, t, n) { - return ''; - }); \ No newline at end of file diff --git a/app-ht/web/exts-src/mall/res/js/checkbox.js b/app-ht/web/exts-src/mall/res/js/checkbox.js deleted file mode 100644 index cc9d2f2..0000000 --- a/app-ht/web/exts-src/mall/res/js/checkbox.js +++ /dev/null @@ -1,150 +0,0 @@ -define("mall/res/js/checkbox", ["mall/res/js/checkbox.html"], - function(t) { - "use strict"; - function e(t) { - var e = $(t); - e.each(function() { - var t = $(this), - e = t.prop("checked"), - n = t.parent(); - e ? n.addClass("selected") : n.removeClass("selected"); - }); - } - function n(t) { - var e = $(t); - e.each(function() { - var t = $(this).prop("disabled"), - e = $(this).parent(); - t ? e.addClass("disabled") : e.removeClass("disabled"); - }); - } - function i() { - return "checkbox" + s++; - } - var a = { - container: null, - label: "", - name: "", - type: "checkbox" - }, - c = t("mall/res/js/checkbox.html"), - r = null, - s = 2, - o = 1, - p = function(t) { - this.options = $.extend(!0, {}, - a, t), - this.options.index = o++, - this.$container = $(this.options.container), - this.$dom = $(r(c, this.options)).appendTo(this.$container), - this.$input = this.$dom.find("input"), - this.$input.checkbox(); - }; - return p.prototype = { - checked: function(t) { - return "undefined" != typeof t && (this.$input.prop("checked", t), e(this.$input)), - this.$input.prop("checked"); - }, - disabled: function(t) { - return "undefined" != typeof t && (this.$input.prop("disabled", t), n(this.$input)), - this.$input.prop("disabled"); - } - }, - $.fn.checkbox = function(t) { - var a, c, r, s, o = !1; - "boolean" == typeof t ? a = t: $.isPlainObject(t) ? (a = t.multi, c = t.onChanged) : "string" == typeof t ? (o = !0, r = t, s = [].slice.call(arguments, 1)) : "undefined" == typeof t && (t = {}), - "undefined" == typeof a && (a = this.is("input[type=checkbox]")); - var p = this, - d = a ? "checkbox": "radio", - h = { - checked: function(t) { - return p.attr("checked", t), - p.prop("checked", t), - e(p), - p; - }, - disabled: function(t) { - return p.attr("disabled", t), - p.prop("disabled", t), - n(p), - p; - }, - value: function() { - var t = p.eq(0); - return t.prop("checked") ? t.val() : ""; - }, - values: function() { - var t = []; - return p.each(function() { - $(this).prop("checked") && t.push($(this).val()); - }), - t; - }, - adjust: function(t) { - var n; - return n = "string" == typeof t ? t.split(",") : t, - n && n.length > 0 && p.each(function() { - var t = $(this); - n.indexOf(t.val()) >= 0 && (t.attr("checked", !0), e(t)); - }), - this; - }, - disable: function(t) { - var e; - return e = "string" == typeof t ? t.split(",") : t, - e && e.length > 0 && p.each(function() { - var t = $(this); - e.indexOf(t.val()) >= 0 && (t.attr("disabled", !0), n(t)); - }), - this; - }, - setall: function(t) { - p.each(function() { - var e = $(this); - e.attr("disabled", t ? !1 : !0), - n(e); - }); - }, - enable: function(t) { - var e; - return e = "string" == typeof t ? t.split(",") : t, - e && e.length > 0 && p.each(function() { - var t = $(this); - e.indexOf(t.val()) >= 0 && (t.attr("disabled", !1), n(t)); - }), - this; - }, - label: function(t) { - return t && (p.parent().find(".lbl_content").text(t), p.attr("data-label", t)), - p; - } - }; - return o && "function" == typeof h[r] ? h[r].apply(h, s) : (this.addClass("frm_" + d).each(function() { - var t = $(this), - e = t.parent(); - if (!e.is("label")) { - var n = t.attr("data-label") || ""; - e = $(''.format({ - type: d - })).append("{content}".format({ - content: n.html(!0) - })), - e.insertBefore(t).prepend(t); - } - if (!this.id) { - var a = i(); - this.id = a; - } - e.attr("for", this.id); - }), e(this), n(this), t && t.initOnChanged && "function" == typeof c && p.parent().find("input[type=checkbox],input[type=radio]").each(function() { - c.call(h, $(this)); - }), this.parent().delegate("input[type=checkbox],input[type=radio]", "click", - function() { - var t = $(this), - n = t.prop("checked"); - a ? (t.attr("checked", n), e(t)) : (p.attr("checked", !1), t.attr("checked", !0).prop("checked", !0), e(p)), - "function" == typeof c && c.call(h, t); - }).addClass("frm_" + d + "_label"), h); - }, - p; - }); \ No newline at end of file diff --git a/app-ht/web/exts-src/mall/res/js/img-list.js b/app-ht/web/exts-src/mall/res/js/img-list.js deleted file mode 100644 index e9eec54..0000000 --- a/app-ht/web/exts-src/mall/res/js/img-list.js +++ /dev/null @@ -1,384 +0,0 @@ -define("mall/res/js/img-list",[ - "mall/res/js/popover", - 'mall/res/js/checkbox' -],function(t){ - var s = t("mall/res/js/popover"), - m = t("mall/res/js/checkbox") - g = res; - var _ = $("#js_imglist"), - h = $("#js_group"), - w = g.group, - v = null, - j = function() { - function t(t, e) { - i.push(e); - } - function e() { - $.each(i, function(n, t) { - t(); - }); - } - var i = []; - return { - init: t, - run: e - }; - } (), - y = { - renderImage: function(t) { - var e = this, - i = []; - _.find("input[type=checkbox]:checked").each(function() { - i.push($(this).data("id")); - }), - i = "," + i.join(",") + ",", - t.each(function(t) { - t.selected = i.indexOf("," + t.file_id + ",") >= 0 ? !0 : !1, - t.img_src = t.cdn_url || wx.url("/cgi-bin/getimgdata?mode=small&source=file&fileId=%s".sprintf(t.file_id)), - t.imgsrc = t.cdn_url || wx.url("/cgi-bin/getimgdata?mode=large&source=file&fileId=%s".sprintf(t.file_id)), - t.downsrc = wx.url("/cgi-bin/downloadfile?fileid=%s".sprintf(t.file_id)), - t.group_id = g.groupid, - t.copyright_status = t.copyright_status || 0, - t.can_apply_copyright = e.canApplyImgCopyright(t.copyright_status), - t.can_edit_name = e.canEditImgName(t.copyright_status); - }), - _.html(m("tpl_list", { - list: t - })), - this.initListEvent(); - }, - createPopover: function(t) { - v && v.remove(), - v = new s({ - dom: t.dom, - content: t.content, - margin: "center", - place: "bottom", - buttons: [{ - text: "确定", - type: "primary", - click: function() { - t.ok.call(this); - } - }, - { - text: "取消", - click: function() { - this.remove(); - } - }] - }) - }, - renameImage: function(t) { - var e = v.$pop, - i = e.find(".jsPopoverBt").eq(0), - n = e.find("input").val().trim(); - return "" == n ? void alert("不能为空") : ( - $.ajax({ - url : baseUrl + '/mall/res/update-res', - type : 'post', - dataType : 'json', - data : { - name : n, - id: t.data("id") - }, - success : function(e){ - location.reload(); - } - }) - ); - }, - moveGroup: function(t) { - var e = v.$pop, - i = e.find(".jsPopoverBt").eq(0), - n = e.find("input[type=radio]:checked"); - return 0 == n.length ? void alert("请选择分组") : ( - $.ajax({ - url : baseUrl + '/mall/res/move-group', - type : 'post', - dataType : 'json', - data : { - res_id: t, - old_group_id: $("#js_currentgroup").data("id"), - new_group_id: n.data("id") - }, - success : function(e){ - location.reload(); - } - }) - ); - }, - deleteImage: function(t) { - var e = v.$pop, - i = e.find(".jsPopoverBt").eq(0), - n = [], - r = []; - t.each(function() { - var t = $(this); - n.push(t.data("id")), - r.push(t.data("oristatus") || 0); - }); - var l = n.length > 1 ? "batchdel": "del"; - $.ajax({ - url : baseUrl + '/mall/res/delete-res', - type : 'post', - dataType : 'json', - data : { - res_id: n.join(","), - }, - success : function(e){ - location.reload(); - } - }) - }, - createGroup: function() { - var t = v.$pop, - e = t.find(".jsPopoverBt").eq(0), - i = t.find("input").val().trim(); - return i.length < 1 || i.length > 6 ? void alert("分组名字为1-6个字符") : ( - $.ajax({ - url : baseUrl + '/mall/res/create-group', - type : 'post', - dataType : 'json', - data : { - name : i, - }, - success : function(e){ - location.reload(); - } - }) - ); - }, - renameGroup: function(t) { - var e = t.find("input"), - n = e.val().trim(); - return n.length < 1 || n.length > 6 ? void alert("分组名字为1-6个字符") : ( - $.ajax({ - url : baseUrl + '/mall/res/update-group', - type : 'post', - dataType : 'json', - data : { - name : n, - id: e.data("id") - }, - success : function(e){ - location.reload(); - } - }) - ); - }, - deleteGroup: function() { - $.ajax({ - url : baseUrl + '/mall/res/delete-group', - type : 'post', - dataType : 'json', - data : { - id: $("#js_currentgroup").data("id") - }, - success : function(e){ - location.href = baseUrl + '/mall/res/index'; - } - }) - }, - }; - - j.init("imageevent", - function() { - _.on("click", ".js_edit", - function() { - var t = $(this); - y.createPopover({ - dom: this, - content: $('#tpl_edit').tpl({ - name: t.data("name"), - id: t.data("id") - }), - ok: function() { - y.renameImage(t); - }, - keypress: function() { - y.renameImage(t); - } - }); - }), - _.on("click", ".js_del", - function() { - var t = $(this), - e = t.data("oristatus"), - i = 2 == e ? $("#tpl_imgori_del").html() : $("#tpl_del").html(); - y.createPopover({ - dom: this, - content: i, - ok: function() { - y.deleteImage(t); - } - }); - }), - _.on("click", ".js_move", - function() { - var t = $(this); - 1 == w.length && "未分组" == w[0].name && w[0].selected ? new s({ - dom: t, - content: "你还没有任何分组。", - place: "bottom", - margin: "center", - hover: !0, - hideIfBlur: !0 - }) : (y.createPopover({ - dom: this, - content: $('#tpl_move').tpl({ - list: w, - current: $("#js_currentgroup").data("id") - }), - ok: function() { - y.moveGroup(t.data("id")); - } - }), v.$pop.find("input[type=radio]").checkbox()); - }); - - // 复制 - $('.js_link').zclip({ - path: baseUrl + '/exts/base/1.0.0/ui/zclip/ZeroClipboard.swf', - copy: function(){ - return $(this).data('url'); - }, - beforeCopy:function(){ - // $(this).css("color","orange"); - }, - afterCopy:function(){ - var $copysuc = $("
☺ 复制成功
"); - $("body").find(".copy-tips").remove().end().append($copysuc); - $(".copy-tips").fadeOut(3000); - } - }); - }), - j.init("groupevent", - function() { - $("#js_rename").on("click", - function() { - var t = $(this), - e = t.parent().find("span"); - y.createPopover({ - dom: this, - content: $('#tpl_edit').tpl({ - name: e.text(), - id: e.data("id") - }), - ok: function() { - y.renameGroup(this.$pop); - } - }); - }), - $("#js_delgroup").on("click", - function() { - $(this); - y.createPopover({ - dom: this, - content: "

仅删除分组,不删除图片,组内图片将自动归入未分组

", - ok: function() { - y.deleteGroup(); - } - }); - }), - $("#js_creategroup").on("click", - function() { - $(this); - y.createPopover({ - dom: this, - content: $('#tpl_create').tpl(), - ok: function() { - y.createGroup(); - } - }); - }); - }), - j.init("upload", - function() { - // 选中文件后直接触发ajax上传 - $('#upload-images').change(function() { - seajs.use("base/1.0.0/ui/block-ui/block-ui-1.0.0",function () { - $.blockUI({ - message : '

正在上传文件...请不要关闭、刷新页面和浏览器.


', - css: { - } - }) - }) - seajs.use("base/1.0.0/ui/ajaxfileupload/ajaxfileupload-1.0.0",function () { - $.ajaxFileUpload({ - url: baseUrl + '/mall/res/ajax-upload?groupId=' + $("#js_upload").data("gid"), - secureuri :false, - fileElementId :'upload-images',//file控件id - dataType : 'json', - type:"post", - success : function (data){ - seajs.use("base/1.0.0/ui/block-ui/block-ui-1.0.0",function () { - $.unblockUI(); - }); - location.reload(); - }, - error: function(data){ - seajs.use("base/1.0.0/ui/block-ui/block-ui-1.0.0",function () { - $.unblockUI(); - }); - alert("程序发生错误,请联系管理员。") - } - }) - }) - return false; - }) - }), - j.init("checkbox", - function() { - $("#js_all").checkbox({ - onChanged: function(t) { - var e = t.prop("checked"); - _.find("input[type=checkbox]").checkbox("checked", e), - _.find("input[type=checkbox]:checked").length ? $("#js_batchmove,#js_batchdel").enable() : $("#js_batchmove,#js_batchdel").disable(); - } - }); - _.find("input[type=checkbox]").checkbox({ - onChanged: function() { - _.find("input[type=checkbox]:checked").length ? $("#js_batchmove,#js_batchdel").enable() : $("#js_batchmove,#js_batchdel").disable(); - } - }); - }), - j.init("batchevent", - function() { - $("#js_batchdel").on("click", - function() { - var t = $(this); - t.hasClass("btn_disabled") || y.createPopover({ - dom: this, - content: '

确定删除选中的素材吗

', - ok: function() { - var t = _.find("input[type=checkbox]:checked"); - y.deleteImage(t); - } - }); - }), - $("#js_batchmove").on("click", - function() { - var t = $(this); - t.hasClass("btn_disabled") || (y.createPopover({ - dom: this, - content: $('#tpl_move').tpl({ - list: w, - current: $("#js_currentgroup").data("id") - }), - ok: function() { - var t = []; - _.find("input[type=checkbox]:checked").each(function() { - t.push($(this).data("id")); - }), - y.moveGroup(t.join(",")); - } - }), 0 === v.$pop.find("input[type=radio]").length && (v.$pop.find(".no_group").show(), v.$pop.find(".popover_bar").hide()), v.$pop.find("input[type=radio]").checkbox()); - }), - $("#ori_apply_batch").on("click", - function() { - var t = $(this); - t.hasClass("btn_disabled") || y.imgOriApply(); - }); - }), - j.run(); -}); \ No newline at end of file diff --git a/app-ht/web/exts-src/mall/res/js/popover.html.js b/app-ht/web/exts-src/mall/res/js/popover.html.js deleted file mode 100644 index afbe218..0000000 --- a/app-ht/web/exts-src/mall/res/js/popover.html.js +++ /dev/null @@ -1,3 +0,0 @@ -define("mall/res/js/popover.html",[],function(){ -return'
\n
\n
{=content}
\n \n {if close}关闭{/if}\n \n\n
{each buttons as bt index}{bt.text}{if index < buttons.length-1} {/if}{/each}
\n
\n \n \n
\n'; -}); \ No newline at end of file diff --git a/app-ht/web/exts-src/mall/res/js/popover.js b/app-ht/web/exts-src/mall/res/js/popover.js deleted file mode 100644 index f71c97e..0000000 --- a/app-ht/web/exts-src/mall/res/js/popover.js +++ /dev/null @@ -1,129 +0,0 @@ -define("mall/res/js/popover", ["mall/res/js/popover.html"], - function(o, t, e) { - "use strict"; - function i(o) { - if (o = $.extend(!0, {}, - h, o), this.opt = o, this.$dom = $(o.dom), this.$dom.data("popover")) { - var t = this.$dom.data("popover"); - return s(o, t), - t.$pop.show(), - t; - } - // return o.buttons && o.buttons && o.buttons.each(function(o) { - // o.type = o.type || "default"; - // }), - return o.buttons && o.buttons && $.each(o.buttons, function(i, o) { - o.type = o.type || "default"; - }), - this.$pop=$(template.compile(p)(o)), - o.addCls && this.$pop.addClass(o.addCls), - $("body").append(this.$pop), - n(this, o), - s(o, this), - this.$pop.show(), - this.$dom.data("popover", this), - this.clickIn = !0, - this; - } - function n(o, t) { - function e() { - clearTimeout(n), - o.show(); - } - function i() { - n = setTimeout(function() { - o.hide(); - }, - s); - } - if (t.buttons && t.buttons.length > 0 && o.$pop.find(".jsPopoverBt").each(function(e, i) { - t.buttons[e] && "function" == typeof t.buttons[e].click && $(i).click(function(i) { - t.buttons[e].click.call(o, i); - }); - }), o.$pop.find(".jsPopoverClose").click(function() { - t.close === !0 ? o.hide() : "function" == typeof t.close && t.close.call(o); - }), t.hover && (o.$dom.hover(function() { - o.hoverTime && clearTimeout(o.hoverTime); - }, - function() { - o.hoverTime = o.hide.delay(1, o); - }), o.$pop.hover(function() { - o.hoverTime && clearTimeout(o.hoverTime); - }, - function() { - o.hoverTime && clearTimeout(o.hoverTime), - o.hoverTime = o.hide.delay(1, o); - })), t.isToggle) { - var n = null, - s = 300; - o.$dom.hover(e, i), - o.$pop.hover(e, i); - } - t.hideIfBlur && (o._onBlur = function(o) { - var t = o.data.context, - e = o.target, - i = t.$dom.get(0), - n = t.$pop.get(0); - t.clickIn ? t.clickIn = !1 : $.contains(i, e) || i === e || $.contains(n, e) || n === e || o.data.context.hide(); - }, - $(document).on("click", { - context: o - }, - o._onBlur)), - o._onResize = function(o) { - o.data.context.resetPosition(); - }, - $(window).on("resize", { - context: o - }, - o._onResize); - } - function s(o, t) { - var e = t.$dom.offset(); - "left" == o.margin ? (console.log(e.top), console.log(t.$dom.height()), t.$pop.css({ - top: e.top + t.$dom.height(), - left: e.left - }).addClass("pos_left")) : "right" == o.margin ? t.$pop.css({ - top: e.top + t.$dom.height(), - left: e.left + t.$dom.width() - t.$pop.width() - }).addClass("pos_right") : t.$pop.css({ - top: e.top + t.$dom.height(), - left: e.left + t.$dom.outerWidth() / 2 - t.$pop.width() / 2 - }).addClass("pos_center"); - } - var p = o("mall/res/js/popover.html"), - h = { - dom: "", - content: "", - place: "bottom", - margin: "center", - hideIfBlur: !1, - hover: !1, - addCls: "", - isToggle: !1, - onHide: !1, - onShow: !1, - onRemove: !1 - }; - i.prototype = { - remove: function() { - this.$pop.remove(), - this.$dom.removeData("popover"), - this._onBlur && $(document).off("click", this._onBlur), - $(window).off("resize", this._onResize), - "function" == typeof this.opt.onRemove && this.opt.onRemove.call(this); - }, - hide: function() { - this.$pop.hide(), - "function" == typeof this.opt.onHide && this.opt.onHide.call(this); - }, - show: function() { - this.$pop.show(), - "function" == typeof this.opt.onShow && this.opt.onShow.call(this); - }, - resetPosition: function() { - return s(this.opt, this); - } - }, - e.exports = i; - }); \ No newline at end of file diff --git a/app-ht/web/exts/base/1.0.0/ui/device-cat-select/device-cat-select-jqcontrol.js b/app-ht/web/exts/base/1.0.0/ui/device-cat-select/device-cat-select-jqcontrol.js deleted file mode 100644 index 6cd2495..0000000 --- a/app-ht/web/exts/base/1.0.0/ui/device-cat-select/device-cat-select-jqcontrol.js +++ /dev/null @@ -1 +0,0 @@ -!function($){$.extend({initcat:function(e,p){p=$.extend({urlOrData:null,deviceParentCat:"",deviceChildCat:"",animate:{showClass:"",hideClass:""},onChoice:!1},p);var deviceParentCat=p.deviceParentCat?p.deviceParentCat:"deviceParentCat",deviceChildCat=p.deviceChildCat?p.deviceChildCat:"deviceChildCat",option={_LoadParentCat:function(control,getDeviceCatListURL){$.ajax({type:"post",url:getDeviceCatListURL,dataType:"json",data:$.csrf({parentId:0}),success:function(msg){if(1==msg.status){var data=eval(msg.modelList),html="";for(var s in data)html=html+"";$(control).html(html)}else alert("加载失败")},error:function(msg){alert("加载异常")}})},_Change:function(pid,getDeviceCatListURL,childselect){return""==pid?($("#"+childselect).html(""),!1):void $.ajax({type:"post",url:getDeviceCatListURL,dataType:"json",data:$.csrf({parentId:pid}),success:function(msg){if(1==msg.status){var data=eval(msg.modelList),html="",cat_id=$("#hid_cat_id").val();for(var s in data)html=parseInt(cat_id)==parseInt(data[s].id)?html+"":html+"";$("#"+childselect).html(html)}else alert("加载失败")},error:function(msg){alert("加载异常")}})},loadData:function(){if("string"==typeof p.urlOrData){option._LoadParentCat($("#"+deviceParentCat),p.urlOrData);var pid=$("#"+deviceParentCat).val();option._Change(pid,p.urlOrData,deviceChildCat)}}};option.loadData(),$(e).bind("change",function(){var pid=$("#"+deviceParentCat).val();option._Change(pid,p.urlOrData,deviceChildCat)})}}),$.fn.extend({initcat:function(p){return this.each(function(){$.initcat(this,p)})}})}(jQuery); \ No newline at end of file diff --git a/app-ht/web/exts/base/1.0.0/ui/device-cat-select/device-cat-select.js b/app-ht/web/exts/base/1.0.0/ui/device-cat-select/device-cat-select.js deleted file mode 100644 index 420f0b9..0000000 --- a/app-ht/web/exts/base/1.0.0/ui/device-cat-select/device-cat-select.js +++ /dev/null @@ -1 +0,0 @@ -function loadParentCat($dataurl){$.ajax({type:"post",url:$dataurl,dataType:"json",data:$.csrf({parentId:0}),success:function(msg){if(1==msg.status){var data=eval(msg.modelList),html="";for(var s in data)html=html+"";$("#deviceParentCat").html(html)}else alert("加载失败")},error:function(msg){alert("加载异常")}})}function loadDeviceCat($dataurl){var pid=$("#deviceParentCat").val();return""==pid?($("#deviceChildCat").html(""),!1):void $.ajax({type:"post",url:$dataurl,dataType:"json",data:$.csrf({parentId:pid}),success:function(msg){if(1==msg.status){var data=eval(msg.modelList),html="",cat_id=$("#hid_cat_id").val();for(var s in data)html=parseInt(cat_id)==parseInt(data[s].id)?html+"":html+"";$("#deviceChildCat").html(html)}else alert("加载失败")},error:function(msg){alert("加载异常")}})} \ No newline at end of file diff --git a/app-ht/web/exts/mall/res/css/box.css b/app-ht/web/exts/mall/res/css/box.css deleted file mode 100644 index 4f3a131..0000000 --- a/app-ht/web/exts/mall/res/css/box.css +++ /dev/null @@ -1 +0,0 @@ -.inner_menu_item.selected a,.inner_menu_item:hover a,.inner_menu_link{text-decoration:none}body,dd,dl,fieldset,h1,h2,h3,h4,h5,h6,ol,p,textarea,ul{margin:0}.inner_container_box.cell_layout .inner_main,.inner_container_box.cell_layout .inner_side{display:table-cell;vertical-align:top;word-wrap:break-word;word-break:break-all}.img_pick_panel.side_l.cell_layout .inner_side{width:18%}.img_pick_panel .group_list{overflow-y:auto}.inner_menu:first-child{border-top-width:0}.inner_menu{border-top:1px solid #e7e7eb}.inner_menu_item.selected,.inner_menu_item:hover{background-color:#f4f5f9}.inner_menu_item{position:relative;line-height:32px}.inner_menu_link{display:block;color:#222;padding-left:1em}.img_pick_panel .inner_menu_link{padding-left:1.5em}.inner_menu_link strong{display:inline-block;margin-top:-2px;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;max-width:80px;font-weight:400;font-style:normal;vertical-align:middle;cursor:pointer}.img_pick_panel .inner_menu_link strong{max-width:86px}.group_list .num{display:inline-block;padding-left:3px;font-style:normal;color:#8d8d8d}.inner_container_box.cell_layout .inner_main{width:2000px}.img_pick_panel .img_pick_area{position:relative;overflow-y:auto;overflow-x:hidden;height:600px}.img_pick{padding:20px 20px 5px;text-align:center}.img_pick .img_list{margin-right:-20px}.img_pick .img_item{float:left;text-align:center;position:relative;margin-right:11px;margin-bottom:10px}.frm_checkbox_label,.frm_radio_label{display:inline-block;text-align:left;cursor:pointer;margin-right:1em}.img_pick .img_item_bd{margin:0;border:1px solid #e7e7eb;width:117px}.img_pick .img_item .pic{display:block;border-bottom:1px solid #e7e7eb;width:117px;height:117px}.img_pick .img_item .lbl_content{height:32px;line-height:32px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;padding:0 9px}ol,ul{padding-left:0;list-style-type:none}.inner_side{padding-top:20px}.hqy-panel-pager .pagination{margin:0;padding:0;float:right}.pager li,.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.hqy-panel-pager .summary{float:left;line-height:34px}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.img_pick .img_item_bd.selected .selected_mask{position:absolute;width:100%;height:100%;top:0;left:0}.img_pick .img_item_bd.selected .selected_mask_inner{width:118px;height:118px;-moz-opacity:.6;-khtml-opacity:.6;opacity:.6;background-color:#000;filter:alpha(opacity=60)}.img_pick .img_item_bd.selected .selected_mask_icon{position:absolute;top:0;left:0;background:url(../images/icon_card_selected218877.png) 50% 50% no-repeat;width:117px;height:117px;vertical-align:middle;display:inline-block}.hqy-panel-pager{display:none} \ No newline at end of file diff --git a/app-ht/web/exts/mall/res/css/res.css b/app-ht/web/exts/mall/res/css/res.css deleted file mode 100644 index bfb5d17..0000000 --- a/app-ht/web/exts/mall/res/css/res.css +++ /dev/null @@ -1 +0,0 @@ -.processor_bar .step.pprev h4,.processor_bar .step.prev h4{padding-right:14px}.processor_bar .step.next h4,.processor_bar .step.nnext h4{padding-left:8px}.dialog .processor_bar,.processor_bar{box-shadow:none;moz-box-shadow:none;webkit-box-shadow:none}.img_pick .img_item .lbl_content,.inner_menu_link strong,.processor_bar h4{text-overflow:ellipsis;white-space:nowrap}.inner_menu_link strong,.main_hd h2,.popover .popover_title,.processor_bar h4{font-style:normal;font-weight:400}.btn,.btn:hover,.inner_menu_item.selected a,.inner_menu_item:hover a,.inner_menu_link,.tab_nav a{text-decoration:none}.processor_bar{border-bottom:1px solid #cecece}.dialog .processor_bar{border-bottom:1px solid #b1b1b1;border-color:#e6e7ea}.processor_bar.ie .step{background:url(../images/bg_processor_ie218877.png) no-repeat}.processor_bar,.processor_bar.ie .step.current{background-image:none}.processor_bar .step{color:#747474;text-align:center}.processor_bar .step.pprev{background-position:right 0}.processor_bar h4{overflow:hidden;width:auto;word-wrap:normal}.processor_bar{background-color:#fff;border-color:#e6e7ea}.processor_bar.ie .step{background-image:url(../images/bg_processor218877.png)}.processor_bar.ie .step.current{background-color:#44b549}.processor_bar .step{background:url(../images/bg_processor218877.png) no-repeat;line-height:44px}.processor_bar .step.prev{background-position:right -44px}.processor_bar .step.current{color:#fff;background-color:#44b549;background-image:none}.group_list dt.inner_menu_item,.tag_control .tag{background-color:#f4f5f9}.processor_bar .step.next{background-position:0 -88px}.processor_bar .step.nnext{background-position:0 0}.img_pick{padding:20px}.img_pick .img_item{float:left;text-align:center}.img_pick .img_item .pic{border-bottom:1px solid #e7e7eb;display:block}.img_pick .img_item .pic:hover{cursor:hand;cursor:pointer}.img_pick .img_item .lbl_content{height:32px;line-height:32px;overflow:hidden;text-align:left}.tag_control .frm_input_box{display:block;height:auto;line-height:1.6;padding-top:4px;width:auto}.tag_control .frm_input{margin:0 0 4px 5px;width:10em}.tag_control .frm_tips{width:100%}.tag_control .tag{cursor:pointer;display:inline-block;line-height:22px;line-height:24px;margin-bottom:4px;margin-right:5px;padding:0 18px 0 9px;position:relative;vertical-align:top}.tag_control .tag .icon_tag_del{background:url(../images/media_list_img_z29d335.png) no-repeat;display:inline-block;height:14px;position:absolute;right:2px;top:4px;vertical-align:middle;width:14px}.tag_control .tag:hover .icon_tag_del{background:url(../images/media_list_img_z29d335.png) 0 -24px no-repeat}.img_pick_panel .img_pick{margin-right:-45px}.img_pick_panel .img_pick .img_item{border:1px solid #e7e7eb;margin-bottom:20px;margin-right:15px}.img_pick_panel .img_pick .img_item .pic{height:245px;width:245px}.img_pick_panel .img_pick .check_content{display:block;height:32px;line-height:32px;overflow:hidden}.img_pick_panel .img_pick .check_content .frm_checkbox_label{line-height:1.6;margin-right:0}.img_pick_panel .img_pick .check_content .icon_checkbox{margin-right:4px;margin-top:8px;vertical-align:top}.img_pick_panel .img_pick .check_content .lbl_content{display:inline-block;padding:0;width:118px}.msg_card_opr_item_inner{display:inline-block;vertical-align:top;width:98.5%;margin:13px 0;line-height:18px;height:18px;cursor:pointer;border-left:1px solid #e7e7eb}.disabled_origin,.disabled_origin .msg_card_opr_item_inner,.edit_disabled,.edit_disabled .msg_card_opr_item_inner,.icon_original.disabled{cursor:default}.img_pick_panel .img_pick .msg_card_opr_item_inner{border:0;margin:5px 0}.img_pick_panel .img_pick .img_item_bd{position:relative}.img_pick_panel .img_pick .img_mask{background-color:rgba(0,0,0,.5);height:169px;left:0;position:absolute;top:0;width:100%}.img_pick_panel .img_pick .img_mask p{color:#fff;margin-top:80px;padding:0 15px}.mod_info{height:30px;line-height:30px}.mod_info .group_name,.mod_info a{margin-right:1em}.pagination_wrp{padding:20px}.oper_group{padding:10px 20px}.oper_group .frm_controls{width:68px}.tool_bar.tool_bar_tips{margin-top:10px;padding-bottom:0;padding-top:0}.group_select .frm_radio_label{margin-right:0;width:49%}.group_select .frm_radio_label:nth-child(odd){margin-right:2px;width:49%}.group_select .frm_radio_label:nth-child(even){width:46%}.frm_control_group.radio_row .frm_controls{display:block;margin-bottom:1em}.frm_control_group.radio_row .frm_tips{margin-left:19px;padding-top:0}.popover_edit .frm_label{float:none}.global_mod.float_layout .global_info,.tab_nav{float:left}.popover_edit .frm_controls{display:block}.edit_disabled:hover .icon18_common.edit_gray{background:url(../images/media_list_img_z29d335.png) 0 -48px no-repeat}.icon_original{display:inline-block;height:18px;vertical-align:middle;width:34px}.icon_original.access{background:url(../images/media_list_img_z29d335.png) 0 -76px no-repeat}.icon_original.access:hover{background:url(../images/media_list_img_z29d335.png) 0 -104px no-repeat}.icon_original.accessed{background:url(../images/media_list_img_z29d335.png) 0 -132px no-repeat;cursor:default}.icon_original.disabled{background:url(../images/media_list_img_z29d335.png) 0 -160px no-repeat}.step_wrp .step1 .agreement{display:block;margin:20px auto;width:760px}.step_wrp .step1 .msg_content{margin-bottom:20px;max-height:310px;overflow-y:auto}.step_wrp .step1 .tool_area{padding:0 0 0 55px}.step_wrp .step2 .history_tag{background-color:#e5e7ec;color:#222;cursor:pointer;display:inline-block;padding:0 7px;text-align:center}.step_wrp .form{padding:30px 100px}.img_water_tips{margin-right:1em}.inner_container_box.cell_layout .inner_main{width:2000px}.inner_container_box .bd{min-height:530px}.inner_container_box{background-color:#fff;border:1px solid #e7e7eb}.inner_container_box.cell_layout .inner_side{max-width:240px}.page_media_list .inner_container_box.cell_layout.side_r .inner_side{width:17%}.inner_container_box.cell_layout .inner_main,.inner_container_box.cell_layout .inner_side{display:table-cell;vertical-align:top;word-wrap:break-word;word-break:break-all}.icon14_common,.inner_menu_link strong{vertical-align:middle;display:inline-block}.side_r.inner_container_box .inner_side{border-right:1px solid #e7e7eb}.inner_container_box:after{content:"\200B";display:block;height:0;clear:both}.inner_menu{border-top:1px solid #e7e7eb}.inner_menu:first-child{border-top-width:0}.inner_menu_item.selected,.inner_menu_item:hover{background-color:#f4f5f9}.inner_menu_item{position:relative;line-height:32px}.inner_menu_link{display:block;color:#222;padding-left:1em}.inner_menu_link strong{margin-top:-2px;width:auto;overflow:hidden;word-wrap:normal;max-width:80px;cursor:pointer}.group_list .num{display:inline-block;padding-left:3px;font-style:normal;color:#8d8d8d}.icon14_common{width:14px;height:14px;line-height:100px;overflow:hidden}.global_mod.float_layout:after,.group:after,.tab_navs:after{height:0;content:"\200B";clear:both}.icon14_common.add_gray{background:url(../images/base_z2b638f.png) 0 -3638px no-repeat}.img_pick_panel .side_r .inner_menu_item .icon14_common{margin-right:2px}.global_mod .global_info .global_info_ele,.oper_group .oper_ele{margin-right:1em}.main_hd{line-height:40px}.main_hd h2{font-size:16px;padding:0 30px;line-height:75px}.main_hd .title_tab{margin-top:-14px}.tab_navs{text-align:center;line-height:30px;border-bottom:1px solid #e7e7eb;box-shadow:inset 0 1px 0 0 rgba(255,255,255,.5);-moz-box-shadow:inset 0 1px 0 0 rgba(255,255,255,.5);-webkit-box-shadow:inset 0 1px 0 0 rgba(255,255,255,.5)}.title_tab .tab_navs{line-height:40px;border-bottom-color:#e7e7eb;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none}.page_media_list ol,.page_media_list ul{padding-left:0;list-style-type:none}.tab_nav{font-size:14px}.title_tab .tab_nav{margin-bottom:-1px}.tab_nav a{display:block;color:#222;outline:0;padding:0 20px}.title_tab .tab_nav a{padding:0 18px}.title_tab .tab_nav.first a,.title_tab .tab_nav:first-child a{padding-left:30px}.page_media_list .main_bd{padding:20px 0 40px}.tab_navs:after{display:block}.title_tab .tab_nav.selected{background:0;border-bottom:3px solid #44b549}.btn_default,.page_media_list{background-color:#fff}.img_pick_panel{padding:0 30px}.global_mod{padding:10px 20px}.global_mod .global_info{margin-top:4px}.global_mod .global_extra{text-align:right}.global_mod.float_layout:after{display:block}.upload_box{display:inline-block;line-height:1.6;vertical-align:middle;position:relative;z-index:1}.img_water_tips{line-height:32px}.mini_tips.weak_text{color:#8d8d8d}.btn_default{background-image:-moz-linear-gradient(top,#fff 0,#fff 100%);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fff));background-image:-webkit-linear-gradient(top,#fff 0,#fff 100%);background-image:-o-linear-gradient(top,#fff 0,#fff 100%);background-image:linear-gradient(to bottom,#fff 0,#fff 100%);border-color:#e7e7eb;color:#222}.btn_default:hover{background-color:#e7e7eb;background-image:-moz-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e7e7eb),to(#e7e7eb));background-image:-webkit-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:-o-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:linear-gradient(to bottom,#e7e7eb 0,#e7e7eb 100%);border-color:#dadbe0;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;color:#222}.btn_primary{background-color:#44b549;background-image:-moz-linear-gradient(top,#44b549 0,#44b549 100%);background-image:-webkit-gradient(linear,0 0,0 100%,from(#44b549),to(#44b549));background-image:-webkit-linear-gradient(top,#44b549 0,#44b549 100%);background-image:-o-linear-gradient(top,#44b549 0,#44b549 100%);background-image:linear-gradient(to bottom,#44b549 0,#44b549 100%);border-color:#44b549;color:#fff}.btn_primary:hover{background-color:#2f9833;background-image:-moz-linear-gradient(top,#2f9833 0,#2f9833 100%);background-image:-webkit-gradient(linear,0 0,0 100%,from(#2f9833),to(#2f9833));background-image:-webkit-linear-gradient(top,#2f9833 0,#2f9833 100%);background-image:-o-linear-gradient(top,#2f9833 0,#2f9833 100%);background-image:linear-gradient(to bottom,#2f9833 0,#2f9833 100%);border-color:#2f9833;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;color:#fff}.btn_disabled{background-color:#e7e7eb;background-image:-moz-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e7e7eb),to(#e7e7eb));background-image:-webkit-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:-o-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:linear-gradient(to bottom,#e7e7eb 0,#e7e7eb 100%);border-color:#dadbe0;color:#a5a6aa;cursor:default}.msg_card_ft,.oper_group{background-color:#f4f5f9}.oper_group{border-bottom:1px solid #e7e7eb}.group:after{display:block}.frm_controls{display:table-cell;vertical-align:top;float:none;width:auto}.icon18_common,.vm_box{display:inline-block;vertical-align:middle}.oper_group .frm_controls{height:30px;line-height:30px}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}.frm_checkbox,.frm_radio{position:absolute;left:-999em}.msg_card_ft{border-top:1px solid #e7e7eb}.grid_item{float:left}.size1of3{width:25%}.msg_card_opr_item{text-align:center}.grid_line .no_extra.grid_item{float:none;width:auto;overflow:hidden}.icon18_common{width:18px;height:18px;line-height:100px;overflow:hidden}.icon18_common.edit_gray:hover,a:hover .icon18_common.edit_gray{background:url(../images/base_z2b638f.png) 0 -5555px no-repeat}.icon18_common.edit_gray{background:url(../images/base_z2b638f.png) 0 -5527px no-repeat}.icon18_common.move_gray{background:url(../images/base_z2b638f.png) 0 -5163px no-repeat}.icon18_common.move_gray:hover,a:hover .icon18_common.move_gray{background:url(../images/base_z2b638f.png) 0 -5191px no-repeat}.icon18_common.del_gray:hover,a:hover .icon18_common.del_gray{background:url(../images/base_z2b638f.png) 0 -4855px no-repeat}.icon18_common.del_gray{background:url(../images/base_z2b638f.png) 0 -4827px no-repeat}.icon18_common.link_gray{background:url(../images/base_z2b638f.png) 0 -4883px no-repeat}.hover .icon18_common.link_gray,.icon18_common.link_gray:hover,a:hover .icon18_common.link_gray{background:url(../images/base_z2b638f.png) 0 -4911px no-repeat}.vm_box{height:100%}.grid_line:after{content:"\200B";display:block;height:0;clear:both}.r{float:right}.l{float:left}.page_media_list dd,.page_media_list dl,.page_media_list h2,.page_media_list p,.page_media_list ul{margin:0}.popover_close{display:none;position:absolute;right:10px;top:22px;background:url(../images/base_z2b638f.png) 0 -2544px no-repeat}.popover_close:hover{background:url(../images/base_z2b638f.png) 0 -2570px no-repeat}.popover{position:absolute;margin-top:12px;z-index:999}.popover .popover_inner{border:1px solid #d9dadc;word-wrap:break-word;word-break:break-all;padding:30px;background-color:#fff;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none}.popover .popover_arrow{position:absolute;left:50%;margin-left:-8px;margin-top:-8px;display:inline-block;width:0;height:0;border-width:0 8px 8px;border-style:dashed dashed solid;border-color:transparent transparent #d9dadc}.popover .popover_arrow_out{top:0}.popover .popover_arrow_in{border-bottom-color:#fff;top:1px}.popover .popover_tips{color:#8d8d8d}.popover .popover_bar{margin-top:20px}.popover.simple .popover_bar{text-align:left}.popover.simple .btn{margin-left:0;margin-right:.6em}.popover.pos_left .popover_arrow{left:42px}.popover.pos_right .popover_arrow{left:auto;right:28px}.popover.normal_flow{position:relative;width:auto;z-index:0}.popover.normal_flow .popover_inner{padding:14px 20px;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;border-color:#e7e7eb}.popover.normal_flow .popover_content{width:auto}.popover.normal_flow .popover_arrow_out{border-bottom-color:#e7e7eb}.popover.arrow_left{margin-left:8px;margin-top:0}.popover.arrow_left .popover_arrow{top:25px;left:0;display:inline-block;width:0;height:0;border-width:8px 8px 8px 0;border-style:dashed solid dashed dashed;border-color:transparent #d9dadc transparent transparent}.popover.arrow_left .popover_arrow_in{left:1px;border-right-color:#fff}.popover.z_top{z-index:10000}.popover{width:290px;border:0;-webkit-box-shadow:none}.popover .popover_title{font-size:14px;padding-bottom:5px}.popover .popover_bar{text-align:justify;text-justify:distribute-all-lines;font-size:0}.popover .popover_bar:after{display:inline-block;width:100%;height:0;font-size:0;margin:0;padding:0;overflow:hidden;content:"."}.popover .popover_bar .tj_item{font-size:14px;text-align:left;text-justify:auto}.popover .popover_bar .btn{margin:0}label{font-weight:400}.frm_input,.frm_textarea{width:100%;background-color:transparent;border:0;outline:0}.frm_input_box,.frm_select_box{background-color:#fff;vertical-align:middle;font-size:14px;position:relative}.frm_input{height:30px;margin:0}.frm_input_box{display:inline-block;height:30px;line-height:30px;width:278px;padding:0 10px;border:1px solid #e7e7eb;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0}.popover .frm_input_box{display:block;width:auto}.frm_msg{display:none;overflow:hidden}.frm_controls:after{content:" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";visibility:hidden;clear:both;height:0!important;display:block;line-height:0}.btn,.frm_select_box{display:inline-block}.btn{min-width:60px;overflow:visible;padding:0 22px;height:30px;line-height:30px;vertical-align:middle;text-align:center;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:14px;border-width:1px;border-style:solid;cursor:pointer}.frm_msg,.frm_tips{padding-top:4px;width:300px}.frm_checkbox_label,.frm_radio_label{display:inline-block;text-align:left;cursor:pointer;margin-right:1em}.frm_select_box{background-image:-moz-linear-gradient(top,#fff 0,#fff 100%);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fff));background-image:-webkit-linear-gradient(top,#fff 0,#fff 100%);background-image:-o-linear-gradient(top,#fff 0,#fff 100%);background-image:linear-gradient(to bottom,#fff 0,#fff 100%);color:#222;padding:4px 0;border:1px solid #e7e7eb;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}.frm_select_box button{color:#222}.frm_select_box:hover{background-color:#e7e7eb;background-image:-moz-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e7e7eb),to(#e7e7eb));background-image:-webkit-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:-o-linear-gradient(top,#e7e7eb 0,#e7e7eb 100%);background-image:linear-gradient(to bottom,#e7e7eb 0,#e7e7eb 100%);border-color:#dadbe0;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;color:#000}.frm_select_box:hover button{color:#222}.frm_select{position:relative;z-index:1;height:22px;padding:0 30px 0 10px;line-height:22px;background-color:transparent;border:0;outline:0}.icon_checkbox,.icon_radio{width:16px;height:16px;vertical-align:middle;display:inline-block;margin-right:3px;margin-top:-2px}.icon_radio{background:url(../images/base_z2b638f.png) 0 -182px no-repeat}.icon_radio.selected,.selected .icon_radio{background:url(../images/base_z2b638f.png) 0 -208px no-repeat}.disabled .icon_radio,.icon_radio.disabled{background:url(../images/base_z2b638f.png) 0 -234px no-repeat}.icon_radio.selected.disabled,.selected.disabled .icon_radio{background:url(../images/base_z2b638f.png) 0 -260px no-repeat}.icon_checkbox{background:url(../images/base_z2b638f.png) 0 -286px no-repeat}.icon_checkbox.selected,.selected .icon_checkbox{background:url(../images/base_z2b638f.png) 0 -312px no-repeat}.disabled .icon_checkbox,.icon_checkbox.disabled{background:url(../images/base_z2b638f.png) 0 -338px no-repeat}.icon_checkbox.selected.disabled,.selected.disabled .icon_checkbox{background:url(../images/base_z2b638f.png) 0 -364px no-repeat}.img_item_bd{width:245px} \ No newline at end of file diff --git a/app-ht/web/exts/mall/res/images/base_z2b638f.png b/app-ht/web/exts/mall/res/images/base_z2b638f.png deleted file mode 100644 index 7a3f53d..0000000 Binary files a/app-ht/web/exts/mall/res/images/base_z2b638f.png and /dev/null differ diff --git a/app-ht/web/exts/mall/res/images/bg_processor218877.png b/app-ht/web/exts/mall/res/images/bg_processor218877.png deleted file mode 100644 index 23d6319..0000000 Binary files a/app-ht/web/exts/mall/res/images/bg_processor218877.png and /dev/null differ diff --git a/app-ht/web/exts/mall/res/images/bg_processor_ie218877.png b/app-ht/web/exts/mall/res/images/bg_processor_ie218877.png deleted file mode 100644 index c50c590..0000000 Binary files a/app-ht/web/exts/mall/res/images/bg_processor_ie218877.png and /dev/null differ diff --git a/app-ht/web/exts/mall/res/images/icon_card_selected218877.png b/app-ht/web/exts/mall/res/images/icon_card_selected218877.png deleted file mode 100644 index d290812..0000000 Binary files a/app-ht/web/exts/mall/res/images/icon_card_selected218877.png and /dev/null differ diff --git a/app-ht/web/exts/mall/res/images/media_list_img_z29d335.png b/app-ht/web/exts/mall/res/images/media_list_img_z29d335.png deleted file mode 100644 index 48a3671..0000000 Binary files a/app-ht/web/exts/mall/res/images/media_list_img_z29d335.png and /dev/null differ diff --git a/app-ht/web/exts/mall/res/js/base.js b/app-ht/web/exts/mall/res/js/base.js deleted file mode 100644 index c2f21d4..0000000 --- a/app-ht/web/exts/mall/res/js/base.js +++ /dev/null @@ -1 +0,0 @@ -var template=function(e,n){return template["object"==typeof n?"render":"compile"].apply(template,arguments)};!function(e,n){"use strict";e.version="2.0.1",e.openTag="<#",e.closeTag="#>",e.isEscape=!0,e.isCompress=!1,e.parser=null,e.render=function(e,n){var t=r(e);return void 0===t?o({id:e,name:"Render Error",message:"No Template"}):t(n)},e.compile=function(n,r){function a(t){try{return new l(t)+""}catch(i){return u?(i.id=n||r,i.name="Render Error",i.source=r,o(i)):e.compile(n,r,!0)(t)}}var c=arguments,u=c[2],s="anonymous";"string"!=typeof r&&(u=c[1],r=c[0],n=s);try{var l=i(r,u)}catch(p){return p.id=n||r,p.name="Syntax Error",o(p)}return a.prototype=l.prototype,a.toString=function(){return l.toString()},n!==s&&(t[n]=a),a},e.helper=function(n,t){e.prototype[n]=t},e.onerror=function(e){var t="[template]:\n"+e.id+"\n\n[name]:\n"+e.name;e.message&&(t+="\n\n[message]:\n"+e.message),e.line&&(t+="\n\n[line]:\n"+e.line,t+="\n\n[source]:\n"+e.source.split(/\n/)[e.line-1].replace(/^[\s\t]+/,"")),e.temp&&(t+="\n\n[temp]:\n"+e.temp),n.console&&console.error(t)};var t={},r=function(r){var o=t[r];if(void 0===o&&"document"in n){var i=document.getElementById(r);if(i){var a=i.value||i.innerHTML;return e.compile(r,a.replace(/^\s*|\s*$/g,""))}}else if(t.hasOwnProperty(r))return o},o=function(n){function t(){return t+""}return e.onerror(n),t.toString=function(){return"{Template Error}"},t},i=function(){e.prototype={$render:e.render,$escape:function(e){return"string"==typeof e?e.replace(/&(?![\w#]+;)|[<>"']/g,function(e){return{"<":"<",">":">",'"':""","'":"'","&":"&"}[e]}):e},$string:function(e){return"string"==typeof e||"number"==typeof e?e:"function"==typeof e?e():""}};var n=Array.prototype.forEach||function(e,n){for(var t=this.length>>>0,r=0;t>r;r++)r in this&&e.call(n,this[r],r,this)},t=function(e,t){n.call(e,t)},r="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",o=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,i=/[^\w$]+/g,a=new RegExp(["\\b"+r.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),c=/\b\d[^,]*/g,u=/^,+|,+$/g,s=function(e){return e=e.replace(o,"").replace(i,",").replace(a,"").replace(c,"").replace(u,""),e=e?e.split(/,+/):[]};return function(n,r){function o(n){return g+=n.split(/\n/).length-1,e.isCompress&&(n=n.replace(/[\n\r\t\s]+/g," ")),n=n.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n"),n=w[1]+"'"+n+"'"+w[2],n+"\n"}function i(n){var t=g;if(p?n=p(n):r&&(n=n.replace(/\n/g,function(){return g++,"$line="+g+";"})),0===n.indexOf("=")){var o=0!==n.indexOf("==");if(n=n.replace(/^=*|[\s;]*$/g,""),o&&e.isEscape){var i=n.replace(/\s*\([^\)]+\)/,"");$.hasOwnProperty(i)||/^(include|print)$/.test(i)||(n="$escape($string("+n+"))")}else n="$string("+n+")";n=w[1]+n+w[2]}return r&&(n="$line="+t+";"+n),a(n),n+"\n"}function a(e){e=s(e),t(e,function(e){h.hasOwnProperty(e)||(c(e),h[e]=!0)})}function c(e){var n;"print"===e?n=O:"include"===e?(y.$render=$.$render,n=E):(n="$data."+e,$.hasOwnProperty(e)&&(y[e]=$[e],n=0===e.indexOf("$")?"$helpers."+e:n+"===undefined?$helpers."+e+":"+n)),m+=e+"="+n+","}var u=e.openTag,l=e.closeTag,p=e.parser,f=n,d="",g=1,h={$data:!0,$helpers:!0,$out:!0,$line:!0},$=e.prototype,y={},m="var $helpers=this,"+(r?"$line=0,":""),v="".trim,w=v?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],b=v?"if(content!==undefined){$out+=content;return content}":"$out.push(content);",O="function(content){"+b+"}",E="function(id,data){if(data===undefined){data=$data}var content=$helpers.$render(id,data);"+b+"}";t(f.split(u),function(e){e=e.split(l);var n=e[0],t=e[1];1===e.length?d+=o(n):(d+=i(n),t&&(d+=o(t)))}),f=d,r&&(f="try{"+f+"}catch(e){e.line=$line;throw e}"),f="'use strict';"+m+w[0]+f+"return new String("+w[3]+")";try{var T=new Function("$data",f);return T.prototype=y,T}catch(j){throw j.temp="function anonymous($data) {"+f+"}",j}}}();e.openTag="{",e.closeTag="}",e.parser=function(n){n=n.replace(/^\s/,"");var t=n.split(" "),r=t.shift(),o=e.keywords,i=o[r];return i&&o.hasOwnProperty(r)?(t=t.join(" "),n=i.call(n,t)):e.prototype.hasOwnProperty(r)?(t=t.join(","),n="=="+r+"("+t+");"):(n=n.replace(/[\s;]*$/,""),n="="+n),n},e.keywords={"if":function(e){return"if("+e+"){"},"else":function(e){return e=e.split(" "),e="if"===e.shift()?" if("+e.join(" ")+")":"","}else"+e+"{"},"/if":function(){return"}"},each:function(e){e=e.split(" ");var n=e[0]||"$data",t=e[1]||"as",r=e[2]||"$value",o=e[3]||"$index",i=r+","+o;return"as"!==t&&(n="[]"),"$each("+n+",function("+i+"){"},"/each":function(){return"});"},echo:function(e){return"print("+e+");"},include:function(e){e=e.split(" ");var n=e[0],t=e[1],r=n+(t?","+t:"");return"include("+r+");"}},e.helper("$each",function(e,n){var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};if(t(e))for(var r=0,o=e.length;o>r;r++)n.call(e,e[r],r,e);else for(r in e)n.call(e,e[r],r)})}(template,this),String.prototype.format=function(t){return this.replace(/\{(\w+)\}/g,function(n,r){return void 0!==t[r]?t[r]:n})},String.prototype.html=function(t){var n=["&","&","<","<",">",">"," "," ",'"',""","'","'"];t===!1&&n.reverse();for(var r=0,e=this;r\n\t\n\t\n\t{label}\n'}); \ No newline at end of file diff --git a/app-ht/web/exts/mall/res/js/checkbox.js b/app-ht/web/exts/mall/res/js/checkbox.js deleted file mode 100644 index 131942e..0000000 --- a/app-ht/web/exts/mall/res/js/checkbox.js +++ /dev/null @@ -1 +0,0 @@ -define("mall/res/js/checkbox",["mall/res/js/checkbox.html"],function(t){"use strict";function e(t){var e=$(t);e.each(function(){var t=$(this),e=t.prop("checked"),n=t.parent();e?n.addClass("selected"):n.removeClass("selected")})}function n(t){var e=$(t);e.each(function(){var t=$(this).prop("disabled"),e=$(this).parent();t?e.addClass("disabled"):e.removeClass("disabled")})}function i(){return"checkbox"+s++}var a={container:null,label:"",name:"",type:"checkbox"},c=t("mall/res/js/checkbox.html"),r=null,s=2,o=1,p=function(t){this.options=$.extend(!0,{},a,t),this.options.index=o++,this.$container=$(this.options.container),this.$dom=$(r(c,this.options)).appendTo(this.$container),this.$input=this.$dom.find("input"),this.$input.checkbox()};return p.prototype={checked:function(t){return"undefined"!=typeof t&&(this.$input.prop("checked",t),e(this.$input)),this.$input.prop("checked")},disabled:function(t){return"undefined"!=typeof t&&(this.$input.prop("disabled",t),n(this.$input)),this.$input.prop("disabled")}},$.fn.checkbox=function(t){var a,c,r,s,o=!1;"boolean"==typeof t?a=t:$.isPlainObject(t)?(a=t.multi,c=t.onChanged):"string"==typeof t?(o=!0,r=t,s=[].slice.call(arguments,1)):"undefined"==typeof t&&(t={}),"undefined"==typeof a&&(a=this.is("input[type=checkbox]"));var p=this,d=a?"checkbox":"radio",h={checked:function(t){return p.attr("checked",t),p.prop("checked",t),e(p),p},disabled:function(t){return p.attr("disabled",t),p.prop("disabled",t),n(p),p},value:function(){var t=p.eq(0);return t.prop("checked")?t.val():""},values:function(){var t=[];return p.each(function(){$(this).prop("checked")&&t.push($(this).val())}),t},adjust:function(t){var n;return n="string"==typeof t?t.split(","):t,n&&n.length>0&&p.each(function(){var t=$(this);n.indexOf(t.val())>=0&&(t.attr("checked",!0),e(t))}),this},disable:function(t){var e;return e="string"==typeof t?t.split(","):t,e&&e.length>0&&p.each(function(){var t=$(this);e.indexOf(t.val())>=0&&(t.attr("disabled",!0),n(t))}),this},setall:function(t){p.each(function(){var e=$(this);e.attr("disabled",!t),n(e)})},enable:function(t){var e;return e="string"==typeof t?t.split(","):t,e&&e.length>0&&p.each(function(){var t=$(this);e.indexOf(t.val())>=0&&(t.attr("disabled",!1),n(t))}),this},label:function(t){return t&&(p.parent().find(".lbl_content").text(t),p.attr("data-label",t)),p}};return o&&"function"==typeof h[r]?h[r].apply(h,s):(this.addClass("frm_"+d).each(function(){var t=$(this),e=t.parent();if(!e.is("label")){var n=t.attr("data-label")||"";e=$(''.format({type:d})).append("{content}".format({content:n.html(!0)})),e.insertBefore(t).prepend(t)}if(!this.id){var a=i();this.id=a}e.attr("for",this.id)}),e(this),n(this),t&&t.initOnChanged&&"function"==typeof c&&p.parent().find("input[type=checkbox],input[type=radio]").each(function(){c.call(h,$(this))}),this.parent().delegate("input[type=checkbox],input[type=radio]","click",function(){var t=$(this),n=t.prop("checked");a?(t.attr("checked",n),e(t)):(p.attr("checked",!1),t.attr("checked",!0).prop("checked",!0),e(p)),"function"==typeof c&&c.call(h,t)}).addClass("frm_"+d+"_label"),h)},p}); \ No newline at end of file diff --git a/app-ht/web/exts/mall/res/js/img-list.js b/app-ht/web/exts/mall/res/js/img-list.js deleted file mode 100644 index 12ea288..0000000 --- a/app-ht/web/exts/mall/res/js/img-list.js +++ /dev/null @@ -1 +0,0 @@ -define("mall/res/js/img-list",["mall/res/js/popover","mall/res/js/checkbox"],function(t){var s=t("mall/res/js/popover"),m=t("mall/res/js/checkbox");g=res;var _=$("#js_imglist"),w=($("#js_group"),g.group),v=null,j=function(){function t(t,e){i.push(e)}function e(){$.each(i,function(n,t){t()})}var i=[];return{init:t,run:e}}(),y={renderImage:function(t){var e=this,i=[];_.find("input[type=checkbox]:checked").each(function(){i.push($(this).data("id"))}),i=","+i.join(",")+",",t.each(function(t){t.selected=i.indexOf(","+t.file_id+",")>=0,t.img_src=t.cdn_url||wx.url("/cgi-bin/getimgdata?mode=small&source=file&fileId=%s".sprintf(t.file_id)),t.imgsrc=t.cdn_url||wx.url("/cgi-bin/getimgdata?mode=large&source=file&fileId=%s".sprintf(t.file_id)),t.downsrc=wx.url("/cgi-bin/downloadfile?fileid=%s".sprintf(t.file_id)),t.group_id=g.groupid,t.copyright_status=t.copyright_status||0,t.can_apply_copyright=e.canApplyImgCopyright(t.copyright_status),t.can_edit_name=e.canEditImgName(t.copyright_status)}),_.html(m("tpl_list",{list:t})),this.initListEvent()},createPopover:function(t){v&&v.remove(),v=new s({dom:t.dom,content:t.content,margin:"center",place:"bottom",buttons:[{text:"确定",type:"primary",click:function(){t.ok.call(this)}},{text:"取消",click:function(){this.remove()}}]})},renameImage:function(t){var e=v.$pop,n=(e.find(".jsPopoverBt").eq(0),e.find("input").val().trim());return""==n?void alert("不能为空"):$.ajax({url:baseUrl+"/mall/res/update-res",type:"post",dataType:"json",data:{name:n,id:t.data("id")},success:function(e){location.reload()}})},moveGroup:function(t){var e=v.$pop,n=(e.find(".jsPopoverBt").eq(0),e.find("input[type=radio]:checked"));return 0==n.length?void alert("请选择分组"):$.ajax({url:baseUrl+"/mall/res/move-group",type:"post",dataType:"json",data:{res_id:t,old_group_id:$("#js_currentgroup").data("id"),new_group_id:n.data("id")},success:function(e){location.reload()}})},deleteImage:function(t){var e=v.$pop,n=(e.find(".jsPopoverBt").eq(0),[]),r=[];t.each(function(){var t=$(this);n.push(t.data("id")),r.push(t.data("oristatus")||0)});n.length>1?"batchdel":"del";$.ajax({url:baseUrl+"/mall/res/delete-res",type:"post",dataType:"json",data:{res_id:n.join(",")},success:function(e){location.reload()}})},createGroup:function(){var t=v.$pop,i=(t.find(".jsPopoverBt").eq(0),t.find("input").val().trim());return i.length<1||i.length>6?void alert("分组名字为1-6个字符"):$.ajax({url:baseUrl+"/mall/res/create-group",type:"post",dataType:"json",data:{name:i},success:function(e){location.reload()}})},renameGroup:function(t){var e=t.find("input"),n=e.val().trim();return n.length<1||n.length>6?void alert("分组名字为1-6个字符"):$.ajax({url:baseUrl+"/mall/res/update-group",type:"post",dataType:"json",data:{name:n,id:e.data("id")},success:function(e){location.reload()}})},deleteGroup:function(){$.ajax({url:baseUrl+"/mall/res/delete-group",type:"post",dataType:"json",data:{id:$("#js_currentgroup").data("id")},success:function(e){location.href=baseUrl+"/mall/res/index"}})}};j.init("imageevent",function(){_.on("click",".js_edit",function(){var t=$(this);y.createPopover({dom:this,content:$("#tpl_edit").tpl({name:t.data("name"),id:t.data("id")}),ok:function(){y.renameImage(t)},keypress:function(){y.renameImage(t)}})}),_.on("click",".js_del",function(){var t=$(this),e=t.data("oristatus"),i=2==e?$("#tpl_imgori_del").html():$("#tpl_del").html();y.createPopover({dom:this,content:i,ok:function(){y.deleteImage(t)}})}),_.on("click",".js_move",function(){var t=$(this);1==w.length&&"未分组"==w[0].name&&w[0].selected?new s({dom:t,content:"你还没有任何分组。",place:"bottom",margin:"center",hover:!0,hideIfBlur:!0}):(y.createPopover({dom:this,content:$("#tpl_move").tpl({list:w,current:$("#js_currentgroup").data("id")}),ok:function(){y.moveGroup(t.data("id"))}}),v.$pop.find("input[type=radio]").checkbox())}),$(".js_link").zclip({path:baseUrl+"/exts/base/1.0.0/ui/zclip/ZeroClipboard.swf",copy:function(){return $(this).data("url")},beforeCopy:function(){},afterCopy:function(){var $copysuc=$("
☺ 复制成功
");$("body").find(".copy-tips").remove().end().append($copysuc),$(".copy-tips").fadeOut(3e3)}})}),j.init("groupevent",function(){$("#js_rename").on("click",function(){var t=$(this),e=t.parent().find("span");y.createPopover({dom:this,content:$("#tpl_edit").tpl({name:e.text(),id:e.data("id")}),ok:function(){y.renameGroup(this.$pop)}})}),$("#js_delgroup").on("click",function(){$(this),y.createPopover({dom:this,content:"

仅删除分组,不删除图片,组内图片将自动归入未分组

",ok:function(){y.deleteGroup()}})}),$("#js_creategroup").on("click",function(){$(this),y.createPopover({dom:this,content:$("#tpl_create").tpl(),ok:function(){y.createGroup()}})})}),j.init("upload",function(){$("#upload-images").change(function(){return seajs.use("base/1.0.0/ui/block-ui/block-ui-1.0.0",function(){$.blockUI({message:'

正在上传文件...请不要关闭、刷新页面和浏览器.


',css:{}})}),seajs.use("base/1.0.0/ui/ajaxfileupload/ajaxfileupload-1.0.0",function(){$.ajaxFileUpload({url:baseUrl+"/mall/res/ajax-upload?groupId="+$("#js_upload").data("gid"),secureuri:!1,fileElementId:"upload-images",dataType:"json",type:"post",success:function(data){seajs.use("base/1.0.0/ui/block-ui/block-ui-1.0.0",function(){$.unblockUI()}),location.reload()},error:function(data){seajs.use("base/1.0.0/ui/block-ui/block-ui-1.0.0",function(){$.unblockUI()}),alert("程序发生错误,请联系管理员。")}})}),!1})}),j.init("checkbox",function(){$("#js_all").checkbox({onChanged:function(t){var e=t.prop("checked");_.find("input[type=checkbox]").checkbox("checked",e),_.find("input[type=checkbox]:checked").length?$("#js_batchmove,#js_batchdel").enable():$("#js_batchmove,#js_batchdel").disable()}}),_.find("input[type=checkbox]").checkbox({onChanged:function(){_.find("input[type=checkbox]:checked").length?$("#js_batchmove,#js_batchdel").enable():$("#js_batchmove,#js_batchdel").disable()}})}),j.init("batchevent",function(){$("#js_batchdel").on("click",function(){var t=$(this);t.hasClass("btn_disabled")||y.createPopover({dom:this,content:'

确定删除选中的素材吗

',ok:function(){var t=_.find("input[type=checkbox]:checked");y.deleteImage(t)}})}),$("#js_batchmove").on("click",function(){var t=$(this);t.hasClass("btn_disabled")||(y.createPopover({dom:this,content:$("#tpl_move").tpl({list:w,current:$("#js_currentgroup").data("id")}),ok:function(){var t=[];_.find("input[type=checkbox]:checked").each(function(){t.push($(this).data("id"))}),y.moveGroup(t.join(","))}}),0===v.$pop.find("input[type=radio]").length&&(v.$pop.find(".no_group").show(),v.$pop.find(".popover_bar").hide()),v.$pop.find("input[type=radio]").checkbox())}),$("#ori_apply_batch").on("click",function(){var t=$(this);t.hasClass("btn_disabled")||y.imgOriApply()})}),j.run()}); \ No newline at end of file diff --git a/app-ht/web/exts/mall/res/js/popover.html.js b/app-ht/web/exts/mall/res/js/popover.html.js deleted file mode 100644 index 1717157..0000000 --- a/app-ht/web/exts/mall/res/js/popover.html.js +++ /dev/null @@ -1 +0,0 @@ -define("mall/res/js/popover.html",[],function(){return'
\n
\n
{=content}
\n\t\t\n {if close}关闭{/if}\n \n\n
{each buttons as bt index}{bt.text}{if index < buttons.length-1} {/if}{/each}
\n
\n \n \n
\n'}); \ No newline at end of file diff --git a/app-ht/web/exts/mall/res/js/popover.js b/app-ht/web/exts/mall/res/js/popover.js deleted file mode 100644 index f60b0ce..0000000 --- a/app-ht/web/exts/mall/res/js/popover.js +++ /dev/null @@ -1 +0,0 @@ -define("mall/res/js/popover",["mall/res/js/popover.html"],function(o,t,e){"use strict";function i(o){if(o=$.extend(!0,{},h,o),this.opt=o,this.$dom=$(o.dom),this.$dom.data("popover")){var t=this.$dom.data("popover");return s(o,t),t.$pop.show(),t}return o.buttons&&o.buttons&&$.each(o.buttons,function(i,o){o.type=o.type||"default"}),this.$pop=$(template.compile(p)(o)),o.addCls&&this.$pop.addClass(o.addCls),$("body").append(this.$pop),n(this,o),s(o,this),this.$pop.show(),this.$dom.data("popover",this),this.clickIn=!0,this}function n(o,t){function e(){clearTimeout(n),o.show()}function i(){n=setTimeout(function(){o.hide()},s)}if(t.buttons&&t.buttons.length>0&&o.$pop.find(".jsPopoverBt").each(function(e,i){t.buttons[e]&&"function"==typeof t.buttons[e].click&&$(i).click(function(i){t.buttons[e].click.call(o,i)})}),o.$pop.find(".jsPopoverClose").click(function(){t.close===!0?o.hide():"function"==typeof t.close&&t.close.call(o)}),t.hover&&(o.$dom.hover(function(){o.hoverTime&&clearTimeout(o.hoverTime)},function(){o.hoverTime=o.hide.delay(1,o)}),o.$pop.hover(function(){o.hoverTime&&clearTimeout(o.hoverTime)},function(){o.hoverTime&&clearTimeout(o.hoverTime),o.hoverTime=o.hide.delay(1,o)})),t.isToggle){var n=null,s=300;o.$dom.hover(e,i),o.$pop.hover(e,i)}t.hideIfBlur&&(o._onBlur=function(o){var t=o.data.context,e=o.target,i=t.$dom.get(0),n=t.$pop.get(0);t.clickIn?t.clickIn=!1:$.contains(i,e)||i===e||$.contains(n,e)||n===e||o.data.context.hide()},$(document).on("click",{context:o},o._onBlur)),o._onResize=function(o){o.data.context.resetPosition()},$(window).on("resize",{context:o},o._onResize)}function s(o,t){var e=t.$dom.offset();"left"==o.margin?(console.log(e.top),console.log(t.$dom.height()),t.$pop.css({top:e.top+t.$dom.height(),left:e.left}).addClass("pos_left")):"right"==o.margin?t.$pop.css({top:e.top+t.$dom.height(),left:e.left+t.$dom.width()-t.$pop.width()}).addClass("pos_right"):t.$pop.css({top:e.top+t.$dom.height(),left:e.left+t.$dom.outerWidth()/2-t.$pop.width()/2}).addClass("pos_center")}var p=o("mall/res/js/popover.html"),h={dom:"",content:"",place:"bottom",margin:"center",hideIfBlur:!1,hover:!1,addCls:"",isToggle:!1,onHide:!1,onShow:!1,onRemove:!1};i.prototype={remove:function(){this.$pop.remove(),this.$dom.removeData("popover"),this._onBlur&&$(document).off("click",this._onBlur),$(window).off("resize",this._onResize),"function"==typeof this.opt.onRemove&&this.opt.onRemove.call(this)},hide:function(){this.$pop.hide(),"function"==typeof this.opt.onHide&&this.opt.onHide.call(this)},show:function(){this.$pop.show(),"function"==typeof this.opt.onShow&&this.opt.onShow.call(this)},resetPosition:function(){return s(this.opt,this)}},e.exports=i}); \ No newline at end of file -- libgit2 0.21.0