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
13 KiB

1 year ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods_cate/goods_cate2"],{"0140c":function(t,i,e){"use strict";e.r(i);var r=e("3627"),a=e("83eb");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);e("5129");var c=e("f0c5"),n=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);i["default"]=n.exports},3627:function(t,i,e){"use strict";e.d(i,"b",(function(){return r})),e.d(i,"c",(function(){return a})),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),a=t.$t(i.cate_name);return{$orig:r,m1:a}})),a=t.iSlong?t.__map(t.categoryErList,(function(i,e){var r=t.__get_orig(i),a=t.$t(i.cate_name);return{$orig:r,m2:a}})):null,s=t.iSlong?null:t.__map(t.categoryErList,(function(i,e){var r=t.__get_orig(i),a=t.$t(i.cate_name);return{$orig:r,m3:a}})),c=t.cartData.cartList.length,n=t.$t("¥"),o=t.$t("去付款");t.$mp.data=Object.assign({},{$root:{m0:e,l0:r,l1:a,l2:s,g0:c,m4:n,m5:o}})},a=[]},5129:function(t,i,e){"use strict";var r=e("7878"),a=e.n(r);a.a},7878:function(t,i,e){},"83eb":function(t,i,e){"use strict";e.r(i);var r=e("8990"),a=e.n(r);for(var s in r)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return r[t]}))}(s);i["default"]=a.a},8990:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=e("1579"),a=e("451d"),s=e("26cb"),c=e("2c78"),n=e("666f"),o={props:{isNew:{type:Boolean,default:!1}},watch:{isNew:function(t){this.getAllCategory(1)}},computed:(0,s.mapGetters)(["isLogin","uid"]),components:{productWindow:function(){e.e("components/productWindow/index").then(function(){return resolve(e("e642"))}.bind(null,e)).catch(e.oe)},goodList:function(){e.e("components/catGoodList/index").then(function(){return resolve(e("5d38"))}.bind(null,e)).catch(e.oe)},cartList:function(){e.e("components/cartList/index").then(function(){return resolve(e("17ca"))}.bind(null,e)).catch(e.oe)}},data:function(){return{categoryList:[],navActive:0,categoryTitle:"",categoryErList:[],tabLeft: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,is_vip:0,cart_num:0,storeInfo:{}}},mounted:function(){var i=this;t.getSystemInfo({success:function(t){i.isWidth=t.windowWidth/5}})},methods:{jumpIndex:function(){this.$emit("jumpIndex")},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,a.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,a.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;(0,a.vcartList)().then((function(e){i.$set(i.cartData,"cartList",e.data),e.data.length?i.$set(i.cartData,"iScart",!t&&!i.cartData.iScart):i.$set(i.cartData,"iScart",!1),i.getTotalPrice()}))},closeList:function(t){this.$set(this.cartData,"iScart",t),this.page=1,this.loadend=!1,this.tempArr=[],this.productslist()},getCartNum:function(){var t=this;(0,a.getCartCounts)().then((function(i){t.cartCount=i.data.count,t.$refs.d_go
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/goods_cate/goods_cate2-create-component',
{
'pages/goods_cate/goods_cate2-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("0140c"))
})
},
[['pages/goods_cate/goods_cate2-create-component']]
]);