1 line
8.6 KiB
JavaScript
1 line
8.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-recycleBin-index"],{"1a71":function(t,e,n){"use strict";n.r(e);var i=n("43ee"),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},"1c68":function(t,e,n){"use strict";n.r(e);var i=n("cb72"),s=n("5bd4");for(var a in s)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(a);n("af65");var o=n("828b"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"e5ab7d84",null,!1,i["a"],void 0);e["default"]=c.exports},"2cc6":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=[]},3417:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c223"),n("bf0f"),n("2797"),n("dd2b");var s=i(n("9b1b")),a=i(n("58c3")),o=i(n("4c4c")),c=n("12ea"),d=n("c25d"),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,c.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,d.Modal)("温馨提示",'商品"'.concat(t.store_name,'", 将被彻底删除,请问是否继续')).then((function(){(0,c.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,d.Modal)("温馨提示",'商品"'.concat(t.store_name,'",将被还原,请问是否继续')).then((function(){(0,c.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},"43ee":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");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},"5075b":function(t,e,n){var i=n("c86c");e=i(!1),e.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/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.search[data-v-e5ab7d84]{padding:%?30?% %?25?%;background:#fff}',""]),t.exports=e},"52c1":function(t,e,n){"use strict";var i=n("8a83"),s=n.n(i);s.a},"58c3":function(t,e,n){"use strict";n.r(e);var i=n("2cc6"),s=n("1a71");for(var a in s)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(a);n("52c1");var o=n("828b"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"42601128",null,!1,i["a"],void 0);e["default"]=c.exports},"5bd4":function(t,e,n){"use strict";n.r(e);var i=n("3417"),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},"8a83":function(t,e,n){var i=n("d2d8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=n("967d").default;s("4652ea25",i,!0,{sourceMap:!1,shadowMode:!1})},af65:function(t,e,n){"use strict";var i=n("dcc0"),s=n.n(i);s.a},cb72: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=[]},d2d8:function(t,e,n){var i=n("c86c");e=i(!1),e.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/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.shop_list[data-v-42601128]{margin-top:%?20?%;padding:0 %?20?%}.shop_list_item[data-v-42601128]{padding:%?30?%;background:#fff;border-radius:10px;margin-bottom:%?20?%}.shop_list_item_shop[data-v-42601128]{display:flex}.shop_list_item_shop_image[data-v-42601128]{width:%?150?%;height:%?150?%;background:#eee;border-radius:16px;overflow:hidden}.shop_list_item_shop_image uni-image[data-v-42601128]{width:100%}.shop_list_item_shop_con[data-v-42601128]{flex:1;display:flex;flex-direction:column;margin-left:%?20?%;padding-bottom:%?12?%}.shop_list_item_shop_con_title[data-v-42601128]{font-size:%?28?%;color:#282828;padding-top:%?4?%}.shop_list_item_shop_con_message[data-v-42601128]{margin-top:%?15?%;font-size:%?22?%;color:#868686}.shop_list_item_shop_con_message > span[data-v-42601128]:nth-child(1){display:inline-block;margin-right:%?20?%}.shop_list_item_shop_con_price[data-v-42601128]{margin-top:%?10?%}.shop_list_item_shop_con_price > span[data-v-42601128]{display:inline-block;margin-right:%?7?%;font-size:%?30?%;color:#e93323}.shop_list_item_shop_con_price > del[data-v-42601128]{color:#bebebe;font-size:%?26?%}.shop_list_item_handle[data-v-42601128]{display:flex;justify-content:flex-end}.shop_list_item_handle > uni-view[data-v-42601128]{margin-left:%?18?%;padding:0 %?34?%;height:%?60?%;border:1px solid #c7c7c7;border-radius:30px;display:flex;align-items:center;justify-content:center;margin-top:%?30?%;font-size:%?26?%;color:#999}',""]),t.exports=e},dcc0:function(t,e,n){var i=n("5075b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=n("967d").default;s("4c444777",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |