import{r as e,G as a,b as i,q as s,h as l,I as o,u as t,n,x as m,s as u,af as d,o as c,bf as r,K as v,F as p,e as h,t as g,f as w,av as f}from"./vendor-jA_NIjzi.js";import{u as k,ce as b,cf as x,cg as _,ch as y,ci as S}from"./common-utils-8H8K2JPG.js";import{_ as V,b as q,bh as A}from"./common-store-e_1WBubm.js";import{H as j}from"./Header-hbN0HDAk.js";import{S as C}from"./SvgIcon-unOD6nfS.js";import"./vendor-crypto-Vtl7-GZS.js";import"./vendor-mqtt-lYGapirz.js";/* empty css              */const P={class:"telService"},T={class:"telService-box"},G=["onClick"],U={class:"span"},D=["src"],L=["onClick"],I=["src"],O={class:"telService-bottom"},R=V({__name:"index",setup(V){const{theme:R}=k(),H=new URL("@/assets/images/mine/Check button.png",import.meta.url).href,z=new URL(Object.assign({"../../../assets/images/mine/blackGold/darkDxan.svg":b,"../../../assets/images/mine/blackGold/lightDxan.svg":x,"../../../assets/images/mine/blackGold/redDxan.svg":_,"../../../assets/images/mine/blackGold/violetDxan.svg":y,"../../../assets/images/mine/blackGold/whiteGoldDxan.svg":S})["../../../assets/images/mine/blackGold/".concat(R.value,"Dxan.svg")],import.meta.url).href,F=q(),K=e({mobile:"",message:"",faq:"",isPopupShow:!1,options:[{id:1,name:"存取款问题"},{id:2,name:"优惠问题"},{id:3,name:"账户信息问题"},{id:4,name:"游戏问题"},{id:5,name:"其他问题"}],optActive:"",time:"",isTime:!1,timeOpt:[{id:0,name:"11:00-14:00"},{id:1,name:"14:00-18:00"},{id:2,name:"18:00-21:00"}],timeActive:0}),B=a((()=>!!([""].includes(K.value.mobile)||[""].includes(K.value.message)||[""].includes(K.value.faq)||[""].includes(K.value.time)))),E=(e,a)=>{"faq"===e?(K.value.optActive=a.id,K.value.faq=a.name,K.value.isPopupShow=!1):(K.value.timeActive=a.id,K.value.time=a.name,K.value.isTime=!1)},J=async()=>{if(B.value)return;F.showPartialLoading();const e=await A({answerTime:K.value.time,description:K.value.message,mobile:K.value.mobile,questionContent:K.value.optActive,questionType:K.value.optActive});if(!e.success)return e.message&&u(e.message);u("提交成功"),K.value={},F.clearPartialLoading()};return(e,a)=>{const u=f,k=d;return c(),i("div",P,[s(j,{title:"电话客服",isRightShow:!1}),l("div",T,[s(t(r),{inset:""},{default:o((()=>[s(u,{modelValue:K.value.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>K.value.mobile=e),maxlength:"11",placeholder:"请输入绑定的手机号"},null,8,["modelValue"])])),_:1}),s(t(r),{inset:""},{default:o((()=>[s(u,{modelValue:K.value.faq,"onUpdate:modelValue":a[1]||(a[1]=e=>K.value.faq=e),readonly:"",name:"picker",placeholder:"请选择您的问题",onClick:a[2]||(a[2]=e=>K.value.isPopupShow=!K.value.isPopupShow),"right-icon":K.value.isPopupShow?"arrow-up":"arrow-down"},v({_:2},["light"===t(R)?{name:"right-icon",fn:o((()=>[s(C,{name:"downArrow",width:"12px",height:"12px"})])),key:"0"}:void 0]),1032,["modelValue","right-icon"])])),_:1}),s(t(r),{class:"telService-box-item",inset:""},{default:o((()=>[s(u,{modelValue:K.value.message,"onUpdate:modelValue":a[3]||(a[3]=e=>K.value.message=e),rows:"6",autosize:"",type:"textarea",maxlength:"500",placeholder:"请详细描述您遇到的问题（必填）","show-word-limit":""},null,8,["modelValue"]),s(k,{class:"select",show:K.value.isPopupShow,"onUpdate:show":a[4]||(a[4]=e=>K.value.isPopupShow=e),position:"top",overlay:!1},{default:o((()=>[(c(!0),i(p,null,h(K.value.options,(e=>(c(),i("div",{key:e.id,onClick:a=>E("faq",e)},[l("span",U,g(e.name),1),e.id===K.value.optActive?(c(),i("img",{key:0,src:["light"].includes(t(R))?t(H):t(z),alt:""},null,8,D)):w("",!0)],8,G)))),128))])),_:1},8,["show"])])),_:1}),s(t(r),{inset:""},{default:o((()=>[s(u,{modelValue:K.value.time,"onUpdate:modelValue":a[5]||(a[5]=e=>K.value.time=e),readonly:"",name:"picker",placeholder:"请选择您方便接听的时间","right-icon":K.value.isTime?"arrow-up":"arrow-down",onClick:a[6]||(a[6]=e=>K.value.isTime=!K.value.isTime)},v({_:2},["light"===t(R)?{name:"right-icon",fn:o((()=>[s(C,{name:"downArrow",width:"12px",height:"12px"})])),key:"0"}:void 0]),1032,["modelValue","right-icon"])])),_:1}),s(k,{class:"select-time",show:K.value.isTime,"onUpdate:show":a[7]||(a[7]=e=>K.value.isTime=e),position:"top",overlay:!1},{default:o((()=>[(c(!0),i(p,null,h(K.value.timeOpt,(e=>(c(),i("div",{key:e.id,onClick:a=>E("time",e)},[l("span",null,g(e.name),1),e.id===K.value.timeActive?(c(),i("img",{key:0,src:["light"].includes(t(R))?t(H):t(z),alt:""},null,8,I)):w("",!0)],8,L)))),128))])),_:1},8,["show"])]),l("div",O,[l("div",{class:n(["btn",{active:!B.value}]),onClick:J},"提交",2),a[8]||(a[8]=l("div",{class:"tips"},[l("p",null,"温馨提示："),m(" 电话客服在线时间为11:00~21:00，请简单描述您的问题，客服将在工作期间第一时间与您联系，为了更好的服务，请保持手机畅通。 ")],-1))])])}}},[["__scopeId","data-v-f74095c2"],["__file","index.vue"]]);export{R as default};
