import{U as a,r as e,bb as l,j as s,b as t,q as i,I as c,u as o,n,b9 as d,aF as m,o as r,F as u,e as b,h as v,y as g,t as p,f as k,s as y,bj as f,be as h,b3 as _}from"./vendor-jA_NIjzi.js";import{u as j,l as w,A as G,aI as P}from"./common-utils-RDWuRZ1M.js";import{_ as S,b as T,br as x,bs as I}from"./common-store-kFD1YPwN.js";/* empty css              */import{S as C}from"./SvgIcon-a1Rg7hQY.js";import"./vendor-crypto-Vtl7-GZS.js";import"./vendor-mqtt-lYGapirz.js";const q={class:"cell-title"},A={class:"cell-title-left"},V=["src"],F=["src"],L={class:"cell-title-left-sub"},R={class:"cell-content"},U={class:"cell-content-body"},D={class:"cell-value"},J={class:"cell-value-body"},N=["src"],O={key:0,style:{"padding-top":"8rem"}},W=S({__name:"index",setup(S){const{t:W}=a(),{theme:z}=j(),B=e(!0),E=e([]),H=T(),K={31:{img:w("mine/blackGold/".concat(z.value,"Recharge.svg")),label:W("充值")},32:{img:w("mine/blackGold/".concat(z.value,"Withdrwa.svg")),label:W("提款")},33:{img:w("mine/blackGold/".concat(z.value,"Game.svg")),label:W("游戏")},34:{img:w("mine/blackGold/".concat(z.value,"gifts.svg")),label:W("优惠")},35:{img:w("mine/blackGold/".concat(z.value,"-login.svg")),label:W("登录")},36:{img:w("mine/blackGold/".concat(z.value,"APP.svg")),label:"APP"},37:{img:w("mine/blackGold/".concat(z.value,"other.svg")),label:W("其他")}},M=async()=>{H.showPartialLoading(),B.value=!0,E.value=[],await(async()=>{const a=await I();a.data&&(E.value=[...a.data]),1!==a.code&&y(a.message)})(),setTimeout((()=>{B.value=!1,H.clearPartialLoading()}),1e3)};return l((async()=>{await M()})),s((async()=>{await M()})),(a,e)=>{const l=d,s=f,y=h,j=_,S=m;return r(),t("div",{class:n(["feedback-detail",{"feedback-detail-list":E.value.length>0}])},[i(l,{title:o(W)("我的反馈"),border:!1},{left:c((()=>[i(C,{name:"backIcon",onClick:e[0]||(e[0]=a=>o(G).go(-1))})])),_:1},8,["title"]),i(S,{modelValue:B.value,"onUpdate:modelValue":e[1]||(e[1]=a=>B.value=a),onRefresh:M,class:"feedback-list"},{default:c((()=>[(r(!0),t(u,null,b(E.value,(a=>(r(),t("div",{key:a.id,class:"feedback-item"},[i(y,{class:"feedback-cell",border:!1,onClick:e=>(async a=>{1===a.status&&0===a.readStatus&&await x({id:a.id,readStatus:1}),G.push({path:"/feedback-detail/myDetail",query:{item:JSON.stringify(a)}})})(a)},{title:c((()=>[v("div",q,[v("div",A,[1===a.status&&0===a.readStatus?(r(),g(s,{key:0,dot:""},{default:c((()=>[v("img",{src:K[+a.problemType].img,alt:""},null,8,V)])),_:2},1024)):(r(),t("img",{key:1,src:K[+a.problemType].img,alt:""},null,8,F)),v("div",L,p(K[+a.problemType].label),1)]),v("div",R,[v("h5",null,p(o(W)("xx问题",{word:K[+a.problemType].label})),1),v("div",U,p(a.feedbackContent),1)])])])),value:c((()=>[v("div",D,[v("span",J,p(o(P)(a.handleTime)),1),v("div",{class:n(["cell-value-btn",0!==a.status?"cell-value-unactive":""])},p(0===a.status?o(W)("未处理"):o(W)("已处理")),3)])])),_:2},1032,["onClick"]),v("img",{style:{width:"100%",height:"auto",display:"block"},src:o(w)("recharge/bolang-bg-".concat(o(z),".png")),alt:""},null,8,N)])))),128)),B.value||0!==E.value.length?k("",!0):(r(),t("div",O,[i(j,{image:"light"===o(z)?o(w)("mine/mine-ksj.png"):o(w)("mine/blackGold/".concat(o(z),"my.svg")),description:o(W)("一条消息都没有呢")},null,8,["image","description"])]))])),_:1},8,["modelValue"])],2)}}},[["__scopeId","data-v-f71458d4"],["__file","index.vue"]]);export{W as default};
