"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),l=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/pay.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-button"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-button/hs-button.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onLoad((async u=>{var n,a;console.log("onLoad",u),await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),l.useModel.loadingLabel.value="",l.useModel.loadingShowNumber.value=0,l.useModel.hideStatus.value=!1,l.useModel.payDisabled.value=!1,l.useModel.OrderInfo.value=u,null==(a=o.method)||a.getShow()})),e.onShow((()=>{var e,u,n,a;(null==(u=null==(e=l.useModel)?void 0:e.hideStatus)?void 0:u.value)&&(l.useModel.hideStatus.value=!1,null==(n=o.method)||n.getShow(null),null==(a=o.method)||a.loadShow()),console.log("onShow")})),e.onHide((()=>{var e,o;(null==(o=null==(e=l.useModel)?void 0:e.payDisabled)?void 0:o.value)&&(l.useModel.hideStatus.value=!0)})),e.onUnload((()=>{l.useModel.loadingLabel.value="",l.useModel.loadingShowNumber.value=0,l.useModel.hideStatus.value=!1,l.useModel.payDisabled.value=!1,clearInterval(l.useModel.timer.value)})),(u,n)=>{var a,s,i,d,r,t,v,m;return{a:e.t((null==(s=null==(a=e.unref(l.useModel))?void 0:a.orderShow.value)?void 0:s.amount)||"0.00"),b:e.p({type:"checkbox-filled",size:"23",color:"#48B338"}),c:e.o(e.unref(o.method).onPay),d:e.p({type:"primary",size:"md",disabled:null==(d=null==(i=e.unref(l.useModel))?void 0:i.payDisabled)?void 0:d.value,loading:null==(t=null==(r=e.unref(l.useModel))?void 0:r.payDisabled)?void 0:t.value,loading_label:null==(m=null==(v=e.unref(l.useModel))?void 0:v.loadingLabel)?void 0:m.value,label:"立即支付"})}})});wx.createPage(u);
