import{o as d,g as c,b as s,w as a,u as n,F as u,f as i,a as t,t as l,D as h,h as _,d as w,e as y}from"./app-BYcXwl4U.js";import{i as g,c as C}from"./app-a6cKceqE.js";import{P as S}from"./app-CberKKnC.js";import{_ as x}from"./app-CignoBaV.js";import{_ as k}from"./app-CQ-vNlMj.js";import{T,_ as v,a as m}from"./app-CxLTQg0E.js";import{D as I}from"./app-7GBSHA5C.js";import"./app-Dm54XnL8.js";import"./app-Btbk6LWy.js";import"./app-CrjU8lgK.js";function b(){const{utils:r,Tea:e}=g(this);this.goBack=function(){window.history.back()},this.success=function(o){if(o.data.success){r.success("实例续费成功",function(){window.location="/anti-ddos/instances"});return}o.data.orderCode.length>0&&(window.location="/finance/pay?code="+o.data.orderCode+"&from="+window.escape(window.location.toString())+"&returnURL=/anti-ddos/instances")},this.methodCode="@balance",this.changePayMethod=function(o){this.methodCode=o}}const D=t("a",{href:"/anti-ddos/instances"},"选择要续费的实例",-1),N=["value"],V=["value"],B=t("td",{class:"title"},"高防实例",-1),$={key:0},P=t("td",null,"价格",-1),A=t("td",null,"支付方式",-1),F={key:0,class:"red"},L=t("a",{href:"/anti-ddos/instances"},"上一步",-1),O={__name:"renewConfirm",setup(r){const e=C(new b);return(o,M)=>(d(),c(u,null,[s(T,{step:"pay"},{default:a(()=>[s(v,null,{default:a(()=>[s(m,null,{default:a(()=>[D]),_:1}),s(m,{code:"pay"},{default:a(()=>[i(" 支付 ")]),_:1})]),_:1})]),_:1}),s(k,{action:"$",onSuccess:n(e).success,class:"mt-2"},{default:a(()=>[t("input",{type:"hidden",name:"userInstanceId",value:n(e).userInstanceId},null,8,N),t("input",{type:"hidden",name:"periodId",value:n(e).periodId},null,8,V),s(I,null,{default:a(()=>[t("tbody",null,[t("tr",null,[B,t("td",null,[i("["+l(n(e).packageSummary)+" / ",1),(d(!0),c(u,null,h(n(e).ipAddresses,(f,p)=>(d(),c("span",null,[i(l(f),1),p!=n(e).ipAddresses.length-1?(d(),c("span",$,",")):_("",!0)]))),256)),i(" / 当前有效期至"+l(n(e).dayTo)+" / 新增"+l(n(e).periodName)+"]",1)])]),t("tr",null,[P,t("td",null,"￥"+l(n(e).amount)+"元",1)]),t("tr",null,[A,t("td",null,[s(S)])])])]),_:1}),w(s(x,null,{default:a(()=>[i("确定续费")]),_:1},512),[[y,n(e).amount>0]]),n(e).amount==0?(d(),c("span",F,"参数错误，请返回重新选择。")):_("",!0),i("   "),L]),_:1},8,["onSuccess"])],64))}};export{O as default};
