12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-07a1fc9c"],{"0cd8":function(t,i,e){"use strict";var s=e("5ca1"),a=e("7b23");s(s.P+s.F*!e("2f21")([].reduce,!0),"Array",{reduce:function(t){return a(this,t,arguments.length,arguments[1],!1)}})},"436f6":function(t,i,e){"use strict";e.r(i);e("0cd8"),e("7514"),e("57e7");var s=function(){var t=this,i=t._self._c;return i("div",{staticClass:"wrap"},[i("div",{staticClass:"header"},[i("div",{staticClass:"top"},[i("img",{staticClass:"back",attrs:{src:e("f5a4")},on:{click:function(i){return t.$router.back()}}}),i("div",{staticClass:"search-box"},[i("img",{staticClass:"search-icon",attrs:{src:e("b6fd"),alt:""}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.params.search_key,expression:"params.search_key"}],staticClass:"search-ipt",attrs:{placeholder:"搜素我的订单"},domProps:{value:t.params.search_key},on:{keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.handleSearch.apply(null,arguments)},blur:t.handleSearch,input:function(i){i.target.composing||t.$set(t.params,"search_key",i.target.value)}}})])]),i("div",{staticClass:"tab"},[i("van-tabs",{attrs:{color:"#FFF"},on:{change:t.handleChange},model:{value:t.tab_index,callback:function(i){t.tab_index=i},expression:"tab_index"}},t._l(t.tab_list,(function(t){return i("van-tab",{attrs:{title:t.label}})})),1)],1)]),i("div",{staticClass:"content"},[i("van-swipe",{ref:"swiper",attrs:{width:"100vw",loop:!1,"show-indicators":!1,"initial-swipe":t.tab_index},on:{change:t.handleChange}},t._l(t.tab_list,(function(e,s){return i("van-swipe-item",[i("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:e.loading,callback:function(i){t.$set(e,"loading",i)},expression:"swipe_item.loading"}},[i("van-list",{attrs:{"finished-text":"没有更多了",finished:e.finished},on:{load:function(i){return t.getList(t.params,e,s)}},model:{value:e.loading,callback:function(i){t.$set(e,"loading",i)},expression:"swipe_item.loading"}},[i("div",{staticClass:"list"},t._l(e.list,(function(e){return i("div",{staticClass:"list-item",on:{click:function(i){return t.$router.push("/product-order-detail?order_id="+e.id)}}},[i("div",{staticClass:"header"},[i("div",{staticClass:"title"},[t._v("商品")]),0!==e.status?i("div",{staticClass:"type"},[t._v("\n "+t._s(t.tab_list.find((function(t){return t.status==e.status})).label)+"\n ")]):i("div",{staticClass:"timer"},[i("div",{staticClass:"timer-type"},[t._v("待付款")]),i("div",{staticClass:"timer-CountDown"},[i("van-count-down",{attrs:{time:new Date(e.expire_time).getTime()>(new Date).getTime()?new Date(e.expire_time).getTime()-(new Date).getTime():0,format:"HH小时mm分钟"}})],1)])]),i("div",{staticClass:"goods"},[i("div",{staticClass:"goods-cover",on:{touchmove:function(t){t.stopPropagation()}}},t._l(e.order_item,(function(t){return i("img",{staticClass:"cover",attrs:{src:t.cover}})})),0),1==e.order_item.length?i("div",{staticClass:"goods-info"},[i("div",{staticClass:"top"},[i("div",{staticClass:"name"},[t._v("\n "+t._s(e.order_item[0].goods_name)+"\n ")]),i("div",{staticClass:"price"},[i("span",[t._v("¥")]),t._v(t._s(e.order_item[0].pay_price)+"\n ")])]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"spec"},[t._v("\n "+t._s(e.order_item[0].goods_spec)+"\n ")]),i("div",{staticClass:"num"},[t._v("x"+t._s(e.order_item[0].num))])])]):i("div",{staticClass:"goods-num"},[t._v("\n 共"+t._s(e.order_item.reduce((function(t,i){return t+i.num}),0))+"件\n ")])]),i("div",{staticClass:"pay-price"},[i("div",{staticClass:"label"},[t._v("实付款")]),i("div",{staticClass:"price"},[i("span",[t._v("¥")]),t._v(t._s(e.price_total)+"\n ")])]),i("div",{staticClass:"control",on:{click:function(t){t.stopPropagation()}}},[i("van-popover",{attrs:{trigger:"click",placement:"bottom-start",actions:[{text:"查看发票"}]},on:{select:function(i){return t.popupSelect(i,e)}},scopedSlots:t._u([{key:"reference",fn:function(){return[i("div",{staticClass:"more"},[t._v("更多")])]},proxy:!0}],null,!0),model:{value:e.showPopover,callback:function(i){t.$set(e,"showPopover",i)},expression:"item.showPopover"}}),i("div",{staticClass:"btn-box"},t._l(t.tab_list.find((function(t){return t.status==e.status})).btnList,(function(s,a){return i("div",{staticClass:"btn",class:{confirm:"立即支付"==s,blue:a==t.tab_list.find((function(t){return t.status==e.status})).btnList.length-1},on:{click:function(i){i.stopPropagation(),t.btnListAll.find((function(t){return t.label==s})).click()}}},[t._v("\n "+t._s(s)+"\n ")])})),0)],1)])})),0)])],1)],1)})),1)],1)])},a=[],n=(e("1c01"),e("58b2"),e("8e6e"),e("d25f"),e("456d"),e("ade3")),r=(e("ac6a"),e("f3e2"),e("f523"));function o(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,s)}return e}function c(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?o(Object(e),!0).forEach((function(i){Object(n["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}var l={data:function(){return{tab_index:0,tab_list:[{label:"全部",status:-1,list:[],page:1,loading:!1,finished:!1},{label:"待付款",status:0,list:[],page:1,loading:!1,finished:!1,btnList:["取消订单","立即支付"]},{label:"待发货",status:1,list:[],page:1,loading:!1,finished:!1,btnList:["加入购物车","申请退款","提醒发货"]},{label:"待收货",status:2,list:[],page:1,loading:!1,finished:!1,btnList:["加入购物车","查看物流","确认收货"]},{label:"已完成",status:3,list:[],page:1,loading:!1,finished:!1,btnList:["删除订单","加入购物车","查看物流"]},{label:"已取消",status:9,list:[],page:1,loading:!1,finished:!1,btnList:["删除订单","再次购买"]}],params:{page_num:10,search_key:"",pay_state:-1,cancel_state:-1,apply_refund:-1}}},computed:{btnListAll:function(){return[{label:"取消订单",click:function(){console.log("222222222")}},{label:"加入购物车",click:function(){}},{label:"申请退款",click:function(){}},{label:"查看物流",click:function(){}},{label:"删除订单",click:function(){}},{label:"立即支付",click:function(){}},{label:"提醒发货",click:function(){}},{label:"确认收货",click:function(){}},{label:"再次购买",click:function(){}}]}},mounted:function(){var t=this;this.handleChange(this.$route.query.tab),this.tab_list.forEach((function(i){t.getList(t.params,i)}))},methods:{getList:function(t,i,e){if(void 0!==e&&this.tab_index!==e)return i.loading=!1;i.loading=!0,r["p"].getOrderList(c(c({},t),{},{page:i.page,status:i.status})).then((function(t){var e=t.data;e.list&&e.list.forEach((function(t){return t.showPopover=!1})),1==i.page?i.list=e.list:i.list=i.list.concat(e.list),i.finished=i.list.length==e.total_count,i.page++,i.loading=!1}))},onRefresh:function(){var t=this.tab_list[this.tab_index];t.list=[],t.page=1,this.getList(this.params,t,this.tab_index)},handleChange:function(t){this.tab_index=t,this.$refs["swiper"].swipeTo(t,{immediate:!1})},popupSelect:function(t,i){console.log(t,i)},handleSearch:function(){var t=this;this.tab_list.forEach((function(i){i.page=1,i.list=[],t.getList(t.params,i)}))}}},u=l,d=(e("55fd"),e("2877")),f=Object(d["a"])(u,s,a,!1,null,"13bbdec1",null);i["default"]=f.exports},"55fd":function(t,i,e){"use strict";e("ea2a")},7514:function(t,i,e){"use strict";var s=e("5ca1"),a=e("0a49")(5),n="find",r=!0;n in[]&&Array(1)[n]((function(){r=!1})),s(s.P+s.F*r,"Array",{find:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),e("9c6c")(n)},"7b23":function(t,i,e){var s=e("d8e8"),a=e("4bf8"),n=e("626a"),r=e("9def");t.exports=function(t,i,e,o,c){s(i);var l=a(t),u=n(l),d=r(l.length),f=c?d-1:0,p=c?-1:1;if(e<2)for(;;){if(f in u){o=u[f],f+=p;break}if(f+=p,c?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:d>f;f+=p)f in u&&(o=i(o,u[f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