|
|
+import{f as a,l as e,c as t,w as s,e as n,k as i,i as o,o as r,a as p}from"./index-BorD3juN.js";import{h as d}from"./request.DLuepzRU.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const l=h({name:"alipay",components:{},mixins:[],data:()=>({payUrl:"",hasRenew:1}),computed:{},onLoad(){this.payInit()},mounted(){},methods:{init(){},go(){1==this.hasRenew&&(window.location.href=this.payUrl)},payInit(){let a=this.option.orderSn?this.option.orderSn:"";if(this.$util.isEmpty(a))return this.$msg("没有找到订单编号"),!1;(async a=>d.post("/purchase/ali-pay",a))({orderSn:a}).then((a=>{if(0==a.code)return this.$msg(a.msg),!1;this.hasRenew=a.data.hasRenew?a.data.hasRenew:0,a.data.hasRenew&&1==a.data.hasRenew&&(this.payUrl=a.data.payUrl,window.location.href=this.payUrl)}))}}},[["render",function(d,h,l,c,m,w){const u=i,y=o;return r(),a("div",{class:"app-content pay-wrap"},[e("div",{class:"delivery-wrap"},[e("div",{class:"btn-wrap"},[1==m.hasRenew?(r(),t(u,{key:0,class:"button-com red",onClick:h[0]||(h[0]=a=>w.go())},{default:s((()=>[p("正在打开支付宝...")])),_:1})):n("",!0),0==m.hasRenew?(r(),t(y,{key:1,style:{"margin-top":"50upx","font-size":"40upx","font-weight":"bold","text-align":"center"}},{default:s((()=>[p("商家还未开通此功能")])),_:1})):n("",!0)])])])}],["__scopeId","data-v-ee86ce02"]]);export{l as default};
|