(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32647404"],{"0e5c":function(e,t,o){"use strict";o.d(t,"a",(function(){return d}));o("7f7f");var a=o("1dd4"),i=o("bc3a"),s=o.n(i),n=o("c0d6"),r=s.a.create({baseURL:"https://file-api.vmeshou.com/uploads",timeout:15e3,withCredentials:!1,transformRequest:[]});r.interceptors.request.use((function(e){return e.params?e.params.upload_key="fastVC":e.params={upload_key:"fastVC"},"post"==e.method?e.headers["Content-Type"]="multipart/form-data":e.headers["Content-Type"]="application/json; charset=UTF-8",e.headers["Cache-Control"]="no-cache",e.headers["app-id"]="20012",e.headers["app-key"]="XaHXl6W27z59hiLyvaIar7zTOPhqULiI",e}),(function(e){console.log(e),Promise.reject(e)})),r.interceptors.response.use((function(e){var t=e.data;return t}),(function(e){console.log("-----------出现错误,状态码:"+e.response.status+"------------");var t="出现错误,请重试或检查";return Promise.reject(t+":"+JSON.stringify(e.response))}));var c=524288,l="vlook-h5",u="vlook-证件相关";function d(e,t){var o=p(e.type);if(!o)return Promise.reject({error:"不允许上传的文件类型"});if(e.ext=o,console.log(o),"image"==t){if("gif|jpg|jpeg|png".indexOf(o)<0)return Promise.reject({error:"只能上传图片"})}else if("video"==t){if("rmvb|flv|vob|mp4|m4v|mov|3gp|wmv|mp3|mkv|mpg|ts|avi|mpeg|avi|rm|wav|asf|divx|mpg|mpe|vod".indexOf(o)<0)return console.log(t),Promise.reject({error:"只能上传视频"})}else if("file"==t){if("pdf|doc|docx|ppt|pptx|rar|zip".indexOf(o)<0)return Promise.reject({error:"只能上传文档或压缩包"})}else if("pdf|doc|docx|ppt|pptx|rar|zip|rmvb|flv|vob|mp4|m4v|mov|3gp|wmv|mp3|mkv|mpg|ts|avi|mpeg|avi|rm|wav|asf|divx|mpg|mpe|vod|gif|jpg|jpeg|png".indexOf(o)<0)return Promise.reject({error:"不允许上传的文件类型"});e.category&&(u=e.category);var i=41943040,s=e.size;sc&&(d=Math.ceil(s/c));var f=new FileReader;return f.readAsBinaryString(e.slice(0,i)),new Promise((function(t,i){function p(t,o){var a=c,l=t*c,u=l+(s-t*c);d>1&&(t+1==d?(u=s,a=s-l):u=l+c),r({method:"get",params:{status:"chunkCheck",name:o,chunkIndex:t,size:a}}).then((function(a){var s=a.data;if(s.ifExist&&(m++,m==d))return h(o);var f=e.slice(l,u),g=new FormData;g.append("userId",n["a"].getters.userId),g.append("md5",o),g.append("uniqueFileName",o),g.append("chunkSize",c),g.append("chunkIndex",t),g.append("file",f),r({method:"post",data:g}).then((function(e){return console.log(e),m++,m==d?h(o):p(t+1,o)})).catch((function(e){return console.log(e),i({error:e})}))})).catch((function(e){return console.log(e),i({error:e})}))}function h(a){r({method:"get",params:{status:"chunksMerge",category:u,channel:l,name:a,chunks:d,ext:o,filesize:e.size,fileoldname:e.name,md5:a,userId:n["a"].getters.userId,is_watermark:0,is_mp3:0,vts:1,fixed_screenshot:1}}).then((function(e){if(e.code)return i({error:e.msg});if(e.error)return i({error:e.error});var o=e.data;return o.source=o.md5+"|"+o.size+"|"+o.wh+"|"+o.ext,t(e.data)})).catch((function(e){return console.log(e),i({error:e})}))}f.onload=function(s){if(s.target.readyState==FileReader.DONE){var n=s.target.result,c=Object(a["a"])(n);if(console.log(e.name+"-得到的文件md5:"+c),!c)return i({error:"md5计算错误"});r({method:"get",params:{status:"md5Check",md5:c,name:e.name,ext:o}}).then((function(e){var o=e.data;return o.ifExist?(o.error&&console.log(o.error),o.source=o.md5+"|"+o.size+"|"+o.wh+"|"+o.ext,t(e.data)):p(0,c)})).catch((function(e){return console.log(e),i({md5:c,error:e})}))}}}))}function p(e){var t=!1;switch(e){case"image/gif":t="gif";break;case"image/jpeg":t="jpg";break;case"image/png":t="png";break;case"application/vnd.ms-powerpoint":t="ppt";break;case"application/vnd.ms-excel":t="xls";break;case"application/vnd.openxmlformats-officedocument.presentationml.presentation":t="pptx";break;case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":t="xlsx";break;case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":t="docx";break;case"application/msword":t="doc";break;case"application/pdf":t="pdf";break;case"application/x-rar-compressed":t="rar";break;case"application/zip":t="zip";break;case"audio/mpeg":t="mp3";break;case"audio/x-m4a":t="m4a";break;case"video/mp4":t="mp4";break;case"video/quicktime":t="mov";break;case"video/x-flv":t="flv";break;case"video/x-msvideo":t="avi";break;case"video/x-ms-wmv":t="vmv";break;default:t=!1}return t}},"3c2e":function(e,t,o){e.exports=o.p+"img/bt4.eae8d255.png"},7915:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("mt-header",{attrs:{fixed:"",title:"唯蜜瘦服务投诉"}}),a("div",{staticClass:"tousu"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.datas.avatar}})]),a("div",{staticClass:"name"},[e._v("“"+e._s(e.datas.nickname)+"”")]),a("div",{staticClass:"text"},[e._v("您可以从服务态度,跟单处理时间等方面进行投诉…")]),a("div",{staticClass:"input"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],attrs:{placeholder:"感谢您提的宝贵意见!"},domProps:{value:e.content},on:{input:function(t){t.target.composing||(e.content=t.target.value)}}})]),a("div",{staticClass:"uploadBox",attrs:{id:"uploader-demo"}},[a("div",{staticClass:"uploader-list imgRow",staticStyle:{"margin-bottom":"6px"},attrs:{id:"fileList"}},[a("viewer",{staticClass:"uploader-list imgRow",attrs:{images:e.showImgList}},[e._l(e.showImgList,(function(t,o){return a("div",{key:o,staticClass:"imgItem"},[a("img",{staticClass:"imgItem",attrs:{src:t.localUrl}}),e.datas.complainInfo?e._e():a("img",{staticClass:"delIcon",attrs:{src:e.picClose,alt:""},on:{click:function(o){return e.uploadError(t)}}})])})),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showImgList.length<6&&!e.datas.complainInfo,expression:"showImgList.length < 6 && !datas.complainInfo"}],staticClass:"imgItem",on:{click:function(t){return e.selectFiles(6)}}},[a("div",{staticClass:"icon"}),a("div",[e._v("添加图片")]),a("input",{ref:"uploadBtn",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*",multiple:""},on:{change:function(t){return e.uploadFile(t)}}})])],2)],1)]),e.datas.complainInfo?a("div",{staticStyle:{"font-weight":"600","font-size":"16px","margin-top":"20px"}},[e._v("\n 谢谢您的提醒,今后我们会努力改进!\n ")]):a("img",{staticClass:"bt",attrs:{src:o("3c2e")},on:{click:function(t){return e.getSb()}}})])],1)},i=[],s=(o("4917"),o("7f7f"),o("28a5"),o("76a0")),n=o("0e5c"),r=(o("5f87"),o("aadd")),c=o("8c78"),l={name:"tousu",data:function(){return{fileRead:"https://file-cdn.vmeshou.com/",device:"",examType:"",localFileList:[],showImgList:[],key:"",picClose:o("938c"),datas:"",successCount:0,source:"",content:"",complainInfo:""}},watch:{"localFileList.length":{handler:function(e,t){if(this.limitImg=6,e>6)return s["Indicator"].close(),Object(s["Toast"])("最多只能上传6张")}},"showImgList.length":{handler:function(e,t){if(e>6)return s["Indicator"].close(),Object(s["Toast"])("最多只能上传6张")}}},mounted:function(){Object(r["a"])("key")?this.key=Object(r["a"])("key"):this.key=this.$route.params.key,console.log(this.key),this.examType=this.$route.query.examType,this.appSource(),this.getData()},methods:{getSb:function(){for(var e in this.source="",this.showImgList)e==this.showImgList.length-1?this.source=this.source+this.showImgList[e].source:this.source=this.source+this.showImgList[e].source+",";if(this.showImgList.length<0)return Object(s["Toast"])("请上传图片证据");if(!this.content)return Object(s["Toast"])("请输入您的宝贵意见");console.log(this.source);var t={orderId:this.datas.orderId,content:this.content,source:this.source};s["Indicator"].open(),Object(c["a"])(t).then((function(e){if(console.log(e),s["Indicator"].close(),0!=e.resp_code)return Object(s["Toast"])(e.resp_msg);Object(s["Toast"])("投诉成功")})).catch((function(e){console.log(e),s["Indicator"].close(),Object(s["Toast"])("操作异常")}))},getData:function(){var e=this;s["Indicator"].open();var t={key:this.key};Object(c["b"])(t).then((function(t){if(console.log(t),s["Indicator"].close(),0!=t.resp_code)return Object(s["Toast"])(t.resp_msg);e.datas=t.datas,e.datas.complainInfo&&(e.content=e.datas.complainInfo.content,e.showImgList=e.datas.complainInfo.source.split(","))})).catch((function(e){console.log(e),s["Indicator"].close(),Object(s["Toast"])("操作异常")}))},selectFiles:function(e){if(this.limitImg=e,this.localFileList.length>e)return Object(s["Toast"])("最多只能上传"+e+"张");this.$refs["uploadBtn"].click()},uploadFile:function(e){var t=this,o=e.target.files;if(o.length<1)return!1;if(o.length>this.limitImg)return Object(s["Toast"])("最多只能上传"+this.limitImg+"张");if(s["Indicator"].open("上传中..."),this.successCount>2)return s["Indicator"].close(),Object(s["Toast"])("最多只能上传"+this.limitImg+"张");for(var a=function(e){o[e].localUrl=window.URL.createObjectURL(o[e]),t.localFileList.push(o[e]),o[e].category="vlook-最福利相关",Object(n["a"])(o[e],"image").then((function(a){t.successCount++,t.successCount==t.localFileList.length&&setTimeout((function(){s["Indicator"].close()}),200);var i={name:o[e].name,source:a.source,localUrl:t.fileRead+a.md5+"/w/600/d/0.jpg"};t.showImgList.push(i)})).catch((function(t){return s["Indicator"].close(),Object(s["Toast"])(o[e].name+":"+t.error)}))},i=0;i