page.js 2.5 KB

1
  1. "use strict";const e=require("../../common/vendor.js"),r=require("../../sheep/api/promotion/diy.js");if(require("../../sheep/request/index.js"),require("../../sheep/config/index.js"),require("../../sheep/store/index.js"),require("../../sheep/store/app.js"),require("../../sheep/platform/index.js"),require("../../sheep/platform/provider/wechat/index.js"),require("../../sheep/platform/provider/wechat/miniProgram.js"),require("../../sheep/api/member/auth.js"),require("../../sheep/api/member/social.js"),require("../../sheep/api/member/user.js"),require("../../sheep/platform/provider/apple/index.js"),require("../../sheep/platform/share.js"),require("../../sheep/router/index.js"),require("../../sheep/hooks/useModal.js"),require("../../sheep/helper/index.js"),require("../../sheep/helper/test.js"),require("../../sheep/helper/digit.js"),require("../../sheep/index.js"),require("../../sheep/url/index.js"),require("../../sheep/config/zIndex.js"),require("../../sheep/api/member/signin.js"),require("../../sheep/helper/throttle.js"),require("../../sheep/platform/pay.js"),require("../../sheep/api/pay/order.js"),require("../../sheep/store/user.js"),require("../../sheep/store/cart.js"),require("../../sheep/api/trade/cart.js"),require("../../sheep/api/pay/wallet.js"),require("../../sheep/api/trade/order.js"),require("../../sheep/api/promotion/coupon.js"),require("../../sheep/store/sys.js"),require("../../sheep/store/modal.js"),!Array){(e.resolveComponent("s-block-item")+e.resolveComponent("s-block")+e.resolveComponent("s-layout"))()}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 s={__name:"page",setup(s){const p=e.reactive({name:"",components:[],navigationBar:{},page:{}});return e.onLoad((async e=>{var s,o,i;let t=e.id;if(e.scene){t=decodeURIComponent(e.scene).split("=")[1]}const{code:a,data:n}=await r.DiyApi.getDiyPage(t);0===a&&(p.name=n.name,p.components=null==(s=n.property)?void 0:s.components,p.navigationBar=null==(o=n.property)?void 0:o.navigationBar,p.page=null==(i=n.property)?void 0:i.page)})),e.onPageScroll((()=>{})),(r,s)=>({a:e.f(p.components,((r,s,p)=>({a:"14db8168-2-"+p+",14db8168-1-"+p,b:e.p({type:r.id,data:r.property,styles:r.property.style}),c:s,d:"14db8168-1-"+p+",14db8168-0",e:e.p({styles:r.property.style})}))),b:e.p({title:p.name,navbar:"custom",bgStyle:p.page,navbarStyle:p.navigationBar,onShareAppMessage:!0,showLeftButton:!0})})},__runtimeHooks:3};wx.createPage(s);