pages-custom-index.BIfBMAwZ.js 1.6 KB

1
  1. import{r as t,c as e,w as a,n as s,i as o,o as i,a as r}from"./index-Drdq8Rgk.js";import{P as n,d as p}from"./index.ejesQQN7.js";import{_ as l}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./u-icon.BZ5A4twx.js";import"./uni-app.es.D6sSmWWN.js";import"./index.1y8wTE1L.js";import"./index.C6JO26de.js";import"./cart.xBU3JpT5.js";import"./index.I_5eePpq.js";import"./index.ECcRKgMX.js";import"./mp-html.BDGlEs7Z.js";import"./myCoupon.1vcYf6qR.js";const m=l({components:{Page:n},data:()=>({options:{},page:{},items:[]}),onLoad(t){this.options=t,this.getPageData()},methods:{getPageData(t){const e=this,a=e.options.pageId||0;p(a).then((t=>{const{data:{pageData:a}}=t;e.page=a.page,e.items=a.items,e.setPageBar()})).finally((()=>t&&t()))},setPageBar(){const{page:t}=this;uni.setNavigationBarTitle({title:t.params.title}),uni.setNavigationBarColor({frontColor:"white"===t.style.titleTextColor?"#ffffff":"#000000",backgroundColor:t.style.titleBackgroundColor})}},onPullDownRefresh(){this.getPageData((()=>{uni.stopPullDownRefresh()}))},onShareAppMessage(){const t=this,{page:e}=t;return{title:e.params.shareTitle,path:"/pages/custom/index?"+t.$getShareUrlParams({pageId:t.options.pageId})}},onShareTimeline(){const t=this,{page:e}=t;return{title:e.params.shareTitle,path:"/pages/custom/index?"+t.$getShareUrlParams({pageId:t.options.pageId})}}},[["render",function(n,p,l,m,g,d){const h=t("Page"),u=o;return i(),e(u,{class:"container",style:s(n.appThemeStyle)},{default:a((()=>[r(h,{items:g.items},null,8,["items"])])),_:1},8,["style"])}],["__scopeId","data-v-a85a9bd9"]]);export{m as default};