acdr-ui/dist/build/mp-weixin/modules/mall/index/index.js

2 lines
1.4 KiB
JavaScript

"use strict";const e=require("../../../common/vendor.js"),t=require("../../../sheep/index.js"),o=require("../../../sheep/platform/share.js"),s=require("../../../sheep/api/member/auth.js");if(!Array){e.resolveComponent("layout-default-uni")()}Math||(n+p+r)();const n=()=>"../../../sheep/components/s-block-item/s-block-item.js",p=()=>"../../../sheep/components/s-block/s-block.js",r=()=>"../../../sheep/components/s-layout/s-layout.js",a={__name:"index",setup(n){e.index.hideTabBar();const p=e.computed((()=>{var e;return null==(e=t.sheep.$store("app").template)?void 0:e.home}));return e.onLoad((e=>{if(e.token&&e["refresh-token"]&&s.AuthUtil.refreshToken(e["refresh-token"]),e.scene){const t=decodeURIComponent(e.scene).split("=");e[t[0]]=t[1]}e.templateId&&t.sheep.$store("app").init(e.templateId),e.spm&&o.$share.decryptSpm(e.spm),e.page&&t.sheep.$router.go(decodeURIComponent(e.page))})),e.onPullDownRefresh((()=>{t.sheep.$store("app").init(),setTimeout((function(){e.index.stopPullDownRefresh()}),800)})),e.onPageScroll((()=>{})),(t,o)=>e.e({a:p.value},p.value?{b:e.f(p.value.components,((t,o,s)=>({a:"f48bccd8-3-"+s+",f48bccd8-2-"+s,b:e.p({data:t.property,styles:t.property.style,type:t.id}),c:o,d:"f48bccd8-2-"+s+",f48bccd8-1",e:e.p({styles:t.property.style})}))),c:e.p({bgStyle:p.value.page,navbarStyle:p.value.navigationBar,navbar:"custom",onShareAppMessage:!0,tabbar:"/modules/mall/index/index",title:"首页"})}:{})},__runtimeHooks:3};wx.createPage(a);