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

2 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";const e=require("../../../common/vendor.js"),o=require("../../../sheep/api/promotion/diy.js");if(!Array){(e.resolveComponent("s-block-item")+e.resolveComponent("s-block")+e.resolveComponent("s-layout")+e.resolveComponent("layout-default-uni"))()}Math||((()=>"../../../sheep/components/s-block-item/s-block-item.js")+(()=>"../../../sheep/components/s-block/s-block.js")+(()=>"../../../sheep/components/s-layout/s-layout.js"))();const t={__name:"page",setup(t){const n=e.reactive({name:"",components:[],navigationBar:{},page:{}});return e.onLoad((e=>{return t=this,a=null,s=function*(){var t,a,s;let r=e.id;e.scene&&(r=decodeURIComponent(e.scene).split("=")[1]);const{code:p,data:l}=yield o.DiyApi.getDiyPage(r);0===p&&(n.name=l.name,n.components=null==(t=l.property)?void 0:t.components,n.navigationBar=null==(a=l.property)?void 0:a.navigationBar,n.page=null==(s=l.property)?void 0:s.page)},new Promise(((e,o)=>{var n=e=>{try{p(s.next(e))}catch(t){o(t)}},r=e=>{try{p(s.throw(e))}catch(t){o(t)}},p=o=>o.done?e(o.value):Promise.resolve(o.value).then(n,r);p((s=s.apply(t,a)).next())}));var t,a,s})),e.onPageScroll((()=>{})),(o,t)=>({a:e.f(n.components,((o,t,n)=>({a:"498bb13d-3-"+n+",498bb13d-2-"+n,b:e.p({type:o.id,data:o.property,styles:o.property.style}),c:t,d:"498bb13d-2-"+n+",498bb13d-1",e:e.p({styles:o.property.style})}))),b:e.p({title:n.name,navbar:"custom",bgStyle:n.page,navbarStyle:n.navigationBar,onShareAppMessage:!0,showLeftButton:!0})})},__runtimeHooks:3};wx.createPage(t);