1 line
5.6 KiB
JavaScript
1 line
5.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["OrderStatus-vue"],{"03ae":function(t,e,r){var n=r("243e"),a=r("a4b3");t.exports=function(t,e,r){var i,s;return a&&"function"==typeof(i=e.constructor)&&i!==r&&n(s=i.prototype)&&s!==r.prototype&&a(t,s),t}},2101:function(t,e,r){"use strict";var n=r("f8e5"),a=r.n(n);a.a},"341e":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"orderstatus"},[r("NavbarComponents",{attrs:{title:"订单状态"}}),r("div",{staticClass:"content"},[r("van-tabs",{on:{click:t.changeTabs},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[r("van-tab",{attrs:{title:"全部订单"}},[r("OrderCardComponents",{attrs:{list:t.OrderList}})],1),r("van-tab",{attrs:{title:"待付款"}},[r("OrderCardComponents",{attrs:{list:t.OrderList}})],1),r("van-tab",{attrs:{title:"待发货"}},[r("OrderCardComponents",{attrs:{list:t.OrderList}})],1),r("van-tab",{attrs:{title:"待收货"}},[r("OrderCardComponents",{attrs:{list:t.OrderList}})],1),r("van-tab",{attrs:{title:"退款/售后"}},[r("OrderCardComponents",{attrs:{list:t.OrderList}})],1)],1)],1)],1)},a=[],i=(r("69ab"),r("b5cf"),r("63ff"),r("e5af")),s=r("d178"),o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"order-card"},[0==t.list.length?r("div",{staticClass:"no-order"},[r("van-icon",{attrs:{size:"40",color:"#d1d1d1",name:"balance-list-o"}}),r("p",[t._v("没有订单")])],1):t._l(t.list,(function(e,n){return r("van-card",{key:n,attrs:{num:e.goods_num,price:e.goods_price,desc:e.wares_info,title:e.wares_title,thumb:e.wares_masterimg}},[r("div",{attrs:{slot:"footer"},slot:"footer"},[r("p",[t._v("总计:"+t._s(e.goods_totalprice))])])])}))],2)},c=[],u={props:{list:{type:Array,default:[]}}},f=u,l=(r("2101"),r("5511")),d=Object(l["a"])(f,o,c,!1,null,"895f3bc4",null),p=d.exports,v={data:function(){return{OrderList:[],active:void 0==this.$route.query.active?0:Number(this.$route.query.active),list:[{index:0,key:-1},{index:1,key:0},{index:2,key:1},{index:3,key:2},{index:4,key:3}]}},created:function(){this.getOrderStatus(this.list[this.active].key)},methods:{changeTabs:function(t,e){this.getOrderStatus(this.list[t].key)},getOrderStatus:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$http.orderService.allOrder({status:e});case 2:r=t.sent,console.log(r),"{}"==JSON.stringify(r)?this.OrderList=[]:(r.forEach((function(t){return t.wares_masterimg=JSON.parse(t.wares_masterimg)[0]})),this.OrderList=r);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},components:{OrderCardComponents:p,NavbarComponents:s["a"]},inject:["close","open"],beforeRouteEnter:function(t,e,r){r((function(t){return t.close()}))},beforeRouteLeave:function(t,e,r){this.open(),r()}},h=v,b=(r("c6db"),Object(l["a"])(h,n,a,!1,null,"0bd894a8",null));e["default"]=b.exports},"36fb":function(t,e,r){"use strict";var n=r("31b2").forEach,a=r("ad0a");t.exports=a("forEach")?function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach},"69ab":function(t,e,r){"use strict";var n=r("b049"),a=r("c740"),i=r("8789"),s=r("9f72"),o=r("a163"),c=r("dbb8"),u=r("03ae"),f=r("2983"),l=r("8e13"),d=r("262a"),p=r("d2c2").f,v=r("9107").f,h=r("490a").f,b=r("ca0c").trim,m="Number",g=a[m],O=g.prototype,_=c(d(O))==m,E=function(t){var e,r,n,a,i,s,o,c,u=f(t,!1);if("string"==typeof u&&u.length>2)if(u=b(u),e=u.charCodeAt(0),43===e||45===e){if(r=u.charCodeAt(2),88===r||120===r)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+u}for(i=u.slice(2),s=i.length,o=0;o<s;o++)if(c=i.charCodeAt(o),c<48||c>a)return NaN;return parseInt(i,n)}return+u};if(i(m,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var y,C=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof C&&(_?l((function(){O.valueOf.call(r)})):c(r)!=m)?u(new g(E(e)),r,C):E(e)},N=n?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;N.length>w;w++)o(g,y=N[w])&&!o(C,y)&&h(C,y,v(g,y));C.prototype=O,O.constructor=C,s(a,m,C)}},"723d":function(t,e,r){},ad0a:function(t,e,r){"use strict";var n=r("8e13");t.exports=function(t,e){var r=[][t];return!r||!n((function(){r.call(null,e||function(){throw 1},1)}))}},b5cf:function(t,e,r){var n=r("c740"),a=r("c520"),i=r("36fb"),s=r("1a78");for(var o in a){var c=n[o],u=c&&c.prototype;if(u&&u.forEach!==i)try{s(u,"forEach",i)}catch(f){u.forEach=i}}},c6db:function(t,e,r){"use strict";var n=r("723d"),a=r.n(n);a.a},ca0c:function(t,e,r){var n=r("350f"),a=r("fb3c"),i="["+a+"]",s=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),c=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(s,"")),2&t&&(r=r.replace(o,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},d178:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("van-nav-bar",{attrs:{title:t.title,fixed:!0,"left-arrow":t.showLeft},on:{"click-left":t.onClickLeft}},[t._t("right-icon",null,{slot:"right"})],2)},a=[],i={props:{title:{type:String,default:null},showLeft:{type:Boolean,default:!0}},data:function(){return{}},methods:{onClickLeft:function(){this.$router.back()}}},s=i,o=r("5511"),c=Object(o["a"])(s,n,a,!1,null,"3d0cd9c2",null);e["a"]=c.exports},f8e5:function(t,e,r){},fb3c:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}]); |