"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),u=require("./method.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/pay.js"),require("../../common/libraries/naviHelper.js"),!Array){e.resolveComponent("hs-button")()}Math;const a=e.defineComponent({__name:"index",setup(a){e.ref("");const l=["500","1000","3000","5000"];return e.ref({}),e.onShow((()=>{var e,a,l,r;(null==(l=null==(a=null==(e=o.useModel)?void 0:e.housePrepaymentPayment)?void 0:a.value)?void 0:l.id)&&(null==(r=u.method)||r.loadShow()),console.log("onShow")})),e.onUnload((()=>{o.useModel.loadingShowNumber.value=-1,o.useModel.housePrepaymentPayment.value=void 0})),e.onLoad((e=>{o.useModel.loadingShowNumber.value=-1,o.useModel.formData.value=e})),(a,r)=>{var n,s,i,d,m,t,v,f;return e.e({a:e.t((null==(n=e.unref(o.useModel).formData.value)?void 0:n.full_name)||""),b:e.unref(o.useModel).formData.value.amount,c:e.o((u=>e.unref(o.useModel).formData.value.amount=u.detail.value)),d:e.f(l,((u,a,l)=>({a:e.t(u),b:`pay_${a}`,c:e.o((a=>e.unref(o.useModel).formData.value.amount=u),`pay_${a}`)}))),e:!e.unref(o.useModel).formData.value.amount||(null==(i=null==(s=e.unref(o.useModel))?void 0:s.payDisabled)?void 0:i.value)},!e.unref(o.useModel).formData.value.amount||(null==(m=null==(d=e.unref(o.useModel))?void 0:d.payDisabled)?void 0:m.value)?{f:e.p({type:"disabled",label:"立即支付",loading:null==(v=null==(t=e.unref(o.useModel))?void 0:t.payDisabled)?void 0:v.value,size:"md"})}:{g:e.o(null==(f=e.unref(u.method))?void 0:f.handlePay),h:e.p({type:"primary",label:"立即支付",size:"md"})})}}});wx.createPage(a);
