import{o as d,g as u,b as a,w as s,u as o,F as m,a as t,t as i,f as l,i as p}from"./app-SC54XQDl.js";import{i as _,c as f}from"./app-Ba7ZqSpq.js";import{_ as h}from"./app-CJzth4gJ.js";import{_ as g}from"./app-DFulsyXy.js";import{_ as v}from"./app-DWUwCFNm.js";import{P as w}from"./app-CnAvS_S8.js";import{D as k}from"./app-ZeVDYyDS.js";import"./app-CL60OiIv.js";import"./app-D9TrJBlL.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-Dhl-Bw0H.js";import"./app-B2C_dtYI.js";import"./app-COidJXl1.js";import"./app-CNHjdV6U.js";import"./app-Y56vIEoR.js";import"./app-D_RBJHM6.js";function y(){const{utils:r,Tea:e}=_(this);this.goBack=function(){window.history.back()},this.success=function(n){if(n.data.success){r.success("流量包购买成功",function(){window.location="/servers/packages"});return}n.data.orderCode.length>0&&(window.location="/finance/pay?code="+n.data.orderCode+"&from="+window.escape(window.location.toString())+"&returnURL=/servers/packages")},this.methodCode="@balance",this.changePayMethod=function(n){this.methodCode=n}}const x=["value"],b=["value"],C=["value"],I=["value"],N=t("td",{class:"title"},"流量包",-1),B=t("td",null,"价格",-1),S=t("td",null,"支付方式",-1),K={__name:"confirm",setup(r){const e=f(new y);return(n,c)=>(d(),u(m,null,[a(h,{"active-tab":"buy"}),a(g,{action:"$",onSuccess:o(e).success},{default:s(()=>[t("input",{type:"hidden",name:"packageId",value:o(e).packageId},null,8,x),t("input",{type:"hidden",name:"regionId",value:o(e).regionId},null,8,b),t("input",{type:"hidden",name:"periodId",value:o(e).periodId},null,8,C),t("input",{type:"hidden",name:"count",value:o(e).count},null,8,I),a(k,null,{default:s(()=>[t("tbody",null,[t("tr",null,[N,t("td",null,"["+i(o(e).packageName)+" / "+i(o(e).regionName)+" / "+i(o(e).periodName)+"] x "+i(o(e).count),1)]),t("tr",null,[B,t("td",null,"￥"+i(o(e).amount)+"元",1)]),t("tr",null,[S,t("td",null,[a(w)])])])]),_:1}),a(v,null,{default:s(()=>[l("确定购买")]),_:1}),l("   "),t("a",{href:"/servers/packages/buy",onClick:c[0]||(c[0]=p($=>o(e).goBack(),["prevent"]))},"上一步")]),_:1},8,["onSuccess"])],64))}};export{K as default};
