| 1 |
- import{o as t,c as e,w as a,n as s,i,a as o,r}from"./index-b2e89937.js";import{P as n,d as p}from"./index.052b3880.js";import{_ as l}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.3564f78b.js";import"./uni-app.es.868efe30.js";import"./index.445320ce.js";import"./mp-html.a767c004.js";import"./myCoupon.2db44d16.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{page:t}=this;return{title:t.params.shareTitle,path:"/pages/index/index?"+this.$getShareUrlParams()}},onShareTimeline(){const{page:t}=this;return{title:t.params.shareTitle,path:"/pages/index/index?"+this.$getShareUrlParams()}}},[["render",function(n,p,l,m,g,h){const d=r("Page"),u=i;return t(),e(u,{class:"container",style:s(n.appThemeStyle)},{default:a((()=>[o(d,{items:g.items},null,8,["items"])])),_:1},8,["style"])}],["__scopeId","data-v-c0a00b65"]]);export{m as default};
|