12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/myOrderDetail/myOrderDetail"],{202:function(t,e,n){"use strict";(function(t,e){var r=n(4);n(26);r(n(25));var a=r(n(203));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n(1)["default"],n(2)["createPage"])},203:function(t,e,n){"use strict";n.r(e);var r=n(204),a=n(206);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n(208);var u,i=n(32),s=Object(i["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"fba81ca6",null,!1,r["components"],u);s.options.__file="pages/my/myOrderDetail/myOrderDetail.vue",e["default"]=s.exports},204:function(t,e,n){"use strict";n.r(e);var r=n(205);n.d(e,"render",(function(){return r["render"]})),n.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(e,"components",(function(){return r["components"]}))},205:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"render",(function(){return a})),n.d(e,"staticRenderFns",(function(){return u})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return r}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.orderDetailInfo.contactsName?t.formatStatus(t.status):null),r=t.orderDetailInfo.contactsName?t.formatStatus(this.status):null,a=t.orderDetailInfo.contactsName?t.__map(t.orderDetailInfo.productAttr,(function(e,n){var r=t.__get_orig(e),a=e.selectData&&e.selectData.length>0,o=a?e.selectData.map((function(t){return t.name})).join(" "):null;return{$orig:r,g0:a,g1:o}})):null;t.$mp.data=Object.assign({},{$root:{m0:n,m1:r,l0:a}})},o=!1,u=[];a._withStripped=!0},206:function(t,e,n){"use strict";n.r(e);var r=n(207),a=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},207:function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(56)),o=r(n(58)),u=n(175),i={data:function(){return{type:"",status:"",id:"",orderDetailInfo:{}}},onLoad:function(t){this.status=t.status,this.id=t.id,this.type=t.type,this.fetchData(t.id)},methods:{fetchData:function(t){var e=this;return(0,o.default)(a.default.mark((function n(){var r,o;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={orderId:t},n.next=3,(0,u.getOrderDetail)(r);case 3:o=n.sent,console.log(o,"resultresultresult"),e.orderDetailInfo=o.data,e.orderDetailInfo.productAttr=JSON.parse(o.data.productAttr),e.status=o.data.orderStatus;case 8:case"end":return n.stop()}}),n)})))()},formatStatus:function(){return 0==this.status?{name:"待处理",color:"#FFA133"}:1==this.status?{name:"已接单",color:"#24C8DE"}:2==this.status?{name:"已发货",color:"#3E8DFF"}:3==this.status?{name:"已取消",color:"#7F8696"}:void 0},handleOrderCancel:function(){var e=this;t.showModal({title:"提示",content:"确定取消吗?",success:function(n){if(n.confirm){var r={id:e.id,orderStatus:e.status};(0,u.getOrderCancel)(r).then((function(n){t.showToast({title:"取消成功",icon:"none",duration:1e3,mask:!0,success:function(){setTimeout((function(){if(1==e.type)t.switchTab({url:"/pages/goods/goodList/goodList"});else{var n=getApp();n.globalData.type=2,t.navigateBack({url:"/pages/my/myOrder/myOrder"})}}),1e3)}})})).catch((function(t){}))}}})}}};e.default=i}).call(this,n(2)["default"])},208:function(t,e,n){"use strict";n.r(e);var r=n(209),a=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},209:function(t,e,n){}},[[202,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/my/myOrderDetail/myOrderDetail.js.map
|