(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/feedback/feedback"],{"0fd2":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{types:{index:-1,data:[{name:"投诉吐槽",value:1},{name:"功能异常",value:2},{name:"体验问题",value:3},{name:"功能建议",value:3},{name:"其他",value:9}]},upFileUrls:[],saveObj:{problemType:9,problemDescribe:"",filesUrl:"",contactWay:""}}},methods:{onTag:function(e,t){this.types.index=this.types.index==t?-1:t,this.saveObj.problemType=this.types.data[this.types.index].value},clearUpFile:function(e){this.upFileUrls=this.upFileUrls.filter((function(t){return t.temUrl!=e.temUrl}))},upFile:function(){var t=this;e.chooseImage({count:6,sizeType:["original","compressed"],sourceType:["album"],success:function(n){console.log(n),console.log(JSON.stringify(n.tempFilePaths)),e.uploadFile({url:t.$config.url.request+"userApi/upFile",filePath:n.tempFilePaths[0],name:"file",formData:{user:"test"},success:function(e){var a=JSON.parse(e.data),i={temUrl:n.tempFilePaths[0],url:a.fileUrl};t.upFileUrls.push(i),console.log(a)}})}})},saveFeeback:function(){var e=this;if(-1!=this.types.index)if(this.saveObj.problemDescribe)if(this.saveObj.problemDescribe.length>500)this.$app.popup.alert("问题描述只能填写500字以内。","温馨提示");else{this.saveObj.filesUrl=this.upFileUrls.map((function(e){return e.url})).join(",");var t=this.saveObj;this.$api.base("post","/userApi/addUserFeedback",t,{}).then((function(t){console.log("设备信息：",t),e.$app.popup.confirm("感谢您的反馈。","温馨提示",{showCancel:!1}).then((function(t){e.$app.url.back()}))}))}else this.$app.popup.alert("请填写您意见或建议。","温馨提示");else this.$app.popup.alert("请选择一个问题。","温馨提示")}}};t.default=n}).call(this,n("df3c")["default"])},"36a6":function(e,t,n){"use strict";(function(e,t){var a=n("47a9");n("2acb");a(n("3240"));var i=a(n("7a32"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},5993:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a}));var a={axBody:function(){return n.e("components/ax-body/ax-body").then(n.bind(null,"8839"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.saveObj.problemDescribe.length),a=e.upFileUrls.length,i=e.upFileUrls.length;e._isMounted||(e.e0=function(t){return e.$app.url.goto("/pages/feedback-reply/feedback-reply")}),e.$mp.data=Object.assign({},{$root:{g0:n,g1:a,g2:i}})},s=[]},"6e4c":function(e,t,n){"use strict";n.r(t);var a=n("0fd2"),i=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a},"7a32":function(e,t,n){"use strict";n.r(t);var a=n("5993"),i=n("6e4c");for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n("8373");var l=n("828b"),r=Object(l["a"])(i["default"],a["b"],a["c"],!1,null,"aaac8716",null,!1,a["a"],void 0);t["default"]=r.exports},8373:function(e,t,n){"use strict";var a=n("c578"),i=n.n(a);i.a},c578:function(e,t,n){}},[["36a6","common/runtime","common/vendor"]]]);