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.
1 lines
8.3 KiB
1 lines
8.3 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-soldOutGoods-index"],{"0250":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:"title"},[n("v-uni-view",{staticClass:"search"},[n("search")],1)],1),t._l(t.shopList,(function(e,i){return n("shop-item",{key:i,attrs:{isShowImg:!0,itemObject:e},on:{handleMethod:function(e){arguments[0]=e=t.$handleEvent(e),t.handleMethod.apply(void 0,arguments)}}})}))],2)},s=[]},"0cf8":function(t,e,n){var i=n("24fb");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/* 文章场景相关 */.title[data-v-3415bef9]{background:#fff}.search[data-v-3415bef9]{padding:%?30?% %?25?%}',""]),t.exports=e},"2c09":function(t,e,n){"use strict";var i=n("e32a"),s=n.n(i);s.a},3681:function(t,e,n){var i=n("0cf8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=n("4f06").default;s("66bd8945",i,!0,{sourceMap:!1,shadowMode:!1})},"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},"4e24":function(t,e,n){"use strict";n.r(e);var i=n("67c7"),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},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=[]},"67c7":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");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:[]}},onReachBottom:function(){this.where.page++,this.initData("concat")},onLoad:function(t){this.merId=t.mer_id,this.initData()},onShow:function(){},methods:{initData:function(t){var e=this;(0,d.productLstApi)(this.merId,(0,s.default)((0,s.default)({},this.where),{},{type:5})).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:2,label:"加入回收站"}])}))}))},addToRecycleBin:function(t){var e=this;(0,c.Modal)("温馨提示",'商品"'.concat(t.store_name,'"将被加入回收站,请问是否继续?')).then((function(n){(0,d.productDeleteApi)(e.merId,t.product_id).then((function(t){e.initData(),(0,c.Toast)("已加入回收站")})).catch((function(t){(0,c.Toast)("".concat(t,", 加入回收站失败"))}))}))},handleMethod:function(t,e){2!=t.id||this.addToRecycleBin(e)}}};e.default=r},"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,(function(){return s[t]}))}(a);n("2c09");var o=n("f0c5"),d=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"19df1ed3",null,!1,i["a"],void 0);e["default"]=d.exports},b302:function(t,e,n){"use strict";var i=n("3681"),s=n.n(i);s.a},c6c9:function(t,e,n){var i=n("24fb");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-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:1;display:flex;flex-direction:column;margin-left:%?20?%;padding-bottom:%?12?%}.shop_list_item_shop_con_title[data-v-19df1ed3]{font-size:%?28?%;color:#282828;padding-top:%?4?%}.shop_list_item_shop_con_message[data-v-19df1ed3]{margin-top:%?15?%;font-size:%?22?%;color:#868686}.shop_list_item_shop_con_message > span[data-v-19df1ed3]:nth-child(1){display:inline-block;margin-right:%?20?%}.shop_list_item_shop_con_price[data-v-19df1ed3]{margin-top:%?10?%}.shop_list_item_shop_con_price > span[data-v-19df1ed3]{display:inline-block;margin-right:%?7?%;font-size:%?30?%;color:#e93323}.shop_list_item_shop_con_price > del[data-v-19df1ed3]{color:#bebebe;font-size:%?26?%}.shop_list_item_handle[data-v-19df1ed3]{display:flex;justify-content:flex-end}.shop_list_item_handle > uni-view[data-v-19df1ed3]{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},decc:function(t,e,n){"use strict";n.r(e);var i=n("0250"),s=n("4e24");for(var a in s)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(a);n("b302");var o=n("f0c5"),d=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"3415bef9",null,!1,i["a"],void 0);e["default"]=d.exports},e32a:function(t,e,n){var i=n("c6c9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=n("4f06").default;s("0f2f832d",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |