|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="order-page">
|
|
|
- <app-tabs :tabs="tabs" :isFixed="true" :currentTab="tabIndex" @change="change" itemWidth="20%"/>
|
|
|
+ <app-tabs :tabs="tabs" :isFixed="true" :currentTab="tabIndex" @change="changeTab" itemWidth="20%"/>
|
|
|
|
|
|
<view style="margin-left:60upx;margin-top:110upx;padding-bottom:30upx;position: relative;">
|
|
|
<DateSelect @selectDateFn="selectDateFn" defaultShowName='时间' />
|
|
|
@@ -55,7 +55,7 @@ export default {
|
|
|
key: '2'
|
|
|
},
|
|
|
{
|
|
|
- name: "待收货",
|
|
|
+ name: "配送中",
|
|
|
value: 0,
|
|
|
key: '3'
|
|
|
},
|
|
|
@@ -121,19 +121,16 @@ export default {
|
|
|
this.resetList()
|
|
|
this.getMyBuy()
|
|
|
},
|
|
|
- change(e) {
|
|
|
+ changeTab(e) {
|
|
|
if (this.tabIndex != e.index) {
|
|
|
- uni.pageScrollTo({
|
|
|
- scrollTop: 0,
|
|
|
- duration: 0
|
|
|
- });
|
|
|
+ uni.pageScrollTo({ scrollTop: 0, duration: 0 })
|
|
|
this.resetList();
|
|
|
- this.list.finished = true;
|
|
|
- this.tabIndex = e.index;
|
|
|
- this.status = e.item.key;
|
|
|
+ this.list.finished = true
|
|
|
+ this.tabIndex = e.index
|
|
|
+ this.status = this.tabs[this.tabIndex].key
|
|
|
this.getMyBuy().then(() => {
|
|
|
- this.list.finished = false;
|
|
|
- });
|
|
|
+ this.list.finished = false
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
init() {
|