(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-feedback-index"],{"1eb8":function(t,e,i){var a=i("f4a5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("86b79112",a,!0,{sourceMap:!1,shadowMode:!1})},"3c86":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.checkPhone=function(t){return!!/^1(3|4|5|6|7|8|9)\d{9}$/.test(t)},e.isEmailAvailable=function(t){return!!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(t)},e.isMoney=function(t){return!!/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(t)},i("ac1f"),i("00b4")},b2d2:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("159b"),i("14d9"),i("a434");var n=a(i("5530")),o=i("c6c3"),s=i("3c86"),c=i("26cb"),r=i("8342"),d=i("4f1b"),l={data:function(){return{domain:r.HTTP_REQUEST_URL,tabList:[],tabKey:0,qsArray:[],qsIndex:0,con:"",uploadImg:[],name:"",phone:"",isShowbox:!1,isUpload:!0}},computed:(0,n.default)({},(0,d.configMap)(["is_open_service"],(0,c.mapGetters)(["viewColor","keyColor"]))),watch:{uploadImg:function(t,e){this.isUpload=t.length<6}},onLoad:function(){var t=this;(0,o.feedbackType)().then((function(e){var i=e.data;t.tabList=i,t.getFeedBack(i)}))},methods:{toChat:function(){uni.navigateTo({url:"/pages/chat/customer_list/chat?mer_id=0"})},getFeedBack:function(t){var e=this;t.forEach((function(i,a){if(i.children)return e.tabKey=a,void(e.qsArray=t[e.tabKey].children)}))},bindPickerChange:function(t){this.qsIndex=t.target.value},bindTab:function(t,e){this.tabKey=e,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(e){t.uploadImg.push(e.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].feedback_category_id,content:this.con,images:this.uploadImg,realname:this.name,contact:this.phone}).then((function(e){t.isShowbox=!0})).catch((function(e){t.$util.Tips({title:e})})):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"})}}};e.default=l},bd4e:function(t,e,i){"use strict";var a=i("1eb8"),n=i.n(a);n.a},d4f6:function(t,e,i){"use strict";i.r(e);var a=i("e3bb"),n=i("fb5e");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("bd4e");var s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"70e405f2",null,!1,a["a"],void 0);e["default"]=c.exports},e3bb:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[1==t.is_open_service?i("v-uni-view",{staticClass:"tips"},[i("v-uni-view",{staticClass:"tipBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toChat.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"left"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/kefu.png",mode:""}}),i("v-uni-view",{staticClass:"font"},[t._v("如需尽快解决问题,可直接联系在线客服")])],1),i("v-uni-view",[i("i",{staticClass:"iconfont icon-xiangyou",staticStyle:{fontSize:"24rpx"}})])],1)],1):t._e(),i("v-uni-view",{staticClass:"feedback-container"},[i("v-uni-view",{staticClass:"item-box"},[i("v-uni-view",{staticClass:"title-box"},[i("v-uni-text",[t._v("*")]),t._v("反馈类型")],1),t.tabList.length>0?i("v-uni-view",{staticClass:"tab-box"},[t._l(t.tabList,(function(e,a){return[i("v-uni-view",{key:a,staticClass:"tab-item",class:{active:a==t.tabKey},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindTab(e,a)}}},[t._v(t._s(e.cate_name))])]}))],2):t._e(),t.qsArray.length>0?i("v-uni-view",{staticClass:"picker"},[i("v-uni-picker",{attrs:{value:t.qsIndex,range:t.qsArray,"range-key":"cate_name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"picker-box"},[t._v(t._s(t.qsArray[t.qsIndex]["cate_name"])),i("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1)],1)],1):t._e()],1),i("v-uni-view",{staticClass:"item-box"},[i("v-uni-view",{staticClass:"title-box"},[i("v-uni-text",[t._v("*")]),t._v("反馈内容")],1),i("v-uni-view",{staticClass:"textarea-box"},[i("v-uni-textarea",{attrs:{maxlength:"200",placeholder:"请输入文字"},model:{value:t.con,callback:function(e){t.con=e},expression:"con"}}),i("v-uni-view",{staticClass:"num"},[t._v(t._s(t.con.length)+"/200字")])],1)],1),i("v-uni-view",{staticClass:"item-box"},[i("v-uni-view",{staticClass:"title-box"},[i("v-uni-text",[t._v("*")]),t._v("图片上传"),i("v-uni-text",{staticClass:"des"},[t._v("(上传聊天截图或与问题描述相关的图片)")])],1),i("v-uni-view",{staticClass:"upload-img"},[t._l(t.uploadImg,(function(e,a){return t.uploadImg.length>0?i("v-uni-view",{staticClass:"img-wrapper"},[i("v-uni-image",{attrs:{src:e}}),i("v-uni-view",{staticClass:"iconfont icon-guanbi1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deleteImg(a)}}})],1):t._e()})),t.isUpload?i("v-uni-view",{staticClass:"add-img",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-xiangji"})],1):t._e()],2)],1),i("v-uni-view",{staticClass:"item-box"},[i("v-uni-view",{staticClass:"title-box"},[i("v-uni-text",[t._v("*")]),t._v("联系方式")],1),i("v-uni-view",{staticClass:"input-box"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的姓名"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),i("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的电话或邮箱"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1)],1),i("v-uni-view",{staticClass:"item-box"},[i("v-uni-view",{staticClass:"sub-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindSub.apply(void 0,arguments)}}},[t._v("提交反馈")]),i("v-uni-navigator",{staticClass:"link",attrs:{url:"/pages/users/feedback/list","hover-class":"none"}},[t._v("反馈记录"),i("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1)],1),t.isShowbox?i("v-uni-view",{staticClass:"success"},[i("v-uni-view",{staticClass:"bg"}),i("v-uni-view",{staticClass:"con"},[i("v-uni-image",{attrs:{src:t.domain+"/static/diy/success"+t.keyColor+".png",mode:""}}),i("v-uni-view",{staticClass:"text"},[t._v("反馈提交成功")]),i("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("我知道了")])],1)],1):t._e()],1)],1)},n=[]},f4a5:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-70e405f2]{width:100%;background-color:#fff}body.?%PAGE?%[data-v-70e405f2]{background-color:#fff}.tips[data-v-70e405f2]{background-color:#f1f1f1;padding:%?20?%}.tips .tipBox[data-v-70e405f2]{width:100%;height:%?100?%;background:var(--view-minorColor);border-radius:%?16?%;line-height:%?100?%;display:flex;justify-content:space-between;font-size:%?24?%;font-weight:400;color:var(--view-theme);padding:%?0?% %?30?%}.tips .tipBox .left[data-v-70e405f2]{display:flex}.tips .tipBox .left uni-image[data-v-70e405f2]{width:%?70?%;height:%?70?%;background:#fff;border-radius:50%;display:inline-block;margin-top:%?15?%}.tips .tipBox .left .font[data-v-70e405f2]{padding-left:%?20?%}.feedback-container[data-v-70e405f2]{padding:%?30?%}.feedback-container .item-box[data-v-70e405f2]{margin-bottom:%?40?%}.feedback-container .item-box .title-box[data-v-70e405f2]{font-size:%?28?%;color:#222}.feedback-container .item-box .title-box uni-text[data-v-70e405f2]{margin-right:%?10?%;color:var(--view-theme)}.feedback-container .item-box .title-box .des[data-v-70e405f2]{margin-left:%?10?%;font-size:%?22?%;color:#999}.feedback-container .item-box .tab-box[data-v-70e405f2]{margin-top:%?20?%;display:flex;flex-wrap:wrap}.feedback-container .item-box .tab-box .tab-item[data-v-70e405f2]{line-height:%?66?%;align-items:center;justify-content:center;width:%?200?%;margin-right:%?20?%;margin-bottom:%?20?%;border:1px solid #bfbfbf;border-radius:33px;font-size:%?28?%;text-align:center}.feedback-container .item-box .tab-box .tab-item.active[data-v-70e405f2]{background:var(--view-theme);color:#fff;border-color:var(--view-theme)}.feedback-container .item-box .picker[data-v-70e405f2]{margin-top:%?30?%}.feedback-container .item-box .picker .picker-box[data-v-70e405f2]{position:relative;width:100%;height:%?90?%;line-height:%?90?%;padding:0 %?30?%;background-color:#f5f5f5;border-radius:%?10?%}.feedback-container .item-box .picker .picker-box .iconfont[data-v-70e405f2]{position:absolute;right:%?30?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:%?22?%;color:var(--view-theme)}.feedback-container .item-box .textarea-box[data-v-70e405f2]{background:#f5f5f5;border-radius:%?10?%}.feedback-container .item-box .textarea-box uni-textarea[data-v-70e405f2]{width:100%;height:%?300?%;margin-top:%?30?%;padding:%?20?% %?20?% 0;font-size:%?28?%;line-height:1.5}.feedback-container .item-box .textarea-box .num[data-v-70e405f2]{color:#999;text-align:right;padding:%?20?%}.feedback-container .item-box .upload-img[data-v-70e405f2]{display:flex;flex-wrap:wrap}.feedback-container .item-box .upload-img .img-wrapper[data-v-70e405f2]{position:relative;display:flex;flex-wrap:wrap;margin:%?30?% %?20?% %?20?% 0;width:%?158?%;height:%?158?%}.feedback-container .item-box .upload-img .img-wrapper uni-image[data-v-70e405f2]{width:%?158?%;height:%?158?%}.feedback-container .item-box .upload-img .img-wrapper .iconfont[data-v-70e405f2]{position:absolute;right:%?-15?%;top:%?-20?%;font-size:%?40?%;color:var(--view-theme)}.feedback-container .item-box .upload-img .img-wrapper[data-v-70e405f2]:nth-child(4n){margin-right:0}.feedback-container .item-box .upload-img .add-img[data-v-70e405f2]{display:flex;align-items:center;justify-content:center;width:%?158?%;height:%?158?%;background:#f5f5f5;border-radius:%?10?%;margin-top:%?30?%;margin-bottom:%?20?%}.feedback-container .item-box .upload-img .add-img .iconfont[data-v-70e405f2]{color:#b5b5b5;font-size:%?55?%}.feedback-container .item-box .input-box uni-input[data-v-70e405f2]{display:block;width:100%;height:%?90?%;margin-top:%?20?%;padding-left:%?20?%;background:#f5f5f5;border-radius:%?10?%;font-size:%?28?%}.feedback-container .item-box .sub-btn[data-v-70e405f2]{height:%?90?%;line-height:%?90?%;background:var(--view-theme);color:#fff;font-size:%?32?%;text-align:center;border-radius:%?45?%}.feedback-container .item-box .link[data-v-70e405f2]{display:flex;align-items:center;justify-content:center;margin-top:%?20?%}.feedback-container .item-box .link .iconfont[data-v-70e405f2]{margin-top:%?6?%;font-size:%?22?%}.feedback-container .success[data-v-70e405f2]{z-index:10;position:fixed;left:0;top:0;width:100%;height:100%}.feedback-container .success .bg[data-v-70e405f2]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5)}.feedback-container .success .con[data-v-70e405f2]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?500?%;height:%?540?%;background:#fff;border-radius:%?10?%;font-size:%?34?%;color:#282828}.feedback-container .success .con uni-image[data-v-70e405f2]{width:%?149?%;height:%?230?%}.feedback-container .success .con .btn[data-v-70e405f2]{width:%?340?%;height:%?90?%;line-height:%?90?%;margin-top:%?38?%;text-align:center;color:#fff;background-image:linear-gradient(-90deg,var(--view-bntColor21),var(--view-bntColor22));border-radius:%?45?%}',""]),t.exports=e},fb5e:function(t,e,i){"use strict";i.r(e);var a=i("b2d2"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a}}]);