(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesTools/sequence/feedback"],{"3fb1":function(e,t,n){},"5d5f":function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("af34")),o=i(n("7ca3")),c=n("8f59");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={data:function(){return{loadEnd:!1,chainsId:null,formData:{},selectImages:[],delayer:null}},computed:r(r({},(0,c.mapState)({themeColor:function(e){return e.app.themeColor}})),{},{themeColorOne:function(){return this.$util.hexToRgb(this.themeColor,.6)},themeColorTwo:function(){return this.$util.hexToRgb(this.themeColor,.3)}}),onLoad:function(t){var n=this;this.chainsId=t.id,e.showLoading({title:"加载中"}),this.getFeedbackResult((function(){e.hideLoading(),n.loadEnd=!0}))},onUnload:function(){this.delayer&&clearTimeout(this.delayer)},methods:{getFeedbackResult:function(t){var n=this;this.$util.request("sequence.feedbackResult",{id:this.chainsId}).then((function(i){t&&t(),1==i.code?n.formData={jielong_id:n.chainsId,member_id:i.data.id,name:i.data.member_name||i.data.name,images:"",content:""}:e.showToast({title:i.msg,icon:"none"})})).catch((function(e){t&&t(),console.error("获取反馈结果",e)}))},chooseImage:function(){var t=this;e.chooseMedia({count:9-this.selectImages.length,mediaType:["image"],sourceType:["album","camera"],sizeType:["compressed"],success:function(e){t.selectImages=[].concat((0,a.default)(t.selectImages),(0,a.default)(e.tempFiles.map((function(e){return e.tempFilePath}))))}})},deleteImage:function(e){this.$delete(this.selectImages,e)},previewImage:function(t){e.previewImage({urls:this.selectImages,current:t})},handleSubmit:function(t){var n=this;this.formData.status=t,e.showLoading({title:"加载中",mask:!0}),this.selectImages.length?this.$util.uploadFileMultiple(this.selectImages).then((function(e){n.formData.images=e.join(","),n.submitEvent()})).catch((function(t){e.hideLoading(),console.error("上传文件 ",t)})):this.submitEvent()},submitEvent:function(){var t=this;this.$util.request("sequence.addFeedback",this.formData).then((function(n){e.hideLoading(),1==n.code?(e.showToast({icon:"success",title:"反馈成功",mask:!0,duration:1500}),t.delayer=setTimeout((function(){1==getCurrentPages().length?t.$util.toPage({mode:1,path:"/pages/index/index"}):e.navigateBack()}),1500)):e.showToast({title:n.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("提交反馈",t)}))}}};t.default=u}).call(this,n("df3c")["default"])},"765e":function(e,t,n){"use strict";n.r(t);var i=n("9b5b"),a=n("c6cc");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("fc4d");var c=n("828b"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=s.exports},"92d9":function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("aa6c");i(n("3240"));var a=i(n("765e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"9b5b":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=(this._self._c,this.loadEnd?this.selectImages.length:null);this.$mp.data=Object.assign({},{$root:{g0:t}})},a=[]},c6cc:function(e,t,n){"use strict";n.r(t);var i=n("5d5f"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},fc4d:function(e,t,n){"use strict";var i=n("3fb1"),a=n.n(i);a.a}},[["92d9","common/runtime","common/vendor"]]]);