(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-list-index"],{"01bc":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{ref:"container",staticClass:"order-index"},[i("v-uni-view",{staticClass:"header"},[i("div",{staticClass:"header_count"},[i("v-uni-swiper",{attrs:{"indicator-dots":"true",circular:t.circular,"indicator-color":"#E4E4E4","indicator-active-color":"#E93323","previous-margin":"0","next-margin":"0",current:t.swiperCur},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.swiperChange.apply(void 0,arguments)}}},[[i("v-uni-swiper-item",{class:{active:0==t.swiperCur}},[i("v-uni-view",{staticClass:"slide-navigator"},[i("v-uni-view",{staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.jumpAddGoods.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"image",attrs:{mode:"widthFix",src:n("f67b")}}),i("v-uni-text",{staticClass:"text"},[t._v("添加商品")])],1),i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/product/goodsOnSale/index?mer_id="+t.mer_id+"&type=1","hover-class":"none"}},[i("v-uni-image",{staticClass:"image",attrs:{mode:"widthFix",src:n("8a673")}}),i("v-uni-text",{staticClass:"text"},[t._v("在售商品")])],1),i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/product/goodsOnSale/index?mer_id="+t.mer_id+"&type=3","hover-class":"none"}},[i("v-uni-image",{staticClass:"image",attrs:{mode:"widthFix",src:n("41ad")}}),i("v-uni-text",{staticClass:"text"},[t._v("售罄商品")])],1),i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/product/goodsOnSale/index?mer_id="+t.mer_id+"&type=5","hover-class":"none"}},[i("v-uni-image",{staticClass:"image",attrs:{mode:"widthFix",src:n("9b2f")}}),i("v-uni-text",{staticClass:"text"},[t._v("回收站")])],1),i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/product/storeClassification/index?mer_id="+t.mer_id,"hover-class":"none"}},[i("v-uni-image",{staticClass:"image",attrs:{mode:"widthFix",src:n("6727")}}),i("v-uni-text",{staticClass:"text"},[t._v("店铺分类")])],1)],1)],1),i("v-uni-swiper-item",{class:{active:1==t.swiperCur}},[i("v-uni-view",{staticClass:"slide-navigator"},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/product/addGoods/freightTemplate?mer_id="+t.mer_id,"hover-class":"none"}},[i("v-uni-image",{staticClass:"image",attrs:{mode:"widthFix",src:n("b3db")}}),i("v-uni-text",{staticClass:"text"},[t._v("运费模板")])],1),i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/product/addGoods/mulSpecification?mer_id="+t.mer_id,"hover-class":"none"}},[i("v-uni-image",{staticClass:"image",attrs:{mode:"widthFix",src:n("7443")}}),i("v-uni-text",{staticClass:"text"},[t._v("规格模板")])],1)],1)],1)]],2)],1)]),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"product_list acea-row row-between-wrapper"},[t._l(t.productList,(function(e,n){return[i("v-uni-view",{key:n+"_0",staticClass:"item"},[i("v-uni-view",{staticClass:"image"},[i("v-uni-image",{attrs:{src:e.image}}),1==e.spec_type?i("v-uni-text",{staticClass:"spec"},[t._v("多规格")]):t._e()],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"name"},[e.is_gift_bag?i("v-uni-text",{staticClass:"font-org"},[t._v("礼包")]):t._e(),i("v-uni-text",{staticClass:"text_name acea-row line1"},[t._v(t._s(e.store_name))])],1),i("v-uni-view",{staticClass:"sales"},[i("v-uni-text",{staticClass:"num"},[t._v("库存: "+t._s(e.stock))]),i("v-uni-text",{staticClass:"num"},[t._v("销量: "+t._s(e.sales))])],1),i("v-uni-view",{staticClass:"money-wrap"},[i("v-uni-text",{staticClass:"price font-color"},[t._v("¥"+t._s(e.price))]),i("v-uni-text",{staticClass:"ot_price"},[t._v("¥"+t._s(e.ot_price))])],1)],1)],1),i("v-uni-view",{key:n+"_1",staticClass:"operation acea-row row-between-wrapper"},[i("v-uni-view"),i("v-uni-view",{staticClass:"acea-row row-middle"},[1==e.is_show&&1==e.status?i("v-uni-view",{staticClass:"bnt",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.handleShelves(e,0)}}},[t._v("下架")]):t._e(),0==e.is_show&&1==e.status?i("v-uni-view",{staticClass:"bnt",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.handleShelves(e)}}},[t._v("上架")]):t._e(),i("v-uni-view",{staticClass:"bnt",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.editGoods(e)}}},[t._v("编辑")]),i("v-uni-navigator",{staticClass:"bnt",attrs:{url:"/pages/admin/goods_details/index?product_id="+e.product_id+"&product_type=0","hover-class":"none"}},[t._v("预览")]),0==e.is_show?i("v-uni-view",{staticClass:"bnt",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.handleRecycle(e,n)}}},[t._v("删除")]):t._e(),1==e.is_show?i("v-uni-view",{staticClass:"bnt bnt_recommend",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.handleRecommend(e)}}},[t._v(t._s(e.is_good?"取消推荐":"店铺推荐"))]):t._e()],1)],1)]}))],2)],1),i("Loading",{attrs:{loaded:t.loaded,loading:t.loading}})],1)],1)},a=[]},"12ea":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.attrList=function(t,e){return a.default.get("server/".concat(t,"/attr/lst"),e,{login:!0})},e.categoryBrandlist=function(t){return a.default.get("server/".concat(t,"/category/brandlist"),{},{login:!0})},e.categoryList=function(t){return a.default.get("server/".concat(t,"/category/list"),{},{login:!0})},e.categorySelect=function(t){return a.default.get("server/".concat(t,"/category/select"),{},{login:!0})},e.getDeliveryType=function(t){return a.default.get("server/".concat(t,"/product/config"),{},{login:!0})},e.merClassifyAdd=function(t,e){return a.default.post("server/".concat(t,"/category/create"),e,{login:!0})},e.merClassifyDetail=function(t,e){return a.default.get("server/".concat(t,"/category/detail/").concat(e),{},{login:!0})},e.merClassifyLst=function(t){return a.default.get("server/".concat(t,"/category/select"),{},{login:!0})},e.merClassifyUpdate=function(t,e,n){return a.default.post("server/".concat(t,"/category/update/").concat(e),n,{login:!0})},e.productCreate=function(t,e){return a.default.post("server/".concat(t,"/product/create"),e,{login:!0})},e.productDeleteApi=function(t,e){return a.default.post("server/".concat(t,"/product/delete/").concat(e),{},{login:!0})},e.productDestory=function(t,e,n){return a.default.post("server/".concat(t,"/product/destory/").concat(e),n,{login:!0})},e.productDetail=function(t,e){return a.default.get("server/".concat(t,"/product/detail/").concat(e),{},{login:!0})},e.productLstApi=function(t,e){return a.default.get("server/".concat(t,"/product/lst"),e,{login:!0})},e.productOffApi=function(t,e,n){return a.default.post("server/".concat(t,"/product/status/").concat(e),n,{login:!0})},e.productRecommendApi=function(t,e,n){return a.default.post("server/".concat(t,"/product/good/").concat(e),n,{login:!0})},e.productRestore=function(t,e){return a.default.post("server/".concat(t,"/product/restore/").concat(e),{},{login:!0})},e.productTitle=function(t,e){return a.default.get("server/".concat(t,"/product/title"),e,{login:!0})},e.productUpdate=function(t,e,n){return a.default.post("server/".concat(t,"/product/update/").concat(e),n,{login:!0})},e.specificationAdd=function(t,e){return a.default.post("server/".concat(t,"/attr/create"),e,{login:!0})},e.specificationDel=function(t,e){return a.default.post("server/".concat(t,"/attr/delete"),e,{login:!0})},e.specificationDetail=function(t,e){return a.default.get("server/".concat(t,"/attr/detail/").concat(e),{},{login:!0})},e.specificationLst=function(t,e){return a.default.get("server/".concat(t,"/attr/lst"),e,{login:!0})},e.specificationUpdate=function(t,e,n){return a.default.post("server/".concat(t,"/attr/update/").concat(e),n,{login:!0})},e.storeClassifyDel=function(t,e){return a.default.post("server/".concat(t,"/category/delete/").concat(e),{},{login:!0})},e.storeClassifyLst=function(t){return a.default.get("server/".concat(t,"/category/lst"),{},{login:!0})},e.templateCreate=function(t,e){return a.default.post("server/".concat(t,"/template/create"),e,{login:!0})},e.templateDelete=function(t,e){return a.default.post("server/".concat(t,"/template/delete"),e,{login:!0})},e.templateDetail=function(t,e){return a.default.get("server/".concat(t,"/template/detail/").concat(e),{},{login:!0})},e.templateList=function(t,e){return a.default.get("server/".concat(t,"/template/lst"),e,{login:!0})},e.templateUpdate=function(t,e,n){return a.default.post("server/".concat(t,"/template/update/").concat(e),n,{login:!0})},n("c223");var a=i(n("fea3"))},"29de":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f"),n("aa9c"),n("dd2b");var a=n("12ea"),o=i(n("af69")),r=n("c25d"),c={name:"productList",components:{Loading:o.default},data:function(){return{current:"",where:{page:1,limit:20},loaded:!1,loading:!1,mer_id:"",productList:[],swiperCur:0,circular:!0}},onLoad:function(t){this.mer_id=t.mer_id,this.getList(this.mer_id)},methods:{jumpAddGoods:function(){var t=(0,r.getStorage)("addGoodsFormData");if(t&&t.product_id){["addGoodsFormData","singleSpecification","attrValue","modifyPriceData","addGoodsSecoundData","goodsDis","editGoodsDetils"].forEach((function(t){(0,r.getStorage)(t)&&(0,r.removeStorage)(t)}))}(0,r.navigateTo)(1,"/pages/product/addGoods/index",{mer_id:this.mer_id})},swiperChange:function(t){var e=t.detail,n=(e.current,e.source);"touch"===n&&(this.swiperCur=t.detail.current)},getList:function(t){var e=this;e.loading||e.loaded||(e.loading=!0,(0,a.productLstApi)(t,e.where).then((function(t){e.loading=!1,e.loaded=t.data.list.length1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(n,i){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){n(t.tapIndex)},fail:function(t){i(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,n){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){n(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,o.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!";return new Promise((function(n,i){uni.showModal({title:t,content:e,success:function(t){t.confirm&&n(),t.cancel&&i()}})}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,a=(0,o.default)({title:t,duration:i,position:"center",mask:!0,icon:e||"none"},n);uni.showToast(a)},e.chooseImage=function(t){return new Promise((function(e,n){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){n(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=r,e.formatDate=c,e.getQuarterStartDate=function(){var t=new Date(u,function(){var t=0;d<3&&(t=0);28&&(t=9);return t}(),1);return c(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(n){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,n){var i=e,a="navigateTo";switch(i=n?i+"?"+r(n):i,t){case 1:a="navigateTo";break;case 2:a="redirectTo";break;case 3:a="reLaunch";break;case 4:a="switchTab";break;default:a="navigateTo";break}uni[a]({url:i,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,a.default)(window))&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},i.onerror=n,void i.send()}var o=document.createElement("canvas"),r=o.getContext("2d"),c=new Image;return c.onload=function(){o.width=c.width,o.height=c.height,r.drawImage(c,0,0),e(o.toDataURL()),o.height=o.width=0},c.onerror=n,void(c.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,a.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,a.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var i=new plus.io.FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t)},i.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return c(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),c(t,"yyyy-MM-dd")},e.throttle=function(t,e){var n,i;e=e||200;return function(){for(var a=this,o=arguments.length,r=new Array(o),c=0;c