shop-php/public/static/js/pages-goods_cate-goods_cate.1438f3c1.js

1 line
20 KiB
JavaScript
Raw Normal View History

2023-12-21 18:38:16 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_cate-goods_cate"],{"2ba8":function(t,e,o){var n=o("e6cd");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=o("4f06").default;r("ac8753c0",n,!0,{sourceMap:!1,shadowMode:!1})},"37b3":function(t,e,o){"use strict";o.r(e);var n=o("9187"),r=o("bf72");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);o("91d7");var a=o("f0c5"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"5ab094b4",null,!1,n["a"],void 0);e["default"]=c.exports},7052:function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("ac1f"),o("14d9"),o("3c65"),o("d81d"),o("498a");var r=o("a126"),i=(o("cc48"),o("5315")),a=n(o("3516")),c=o("26cb"),s=o("3093"),u=(getApp(),{components:{easyLoadimage:a.default},computed:(0,i.configMap)({navigation:{}},(0,c.mapGetters)(["viewColor","keyColor"])),data:function(){var t;return t=location.hash.substr(1),{domain:s.HTTP_REQUEST_URL,showSkeleton:!0,isNodes:0,navlist:[],hotList:[],productList:[{cate_name:"skeleton",store_category_id:0,children:[{cate_name:"skeleton",store_category_id:10,children:[{cate_name:"",store_category_id:101},{cate_name:"",store_category_id:102},{cate_name:"",store_category_id:103},{cate_name:"",store_category_id:104},{cate_name:"",store_category_id:105},{cate_name:"",store_category_id:106}]},{cate_name:"skeleton",store_category_id:1,children:[{cate_name:"",store_category_id:101},{cate_name:"",store_category_id:102},{cate_name:"",store_category_id:103},{cate_name:"",store_category_id:104},{cate_name:"",store_category_id:105},{cate_name:"",store_category_id:106}]},{cate_name:"",store_category_id:20}]},{cate_name:"skeleton",store_category_id:2,children:[{cate_name:"skeleton",store_category_id:30}]},{cate_name:"skeleton",store_category_id:3,children:[{cate_name:"skeleton",store_category_id:31}]},{cate_name:"skeleton",store_category_id:4,children:[{cate_name:"skeleton",store_category_id:32}]},{cate_name:"skeleton",store_category_id:5,children:[{cate_name:"skeleton",store_category_id:33}]},{cate_name:"skeleton",store_category_id:6,children:[{cate_name:"skeleton",store_category_id:34}]},{cate_name:"skeleton",store_category_id:7,children:[{cate_name:"skeleton",store_category_id:35}]},{cate_name:"skeleton",store_category_id:8,children:[{cate_name:"skeleton",store_category_id:36}]},{cate_name:"skeleton",store_category_id:9,children:[{cate_name:"skeleton",store_category_id:37}]},{cate_name:"skeleton",store_category_id:10,children:[{cate_name:"skeleton",store_category_id:38}]},{cate_name:"skeleton",store_category_id:11,children:[{cate_name:"skeleton",store_category_id:39}]}],navActive:0,activceCate:t,number:"",height:0,hightArr:[],toView:"",winHeight:0,pidIndex:0,intoindex:"",pid:"",newData:{},activeRouter:""}},onLoad:function(t){var e=this,o=uni.getStorageSync("storeIndex");t.activceCate?this.activceCate=t.activceCate:o&&(this.activceCate=o,uni.removeStorageSync("storeIndex")),uni.getSystemInfo({success:function(t){e.winHeight=t.windowHeight}}),document.body.addEventListener("touchmove",(function(t){"/pages/goods_cate/goods_cate"==e.$route.path&&t.preventDefault()}),{passive:!1}),this.getAllCategory()},onShow:function(){var t=this,e=getCurrentPages(),o=e[e.length-1].route;this.activeRouter="/"+o;var n=uni.getStorageSync("storeIndex");n&&(this.activceCate=n,uni.removeStorageSync("storeIndex")),this.activceCate&&(this.getCateFrom(this.productList),n&&setTimeout((function(){return t.tap(t.pidIndex,"b"+t.activceCate)}),200)),this.getNav()},onHide:function(){},onReady:function(){this.isNodes++},methods:{goRouter:function(t){var e=getCurrentPages(),o=e[e.length-1].$page.fullPath;t.link!=o&&uni.switchTab({url:t.link,fail:function(e){uni.redirectTo({url:t.link})}})},getNav:function(){this.newData=this.navigation,this.newData.status&&this.newData.status.status?uni.hideTabBar():uni.showTabBar()},infoScroll:function(){var t=this,e=this;uni.getSystemInfo({success:function(t){e.height=t.win