1 line
8.7 KiB
JavaScript
1 line
8.7 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-recycleBin-index"],{"133d":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("8387")),o=i(n("ea37")),r=n("fe63"),d=n("f89e"),c={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,r.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,r.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,r.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=c},"13a6":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=[]},"3da2":function(t,e,n){"use strict";n.r(e);var i=n("133d"),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},5669:function(t,e,n){var i=n("6038");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=n("4f06").default;s("a9e18a1e",i,!0,{sourceMap:!1,shadowMode:!1})},"5b8f":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.shop_list[data-v-19df1ed3]{margin-top:%?20?%;padding:0 %?20?%}.shop_list_item[data-v-19df1ed3]{padding:%?30?%;background:#fff;border-radius:10px;margin-bottom:%?20?%}.shop_list_item_shop[data-v-19df1ed3]{display:flex}.shop_list_item_shop_image[data-v-19df1ed3]{width:%?150?%;height:%?150?%;background:#eee;border-radius:16px;overflow:hidden}.shop_list_item_shop_image uni-image[data-v-19df1ed3]{width:100%}.shop_list_item_shop_con[data-v-19df1ed3]{flex:
|