(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/feedBack/index"],{"30fc":function(t,e,n){"use strict";var a=n("805b"),o=n.n(a);o.a},"46c2":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={"u-Textarea":function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u--textarea/u--textarea")]).then(n.bind(null,"7fd8"))}},o=function(){var t=this.$createElement,e=(this._self._c,this.pic_url.length),n=this.pic_url.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},i=[]},"6e51":function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("f331");a(n("66fd"));var o=a(n("ddaa"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"6fc1":function(t,e,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("2eee")),i=a(n("c973")),c=a(n("34b9")),r=n("531c"),u={components:{PrivacyPopup:function(){n.e("components/privacyPopup/index").then(function(){return resolve(n("66d8"))}.bind(null,n)).catch(n.oe)}},data:function(){return{showPop:!1,showCBtn:!1,picUrl:this.$picUrl,content:"",phone:"",pic_url:[]}},onLoad:function(t){},onShow:function(){this.handlePrivate()},methods:{cancleP:function(){this.showPop=!1,this.showCBtn=!0},handlePrivate:function(){getApp().globalData.showPrivacy?this.showPop=!0:(this.showPop=!1,this.showCBtn=!0)},confirmP:function(){this.showPop=!1,this.showCBtn=!0,this.handleUpImg()},post:function(){var e=this;return(0,i.default)(o.default.mark((function n(){var a,i,c;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=/^[1][3,4,5,7,8,9][0-9]{9}$/,""!=e.content){n.next=3;break}return n.abrupt("return",e.$toast("请输入反馈内容"));case 3:if(""!=e.phone){n.next=5;break}return n.abrupt("return",e.$toast("请输入联系方式"));case 5:if(a.test(e.phone)){n.next=7;break}return n.abrupt("return",e.$toast("请输入合法的手机号"));case 7:return i="",e.pic_url.forEach((function(t,n){n==e.pic_url.length-1?i+=t:i+=t+","})),n.next=11,(0,r.submitFeedbackReq)({phone:e.phone,content:e.content,image:i});case 11:c=n.sent,0==c.code?(console.log("反馈返回值",c),e.$toast("提交成功"),setTimeout((function(){t.navigateBack()}),1500)):t.showToast({title:c.message,icon:"none"});case 13:case"end":return n.stop()}}),n)})))()},delectImg:function(t){this.pic_url.splice(t,1)},previewImg:function(){t.previewImage({current:this.current,urls:this.formData.pic_url,loop:!0,indicator:"default"})},addquesPic:function(){if(getApp().globalData.showPrivacy)return this.showPop=!0,void(this.showCBtn=!1);this.handleUpImg()},handleUpImg:function(){var e=this,n=[];t.chooseImage({count:9-e.pic_url.length,sizeType:["original","compressed"],sourceType:["album"],success:function(a){e.pic_url.length>=9?e.$toast("只能选择9张照片"):a.tempFilePaths.length>0&&(n=a.tempFilePaths,n.forEach((function(a,o){t.uploadFile({url:c.default.baseUrl+"/api/upload",filePath:n[o],name:"file",formData:{tag:"lamp"},success:function(t){var n=JSON.parse(t.data);0==n.code&&(e.pic_url=e.pic_url.concat(n.data.file),console.log("上传后的头像url地址",n.data.file))}})})))}})}}};e.default=u}).call(this,n("543d")["default"])},"805b":function(t,e,n){},b76e:function(t,e,n){"use strict";n.r(e);var a=n("6fc1"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},ddaa:function(t,e,n){"use strict";n.r(e);var a=n("46c2"),o=n("b76e");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("30fc");var c=n("f0c5"),r=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"f5885a36",null,!1,a["a"],void 0);e["default"]=r.exports}},[["6e51","common/runtime","common/vendor"]]]);