| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-goods-index"],{"0754":function(t,i,e){"use strict";e.r(i);var a=e("0ea3"),o=e("ffe0");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(n);e("44e0");var s=e("828b"),c=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"2cd77121",null,!1,a["a"],void 0);i["default"]=c.exports},"0ea3":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("base-drawer",{attrs:{mode:"bottom",visible:t.visible,"background-color":"transparent",mask:!0,maskClosable:!0},on:{close:function(i){arguments[0]=i=t.$handleEvent(i),t.closeDrawer.apply(void 0,arguments)}}},[t.goodsInfo.attr_value?e("v-uni-view",{staticClass:"edit-price rd-t-40rpx"},[e("v-uni-view",{staticClass:"title"},[t._v("修改价格/库存 "),e("v-uni-view",{staticClass:"close acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.closeDrawer.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"iconfont icon-iconfontguanbi"})],1)],1),e("v-uni-view",{staticClass:"list"},[e("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[e("v-uni-view",[t._v("售价")]),e("v-uni-input",{attrs:{type:"digit",placeholder:"请填写售价"+t.tips,"placeholder-class":"placeholder"},model:{value:t.goodsInfo.attr_value.price,callback:function(i){t.$set(t.goodsInfo.attr_value,"price",i)},expression:"goodsInfo.attr_value.price"}})],1),e("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[e("v-uni-view",[t._v("成本价")]),e("v-uni-input",{attrs:{type:"digit",placeholder:"请填写成本价"+t.tips,"placeholder-class":"placeholder"},model:{value:t.goodsInfo.attr_value.cost,callback:function(i){t.$set(t.goodsInfo.attr_value,"cost",i)},expression:"goodsInfo.attr_value.cost"}})],1),e("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[e("v-uni-view",[t._v("划线")]),e("v-uni-input",{attrs:{type:"digit",placeholder:"请填写划线"+t.tips,"placeholder-class":"placeholder"},model:{value:t.goodsInfo.attr_value.ot_price,callback:function(i){t.$set(t.goodsInfo.attr_value,"ot_price",i)},expression:"goodsInfo.attr_value.ot_price"}})],1),e("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[e("v-uni-view",[t._v("库存")]),e("v-uni-input",{attrs:{type:"number",placeholder:"请填写库存"+t.tips,"placeholder-class":"placeholder"},model:{value:t.goodsInfo.attr_value.stock,callback:function(i){t.$set(t.goodsInfo.attr_value,"stock",i)},expression:"goodsInfo.attr_value.stock"}})],1)],1),t.goodsInfo.spec_type?e("v-uni-view",{staticClass:"bnt acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.defineSpec.apply(void 0,arguments)}}},[t._v("确定")]):e("v-uni-view",{staticClass:"bnt acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.define.apply(void 0,arguments)}}},[t._v("保存")])],1):t._e()],1)},o=[]},"295f":function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("bf0f"),e("2797"),e("aa9c"),e("f7a5"),e("bd06"),e("dd2b"),e("d4b5"),e("5ef2");var o=a(e("f6e0")),n=a(e("5c67")),s=a(e("16fe")),c=a(e("82a0")),l=a(e("0754")),r=a(e("b9a1")),d=a(e("0b27")),f=e("8633"),u=e("df17"),v={components:{editPrice:l.default,editLable:r.default,classify:d.default,footerPage:c.default,emptyPage:n.default,Loading:o.default,baseDrawer:s.default},data:function(){return{getHeight:this.$util.getWXStatusHeight(),navList:[{name:"全部",type:""},{name:"出售中",type:1},{name:"仓库中",type:2},{name:"已售罄",type:4},{name:"库存警告",type:5}],editList:[{name:"修改价格/库存"},{name:"商品分类"},{name:"商品标签"}],current:0,administer:0,isAllSelect:!1,goodsList:[],goodsInfo:{},visible:!1,visiblePrice:!1,visibleLable:!1,loadTitle:"加载更多",loading:!1,loadend:!1,limit:20,page:1,keyword:"",type:"",visibleClass:!1}},onShow:function(){},onLoad:function(t){this.type=t.type||"",this.keyword=t.keyword||"";for(var i=0;i<this.navList.length;i++)if(this.navList[i].type==this.type){this.current=i;break}this.productList()},methods:{goDetail:function(t){t.is_show?(0,f.goShopDetail)(t,this.$store.state.app.uid).catch((function(i){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})})):this.$util.Tips({title:"商品未上架"})},goarrow:function(){uni.navigateBack()},editClass:function(){if(this.getIds().length){this.$refs.classify.category(this.getIds(),"");var t=this;setTimeout((function(){t.visibleClass=!0}),200)}else this.$util.Tips({title:"请选择商品"})},classCloseDrawer:function(){this.visibleClass=!1},successChange:function(){this.visibleClass=!1,this.visibleLable=!1,this.visiblePrice=!1,this.init()},editLabels:function(){this.getIds().length?(this.visibleLable=!0,this.$refs.lable.productLabel({},1,this.getIds())):this.$util.Tips({title:"请选择商品"})},getIds:function(){var t=[];return this.goodsList.forEach((function(i){i.checked&&t.push(i.id)})),t.slice(0,100),t},setShow:function(t,i,e){var a=this,o={};if(i){if(!this.getIds().length)return void this.$util.Tips({title:"请选择商品"});o={id:this.getIds(),is_show:e}}else o={id:t.id,is_show:t.is_show?0:1};(0,u.productSetShow)(o).then((function(i){a.$util.Tips({title:i.msg});var e=a.goodsList.findIndex((function(i){return i.id==t.id}));a.goodsList.splice(e,1)})).catch((function(t){a.$util.Tips({title:t})}))},init:function(){this.goodsList=[],this.page=1,this.loadend=!1,this.loading=!1,this.productList()},searchSubmit:function(){this.init()},productList:function(){var t=this,i=this;this.loading||this.loadend||(i.loading=!0,i.loadTitle="",(0,u.adminProductList)({page:i.page,limit:i.limit,store_name:i.keyword,type:i.type}).then((function(e){var a=e.data.list;a.forEach((function(t){t.checked=!1})),t.isAllSelect=!1;var o=a.length<i.limit;i.goodsList=i.$util.SplitArray(a,i.goodsList),i.$set(i,"goodsList",i.goodsList),i.loadend=o,i.loadTitle=o?"没有更多内容啦~":"加载更多",i.page=i.page+1,i.loading=!1})).catch((function(t){i.loading=!1,i.loadTitle="加载更多"})))},editInfo:function(t){switch(t){case 0:if(0!=this.goodsInfo.virtual_type)return void this.$util.Tips({title:"仅普通商品可在此处修改价格/库存"});this.visible=!1,this.goodsInfo.spec_type?uni.navigateTo({url:"/pages/admin/goods/specs?id="+this.goodsInfo.id}):this.visiblePrice=!0;break;case 1:this.visible=!1,this.visibleClass=!0;break;case 2:this.visibleLable=!0,this.visible=!1;break}},lableCloseDrawer:function(){this.visibleLable=!1},priceCloseDrawer:function(){this.visiblePrice=!1},openDrawer:function(t){this.visible=!0,this.goodsInfo=JSON.parse(JSON.stringify(t)),this.$refs.lable.productLabel(this.goodsInfo,0,[]),this.$refs.classify.category(t.id,t.cate_id)},closeDrawer:function(){this.visible=!1},manageTap:function(){this.administer=!this.administer},navTap:function(t,i){this.current=i,this.type!=t.type&&(this.type=t.type,this.init())},checkboxChange:function(t){var i=t.detail.value;this.goodsList.forEach((function(t){-1!==i.indexOf(t.id+"")?t.checked=!0:t.checked=!1})),i.length==this.goodsList.length?this.isAllSelect=!0:this.isAllSelect=!1},forGoods:function(t){this.goodsList.length&&this.goodsList.forEach((function(i){i.checked=!!t}))},checkboxAllChange:function(t){var i=t.detail.value;i.length?(this.goodsList.length>100&&this.$util.Tips({title:"每次最多只提交100条数据"}),this.isAllSelect=!0,this.forGoods(1)):(this.isAllSelect=!1,this.forGoods(0))}},onReachBottom:function(){this.productList()}};i.default=v},"30bf":function(t,i,e){"use strict";var a=e("3cee"),o=e.n(a);o.a},"3a27":function(t,i,e){"use strict";var a=e("624d"),o=e.n(a);o.a},"3cee":function(t,i,e){var a=e("85d3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("967d").default;o("e5b99ee0",a,!0,{sourceMap:!1,shadowMode:!1})},"44e0":function(t,i,e){"use strict";var a=e("464a"),o=e.n(a);o.a},"464a":function(t,i,e){var a=e("63e5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("967d").default;o("4927307a",a,!0,{sourceMap:!1,shadowMode:!1})},"5a89":function(t,i,e){"use strict";e.r(i);var a=e("295f"),o=e.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(n);i["default"]=o.a},"5ce9":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("base-drawer",{attrs:{mode:"right",visible:t.visible,"background-color":"transparent",mask:!0,maskClosable:!0},on:{close:function(i){arguments[0]=i=t.$handleEvent(i),t.closeDrawer.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"edit-lable"},[e("v-uni-view",{staticClass:"header"},[t._v("添加标签")]),t.isStore?e("v-uni-view",{staticClass:"list"},[e("v-uni-scroll-view",{staticStyle:{height:"100%"},attrs:{"scroll-y":"true"}},t._l(t.labelList,(function(i,a){return e("v-uni-view",{key:a,staticClass:"item"},[i.list&&i.list.length?e("v-uni-view",{staticClass:"title"},[t._v(t._s(i.cate_name))]):t._e(),i.list&&i.list.length?e("v-uni-view",{staticClass:"listn acea-row row-middle"},t._l(i.list,(function(i,a){return e("v-uni-view",{key:a,staticClass:"name acea-row row-center-wrapper",class:{on:i.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectLabel(i)}}},[e("v-uni-text",{staticClass:"line1"},[t._v(t._s(i.name))])],1)})),1):t._e()],1)})),1)],1):e("v-uni-view",{staticClass:"empty-box"},[e("emptyPage",{attrs:{title:"暂无标签~",src:"/statics/images/empty-box.png"}})],1),e("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[e("v-uni-view",{staticClass:"bnt acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.reset.apply(void 0,arguments)}}},[t._v("重置")]),e("v-uni-view",{staticClass:"bnt on acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.define.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1)},o=[]},"624d":function(t,i,e){var a=e("7631");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("967d").default;o("be3d421e",a,!0,{sourceMap:!1,shadowMode:!1})},"63dc":function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("aa9c");var o=e("df17"),n=a(e("16fe")),s={components:{baseDrawer:n.default},props:{visible:{type:Boolean,default:!1},goodsInfo:{type:Object,default:function(){}}},data:function(){return{tips:""}},mounted:function(){this.tips=this.goodsInfo.spec_type?"(可为空)":""},methods:{defineSpec:function(){var t=this.goodsInfo.attr_value;t.cost||t.price||t.ot_price||t.stock?this.$emit("successChange",t):this.$util.Tips({title:"修改内容至少填写一项"})},define:function(){var t=this,i={attr_value:[]};i.attr_value.push(this.goodsInfo.attr_value),(0,o.postUpdateAttrs)(this.goodsInfo.id,i).then((function(i){t.$util.Tips({title:i.msg}),t.$emit("successChange")})).catch((function(i){t.$util.Tips({title:i})}))},closeDrawer:function(){this.$emit("closeDrawer")}}};i.default=s},"63e5":function(t,i,e){var a=e("c86c");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 商家管理 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 商家管理 */.edit-price[data-v-2cd77121]{background-color:#fff;padding-bottom:%?60?%}.edit-price .title[data-v-2cd77121]{text-align:center;height:%?108?%;line-height:%?108?%;font-size:%?32?%;font-family:PingFang SC;font-weight:600;color:#333;position:relative;padding:0 %?30?%}.edit-price .title .close[data-v-2cd77121]{width:%?36?%;height:%?36?%;line-height:%?36?%;background:#eee;border-radius:50%;position:absolute;right:%?30?%;top:%?38?%}.edit-price .title .close .iconfont[data-v-2cd77121]{font-weight:300;font-size:%?20?%}.edit-price .list[data-v-2cd77121]{padding:0 %?10?% 0 %?30?%}.edit-price .list .item[data-v-2cd77121]{font-size:%?28?%;font-family:PingFang SC;font-weight:400;color:#333;height:%?72?%;margin-bottom:%?32?%;box-sizing:border-box}.edit-price .list .item uni-input[data-v-2cd77121]{text-align:right;font-size:%?28?%;height:100%;padding-right:%?20?%}.edit-price .list .item .placeholder[data-v-2cd77121]{font-size:%?28?%;padding-right:%?20?%}.edit-price .bnt[data-v-2cd77121]{font-size:%?26?%;font-family:PingFang SC;font-weight:500;color:#fff;width:%?710?%;height:%?72?%;background:#2a7efb;border-radius:%?50?%;margin:%?72?% auto 0 auto}',""]),t.exports=i},7631:function(t,i,e){var a=e("c86c");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 商家管理 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 商家管理 */.accountTitle[data-v-6521284f]{position:fixed;left:0;top:0;width:100%;z-index:99;padding-bottom:%?6?%}.accountTitle .sysTitle[data-v-6521284f]{width:100%;position:relative;font-weight:600;color:#333;font-size:%?34?%;font-family:PingFang SC}.edit-lable[data-v-6521284f]{background-color:#fff;width:%?670?%;border-radius:%?40?% 0 0 %?40?%;height:100%;padding:%?20?% %?34?% 0 %?32?%}.edit-lable .header[data-v-6521284f]{text-align:center;height:%?96?%;line-height:%?96?%;font-size:%?34?%;font-family:PingFang SC;font-weight:600;color:#333;position:relative}.edit-lable .list[data-v-6521284f]{overflow:auto;height:calc(100% - %?208?%);height:calc(100% - (%?208?% + constant(safe-area-inset-bottom)));height:calc(100% - (%?208?% + env(safe-area-inset-bottom)))}.edit-lable .list .item[data-v-6521284f]{margin-top:%?48?%}.edit-lable .list .item .title[data-v-6521284f]{font-size:%?28?%;font-family:PingFang SC;font-weight:600;color:#333}.edit-lable .list .item .listn .name[data-v-6521284f]{width:%?184?%;height:%?56?%;background-color:#f5f5f5;border-radius:%?50?%;border:%?1?% solid #f5f5f5;font-size:%?24?%;font-family:PingFang SC;font-weight:400;color:#333;margin-right:%?26?%;margin-top:%?24?%;padding:0 %?8?%}.edit-lable .list .item .listn .name.on[data-v-6521284f]{background-color:#e9f2fe;border-color:#2a7efb;color:#2a7efb}.edit-lable .list .item .listn .name[data-v-6521284f]:nth-of-type(3n){margin-right:0}.edit-lable .footer[data-v-6521284f]{width:100%;height:%?112?%;position:fixed;bottom:0;left:0;padding:0 %?32?%;background-color:#fff;border-radius:0 0 0 %?40?%;height:calc(%?112?% + constant(safe-area-inset-bottom));height:calc(%?112?% + env(safe-area-inset-bottom));padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.edit-lable .footer .bnt[data-v-6521284f]{width:%?296?%;height:%?72?%;border:1px solid #2a7efb;border-radius:%?200?%;font-size:%?26?%;font-family:PingFang SC;font-weight:600;color:#2a7efb}.edit-lable .footer .bnt.on[data-v-6521284f]{background:#2a7efb;border-color:#2a7efb;color:#fff}',""]),t.exports=i},"85d3":function(t,i,e){var a=e("c86c");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 商家管理 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 商家管理 */[data-v-c3471388] uni-checkbox .wx-checkbox-input.wx-checkbox-input-checked{border:1px solid #2a7efb!important;background-color:#2a7efb!important}[data-v-c3471388] uni-checkbox .uni-checkbox-input{margin-top:%?-4?%}[data-v-c3471388] uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#d1d1d1!important}.empty-box[data-v-c3471388]{padding:0 %?20?%}.accountTitle[data-v-c3471388]{background:#f5f5f5;position:fixed;left:0;top:0;width:100%;z-index:99;padding-bottom:%?6?%}.accountTitle .sysTitle[data-v-c3471388]{width:100%;position:relative;font-weight:500;color:#333;font-size:%?30?%}.accountTitle .sysTitle .iconfont[data-v-c3471388]{position:absolute;font-size:%?42?%;left:%?20?%;width:%?60?%;font-weight:500}.goods-list[data-v-c3471388]{padding-top:%?20?%}.goods-list .searchCon[data-v-c3471388]{padding:0 %?20?%}.goods-list .searchCon .search[data-v-c3471388]{width:%?618?%;height:%?72?%;background:#fff;border-radius:%?50?%;padding:0 %?34?%}.goods-list .searchCon .search .iconfont[data-v-c3471388]{color:#999;font-size:%?32?%;margin-right:%?16?%}.goods-list .searchCon .search .inputs[data-v-c3471388]{font-size:%?28?%;width:100%;height:100%;flex:1}.goods-list .searchCon .search .placeholder[data-v-c3471388]{color:#ccc}.goods-list .searchCon .edit[data-v-c3471388]{width:%?72?%;height:%?72?%;background:#fff;border-radius:50%}.goods-list .searchCon .edit .iconfont[data-v-c3471388]{color:#666;font-size:%?36?%}.goods-list .nav[data-v-c3471388]{padding:%?20?% %?20?% %?18?% %?34?%;position:-webkit-sticky;position:sticky;top:0;left:0;width:100%;background-color:#f5f5f5;z-index:9}.goods-list .nav .item[data-v-c3471388]{font-weight:400;font-size:%?26?%;color:#333;padding:%?10?% 0;position:relative}.goods-list .nav .item ~ .item[data-v-c3471388]{margin-left:%?72?%}.goods-list .nav .item.on[data-v-c3471388]{font-weight:500;color:#2a7efb;font-size:%?30?%;font-family:PingFang SC}.goods-list .nav .item uni-image[data-v-c3471388]{width:%?14?%;height:%?14?%;display:block;position:absolute;bottom:0;right:%?-4?%}.goods-list .list[data-v-c3471388]{padding-bottom:%?20?%;padding:0 %?20?% %?20?% %?20?%}.goods-list .list[data-v-c3471388] uni-checkbox .uni-checkbox-input{background-color:#f5f5f5;margin:0 %?20?% %?20?% 0}.goods-list .list[data-v-c3471388] wx-checkbox .wx-checkbox-input{background-color:#f5f5f5;margin:0 %?20?% %?20?% 0}.goods-list .list .item[data-v-c3471388]{width:100%;background-color:#fff;padding:%?24?%;box-sizing:border-box;margin-bottom:%?20?%;border-radius:%?24?%;flex:1;overflow:hidden}.goods-list .list .item .top .checkbox[data-v-c3471388]{margin-right:%?10?%}.goods-list .list .item .top .pictrue[data-v-c3471388]{width:%?136?%;height:%?136?%;margin-right:%?20?%}.goods-list .list .item .top .pictrue uni-image[data-v-c3471388]{width:100%;height:100%;border-radius:%?16?%}.goods-list .list .item .top .text[data-v-c3471388]{flex:1;overflow:hidden}.goods-list .list .item .top .text .name[data-v-c3471388]{font-size:%?28?%;font-weight:400;color:#333}.goods-list .list .item .top .text .info[data-v-c3471388]{font-size:%?24?%;font-weight:400;color:#666;margin:%?10?% 0 %?18?% 0}.goods-list .list .item .top .text .info uni-text[data-v-c3471388]{margin-right:%?40?%}.goods-list .list .item .bottom[data-v-c3471388]{margin-top:%?26?%}.goods-list .list .item .bottom .bnt[data-v-c3471388]{width:%?144?%;height:%?56?%;border:1px solid #ccc;font-size:%?24?%;font-family:PingFang SC;font-weight:400;color:#333;border-radius:%?50?%}.goods-list .list .item .bottom .bnt ~ .bnt[data-v-c3471388]{margin-left:%?16?%}.goods-list .list .item .bottom .bnt.on[data-v-c3471388]{border-color:#2a7efb;background-color:#2a7efb;color:#fff}.goods-list .list .item .bottom .bnt.up[data-v-c3471388]{border-color:#ff7e00;color:#ff7e00}.goods-list .footerH[data-v-c3471388]{height:%?110?%;height:calc(%?110?% + constant(safe-area-inset-bottom));height:calc(%?110?% + env(safe-area-inset-bottom))}.goods-list .footer[data-v-c3471388]{box-sizing:border-box;padding:0 %?32?%;width:100%;height:%?96?%;background-color:#fff;position:fixed;bottom:0;z-index:30;height:calc(%?96?% + constant(safe-area-inset-bottom));height:calc(%?96?% + env(safe-area-inset-bottom));padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);width:100%;left:0}.goods-list .footer .bnt[data-v-c3471388]{width:%?160?%;height:%?64?%;border-radius:%?50?%;border:%?1?% solid #2a7efb;color:#2a7efb;font-size:%?24?%;font-family:PingFang SC;font-weight:500}.goods-list .footer .bnt ~ .bnt[data-v-c3471388]{margin-left:%?16?%}.goods-list .edit-list[data-v-c3471388]{background-color:#fff;padding:%?45?% %?34?%}.goods-list .edit-list .item[data-v-c3471388]{font-family:PingFang SC;font-weight:400;color:#333;font-size:%?32?%;text-align:center;height:%?106?%;line-height:%?106?%}.goods-list .edit-list .item.disabled[data-v-c3471388]{color:#ccc}',""]),t.exports=i},8633:function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.goPage=function(){return new Promise((function(t){if(0!=a.globalData.isIframe)return!1;t(!0)}))},i.goShopDetail=function(t,i){return new Promise((function(e,a){t.activity&&"1"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.activity.id,"&time_id=").concat(t.activity.time_id)}):t.activity&&"2"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(t.activity.id,"&bargain=").concat(i)}):t.activity&&"3"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(t.activity.id)}):e(t)}))},e("bf0f"),e("c223");var a=getApp()},"887e":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAQlJREFUOE+V0stNw0AQBuB/1g8pN5cQbmFPpoOkAqADUgGcEZBV4J5QQeggdIA7wFysHN0BviHZZgZ5TRYSHnHmPJ/+3ZkhdKyBeesrCWbCEolXj6mjw+F19USEoe0neuwM9U31DCBunAiSfeArgGivRG3KGExN4qfDvFOintQLiJytITNGO6G+LGP4X2kA5dnUP/gXtkgtAem76YuMs9vw4VcYG4lKLi8Ade4G0so0mwZHdiPf9zi4qoaeh2MRNP9pJ+iKclbVaGV6uYXNRdC7vyCyO9pqdiplVZ+ukYUbF/HzjAqA70MVzlNDxUa+ntRLiJxsmT+B26V7qqJChBJhflndBcmuG/4A5GBm6dOuQqsAAAAASUVORK5CYII="},a387:function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("d4b5"),e("fd3c"),e("5ef2"),e("8f71"),e("bf0f"),e("dd2b"),e("aa9c");var o=a(e("5c67")),n=e("df17"),s=(e("9b8e"),a(e("16fe"))),c={components:{emptyPage:o.default,baseDrawer:s.default},props:{visible:{type:Boolean,default:!1}},data:function(){return{labelList:[],goodsInfo:{},dataLabel:[],isStore:!1,num:0,ids:[]}},mounted:function(){},methods:{define:function(){var t=this,i={label_list:this.dataLabel};i.ids=this.ids,this.num||(i.ids=this.goodsInfo.id),(0,n.postBatchProcess)(i).then((function(i){t.$util.Tips({title:i.msg}),t.$emit("successChange")})).catch((function(i){t.$util.Tips({title:i})}))},reset:function(){this.productLabel(this.goodsInfo,this.num,this.ids)},inArray:function(t,i){for(var e in i)if(i[e]==t)return!0;return!1},productLabel:function(t,i,e){var a=this;this.dataLabel=t.label_list&&t.label_list.length?t.label_list.split(","):[],this.goodsInfo=JSON.parse(JSON.stringify(t)),this.num=i,this.ids=e,(0,n.getProductLabel)().then((function(t){t.data.map((function(t){t.list&&t.list.length&&(a.isStore=!0,t.list.map((function(t){a.inArray(t.id,a.dataLabel)?t.disabled=!0:t.disabled=!1})))})),a.labelList=t.data})).catch((function(t){a.$util.Tips({title:t})}))},selectLabel:function(t){if(t.disabled){var i=this.dataLabel.indexOf(this.dataLabel.filter((function(i){return i==t.id}))[0]);this.dataLabel.splice(i,1),t.disabled=!1}else this.dataLabel.push(t.id),t.disabled=!0},closeDrawer:function(){this.$emit("closeDrawer")}}};i.default=c},a6b4:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{staticClass:"goods-list"},[a("v-uni-view",{staticClass:"searchCon acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"search acea-row row-middle"},[a("v-uni-text",{staticClass:"iconfont icon-ic_search"}),a("v-uni-input",{staticClass:"inputs",attrs:{placeholder:"请输入商品名称/ID","placeholder-class":"placeholder","confirm-type":"search",name:"search"},on:{confirm:function(i){arguments[0]=i=t.$handleEvent(i),t.searchSubmit.apply(void 0,arguments)}},model:{value:t.keyword,callback:function(i){t.keyword=i},expression:"keyword"}})],1),t.administer?a("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.manageTap.apply(void 0,arguments)}}},[t._v("取消")]):a("v-uni-view",{staticClass:"edit acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.manageTap.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"iconfont icon-ic_batch"})],1)],1),a("v-uni-view",{staticClass:"nav acea-row row-middle"},t._l(t.navList,(function(i,o){return a("v-uni-view",{key:o,staticClass:"item",class:t.current==o?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTap(i,o)}}},[t._v(" "+t._s(i.name)+" "),t.current==o?a("v-uni-image",{attrs:{src:e("887e")}}):t._e()],1)})),1),t.goodsList.length?a("v-uni-view",{staticClass:"list"},[a("v-uni-checkbox-group",{on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.checkboxChange.apply(void 0,arguments)}}},t._l(t.goodsList,(function(i,e){return a("v-uni-view",{key:e,staticClass:"acea-row row-middle"},[t.administer?a("v-uni-checkbox",{staticClass:"checkbox",attrs:{value:i.id.toString(),checked:i.checked,color:"#ffffff",backgroundColor:"#ffffff",activeBackgroundColor:"#2A7EFB",activeBorderColor:"#2A7EFB"}}):t._e(),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"top acea-row row-center-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goDetail(i)}}},[a("v-uni-view",{staticClass:"pictrue"},[a("v-uni-image",{attrs:{src:i.image}})],1),a("v-uni-view",{staticClass:"text"},[a("v-uni-view",{staticClass:"name line1"},[t._v(t._s(i.store_name))]),a("v-uni-view",{staticClass:"info"},[a("v-uni-text",[t._v("销量: "+t._s(i.sales))]),a("v-uni-text",[t._v("库存: "+t._s(i.stock))])],1),a("baseMoney",{attrs:{money:i.price,symbolSize:"20",integerSize:"32",decimalSize:"20",color:"#FF7E00"}})],1)],1),t.administer?t._e():a("v-uni-view",{staticClass:"bottom acea-row row-right"},[a("v-uni-view",{staticClass:"bnt acea-row row-center-wrapper",class:i.is_show?"":"up",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setShow(i,0)}}},[t._v(t._s(i.is_show?"下架":"上架"))]),a("v-uni-view",{staticClass:"bnt on acea-row row-center-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openDrawer(i)}}},[t._v("编辑")])],1)],1)],1)})),1)],1):t._e(),0!=t.goodsList.length||t.loading?t._e():a("v-uni-view",{staticClass:"empty-box"},[a("emptyPage",{attrs:{title:"暂无商品~",src:"/statics/images/empty-box.gif"}})],1),a("Loading",{attrs:{loaded:t.loadend,loading:t.loading}}),a("v-uni-view",{staticClass:"footerH"}),t.administer?a("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[a("v-uni-checkbox-group",{on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.checkboxAllChange.apply(void 0,arguments)}}},[a("v-uni-checkbox",{attrs:{value:"all",checked:t.isAllSelect,color:"#ffffff",backgroundColor:"#ffffff",activeBackgroundColor:"#2A7EFB",activeBorderColor:"#2A7EFB"}}),a("v-uni-text",{staticClass:"checkAll"},[t._v("全选("+t._s(t.getIds().length)+")")])],1),a("v-uni-view",{staticClass:"acea-row row-middle"},[a("v-uni-view",{staticClass:"bnt acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.editLabels.apply(void 0,arguments)}}},[t._v("添加标签")]),a("v-uni-view",{staticClass:"bnt acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.editClass.apply(void 0,arguments)}}},[t._v("修改分类")]),1==t.type?a("v-uni-view",{staticClass:"bnt acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.setShow("",1,0)}}},[t._v("下架")]):2==t.type?a("v-uni-view",{staticClass:"bnt acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.setShow("",1,1)}}},[t._v("上架")]):t._e()],1)],1):t._e(),a("footer-page"),a("base-drawer",{attrs:{mode:"bottom",visible:t.visible,"background-color":"transparent",mask:!0,maskClosable:!0},on:{close:function(i){arguments[0]=i=t.$handleEvent(i),t.closeDrawer.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"edit-list rd-t-40rpx"},t._l(t.editList,(function(i,e){return a("v-uni-view",{key:e,staticClass:"item",class:{disabled:0===e&&0!=t.goodsInfo.virtual_type},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.editInfo(e)}}},[t._v(t._s(i.name))])})),1)],1),a("edit-price",{attrs:{visible:t.visiblePrice,goodsInfo:t.goodsInfo},on:{closeDrawer:function(i){arguments[0]=i=t.$handleEvent(i),t.priceCloseDrawer.apply(void 0,arguments)},successChange:function(i){arguments[0]=i=t.$handleEvent(i),t.successChange.apply(void 0,arguments)}}}),a("edit-lable",{ref:"lable",attrs:{visible:t.visibleLable},on:{closeDrawer:function(i){arguments[0]=i=t.$handleEvent(i),t.lableCloseDrawer.apply(void 0,arguments)},successChange:function(i){arguments[0]=i=t.$handleEvent(i),t.successChange.apply(void 0,arguments)}}}),a("classify",{ref:"classify",attrs:{visible:t.visibleClass},on:{closeDrawer:function(i){arguments[0]=i=t.$handleEvent(i),t.classCloseDrawer.apply(void 0,arguments)},successChange:function(i){arguments[0]=i=t.$handleEvent(i),t.successChange.apply(void 0,arguments)}}})],1)},o=[]},ad15:function(t,i,e){"use strict";e.r(i);var a=e("a387"),o=e.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(n);i["default"]=o.a},b9a1:function(t,i,e){"use strict";e.r(i);var a=e("5ce9"),o=e("ad15");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(n);e("3a27");var s=e("828b"),c=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"6521284f",null,!1,a["a"],void 0);i["default"]=c.exports},d201:function(t,i,e){"use strict";e.r(i);var a=e("a6b4"),o=e("5a89");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(n);e("30bf");var s=e("828b"),c=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"c3471388",null,!1,a["a"],void 0);i["default"]=c.exports},ffe0:function(t,i,e){"use strict";e.r(i);var a=e("63dc"),o=e.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(n);i["default"]=o.a}}]);
|