goods_cate.js 3.1 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods_cate/goods_cate"],{"0a44":function(e,t,o){"use strict";o.r(t);var n=o("6452"),s=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(a);t["default"]=s.a},"29fc":function(e,t,o){},"629f":function(e,t,o){"use strict";var n=o("29fc"),s=o.n(n);s.a},"642a":function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){}));var n=function(){var e=this.$createElement;this._self._c},s=[]},6452:function(e,t,o){"use strict";(function(e){var n=o("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(o("5c3b")),a=o("3c98"),c=o("26cb"),r={computed:(0,c.mapGetters)(["isLogin","uid"]),components:{goodsCate1:function(){Promise.all([o.e("common/vendor"),o.e("pages/goods_cate/goods_cate1")]).then(function(){return resolve(o("f83c"))}.bind(null,o)).catch(o.oe)},goodsCate2:function(){Promise.all([o.e("common/vendor"),o.e("pages/goods_cate/goods_cate2")]).then(function(){return resolve(o("bf19"))}.bind(null,o)).catch(o.oe)},goodsCate3:function(){Promise.all([o.e("common/vendor"),o.e("pages/goods_cate/goods_cate3")]).then(function(){return resolve(o("2d6c"))}.bind(null,o)).catch(o.oe)},pageFooter:function(){Promise.all([o.e("common/vendor"),o.e("components/pageFooter/index")]).then(function(){return resolve(o("a225"))}.bind(null,o)).catch(o.oe)}},mixins:[s.default],data:function(){return{category:"",isFooter:!1}},onLoad:function(e){this.classStyle()},onUnload:function(){e.$off("newAttrNum")},onReady:function(){},onShow:function(){2==this.category?(this.$refs.classTwo.getNoCart(),this.$refs.classTwo.getCartList(1)):3==this.category&&(this.$refs.classThree.getNoCart(),this.$refs.classThree.getCartList(1))},methods:{newDataStatus:function(e){this.isFooter=e},otherFun:function(e){e&&(2==this.category&&this.$refs.classTwo.updateFun(e),3==this.category&&this.$refs.classThree.updateFun(e))},classStyle:function(){var e=this;(0,a.colorChange)("category").then((function(t){var o=t.data.status;e.category=o,1==o&&e.$refs.classOne.getAllCategory(),2==o&&(e.isLogin&&e.$refs.classTwo.getCartList(1),e.$refs.classTwo.getAllCategory(),e.$refs.classTwo.getMarTop()),3==o&&(e.isLogin&&e.$refs.classThree.getCartList(1),e.$refs.classThree.getAllCategory(),e.$refs.classThree.getMarTop())}))}},onReachBottom:function(){2==this.category&&this.$refs.classTwo.productslist(),3==this.category&&this.$refs.classThree.productslist()}};t.default=r}).call(this,o("543d")["default"])},a785:function(e,t,o){"use strict";o.r(t);var n=o("642a"),s=o("0a44");for(var a in s)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return s[e]}))}(a);o("629f");var c=o("f0c5"),r=Object(c["a"])(s["default"],n["b"],n["c"],!1,null,"2f121f90",null,!1,n["a"],void 0);t["default"]=r.exports},cbc8:function(e,t,o){"use strict";(function(e,t){var n=o("4ea4");o("59a4");n(o("66fd"));var s=n(o("a785"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(s.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])}},[["cbc8","common/runtime","common/vendor"]]]);