徐总多门店
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.

11 lines
8.1 KiB

5 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods_cate/template/template4"],{"0c3a":function(t,e,i){"use strict";var r=i("9827"),n=i.n(r);n.a},"2d27":function(t,e,i){"use strict";(function(t){var r=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(i("7ca3")),a=i("152a"),o=i("ce7e"),s=i("4bab"),c=(i("7ba4"),i("8f59")),u=r(i("8d64"));function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function d(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){(0,n.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var h=t.getSystemInfoSync().statusBarHeight,g={props:{level:{type:Number,default:2},isFooter:{type:Boolean,default:!1},pdHeight:{type:Number,default:0}},data:function(){return{statusBarHeight:h,showFilterDrawer:!1,navActive:0,categoryList:[],categoryErList:[],threeCateList:[],tempArr:[],loading:!1,loadend:!1,loadTitle:"加载更多",page:1,limit:10,cid:0,sid:0,tid:0,id:0,storeName:"",tabClick:0,attr:{cartAttr:!1,productAttr:[],productSelect:{}},attrValue:"",productValue:[],is_vip:0,cart_num:0,storeInfo:{},selectSku:{},skuArr:[],getHeight:this.$util.getWXStatusHeight()}},mixins:[u.default],components:{baseDrawer:function(){i.e("components/tui-drawer/tui-drawer").then(function(){return resolve(i("01c9"))}.bind(null,i)).catch(i.oe)},productWindow:function(){i.e("components/productWindow/index").then(function(){return resolve(i("3ffb"))}.bind(null,i)).catch(i.oe)},emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("bc18"))}.bind(null,i)).catch(i.oe)},cusPreviewImg:function(){i.e("components/cusPreviewImg/index").then(function(){return resolve(i("2d84"))}.bind(null,i)).catch(i.oe)}},computed:d(d({fixedTop:function(){return t.getSystemInfoSync().statusBarHeight}},(0,c.mapGetters)(["isLogin","uid","cartNum"])),{},{conHeights:function(){var t="".concat(2*this.pdHeight+104,"rpx");return{height:this.isFooter?t:"calc(100% - env(safe-area-inset-bottom))"}},listH:function(){var t="calc(100% - (".concat(this.fixedTop+96,"px + env(safe-area-inset-bottom)))");return{height:t}}}),mounted:function(){this.getAllCategory()},methods:{getCartNum:function(){var t=this;(0,a.getCartCounts)().then((function(e){t.$store.commit("indexData/setCartNum",e.data.count)}))},getAttrs:function(t){var e=this,i=this;(0,o.getAttr)(t,0).then((function(t){for(var r in i.$set(i.attr,"productAttr",t.data.productAttr),i.$set(i,"productValue",t.data.productValue),i.$set(i,"is_vip",t.data.storeInfo.is_vip),i.$set(i,"storeInfo",t.data.storeInfo),i.skuArr=[],t.data.productValue){var n=t.data.productValue[r];i.skuArr.push(n)}i.skuArr.length||(i.skuArr=[{image:e.storeInfo.image,suk:e.storeInfo.store_name,price:e.storeInfo.price}]),e.$set(e,"selectSku",i.skuArr[0]),i.DefaultSelect()}))},showImg:function(t){this.$refs.cusPreviewImg.open(this.selectSku.suk)},changeSwitch:function(t){var e=this,i=this.skuArr[t];this.$set(this,"selectSku",i);var r=i.suk.split(",");r.forEach((function(t,i){e.$set(e.attr.productAttr[i],"index",r[i])})),i&&(this.$set(this.attr.productSelect,"image",i.image),this.$set(this.attr.productSelect,"price",i.price),this.$set(this.attr.productSelect,"stock",i.stock),this.$set(this.attr.productSelect,"unique",i.unique),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this.attr.productSelect,"vip_price",i.vip_price),this.$set(this,"attrValue",i.suk),this.$set(this,"attrTxt","已选择"))},getAllCategory:function(){var t=this,e=this;(0,o.getCategoryList)().then((function(i){if(i.data.length){i.data.map((function(e){t.$set(e,"showMore",!1),e.children&&e.children.length&&e.children.map((function(e){t.$set(e,"showMore",!1)}))}));var r=i.data;e.categoryTitle=r[0
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/goods_cate/template/template4-create-component',
{
'pages/goods_cate/template/template4-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("bbe4"))
})
},
[['pages/goods_cate/template/template4-create-component']]
]);