1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a1f95ea6"],{"1b69":function(t,e,i){"use strict";i("96cf");var n=i("1da1"),a=i("5daa"),r=i("5f87"),s={};window.ajaxTimeout=2e4,e.a=Object(n.a)(regeneratorRuntime.mark((function t(){var e,i,o,u,l,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]:"",i=1<v.length&&void 0!==v[1]?v[1]:{},u=3<v.length&&void 0!==v[3]?v[3]:{},l=4<v.length&&void 0!==v[4]?v[4]:s,c=5<v.length?v[5]:void 0,o=(o=2<v.length&&void 0!==v[2]?v[2]:"GET").toLowerCase(),d={method:o,baseURL:"",url:a.a.baseURL+e,data:i,params:u,processData:!0,timeout:window.ajaxTimeout,headers:l,onUploadProgress:c},c&&"function"==typeof c&&(d.onUploadProgress=c),axios.interceptors.request.use((function(t){return t.data.token||(t.data.token=Object(r.d)()),t}),(function(t){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return 200===e.status&&100<=(i=e.data.code)&&i<=104&&Object(r.h)(),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,i){"use strict";var n=i("1b69"),a="home/";e.a={list:function(t,e){return Object(n.a)(a+"orderlist",t,"post",e)},detail:function(t,e){return Object(n.a)(a+"orderinfo",t,"post",e)}}},7546:function(t,e,i){},"9dd3":function(t,e,i){"use strict";i.r(e),i("96cf");var n,a,r=i("1da1"),s=i("4379e");r={mixins:[i("9f53").a],components:{},data:function(){return{id:"0",status:"0",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:""}],loading:!1}},created:(a=Object(r.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",t.next=3,this.initData();case 3:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)}),methods:{onClickLeft:function(){window.history.back(-1)},initData:(n=Object(r.a)(regeneratorRuntime.mark((function t(){var e,i,n,a,r,o,u,l,c,d,v,f,h,p,m,g;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.detail({id:this.id});case 2:if(!(e=t.sent)||0!==e.code){t.next=18;break}m=e.data,i=m.order_sn,n=m.status,a=m.unit,r=m.order_num,o=m.order_time,u=m.post_name,l=m.post_code,c=m.delivery_time,d=m.contector,v=m.contector_mobile,g=m.city_name,f=m.provice_name,h=m.area_name,p=m.addr,m=m.unit_weight,this.list1[0].value=i,this.list1[1].value="1"===n?"待发货":"待收货",this.status=n,this.list4[0].value="盒"===a?"藏金1745礼盒":"藏金1745普通装",this.list4[1].value=r+a+"/"+m+"kg",this.list1[2].value=o,"2"===this.status&&(this.list2[0].value=u,this.list2[1].value=l,this.list2[2].value=c),this.list3[0].value=d,this.list3[1].value=v,g=f===g?g:f+g,this.list3[2].value=g+h+p,t.next=24;break;case 18:if(e&&100<=e.code&&e.code<=104)return t.next=21,this.logout();t.next=23;break;case 21:t.next=24;break;case 23:this.show_title(e.msg);case 24:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}},i("c7fb"),i=i("2877"),r=Object(i.a)(r,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"oDetail"},[i("van-nav-bar",{staticClass:"van-nav-bar-my-fixed",attrs:{title:"订单详情","left-arrow":"",fixedfixed:""},on:{"click-left":t.onClickLeft}}),i("div",{staticClass:"page-main"},[i("van-cell-group",{attrs:{title:"订单信息"}},t._l(t.list1,(function(t,e){return i("van-cell",{key:t.title+e,attrs:{size:"mini",center:"",title:t.title,value:t.value}})})),1),i("div",{staticClass:"jiange"}),"2"===t.status?i("van-cell-group",{attrs:{title:"物流信息"}},t._l(t.list2,(function(t,e){return i("van-cell",{key:t.title+e,attrs:{size:"mini",title:t.title,value:t.value}})})),1):t._e(),"2"===t.status?i("div",{staticClass:"jiange"}):t._e(),i("van-cell-group",{attrs:{title:"收货地址"}},t._l(t.list3,(function(t,e){return i("van-cell",{key:t.title+e,attrs:{size:"mini",center:"",title:t.title,value:t.value}})})),1),i("div",{staticClass:"jiange"}),i("van-cell-group",{attrs:{title:"商品信息"}},t._l(t.list4,(function(t,e){return i("van-cell",{key:t.title+e,attrs:{size:"mini",center:"",title:t.title,value:t.value}})})),1)],1)],1)}),[],!1,null,"fc9bd18c",null);e.default=r.exports},"9f53":function(t,e,i){"use strict";i("433b");var n,a=i("d399");i("96cf"),i=i("1da1");e.a={methods:{logout:(n=Object(i.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(a.a)({message:t})}}}},c7fb:function(t,e,i){"use strict";i("7546")}}]);
|