zx/public/static/js/pages-users-feedback-index....

1 line
14 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-feedback-index"],{"0caa":function(t,a,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("bf0f"),e("2797"),e("aa9c"),e("dd2b");var n=i(e("9b1b")),o=e("672a"),s=e("a058"),c=e("8f59"),r=e("aa10"),d=e("96e0"),l={data:function(){return{domain:r.HTTP_REQUEST_URL,tabList:[],tabKey:0,qsArray:[],qsIndex:0,con:"",uploadImg:[],name:"",phone:"",isShowbox:!1,isUpload:!0,service:!1}},computed:(0,n.default)({},(0,d.configMap)(["is_open_service"],(0,c.mapGetters)(["viewColor","keyColor"]))),watch:{uploadImg:function(t,a){this.isUpload=t.length<6}},onLoad:function(){var t=this;this.hasService(),(0,o.feedbackType)().then((function(a){var e=a.data;t.tabList=e,t.getFeedBack(e)}))},methods:{toChat:function(){uni.navigateTo({url:"/pages/chat/customer_list/chat?mer_id=0"})},hasService:function(){var t=this;(0,o.hasServiceApi)(0).then((function(a){t.service=!0})).catch((function(a){t.service=!1}))},getFeedBack:function(t){var a=this;t.forEach((function(e,i){if(e.children)return a.tabKey=i,void(a.qsArray=t[a.tabKey].children)}))},bindPickerChange:function(t){this.qsIndex=t.target.value},bindTab:function(t,a){this.tabKey=a,this.qsIndex=0,this.qsArray=this.tabList[this.tabKey].children?this.tabList[this.tabKey].children:[]},uploadpic:function(){var t=this;t.$util.uploadImageOne("upload/image",(function(a){t.uploadImg.push(a.data.path),t.$set(t,"uploadImg",t.uploadImg)}))},close:function(){this.con="",this.uploadImg=[],this.name="",this.phone="",this.isShowbox=!1},deleteImg:function(t){this.uploadImg.splice(t,1)},bindSub:function(){var t=this;this.con?0!=this.uploadImg.length?this.name?this.phone?(0,s.isEmailAvailable)(this.phone)||(0,s.checkPhone)(this.phone)?(0,o.feedback)({type:this.qsArray[this.qsIndex]&&this.qsArray[this.qsIndex].feedback_category_id||0,content:this.con,images:this.uploadImg,realname:this.name,contact:this.phone}).then((function(a){t.isShowbox=!0})).catch((function(a){t.$util.Tips({title:a})})):uni.showToast({title:"请输入有效的电话或者邮箱",icon:"none"}):uni.showToast({title:"请输入电话或者邮箱",icon:"none"}):uni.showToast({title:"请输入姓名",icon:"none"}):uni.showToast({title:"请上传图片",icon:"none"}):uni.showToast({title:"请输入反馈内容",icon:"none"})}}};a.default=l},"26d0":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{style:t.viewColor},[1==t.is_open_service&&t.service?e("v-uni-view",{staticClass:"tips"},[e("v-uni-view",{staticClass:"tipBox",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toChat.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"left"},[e("v-uni-image",{attrs:{src:t.domain+"/static/images/kefu.png",mode:""}}),e("v-uni-view",{staticClass:"font"},[t._v("如需尽快解决问题,可直接联系在线客服")])],1),e("v-uni-view",[e("i",{staticClass:"iconfont icon-xiangyou",staticStyle:{fontSize:"24rpx"}})])],1)],1):t._e(),e("v-uni-view",{staticClass:"feedback-container"},[e("v-uni-view",{staticClass:"item-box"},[e("v-uni-view",{staticClass:"title-box"},[e("v-uni-text",[t._v("*")]),t._v("反馈类型")],1),t.tabList.length>0?e("v-uni-view",{staticClass:"tab-box"},[t._l(t.tabList,(function(a,i){return[e("v-uni-view",{key:i,staticClass:"tab-item",class:{active:i==t.tabKey},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindTab(a,i)}}},[t._v(t._s(a.cate_name))])]}))],2):t._e(),t.qsArray.length>0?e("v-uni-view",{staticClass:"picker"},[e("v-uni-picker",{attrs:{value:t.qsIndex,range:t.qsArray,"range-key":"cate_name"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.bindPickerChange.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"picker-box"},[t._v(t._s(t.qsArray[t.qsIndex]["cate_name"])),e("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1)],1)],1):t._e()],1),e("v-uni-view",{staticClass:"item-box"},[e("v-uni-view",{staticClass:"ti