(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/feedback"],{158:function(e,n,t){"use strict";(function(e){t(5);o(t(4));var n=o(t(159));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t(1)["createPage"])},159:function(e,n,t){"use strict";t.r(n);var o=t(160),s=t(162);for(var r in s)"default"!==r&&function(e){t.d(n,e,(function(){return s[e]}))}(r);t(164);var a,i=t(11),c=Object(i["default"])(s["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);c.options.__file="pages/order/feedback.vue",n["default"]=c.exports},160:function(e,n,t){"use strict";t.r(n);var o=t(161);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},161:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return s})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return o}));try{o={uIcon:function(){return t.e("uview-ui/components/u-icon/u-icon").then(t.bind(null,508))},uRate:function(){return t.e("uview-ui/components/u-rate/u-rate").then(t.bind(null,617))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var s=function(){var e=this,n=e.$createElement;e._self._c},r=!1,a=[];s._withStripped=!0},162:function(e,n,t){"use strict";t.r(n);var o=t(163),s=t.n(o);for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=s.a},163:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=s(t(13));function s(e){return e&&e.__esModule?e:{default:e}}var r={data:function(){return{shopBanner:[],msgContents:["界面显示错乱","启动缓慢，卡出翔了","UI无法直视，丑哭了","偶发性崩溃"],stars:[1,2,3,4,5],imageList:[],sendDate:{score:5,content:"",contact:"",goodsId:"",ordersId:"",orderNumber:"",shopId:""},count:5,value:5,goodsId:"",ordersId:"",orderNumber:""}},onLoad:function(e){this.sendDate.goodsId=e.goodsId,this.sendDate.ordersId=e.ordersId,this.sendDate.orderNumber=e.orderNumber,this.sendDate.shopId=e.shopId},methods:{addImages:function(n){var t=this;e.chooseImage({count:9,sourceType:["album","camera"],success:function(n){for(var s=0;s<n.tempFilePaths.length;s++)t.$queue.showLoading("上传中..."),e.uploadFile({url:o.default.APIHOST+"/alioss/upload",filePath:n.tempFilePaths[s],name:"file",success:function(n){t.shopBanner.length<9&&(JSON.parse(n.data).data?t.shopBanner.push(JSON.parse(n.data).data):e.showToast({title:"图片上传失败，请重试",icon:"none"})),console.log(t.shopBanner),e.hideLoading()}})}})},removeImg:function(e){this.shopBanner.splice(e,1)},close:function(e){this.imageList.splice(e,1)},chooseMsg:function(){var n=this;e.showActionSheet({itemList:this.msgContents,success:function(e){n.sendDate.content=n.msgContents[e.tapIndex]}})},chooseImg:function(){var n=this;e.chooseImage({sourceType:["camera","album"],sizeType:"compressed",count:8-this.imageList.length,success:function(e){n.imageList=n.imageList.concat(e.tempFilePaths)}})},chooseStar:function(e){this.sendDate.score=e},previewImage:function(){e.previewImage({urls:this.imageList})},send:function(){this.sendDate.content?this.shopBanner.length?(this.$queue.showLoading("加载中..."),console.log(this.orderNumber),this.$Request.postJson("/app/order/insertEvaluate",{goodsId:this.sendDate.goodsId,ordersId:this.sendDate.ordersId,orderNumber:this.sendDate.orderNumber,evaluateMessage:this.sendDate.content,score:this.value,shopId:this.sendDate.shopId,pictures:this.shopBanner.length>0?this.shopBanner.join(","):[]}).then((function(n){0===n.code?(e.showToast({title:"评价成功"}),setTimeout((function(){e.navigateBack()}),1e3)):(e.hideLoading(),e.showModal({showCancel:!1,title:"评价失败",content:n.msg}))}))):e.showToast({icon:"none",title:"请上传商品评价图"}):e.showToast({icon:"none",title:"请输入评价内容"})}}};n.default=r}).call(this,t(1)["default"])},164:function(e,n,t){"use strict";t.r(n);var o=t(165),s=t.n(o);for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=s.a},165:function(e,n,t){}},[[158,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/feedback.js.map