(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4df8d918"],{3698:function(t,s,a){"use strict";a.r(s);var i=function(){var t=this,s=t._self._c;t._self._setupProxy;return s("div",[s("van-tabs",{attrs:{sticky:"",swipeable:"","title-active-color":"#FF7E29",color:"#FF7E29"},on:{click:t.tabClick},model:{value:t.activeName,callback:function(s){t.activeName=s},expression:"activeName"}},[s("van-tab",{attrs:{title:"全部订单",name:"all"}}),s("van-tab",{attrs:{title:"未支付",name:"0"}}),s("van-tab",{attrs:{title:"已支付",name:"1"}}),s("van-tab",{attrs:{title:"退款/取消",name:"6"}})],1),t.orderList.length>0?s("van-list",{attrs:{finished:t.listFinished,"finished-text":"我是有底线的"},on:{load:t.getShopOrderList},model:{value:t.listLoading,callback:function(s){t.listLoading=s},expression:"listLoading"}},t._l(t.orderList,(function(a,i){return s("div",{key:i,staticClass:"order-item",on:{click:function(s){return t.linkToDetail(a.parent_order_no)}}},[s("div",{staticClass:"item-caption"},[s("span",{staticClass:"title"},[t._v(t._s(a.cate_type_name))]),0===a.order_status?s("span",{staticClass:"status status-orange"},[t._v("未支付")]):1===a.order_status?s("span",{staticClass:"status status-5FC266"},[t._v("已支付")]):2===a.order_status?s("span",{staticClass:"status"},[t._v("订单付款取消")]):3===a.order_status?s("span",{staticClass:"status"},[t._v("订单已过期")]):5===a.order_status?s("span",{staticClass:"status"},[t._v("订单已退款")]):t._e()]),s("div",{staticClass:"item-content"},[s("div",{staticClass:"items item-sku"},[s("div",[t._v("订单信息")]),s("div",{staticClass:"sku-msg"},t._l(a.order_info,(function(a,i){return s("div",{key:i},[t._v(t._s(a.sku_info))])})),0)]),s("div",{staticClass:"items"},[s("p",[t._v("订单时间")]),s("p",[t._v(t._s(a.c_time))])]),s("div",{staticClass:"items"},[s("p",[t._v("订单金额")]),s("p",[t._v("￥ "+t._s(a.pay_price))])])])])})),0):s("van-empty",{attrs:{description:"暂无数据"}})],1)},e=[],n=(a("91d5"),a("f0ca")),r=(a("66b9"),a("b650")),o=(a("da3c"),a("0b33")),c=(a("2994"),a("2bdd")),l=(a("bda7"),a("5e46")),d=(a("14d9"),a("e9c4"),a("9ab4")),u=a("60a3"),p=a("b32d");const h=t=>Object(p["a"])({url:"/wttCms/wxMember/orderList",method:"post",data:t});let v=class extends u["d"]{constructor(){super(...arguments),this.activeName="all",this.page=1,this.pageSize=8,this.orderList=[],this.listLoading=!1,this.listFinished=!1}mounted(){this.getShopOrderList()}tabClick(){this.page=1,this.orderList=[],this.listFinished=!1,this.getShopOrderList()}async getShopOrderList(){const t={order_status:-1,sort:-1,page:this.page,size:this.pageSize};"all"!==this.activeName&&(t.order_status=parseInt(this.activeName,10));try{this.$toast({type:"loading",message:"加载中...",duration:0});const{data:s}=await h(t);this.$toast.clear(),"[]"!==JSON.stringify(s.list)?(this.orderList=this.orderList.concat(s.list),s.list.length===this.pageSize?(this.page++,this.listLoading=!1):this.listFinished=!0):this.listFinished=!0}catch(s){this.$toast.clear()}}linkToDetail(t){this.$router.push({name:"OrderDetail",query:{parent_order_no:t}})}};v=Object(d["a"])([Object(u["a"])({components:{[l["a"].name]:l["a"],[c["a"].name]:c["a"],[o["a"].name]:o["a"],[r["a"].name]:r["a"],[n["a"].name]:n["a"]}})],v);var _=v,m=_,b=(a("59c0"),a("2877")),g=Object(b["a"])(m,i,e,!1,null,"70c16ba3",null);s["default"]=g.exports},"59c0":function(t,s,a){"use strict";a("6228")},6228:function(t,s,a){}}]);
//# sourceMappingURL=chunk-4df8d918.a49feb11.js.map