(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/evaluate"],{"11c2":function(t,n,e){"use strict";e.r(n);var i=e("88fe"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"59a6":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("3e59");i(e("66fd"));var o=i(e("9040"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"5b96":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement,n=(this._self._c,this.imgList.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},o=[]},"6e01":function(t,n,e){"use strict";var i=e("8295"),o=e.n(i);o.a},8295:function(t,n,e){},"88fe":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("c30e"),o={components:{uniRate:function(){e.e("components/uni-rate/uni-rate").then(function(){return resolve(e("c3c0"))}.bind(null,e)).catch(e.oe)}},data:function(){return{type:1,text:"",placeholder:"请详细描述您的售后理由...",imgList:[],unique:"",imgCount:3}},onLoad:function(t){this.unique=t.unique},onShow:function(){this.loadData()},methods:{loadData:function(){var t=this;(0,i.orderDetail)({},this.unique).then((function(n){var e=n.data;t.type=e.after_sales,1==t.type&&(t.placeholder=e.after_remarks,t.imgList=e.after_images)}))},scImg:function(){var n=this;console.log(n.imgCount,11),0!=n.imgCount?(0,i.upload)({file:""}).then((function(t){n.imgList.push(t[0].url),n.imgCount=3-n.imgList.length})).catch((function(t){})):t.showToast({title:"最多添加6张图片",icon:"none"})},submit:function(n){this.imgList.length<1?t.showToast({title:"请添加图片",icon:"none"}):(0,i.after_sales)({after_images:this.imgList,after_remarks:this.text},this.unique).then((function(n){t.showModal({title:"提示",content:"申请售后成功，是否前往个人中心页",success:function(n){n.confirm?t.switchTab({url:"/pages/user/my"}):n.cancel&&console.log("用户点击取消")}})})).catch((function(t){}))},imgInfo:function(n){var e=[];console.log(111),this.imgList.forEach((function(t){e.push(t)})),console.log(e),t.previewImage({current:n,loop:!1,urls:e,indicator:"default"})},delImg:function(n){var e=this;t.showModal({content:"确定删除这张吗",success:function(t){t.confirm?(e.imgList.splice(n,1),e.imgCount++):t.cancel}})},navto:function(n){t.navigateTo({url:n})}}};n.default=o}).call(this,e("543d")["default"])},9040:function(t,n,e){"use strict";e.r(n);var i=e("5b96"),o=e("11c2");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("6e01");var u=e("f0c5"),c=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=c.exports}},[["59a6","common/runtime","common/vendor"]]]);