text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-tuikuan"],{"2c93":function(e,t,n){"use strict";n.r(t);var a=n("9867"),r=n("79a1");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("9d7c");var o,s=n("f0c5"),c=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"0037b92c",null,!1,a["a"],o);t["default"]=c.exports},"79a1":function(e,t,n){"use strict";n.r(t);var a=n("8214"),r=n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},8214:function(e,t,n){"use strict";var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var r=a(n("1da1")),i=a(n("6779")),o={components:{pickerAddress:i.default},data:function(){return{needhelp:0,orderid:0,orderNo:"",orderTime:"",orderName:"",orderMount:0,replay:"",desc:"",examinationTypeArray:["---请选择---","仅退款","退款退货","投诉"],examinationTypeIndex:0,examinationTypeArrayType:"---请选择---",operate:"apply"}},onLoad:function(e){var t=this;return(0,r.default)(regeneratorRuntime.mark((function n(){var a,r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a="售后申请查看","edit"===e.type&&(a="售后申请"),t.operate=e.operate,t.orderid=e.orderid,n.next=6,t.$shop.getOrderList(t.$shop.prop().serviceUrl+"/order/orders?orderid="+t.orderid,{});case 6:r=n.sent,i=r[0],t.orderNo=i.orderNo,t.orderTime=i.create_time,t.orderName=i.products[0].title,t.orderMount=i.mount,t.needhelp=i.needHelp,uni.setNavigationBarTitle({title:a});case 14:case"end":return n.stop()}}),n)})))()},methods:{examinationType:function(e){this.examinationTypeIndex=e.target.value,this.examinationTypeArrayType=this.examinationTypeArray[this.examinationTypeIndex]},cancel:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.get(e.$shop.prop().serviceUrl+"/order/cancelHelp?orderid="+e.orderid,{});case 2:t.sent,setTimeout((function(){uni.navigateBack()}),800);case 4:case"end":return t.stop()}}),t)})))()},confirm:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.examinationTypeArrayType,a=e.desc,"---请选择---"!=!n){t.next=5;break}return e.$api.msg("请选择售后类型"),t.abrupt("return");case 5:if(""!=a){t.next=8;break}return e.$api.msg("请输入售后描述"),t.abrupt("return");case 8:return r={orderid:e.orderid,type:e.examinationTypeArrayType,desc:e.desc},t.next=11,e.$api.get(e.$shop.prop().serviceUrl+"/order/needhelp",r);case 11:t.sent,setTimeout((function(){uni.navigateBack()}),800);case 13:case"end":return t.stop()}}),t)})))()}}};t.default=o},9867:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"row b-b"},[n("v-uni-text",{staticClass:"tit"},[e._v("订单号：")]),n("v-uni-text",[e._v(e._s(e.orderNo))])],1),n("v-uni-view",{staticClass:"row b-b"},[n("v-uni-text",{staticClass:"tit"},[e._v("产品：")]),n("v-uni-text",[e._v(e._s(e.orderName))])],1),n("v-uni-view",{staticClass:"row b-b"},[n("v-uni-text",{staticClass:"tit"},[e._v("金额")]),n("v-uni-text",[e._v(e._s(e.orderMount)+"元")])],1),n("v-uni-view",{staticClass:"row b-b"},[n("v-uni-text",[e._v("支付时间：")]),n("v-uni-text",[e._v(e._s(e.orderTime))])],1),n("v-uni-view",{staticClass:"row b-b"},[n("v-uni-text",[e._v("售后类型：")]),n("v-uni-picker",{attrs:{range:e.examinationTypeArray},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.examinationType.apply(void 0,arguments)}}},[n("v-uni-label",{},[e._v(e._s(e.examinationTypeArrayType))])],1)],1),n("v-uni-view",{staticClass:"row b-b"},[n("v-uni-text",[e._v("售后描述：")])],1),n("v-uni-view",{staticClass:"uni-textarea content",staticStyle:{"padding-left":"25px"}},[n("v-uni-textarea",{staticClass:"contente",attrs:{placeholder:"填写售后原因,如:七天无理由"},model:{value:e.desc,callback:function(t){e.desc=t},expression:"desc"}})],1),1==e.needhelp?n("v-uni-view",{staticClass:"row b-b"},[n("v-uni-text",[e._v("处理结果：")]),n("v-uni-text",{model:{value:e.replay,callback:function(t){e.replay=t},expression:"replay"}},[e._v("已退款")])],1):e._e(),"apply"==e.operate?n("v-uni-button",{staticClass:"add-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[e._v("提交")]):e._e(),"cancel"==e.operate?n("v-uni-button",{staticClass:"add-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancel.apply(void 0,arguments)}}},[e._v("撤销")]):e._e()],1)},i=[]},"9d7c":function(e,t,n){"use strict";var a=n("e2df"),r=n.n(a);r.a},e2df:function(e,t,n){var a=n("f0a0");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("4f06").default;r("9dd8384e",a,!0,{sourceMap:!1,shadowMode:!1})},f0a0:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */uni-page-body[data-v-0037b92c]{background:#f8f8f8;padding-top:%?16?%}.row[data-v-0037b92c]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-0037b92c]{-webkit-flex-shrink:0;flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-0037b92c]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133}.row .icon-shouhuodizhi[data-v-0037b92c]{font-size:%?36?%;color:#909399}.default-row[data-v-0037b92c]{margin-top:%?16?%}.default-row .tit[data-v-0037b92c]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.default-row uni-switch[data-v-0037b92c]{-webkit-transform:translateX(%?16?%) scale(.9);transform:translateX(%?16?%) scale(.9)}.add-btn[data-v-0037b92c]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?690?%;height:%?80?%;margin:%?60?% auto;font-size:%?32?%;color:#fff;background-color:#fa436a;border-radius:%?10?%;box-shadow:1px 2px 5px rgba(219,63,96,.4)}body.?%PAGE?%[data-v-0037b92c]{background:#f8f8f8}',""]),e.exports=t}}]);