buy-5684eff5.js 2.9 KB

1
  1. import{u as B,s as o}from"./store-5ff6cbac.js";import{s as N,c as I,o as f,a as P}from"./index-0ec044bf.js";import{f as U,_ as $}from"./index-ba596ae9.js";import{h as A,p as l,l as d,q as g,N as u,a6 as c,k as e,i as D,o as s,V as t,W as r,T as v,M as p,a4 as b,t as y,a7 as k}from"./vue-a39e6937.js";const M={key:0,class:"order-info"},O={class:"order-info-item"},E={class:"order-info-item"},T={class:"order-info-item"},W={class:"order-info-item"},q={key:0,class:"order-price"},z={key:1,class:"order-price"},F={class:"order-footer"},S={class:"order-agreement"},j={href:"https://doc.buildadmin.com/guide/other/appendix/templateAgreement.html",target:"_blank"},G={class:"order-info-buttons"},H=A({__name:"buy",setup(J){const{t:n}=U(),h=B();return(K,a)=>{const V=y("el-alert"),x=y("el-checkbox"),m=y("el-button"),w=y("el-dialog"),_=k("blur"),C=k("loading");return l(),d("div",null,[g(w,{modelValue:e(o).dialog.buy,"onUpdate:modelValue":a[5]||(a[5]=i=>e(o).dialog.buy=i),class:"buy-dialog",title:e(n)("module.Confirm order info"),top:"20vh",width:"28%"},{default:u(()=>[c((l(),d("div",null,[g(V,{title:e(n)("module.Module installation warning"),type:"error",center:!0,closable:!1},null,8,["title"]),e(D)(e(o).buy.info)?b("",!0):(l(),d("div",M,[s("div",O,t(e(n)("module.Order title"))+":"+t(e(o).buy.info.title),1),s("div",E,t(e(n)("module.Order No"))+":"+t(e(o).buy.info.sn),1),s("div",T,t(e(n)("module.Purchase user"))+":"+t(e(N)(e(h))),1),s("div",W,[r(t(e(n)("module.Order price"))+": ",1),e(o).buy.info.purchased?(l(),d("span",z,t(e(n)("module.Purchased, can be installed directly")),1)):(l(),d("span",q,t(e(I)(e(o).buy.info.amount,e(o).buy.info.pay.money?1:0)),1))]),s("div",F,[s("div",S,[g(x,{modelValue:e(o).buy.agreement,"onUpdate:modelValue":a[0]||(a[0]=i=>e(o).buy.agreement=i),size:"small",label:""},null,8,["modelValue"]),s("span",null,[r(t(e(n)("module.Understand and agree"))+"《 ",1),s("a",j,t(e(n)("module.Module purchase and use agreement")),1),r(" 》 ")])]),s("div",G,[e(o).buy.info.purchased?c((l(),p(m,{key:1,loading:e(o).loading.common,onClick:a[4]||(a[4]=i=>e(P)(e(o).buy.info.uid,e(o).buy.info.id)),type:"warning"},{default:u(()=>[r(t(e(n)("module.Install now")),1)]),_:1},8,["loading"])),[[_]]):(l(),d(v,{key:0},[e(o).buy.info.pay.score?c((l(),p(m,{key:0,loading:e(o).loading.common,onClick:a[1]||(a[1]=i=>e(f)("score")),type:"warning"},{default:u(()=>[r(t(e(n)("module.Point payment")),1)]),_:1},8,["loading"])),[[_]]):b("",!0),e(o).buy.info.pay.money?(l(),d(v,{key:1},[c((l(),p(m,{loading:e(o).loading.common,onClick:a[2]||(a[2]=i=>e(f)("balance")),type:"warning"},{default:u(()=>[r(t(e(n)("module.Balance payment")),1)]),_:1},8,["loading"])),[[_]]),c((l(),p(m,{loading:e(o).loading.common,onClick:a[3]||(a[3]=i=>e(f)("wx")),type:"success"},{default:u(()=>[r(t(e(n)("module.Wechat payment")),1)]),_:1},8,["loading"])),[[_]])],64)):b("",!0)],64))])])]))])),[[C,e(o).loading.buy]])]),_:1},8,["modelValue","title"])])}}});const Y=$(H,[["__scopeId","data-v-4437047a"]]);export{Y as default};