(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/feedback/feedback"],{"0c9d":function(e,t,a){"use strict";a.r(t);var n=a("b818"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},"60e4":function(e,t,a){"use strict";(function(e,t){var n=a("47a9");a("6a42");n(a("3240"));var i=n(a("95e1"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},"95e1":function(e,t,a){"use strict";a.r(t);var n=a("aa2a"),i=a("0c9d");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("aa23");var u=a("828b"),r=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"0be3c8ca",null,!1,n["a"],void 0);t["default"]=r.exports},aa23:function(e,t,a){"use strict";var n=a("d4e8"),i=a.n(n);i.a},aa2a:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return n}));var n={axBody:function(){return a.e("components/ax-body/ax-body").then(a.bind(null,"e199"))}},i=function(){var e=this,t=e.$createElement,a=(e._self._c,e.saveObj.description.length),n=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:a,g1:n,g2:i}})},s=[]},b818:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={data:function(){return{types:{index:-1,data:[{name:"投诉吐槽",value:1},{name:"功能异常",value:2},{name:"体验问题",value:3},{name:"功能建议",value:4},{name:"其他",value:9}]},upFileUrls:[],saveObj:{type:9,description:"",images:"",contactWay:""}}},methods:{onTag:function(e,t){this.types.index=this.types.index==t?-1:t,this.saveObj.type=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(a){console.log(JSON.stringify(a.tempFilePaths)),e.uploadFile({url:t.$config.url.request+"api/v1/files",filePath:a.tempFilePaths[0],name:"file",header:{Authorization:"Bearer "+t.$app.storage.get("ACCESS_TOKEN"),"Content-Type":"multipart/form-data"},success:function(e){var n=JSON.parse(e.data),i={temUrl:a.tempFilePaths[0],url:n.data.url};t.upFileUrls.push(i),t.saveObj.images=t.upFileUrls.map((function(e){return e.url})).join(",")}})}})},saveFeeback:function(){var e=this;if(-1!=this.types.index)if(this.saveObj.description)if(this.saveObj.description.length>500)this.$app.popup.alert("问题描述只能填写500字以内。","温馨提示");else{var t=this.saveObj;this.$api.base("post","/applet/v1/user/addUserFeedback",t,{}).then((function(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=a}).call(this,a("df3c")["default"])},d4e8:function(e,t,a){}},[["60e4","common/runtime","common/vendor"]]]);