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
15 KiB
11 lines
15 KiB
6 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods_cate/goods_cate3"],{"0b2f":function(t,i,e){"use strict";e.r(i);var r=e("3b6b"),s=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return r[t]}))}(a);i["default"]=s.a},"303b":function(t,i,e){"use strict";e.d(i,"b",(function(){return r})),e.d(i,"c",(function(){return s})),e.d(i,"a",(function(){}));var r=function(){var t=this,i=t.$createElement,e=(t._self._c,t.$t("搜索商品名称")),r=t.__map(t.categoryList,(function(i,e){var r=t.__get_orig(i),s=t.$t(i.cate_name);return{$orig:r,m1:s}})),s=t.iSlong?t.__map(t.categoryErList,(function(i,e){var r=t.__get_orig(i),s=t.$t(i.cate_name);return{$orig:r,m2:s}})):null,a=t.iSlong?null:t.__map(t.categoryErList,(function(i,e){var r=t.__get_orig(i),s=t.$t(i.cate_name);return{$orig:r,m3:s}})),n=t.cartData.cartList.length,c=t.$t("¥"),o=t.$t("去付款");t.$mp.data=Object.assign({},{$root:{m0:e,l0:r,l1:s,l2:a,g0:n,m4:c,m5:o}})},s=[]},"3b6b":function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=e("2a39"),s=e("39ed"),a=e("26cb"),n=e("6557"),c=e("86eb"),o=t.getSystemInfoSync().windowHeight,u=t.getSystemInfoSync().statusBarHeight,h={computed:(0,a.mapGetters)(["isLogin","uid"]),components:{productWindow:function(){e.e("components/productWindow/index").then(function(){return resolve(e("6cd4"))}.bind(null,e)).catch(e.oe)},goodClass:function(){e.e("components/goodClass/index").then(function(){return resolve(e("3267"))}.bind(null,e)).catch(e.oe)},cartList:function(){e.e("components/cartList/index").then(function(){return resolve(e("d182"))}.bind(null,e)).catch(e.oe)},ParabalaBall:function(){e.e("components/parabolaBall/ParabolaBall").then(function(){return resolve(e("34e3"))}.bind(null,e)).catch(e.oe)}},props:{isNew:{type:Boolean,default:!1}},watch:{isNew:function(t){this.getAllCategory(1)}},data:function(){return{windowHeight:o,showCateDrawer:!1,sysHeight:u,categoryList:[],navActive:0,categoryTitle:"",categoryErList:[],tabLeft:0,scrollTop:0,old:{scrollTop:0},isWidth:0,tabClick:0,iSlong:!0,tempArr:[],loading:!1,loadend:!1,loadTitle:this.$t("加载更多"),page:1,limit:10,cid:0,sid:0,isAuto:!1,isShowAuth:!1,attr:{cartAttr:!1,productAttr:[],productSelect:{}},productValue:[],attrValue:"",storeName:"",id:0,cartData:{cartList:[],iScart:!1},cartCount:0,totalPrice:0,lengthCart:0,is_vip:0,cart_num:0,storeInfo:{},endLocation:{},scrollHeight:0}},onShow:function(){},onLoad:function(){var i=this;this.$nextTick((function(){t.createSelectorQuery().select("#cart").boundingClientRect((function(e){var r=t.getSystemInfoSync();r.windowTop;i.endLocation={x:e.left+t.upx2px(120)/2,y:e.top}})).exec()}))},mounted:function(){var i=this,e=this;e.lengthCart=e.cartData.cartList,t.getSystemInfo({success:function(t){e.isWidth=t.windowWidth/5}}),!e.categoryList.length&&this.getAllCategory(1),t.$on("uploadCatData",(function(){i.getAllCategory(1)})),setTimeout((function(){i.scrollHeight=o-80-u}),1e3)},methods:{jumpIndex:function(){this.$emit("jumpIndex")},addCart:function(t){},subOrder:function(){var i=this.cartData.cartList,e=[];if(!i.length)return this.$util.Tips({title:this.$t("请选择产品")});i.forEach((function(t){e.push(t.id)})),t.navigateTo({url:"/pages/goods/order_confirm/index?cartId="+e.join(",")}),this.cartData.iScart=!1},getTotalPrice:function(){var t=this,i=t.cartData.cartList,e=0;i.forEach((function(i){i.attrStatus&&i.status&&(e=t.$util.$h.Add(e,t.$util.$h.Mul(i.cart_num,i.truePrice)))})),t.$set(t,"totalPrice",e)},ChangeSubDel:function(t){var i=this,e=i.cartData.cartList,r=[];e.forEach((function(t){r.push(t.id)})),(0,s.cartDel)(r.join(",")).then((function(t){i.$set(i.cartData,"cartList",[]),i.cartData.iScart=!1,i.totalPrice=0,i.page=1,i.loadend=!1,i.tempArr=[],i.productslist(),i.getCartNum()}))},ChangeOneDel:function(t,i){var e=this,r=e.cartData.cartList;(0,s.cartDel)(t.toString()).then((function(t){r.splice(i,1),r.length||(e.cartData.iScart=!1,e.page=1,e.loadend=!1,e.tempArr=[],e.productslist()),e.getCartNum()}))},getCartList:function(t){var i=this;
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'pages/goods_cate/goods_cate3-create-component',
|
||
|
{
|
||
|
'pages/goods_cate/goods_cate3-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('543d')['createComponent'](__webpack_require__("ada7"))
|
||
|
})
|
||
|
},
|
||
|
[['pages/goods_cate/goods_cate3-create-component']]
|
||
|
]);
|