You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crmeb_php/public/static/js/pages-product-recycleBin-in...

1 line
8.6 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-recycleBin-index"],{"2b02":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"search"},[n("search")],1),t._l(t.shopList,(function(e,i){return n("shop-item",{key:i,attrs:{itemObject:e},on:{handleMethod:function(e){arguments[0]=e=t.$handleEvent(e),t.handleMethod.apply(void 0,arguments)}}})}))],2)},s=[]},"2c09":function(t,e,n){"use strict";var i=n("e32a"),s=n.n(i);s.a},"2e86":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af"),n("d3b7"),n("159b"),n("a434");var s=i(n("5530")),a=i(n("8c11")),o=i(n("816e")),d=n("fdb9"),c=n("a5eb"),r={components:{shopItem:a.default,search:o.default},data:function(){return{merId:"",where:{page:1,limit:15},shopList:[],selectMenuId:5}},onLoad:function(t){this.merId=t.mer_id,this.initData()},onReachBottom:function(){this.where.page++,this.initData("concat")},methods:{initData:function(t){var e=this;(0,d.productLstApi)(this.merId,(0,s.default)((0,s.default)({},this.where),{},{type:this.selectMenuId})).then((function(n){e.shopList="concat"==t?e.shopList.concat(n.data.list):n.data.list,e.shopList.forEach((function(t){e.$set(t,"handleList",[{id:1,label:"删除"},{id:2,label:"还原"}])}))}))},handleProductDestory:function(t,e){var n=this;(0,c.Modal)("温馨提示",'商品"'.concat(t.store_name,'", 将被彻底删除,请问是否继续')).then((function(){(0,d.productDestory)(n.merId,t.product_id).then((function(t){n.$util.Tips({title:t.message,icon:"success"}),n.shopList.splice(e,1)}))}))},handleProductRestore:function(t,e){var n=this;(0,c.Modal)("温馨提示",'商品"'.concat(t.store_name,'",将被还原,请问是否继续')).then((function(){(0,d.productRestore)(n.merId,t.product_id).then((function(t){n.$util.Tips({title:t.message,icon:"success"}),n.shopList.splice(e,1)}))}))},handleMethod:function(t,e,n){1!=t.id?2==t.id&&this.handleProductRestore(e,n):this.handleProductDestory(e,n)}}};e.default=r},"470a":function(t,e,n){"use strict";n.r(e);var i=n("86d8"),s=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},"52ac":function(t,e,n){"use strict";var i=n("e8ff"),s=n.n(i);s.a},5673:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"shop_list"},[n("v-uni-view",{staticClass:"shop_list_item"},[n("v-uni-view",{staticClass:"shop_list_item_shop"},[t.isShowImg?n("v-uni-view",{staticClass:"shop_list_item_shop_image"},[n("v-uni-image",{attrs:{src:t.itemObject.image,mode:"widthFix"}})],1):t._e(),n("v-uni-view",{staticClass:"shop_list_item_shop_con"},[n("v-uni-view",{staticClass:"shop_list_item_shop_con_title"},[t._v(t._s(t.itemObject.store_name))]),n("v-uni-view",{staticClass:"shop_list_item_shop_con_message"},[n("span",[t._v("库存:"+t._s(t.itemObject.stock))]),n("span",[t._v("销量:"+t._s(t.itemObject.sales))])]),n("v-uni-view",{staticClass:"shop_list_item_shop_con_price"},[n("span",[t._v("¥"+t._s(t.itemObject.price))]),n("del",[t._v("¥"+t._s(t.itemObject.ot_price))])])],1)],1),n("v-uni-view",{staticClass:"shop_list_item_handle"},[t._t("default")],2)],1)],1)},s=[]},"86d8":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var i={props:{isShowImg:{type:Boolean,default:!1},itemObject:{type:Object,default:function(){return{}}},index:{type:Number|String,default:0}},data:function(){return{}},created:function(){},methods:{handleMethod:function(t,e){this.$emit("handleMethod",t,e,this.index)}}};e.default=i},"8c11":function(t,e,n){"use strict";n.r(e);var i=n("5673"),s=n("470a");for(var a in s)["default"].indexOf(a)<0&&function(t){n.d(e,t,(fu