You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/public/assets/pages-index-index.cef2a245.js

1 lines
1.6 KiB

import{s as t,o as e,c as a,w as s,n as o,i,a as r,r as n}from"./index-ae8bbb19.js";import{P as p,d as l}from"./index.18ac7530.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.b463ad8a.js";import"./uni-app.es.ee1d5b08.js";import"./index.88bc1a11.js";import"./mp-html.c15e78a1.js";import"./myCoupon.f3c77da5.js";import"./index.0c0be40a.js";import"./index.002ef29d.js";import"./GoodsStatus.1f0790af.js";import"./u-tag.5476fd14.js";import"./color.813a9497.js";import"./ActiveStatus.281bae5f.js";const g=m({components:{Page:p},data:()=>({options:{},page:{},items:[]}),onLoad(t){this.options=t,this.getPageData()},onShow(){t()},methods:{getPageData(t){const e=this,a=e.options.pageId||0;l(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(t,p,l,m,g,h){const d=n("Page"),u=i;return e(),a(u,{class:"container",style:o(t.appThemeStyle)},{default:s((()=>[r(d,{items:g.items},null,8,["items"])])),_:1},8,["style"])}],["__scopeId","data-v-a41d873d"]]);export{g as default};