1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-341d3d5d"],{"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)}}},"660d":function(t,e,i){"use strict";i("bf5e")},"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{type:null,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.type=this.$store.getters.type,this.id=this.$route.query.id||"0",t.next=4,this.initData();case 4:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)}),methods:{typeActive:function(t){},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,b,w;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=17;break}b=e.data,i=b.order_sn,n=b.status,a=b.unit,r=b.order_num,o=b.order_time,u=b.post_name,l=b.post_code,c=b.delivery_time,d=b.contector,v=b.contector_mobile,w=b.city_name,f=b.provice_name,h=b.area_name,p=b.addr,m=b.unit_weight,g=b.good_name,b=b.good_desc,this.list1[0].value=i,this.list1[1].value="1"===n?"待发货":"待收货",this.status=n,"active1"==this.type?(this.list4[0].value=g,this.list4[1].value=r+a+"/"+b):(this.list4[0].value=g,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,w=f===w?w:f+w,this.list3[2].value=w+h+p,t.next=23;break;case 17:if(e&&100<=e.code&&e.code<=104)return t.next=20,this.logout();t.next=22;break;case 20:t.next=23;break;case 22:this.show_title(e.msg);case 23:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}},i("660d"),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,"72fb2068",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})}}}},bf5e:function(t,e,i){}}]);
|