(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/wode/feedback/feedback"],{"125b":function(t,e,a){"use strict";(function(t){a("4518");i(a("66fd"));var e=i(a("769b"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,a("543d")["createPage"])},"5f63":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=getApp(),i={data:function(){return{imgList:[],data:{member_id:"",question:"",image_base64:[],type:"1"},typeList:[{title:"功能异常：功能故障或不可用",type:"1"},{title:"产品建议：用的不爽，我有建议",type:"2"},{title:"安全密码：密码，故障等",type:"3"},{title:"商户终端异常：无法支付，支付慢等",type:"4"},{title:"其他问题",type:"5"}]}},methods:{RadioChange:function(t){this.data.type=t.detail.value},input:function(t){this.data.question=t.detail.value},sumit:function(){if(this.$isEmpty(this.data.question))t.showToast({title:"问题描述不能为空",icon:"none"});else if(this.data.question.length<3)t.showToast({title:"问题描述不能少于三个字",icon:"none"});else if(this.$isEmpty(this.data.image_base64))t.showToast({title:"请提供相关截图",icon:"none"});else{this.data.member_id=a.globalData.member.id,console.log(this.data);var e="userFeedback/addFeedback";a.globalData.postRequest(this.data,e,(function(e){1==e.data.result_code?a.globalData.oneFailHint(e.data.result_msg,(function(){t.switchTab({url:"../wode"})})):a.globalData.oneFailHint(e.data.result_msg)}))}},chooseImage:function(){var e=this;t.chooseImage({count:4-this.imgList.length,sizeType:["original","compressed"],sourceType:["album"],success:function(a){var i=a.tempFilePaths;for(var n in i)e.imgList.push(i[n]),t.getFileSystemManager().readFile({filePath:i[n],encoding:"base64",success:function(t){e.data.image_base64.push("data:image/jpeg;base64,"+t.data)}})}})},viewImage:function(e){t.previewImage({urls:this.imgList,current:e})},DelImg:function(e){var a=this;t.showModal({title:"提示",content:"确定要删除这张照片吗？",cancelText:"取消",confirmText:"确定",success:function(t){t.confirm&&a.imgList.splice(e,1)}})}}};e.default=i}).call(this,a("543d")["default"])},"69b3":function(t,e,a){"use strict";a.r(e);var i=a("5f63"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"769b":function(t,e,a){"use strict";a.r(e);var i=a("a78c"),n=a("69b3");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("a32c");var o,u=a("f0c5"),c=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);e["default"]=c.exports},a32c:function(t,e,a){"use strict";var i=a("d1b1"),n=a.n(i);n.a},a78c:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement;t._self._c},s=[]},d1b1:function(t,e,a){}},[["125b","common/runtime","common/vendor"]]]);