1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-22789b0e"],{"1b69":function(t,e,a){"use strict";a("96cf");var n=a("1da1"),i=a("5daa"),r=a("5f87"),s={};window.ajaxTimeout=2e4,e.a=Object(n.a)(regeneratorRuntime.mark((function t(){var e,a,l,u,o,c,d,v=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<v.length&&void 0!==v[0]?v[0]:"",a=1<v.length&&void 0!==v[1]?v[1]:{},u=3<v.length&&void 0!==v[3]?v[3]:{},o=4<v.length&&void 0!==v[4]?v[4]:s,c=5<v.length?v[5]:void 0,l=(l=2<v.length&&void 0!==v[2]?v[2]:"GET").toLowerCase(),d={method:l,baseURL:"",url:i.a.baseURL+e,data:a,params:u,processData:!0,timeout:window.ajaxTimeout,headers:o,onUploadProgress:c},c&&"function"==typeof c&&(d.onUploadProgress=c),axios.interceptors.request.use((function(t){return t.data.token||(t.data.token=Object(r.e)()),t}),(function(t){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return 200===e.status&&100<=(a=e.data.code)&&a<=104&&Object(r.j)(),t.abrupt("return",e);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){return Promise.reject(t.response.data)})),t.abrupt("return",new Promise((function(t,e){axios(d).then((function(e){t(e.data)})).catch((function(t){t.response&&t.response.data?e(t.response.data):e(t)}))})));case 12:case"end":return t.stop()}}),t)})))},"4379e":function(t,e,a){"use strict";var n=a("1b69"),i="home/";e.a={list:function(t,e){return Object(n.a)(i+"orderlist",t,"post",e)},detail:function(t,e){return Object(n.a)(i+"orderinfo",t,"post",e)},express:function(t,e){return Object(n.a)(i+"express",t,"post",e)}}},9874:function(t,e,a){},"9dd3":function(t,e,a){"use strict";a.r(e),a("96cf");var n,i,r,s=a("1da1"),l=a("4379e"),u=a("9f53"),o=a("5f87");s={mixins:[u.a],components:{},data:function(){return{admin:"",id:"0",status:"0",options:[{value:"0",label:"未发货"},{value:"1",label:"暂无记录"},{value:"2",label:"在途中"},{value:"3",label:"派送中"},{value:"4",label:"已签收"},{value:"5",label:"用户拒签"},{value:"6",label:"疑难件"},{value:"7",label:"无效单"},{value:"8",label:"超时单"},{value:"9",label:"签收失败"},{value:"10",label:"退回"}],list1:[{title:"订单编号:",value:""},{title:"订单状态:",value:""},{title:"下单时间:",value:""}],list2:[{title:"物流公司:",value:""},{title:"物流编号:",value:""},{title:"发货时间:",value:""}],list3:[{title:"联系人:",value:""},{title:"联系电话:",value:""},{title:"收货地址:",value:""}],list4:[{title:"商品名称:",value:"五常大米"},{title:"购买数量:",value:""}],list5:[{title:"物流状态:",value:""},{title:"更新时间:",value:""}],context:"",loading:!1}},created:(r=Object(s.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.id=this.$route.query.id||"0",this.admin=Object(o.b)(),t.next=4,this.initData();case 4:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)}),methods:{onClickLeft:function(){window.history.back(-1)},initData:(i=Object(s.a)(regeneratorRuntime.mark((function t(){var e,a,n,i,r,s,u,o,c,d,v,f,h,p,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.detail({id:this.id});case 2:if(!(e=t.sent)||0!==e.code){t.next=21;break}if(a=e.data,n=a.order_sn,i=a.status,a.unit,r=a.order_num,s=a.order_time,u=a.post_name,o=a.post_code,c=a.delivery_time,d=a.contector,v=a.contector_mobile,m=a.city_name,f=a.provice_name,h=a.area_name,p=a.addr,a.unit_weight,this.list1[0].value=n,this.list1[1].value="1"===i?"待发货":"待收货",this.status=i,this.list4[0].value="1"===this.admin?"红运稻2Kgx2":"2"===this.admin?"悦享泰康2.5Kgx1":"",this.list4[1].value=r+"份",this.list1[2].value=s,"2"===this.status&&(this.list2[0].value=u,this.list2[1].value=o,this.list2[2].value=c),this.list3[0].value=d,this.list3[1].value=v,m=f===m?m:f+m,this.list3[2].value=m+h+p,"2"==i)return t.next=19,this.getLastPost(n);t.next=19;break;case 19:t.next=27;break;case 21:if(e&&100<=e.code&&e.code<=104)return t.next=24,this.logout();t.next=26;break;case 24:t.next=27;break;case 26:this.show_title(e.msg);case 27:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)}),getLastPost:(n=Object(s.a)(regeneratorRuntime.mark((function t(e){var a,n,i,r,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.express({order_sn:e});case 2:if(!(a=t.sent)||0!==a.code){t.next=12;break}r=a.data,s=r.last_data,n=r.status_cn,i=r.addtime,r=s.context,s=s.time,this.list5[0].value=n,this.list5[1].value=s||i,this.context=r||"",t.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,this.logout();t.next=17;break;case 15:t.next=18;break;case 17:this.show_title(a.msg);case 18:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})}},a("fd7d"),a=a("2877"),s=Object(a.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"oDetail"},[a("van-nav-bar",{staticClass:"van-nav-bar-my-fixed",attrs:{title:"订单详情","left-arrow":"",fixedfixed:""},on:{"click-left":t.onClickLeft}}),a("div",{staticClass:"page-main"},[a("van-cell-group",{attrs:{title:"订单信息"}},t._l(t.list1,(function(t,e){return a("van-cell",{key:t.title+e,attrs:{size:"mini",center:"",title:t.title,value:t.value}})})),1),a("div",{staticClass:"jiange"}),"2"===t.status?a("van-cell-group",{attrs:{title:"物流信息"}},t._l(t.list2,(function(t,e){return a("van-cell",{key:t.title+e,attrs:{size:"mini",title:t.title,value:t.value}})})),1):t._e(),"2"===t.status?a("div",{staticClass:"jiange"}):t._e(),"2"===t.status?a("van-cell-group",{attrs:{title:"当前物流"}},t._l(t.list5,(function(t,e){return a("van-cell",{key:t.title+e,attrs:{size:"mini",title:t.title,value:t.value}})})),1):t._e(),t.context?a("div",{staticClass:"context"},[t._v(t._s(t.context))]):t._e(),"2"===t.status?a("div",{staticClass:"jiange"}):t._e(),a("van-cell-group",{attrs:{title:"收货地址"}},t._l(t.list3,(function(t,e){return a("van-cell",{key:t.title+e,attrs:{size:"mini",center:"",title:t.title,value:t.value}})})),1),a("div",{staticClass:"jiange"}),a("van-cell-group",{attrs:{title:"商品信息"}},t._l(t.list4,(function(t,e){return a("van-cell",{key:t.title+e,attrs:{size:"mini",center:"",title:t.title,value:t.value}})})),1)],1)],1)}),[],!1,null,"2ebd6fe8",null);e.default=s.exports},"9f53":function(t,e,a){"use strict";a("433b");var n,i=a("d399");a("96cf"),a=a("1da1");e.a={methods:{logout:(n=Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("/login"!==this.$route.path)return t.next=3,this.$store.dispatch("user/logout");t.next=4;break;case 3:this.$router.push("/login");case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)}),show_title:function(t){Object(i.a)({message:t})}}}},fd7d:function(t,e,a){"use strict";a("9874")}}]);
|