import{r as e,C as a,o as t,e as s,w as l,b as o,i as r,y as u,f as i,h as n,F as d,u as p,s as f,m,ae as c,d as b,B as h,z as y,I as _,J as g}from"./index-520dfaee.js";import{g as x,h as D,b as w,a as B}from"./s-layout.5146c957.js";import{_ as v}from"./s-uploader.026e8b76.js";import{_ as V}from"./_plugin-vue_export-helper.1b428a4d.js";const k=V({__name:"feedback",setup(V){e(null);const k=a({radioList:[{type:"产品功能问题反馈"},{type:"建议及意见反馈"},{type:"投诉客服其他问题"}],formData:{content:"",phone:"",images:[],type:""},imageFiles:[],current:0});async function $(){if(!k.formData.type)return void f.$helper.toast("请选择类型");if(!k.formData.content)return void f.$helper.toast("请描述您遇到的问题");if(!k.formData.phone)return void f.$helper.toast("请输入您的联系方式");const{code:e}=await f.$api.app.feedback(k.formData);1===e&&f.$router.back()}function j(e){k.formData.type=e.detail.value}return(e,a)=>{const V=m,C=_,M=g,L=c,S=o(b("uni-easyinput"),x),U=o(b("s-uploader"),v),z=o(b("uni-forms"),D),F=h,G=o(b("su-fixed"),w),I=o(b("s-layout"),B);return t(),s(I,{class:"set-wrap",title:"问题反馈"},{default:l((()=>[r(z,{ref:"form",modelValue:k.formData,border:""},{default:l((()=>[r(V,{class:"bg-white type-box ss-p-x-20 ss-p-y-30"},{default:l((()=>[r(V,{class:"title ss-m-b-44"},{default:l((()=>[u("请选择类型")])),_:1}),r(V,{class:"ss-m-l-12"},{default:l((()=>[r(L,{onChange:j},{default:l((()=>[(t(!0),i(d,null,n(k.radioList,(e=>(t(),s(M,{class:"ss-flex ss-col-center ss-m-b-40",key:e.type},{default:l((()=>[r(C,{value:e.type,color:"var(--ui-BG-Main)",style:{transform:"scale(0.8)"}},null,8,["value"]),r(V,{class:"radio-subtitle"},{default:l((()=>[u(y(e.type),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1}),r(V,{class:"bg-white ss-p-x-20 ss-p-y-30 ss-m-t-20"},{default:l((()=>[r(V,{class:"title ss-m-b-30"},{default:l((()=>[u(" 相关描述 ")])),_:1}),r(V,{class:"textarea"},{default:l((()=>[r(S,{inputBorder:!1,type:"textarea",modelValue:k.formData.content,"onUpdate:modelValue":a[0]||(a[0]=e=>k.formData.content=e),placeholderStyle:"color:#BBBBBB;font-size:30rpx;font-weight:400;line-height:normal",placeholder:"客官~请描述您遇到的问题，建议上传照片",clearable:""},null,8,["modelValue"]),r(U,{url:k.formData.images,"onUpdate:url":a[1]||(a[1]=e=>k.formData.images=e),fileMediatype:"image",limit:"9",mode:"grid",imageStyles:{width:"168rpx",height:"168rpx"}},null,8,["url"])])),_:1})])),_:1}),r(V,{class:"bg-white ss-p-x-20 ss-p-y-30 ss-m-t-20"},{default:l((()=>[r(V,{class:"title ss-m-b-30"},{default:l((()=>[u(" 联系方式 ")])),_:1}),r(V,{class:"mobile-box"},{default:l((()=>[r(S,{inputBorder:!1,type:"number",modelValue:k.formData.phone,"onUpdate:modelValue":a[2]||(a[2]=e=>k.formData.phone=e),paddingLeft:"10",placeholder:"请输入您的联系电话"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["modelValue"]),r(G,{bottom:"",placeholder:""},{default:l((()=>[r(V,{class:"ss-flex ss-row-between ss-p-x-30 ss-p-y-10"},{default:l((()=>[r(F,{class:"kefu-btn ss-reset-button",onClick:a[3]||(a[3]=e=>p(f).$router.go("/pages/chat/index"))},{default:l((()=>[u(" 联系客服 ")])),_:1}),r(F,{class:"submit-btn ss-reset-button ui-BG-Main ui-Shadow-Main",onClick:$},{default:l((()=>[u(" 提交 ")])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-d02333f2"]]);export{k as default};
