import{S as t,s as e,o as a,c as o,w as i,n as s,i as r,a as n,r as p}from"./index-4ddb689d.js";import{P as h,d as l}from"./index.92be63a9.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.e981d1c2.js";import"./uni-app.es.24af5d4f.js";import"./index.cdfc996d.js";import"./mp-html.2b6407c3.js";import"./myCoupon.49a23600.js";import"./index.1169d7d7.js";import"./index.994d85b2.js";import"./GoodsStatus.54b07d63.js";import"./u-tag.99b09b77.js";import"./color.813a9497.js";import"./ActiveStatus.2bcdf502.js";const c=d({components:{Page:h,PrivacyPopup:d({props:{hideTabBar:{type:Boolean,default:!1}},data:()=>({showPrivacy:!1,storeInfo:void 0}),created(){this.getStoreInfo()},methods:{getStoreInfo(){t.storeInfo().then((t=>this.storeInfo=t))},needAuthorization(){const t=this;uni.getPrivacySetting({success({needAuthorization:e,privacyContractName:a}){console.info("getPrivacySetting",{needAuthorization:e,privacyContractName:a}),e&&(t.showPrivacy=!0,t.hideTabBar&&uni.hideTabBar())}})},handlePrivacyContract(){uni.openPrivacyContract()},handleAgreePrivacyAuthorization(){this.hideTabBar&&uni.showTabBar(),this.showPrivacy=!1},handleDisagree(){this.$toast("很抱歉,请先同意后可继续使用~",2e3)}}},[["render",function(t,e,a,o,i,s){return null}],["__scopeId","data-v-ea097e2a"]])},data:()=>({options:{},page:{},items:[]}),onLoad(t){this.options=t,this.getPageData()},onShow(){e()},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,e,h,l,d,c){const m=p("Page"),g=r;return a(),o(g,{class:"container",style:s(t.appThemeStyle)},{default:i((()=>[n(m,{items:d.items},null,8,["items"])])),_:1},8,["style"])}],["__scopeId","data-v-9a082023"]]);export{c as default};