|
@@ -20,7 +20,7 @@
|
|
|
<view class="order-list" v-if="arrList && arrList.length">
|
|
|
<view class="tab-content" v-for="(item, index) in arrList" :key="index" @click="goOrderDetail(item)">
|
|
|
<view class="order-top flex-start">
|
|
|
- <text class="name">{{ item.packageName }}({{ item.quantity }})</text>
|
|
|
+ <text class="name">{{ item.packageName }}({{ item.quantity }}条视频)</text>
|
|
|
<text v-if="item.paymentStatus==='CANCELLED'" class="status cancel">{{
|
|
|
item.paymentStatus | orderStatus
|
|
|
}}
|
|
@@ -158,6 +158,13 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
watch: {},
|
|
|
+ onShow() {
|
|
|
+ // this.mescroll.upOption.page.num = 1;
|
|
|
+ this.arrList = [];
|
|
|
+ if (this.mescroll) {
|
|
|
+ this.mescroll.resetUpScroll(); // 触发上拉加载
|
|
|
+ }
|
|
|
+ },
|
|
|
onLoad(options) {
|
|
|
if(options.status) this.paymentStatus = options.status
|
|
|
if(options.current) this.current = options.current
|
|
@@ -222,9 +229,9 @@ export default {
|
|
|
},
|
|
|
tabsChange(item) {
|
|
|
if(this.paymentStatus == item.value) return
|
|
|
- this.paymentStatus = item.value
|
|
|
- this.mescroll.resetUpScroll()
|
|
|
- this.mescroll.scrollTo(0, 300)
|
|
|
+ this.paymentStatus = item.value
|
|
|
+ this.mescroll.resetUpScroll()
|
|
|
+ this.mescroll.scrollTo(0, 300)
|
|
|
},
|
|
|
// upCallback(){
|
|
|
// console.log('123456');
|
|
@@ -271,7 +278,8 @@ export default {
|
|
|
cancelOrder({
|
|
|
orderId: Number(orderId)
|
|
|
}).then(() => {
|
|
|
- that.arrList.splice(that.arrList.findIndex(item => item.orderId === orderId), 1)
|
|
|
+ that.mescroll.resetUpScroll()
|
|
|
+ that.mescroll.scrollTo(0, 300)
|
|
|
})
|
|
|
} else if (res.cancel) {
|
|
|
console.log('用户点击取消');
|
|
@@ -290,7 +298,8 @@ export default {
|
|
|
updateOrder({
|
|
|
orderId: Number(orderId),
|
|
|
}).then(() => {
|
|
|
- that.arrList.splice(that.arrList.findIndex(item => item.orderId === orderId), 1)
|
|
|
+ that.mescroll.resetUpScroll()
|
|
|
+ that.mescroll.scrollTo(0, 300)
|
|
|
})
|
|
|
} else if (res.cancel) {
|
|
|
console.log('用户点击取消');
|
|
@@ -308,7 +317,8 @@ export default {
|
|
|
checkOrder({
|
|
|
orderId: Number(orderId),
|
|
|
}).then(() => {
|
|
|
- that.arrList.splice(that.arrList.findIndex(item => item.orderId === orderId), 1)
|
|
|
+ that.mescroll.resetUpScroll()
|
|
|
+ that.mescroll.scrollTo(0, 300)
|
|
|
})
|
|
|
} else if (res.cancel) {
|
|
|
console.log('用户点击取消');
|
|
@@ -326,7 +336,8 @@ export default {
|
|
|
aftermarketOrder({
|
|
|
orderId: Number(orderId)
|
|
|
}).then(() => {
|
|
|
- that.arrList.splice(that.arrList.findIndex(item => item.orderId === orderId), 1)
|
|
|
+ that.mescroll.resetUpScroll()
|
|
|
+ that.mescroll.scrollTo(0, 300)
|
|
|
})
|
|
|
} else if (res.cancel) {
|
|
|
console.log('用户点击取消');
|
|
@@ -345,7 +356,8 @@ export default {
|
|
|
cancelAftermarketOrder({
|
|
|
orderId: Number(orderId)
|
|
|
}).then(() => {
|
|
|
- that.arrList.splice(that.arrList.findIndex(item => item.orderId === orderId), 1)
|
|
|
+ that.mescroll.resetUpScroll()
|
|
|
+ that.mescroll.scrollTo(0, 300)
|
|
|
})
|
|
|
} else if (res.cancel) {
|
|
|
console.log('用户点击取消');
|