acdr-ui/dist/build/mp-weixin/page.js

2 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-10-01 09:15:35 +08:00
"use strict";const e=require("./common/vendor.js"),o=require("./modules/mall/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||((()=>"./modules/mall/sheep/components/s-block-item/s-block-item.js")+(()=>"./modules/mall/sheep/components/s-block/s-block.js")+(()=>"./modules/mall/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,s=null,a=function*(){var t,s,a;let l=e.id;e.scene&&(l=decodeURIComponent(e.scene).split("=")[1]);const{code:r,data:p}=yield o.DiyApi.getDiyPage(l);0===r&&(n.name=p.name,n.components=null==(t=p.property)?void 0:t.components,n.navigationBar=null==(s=p.property)?void 0:s.navigationBar,n.page=null==(a=p.property)?void 0:a.page)},new Promise(((e,o)=>{var n=e=>{try{r(a.next(e))}catch(t){o(t)}},l=e=>{try{r(a.throw(e))}catch(t){o(t)}},r=o=>o.done?e(o.value):Promise.resolve(o.value).then(n,l);r((a=a.apply(t,s)).next())}));var t,s,a})),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};exports._sfc_main=t;