goods_cate.js 3.1 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods_cate/goods_cate"],{"0525":function(e,t,n){},1882:function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n("0cf0")),i=n("d369"),c=n("8f59"),s=n("2e42"),r={computed:(0,c.mapGetters)(["isLogin","uid"]),components:{goodsCate1:function(){Promise.all([n.e("common/vendor"),n.e("pages/goods_cate/goods_cate1")]).then(function(){return resolve(n("7abf"))}.bind(null,n)).catch(n.oe)},goodsCate2:function(){Promise.all([n.e("common/vendor"),n.e("pages/goods_cate/goods_cate2")]).then(function(){return resolve(n("9747"))}.bind(null,n)).catch(n.oe)},goodsCate3:function(){Promise.all([n.e("common/vendor"),n.e("pages/goods_cate/goods_cate3")]).then(function(){return resolve(n("40b8"))}.bind(null,n)).catch(n.oe)},pageFooter:function(){Promise.all([n.e("common/vendor"),n.e("components/pageFooter/index")]).then(function(){return resolve(n("6175"))}.bind(null,n)).catch(n.oe)}},mixins:[a.default],data:function(){return{category:"",is_diy:e.getStorageSync("is_diy"),status:0,version:"",isNew:!1,isFooter:!1,showBar:!1}},onLoad:function(){},onReady:function(){},onShow:function(){this.getCategoryVersion()},methods:{newDataStatus:function(e,t){this.isFooter=!!e,this.showBar=!!e,this.pdHeight=t},getCategoryVersion:function(){var t=this;e.$emit("uploadFooter"),(0,s.getCategoryVersion)().then((function(n){e.getStorageSync("CAT_VERSION")&&n.data.version==e.getStorageSync("CAT_VERSION")||(e.setStorageSync("CAT_VERSION",n.data.version),e.$emit("uploadCatData")),t.classStyle()}))},jumpIndex:function(){e.reLaunch({url:"/pages/index/index"})},classStyle:function(){var t=this;(0,i.colorChange)("category").then((function(n){var o=n.data.status;t.category=o,e.setStorageSync("is_diy",n.data.is_diy),t.$nextTick((function(a){2==o||3==o?e.hideTabBar():(t.$refs.classOne.is_diy=n.data.is_diy,t.is_diy?t.$refs.classOne.getNav():e.hideTabBar())}))}))}},onReachBottom:function(){2==this.category&&this.$refs.classTwo.productslist(),3==this.category&&this.$refs.classThree.productslist()}};t.default=r}).call(this,n("df3c")["default"])},"2da9":function(e,t,n){"use strict";n.r(t);var o=n("ab8d"),a=n("cc8b");for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("9f0a");var c=n("828b"),s=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"5d0cdfa2",null,!1,o["a"],void 0);t["default"]=s.exports},"9f0a":function(e,t,n){"use strict";var o=n("0525"),a=n.n(o);a.a},a34e:function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("2ea2");o(n("3240"));var a=o(n("2da9"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ab8d:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},a=[]},cc8b:function(e,t,n){"use strict";n.r(t);var o=n("1882"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=a.a}},[["a34e","common/runtime","common/vendor"]]]);