Files
2026-03-18 11:22:12 +08:00

2 lines
3.2 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{x as B,_ as I}from"./index-CP9YHUOF.js";import{s as o,a as N,c as P,o as _,b as U}from"./index-QPcHmRtJ.js";import{u as $}from"./index-CB_W4Mz-.js";import{B as A,I as f,X as v,C as a,D as r,H as g,u as e,P as u,_ as m,p as D,G as s,U as t,V as d,Z as k,O as y,W as b}from"./vue-BqYd3Ike.js";import"./terminal-DKJcZrof.js";const O={key:0,class:"order-info"},E={class:"order-info-item"},M={class:"order-info-item"},z={class:"order-info-item"},W={class:"order-info-item"},j={key:0,class:"order-price"},F={key:1,class:"order-price"},G={class:"order-footer"},H={class:"order-agreement"},S={href:"https://doc.buildadmin.com/guide/other/appendix/templateAgreement.html",target:"_blank",rel:"noopener noreferrer"},T={class:"order-info-buttons"},X=A({__name:"buy",setup(Z){const{t:l}=B.useI18n(),h=$();return(q,n)=>{const x=f("el-alert"),C=f("el-checkbox"),c=f("el-button"),V=f("el-dialog"),p=v("blur"),w=v("loading");return a(),r("div",null,[g(V,{modelValue:e(o).dialog.buy,"onUpdate:modelValue":n[6]||(n[6]=i=>e(o).dialog.buy=i),class:"buy-dialog",title:e(l)("module.Confirm order info"),top:"20vh",width:"28%"},{default:u(()=>[m((a(),r("div",null,[g(x,{title:e(l)("module.Module installation warning"),type:"error",center:!0,closable:!1},null,8,["title"]),e(D)(e(o).buy.info)?b("",!0):(a(),r("div",O,[s("div",E,t(e(l)("module.Order title"))+""+t(e(o).buy.info.title),1),s("div",M,t(e(l)("module.Order No"))+""+t(e(o).buy.info.sn),1),s("div",z,t(e(l)("module.Purchase user"))+""+t(e(N)(e(h))),1),s("div",W,[d(t(e(l)("module.Order price"))+" ",1),e(o).buy.info.purchased?(a(),r("span",F,t(e(l)("module.Purchased, can be installed directly")),1)):(a(),r("span",j,t(e(P)(e(o).buy.info.amount,e(o).buy.info.pay.money?1:0)),1))]),s("div",G,[s("div",H,[g(C,{modelValue:e(o).buy.agreement,"onUpdate:modelValue":n[0]||(n[0]=i=>e(o).buy.agreement=i),size:"small",label:""},null,8,["modelValue"]),s("span",null,[d(t(e(l)("module.Understand and agree"))+"《 ",1),s("a",S,t(e(l)("module.Module purchase and use agreement")),1),n[7]||(n[7]=d(" 》 "))])]),s("div",T,[e(o).buy.info.purchased?m((a(),y(c,{key:1,loading:e(o).loading.common,onClick:n[5]||(n[5]=i=>e(U)(e(o).buy.info.uid,e(o).buy.info.id,!0)),type:"warning"},{default:u(()=>[d(t(e(l)("module.Install now")),1)]),_:1},8,["loading"])),[[p]]):(a(),r(k,{key:0},[e(o).buy.info.pay.score?m((a(),y(c,{key:0,loading:e(o).loading.common,onClick:n[1]||(n[1]=i=>e(_)("score")),type:"warning"},{default:u(()=>[d(t(e(l)("module.Point payment")),1)]),_:1},8,["loading"])),[[p]]):b("",!0),e(o).buy.info.pay.money?(a(),r(k,{key:1},[m((a(),y(c,{loading:e(o).loading.common,onClick:n[2]||(n[2]=i=>e(_)("balance")),type:"warning"},{default:u(()=>[d(t(e(l)("module.Balance payment")),1)]),_:1},8,["loading"])),[[p]]),m((a(),y(c,{loading:e(o).loading.common,onClick:n[3]||(n[3]=i=>e(_)("wx")),type:"success"},{default:u(()=>[d(t(e(l)("module.Wechat payment")),1)]),_:1},8,["loading"])),[[p]]),m((a(),y(c,{loading:e(o).loading.common,onClick:n[4]||(n[4]=i=>e(_)("zfb")),type:"primary"},{default:u(()=>[d(t(e(l)("module.Alipay payment")),1)]),_:1},8,["loading"])),[[p]])],64)):b("",!0)],64))])])]))])),[[w,e(o).loading.buy]])]),_:1},8,["modelValue","title"])])}}}),Y=I(X,[["__scopeId","data-v-13d418e1"]]);export{Y as default};