(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d199b408"],{"0957":function(t,e,n){"use strict";n.r(e),n("a481"),n("96cf");var r,a,i=n("1da1"),s=n("4379e");i={mixins:[n("9f53").a],components:{},data:function(){return{resData:null,id:"",ok:!1,loading:!0}},created:(a=Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.ok=!1,this.id=this.$route.query.id||"0","0"!==this.id)return t.next=5,this.initData();t.next=5;break;case 5:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)}),methods:{goto:function(t){var e={path:t};"/oDetail"==t&&(e.query={id:this.id}),this.$router.replace(e)},initData:(r=Object(i.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.loading=!0,t.next=3,s.a.detail({id:this.id});case 3:if(e=t.sent,this.loading=!1,!e||0!==e.code){t.next=10;break}this.ok=!0,this.resData=e.data,t.next=16;break;case 10:if(e&&100<=e.code&&e.code<=104)return t.next=13,this.logout();t.next=15;break;case 13:t.next=16;break;case 15:this.show_title(e.msg);case 16:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})}},n("13e0"),n=n("2877"),i=Object(n.a)(i,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"orderRes",staticStyle:{"padding-top":"46px"}},[e("van-nav-bar",{staticClass:"van-nav-bar-my-fixed",attrs:{title:"下单结果",fixed:""}}),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"page-main"},[e("div",{staticClass:"dagou",class:{ok:t.ok}},[e("svg",{attrs:{width:"100",height:"100"}},[e("circle",{staticClass:"circle",attrs:{fill:"none",stroke:"#F4D022","stroke-width":"5",cx:"50",cy:"50",r:"47.5",transform:"rotate(-90 50 50)"}}),e("polyline",{staticClass:"tick",attrs:{fill:"none",stroke:"#F4D022","stroke-width":"6",points:"16.5,53.5 45.25,71 78,34.5","stroke-linecap":"round","stroke-linejoin":"round"}})])]),t._m(0),t.ok?e("div",{staticClass:"yingdao clear"},[e("van-button",{staticClass:"fr",attrs:{round:"",type:"info",size:"small"},on:{click:function(e){return t.goto("/oDetail")}}},[t._v("订单详情")]),e("van-button",{staticClass:"fr",attrs:{round:"",size:"small"},on:{click:function(e){return t.goto("/home/live")}}},[t._v("返回首页")])],1):t._e()])],1)}),[function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"tc",staticStyle:{margin:"-10px 0 30px 0"}},[e("p",{staticStyle:{color:"#959595"}},[t._v("恭喜您，下单成功！")])])}],!1,null,"bc809dac",null);e.default=i.exports},"13e0":function(t,e,n){"use strict";n("99da")},"1b69":function(t,e,n){"use strict";n("96cf");var r=n("1da1"),a=n("5daa"),i=n("5f87"),s={};window.ajaxTimeout=2e4,e.a=Object(r.a)(regeneratorRuntime.mark((function t(){var e,n,o,c,u,d,l,f=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<f.length&&void 0!==f[0]?f[0]:"",n=1<f.length&&void 0!==f[1]?f[1]:{},c=3<f.length&&void 0!==f[3]?f[3]:{},u=4<f.length&&void 0!==f[4]?f[4]:s,d=5<f.length?f[5]:void 0,o=(o=2<f.length&&void 0!==f[2]?f[2]:"GET").toLowerCase(),l={method:o,baseURL:"",url:a.a.baseURL+e,data:n,params:c,processData:!0,timeout:window.ajaxTimeout,headers:u,onUploadProgress:d},d&&"function"==typeof d&&(l.onUploadProgress=d),axios.interceptors.request.use((function(t){return t.data.token||(t.data.token=Object(i.d)()),t}),(function(t){return Promise.reject(new Error("服务器异常，请联系管理员！"))})),axios.interceptors.response.use(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return 200===e.status&&100<=(n=e.data.code)&&n<=104&&Object(i.e)(),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(l).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,n){"use strict";var r=n("1b69");e.a={list:function(t,e){return Object(r.a)("home/orderlist",t,"post",e)},detail:function(t,e){return Object(r.a)("home/orderinfo",t,"post",e)}}},"99da":function(t,e,n){},"9f53":function(t,e,n){"use strict";n("433b");var r,a=n("d399");n("96cf"),n=n("1da1");e.a={methods:{logout:(r=Object(n.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 r.apply(this,arguments)}),show_title:function(t){Object(a.a)({message:t})}}}}}]);