import{U as R,P as I,r as d,$ as N,a0 as A,N as T,V as v,ai as V,m as l,p as e,Z as p,M as c,aj as g,Y as o,at as x,ad as _,an as E,a2 as f,T as q,o as u,W as G,X as H}from"./common.modules-7ef9f935.js";import{bG as S,A as U,bH as h,a as z,g as M,_ as j}from"./page-activity-ActivityDetail-6651511c.js";import{L as W}from"./page-activity-DailySignIn-ca25ffbf.js";import"./native/index-1870b44d.js";import"./en-fc63d25a.js";import"./page-activity-Championship-f257e4a3.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const F={class:"redeem-container"},Q={class:"redeem-container-header"},X={class:"redeem-container-header-belly"},Y={alt:""},Z={class:"redeem-container-content"},J={class:"redeem-container-receive"},K=["placeholder"],O={key:0},ee={class:"redeem-container-record"},te={class:"redeem-container-record-title"},se={class:"redeem-container-record-itemsBox"},ae={class:"redeem-container-record-item ar-1px-b"},oe={class:"redeem-container-record-item-left"},ne={class:"redeem-container-record-item-right"},ie=["src"],re=R({__name:"index",setup(w){const{t:i}=I(),y=d(!1),b=N(),C=A(),n=d(C.query.hbcode||""),$=d(!0),m=T({pageSize:10,pageNo:1,startDate:null,endDate:null}),r=d({list:[],pageNo:0,totalPage:0,totalCount:0}),P=async()=>{if(n.value.trim()===""){await f({message:i("tipPlsEnterCode")});return}const t=await S({giftCode:n.value});if(t.code===0){q(i("redeemDialogDesc1")),n.value="",await B();return}else await f({message:i(`code${t.msgCode}`)})},B=async()=>{const t=await U(h(m));t&&(r.value.list=t==null?void 0:t.data.list)};return(t,a)=>{const k=v("NavBar"),D=v("svg-icon"),L=V("lazy");return u(),l("div",F,[e("div",Q,[p(k,{title:t.$t("gift"),"left-arrow":"",onClickLeft:a[0]||(a[0]=s=>c(b).go(-1))},null,8,["title"]),e("div",X,[g(e("img",Y,null,512),[[L,c(z)("main","gift")]])])]),e("div",Z,[e("div",J,[e("p",null,o(t.$t("tipHelloVIP")),1),e("p",null,o(t.$t("tipWepreparedGift4u")),1),e("h4",null,o(t.$t("tipPlsEnterRedeemCode")),1),g(e("input",{type:"text","auto-complete":"new-password",autocomplete:"off",placeholder:t.$t("tipPlsEnterCode"),"onUpdate:modelValue":a[1]||(a[1]=s=>n.value=s)},null,8,K),[[x,n.value]]),y.value?(u(),l("h5",O,o(t.$t("tipPlsBindBankcard")),1)):_("v-if",!0),e("button",{onClick:a[2]||(a[2]=s=>P())},o(t.$t("receive")),1)]),e("div",ee,[e("div",te,[p(D,{name:"giftHistory"}),_(` <img :src="getIcons('main', 'gRecord')" /> `),e("span",null,o(t.$t("record")),1)]),e("div",se,[p(W,{list:r.value.list,"onUpdate:list":a[3]||(a[3]=s=>r.value.list=s),"page-query":m,"onUpdate:pageQuery":a[4]||(a[4]=s=>m=s),api:c(h),distance:20,isAutoLoad:$.value},{content:E(()=>[(u(!0),l(G,null,H(r.value.list,s=>(u(),l("div",{class:"redeem-container-record-items",key:s.reserved},[e("div",ae,[e("div",oe,[e("h5",null,o(t.$t("receiveSuccess")),1),e("span",null,o(s.addTime),1)]),e("div",ne,[e("img",{src:c(M)("main","gold")},null,8,ie),e("span",null,o(s.amount),1)])])]))),128))]),_:1},8,["list","page-query","api","isAutoLoad"])])])])])}}});const ve=j(re,[["__scopeId","data-v-695ca243"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/main/RedeemGift/index.vue"]]);export{ve as default};
//# sourceMappingURL=page-main-RedeemGift-97e1888d.js.map
