12.06前端
This commit is contained in:
parent
1194f7db5c
commit
3bcbbf5d5d
@ -44,7 +44,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-top-box" style="margin-top: 45px;">
|
||||
<view class="centenr-sx" @click="gomyorder()">
|
||||
<view class="centenr-sx" @click="gomyorder(0)">
|
||||
<view class="centenr-img">
|
||||
<image src="../../static/my/dingdan.png" mode=""></image>
|
||||
</view>
|
||||
@ -54,7 +54,7 @@
|
||||
</view>
|
||||
|
||||
|
||||
<view class="centenr-sx">
|
||||
<view class="centenr-sx" @click="gomyorder(1)">
|
||||
<view class="centenr-img">
|
||||
<image src="../../static/my/dsy.png" mode=""></image>
|
||||
</view>
|
||||
@ -63,7 +63,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="centenr-sx">
|
||||
<view class="centenr-sx" @click="gomyorder(2)">
|
||||
<view class="centenr-img">
|
||||
<image src="../../static/my/ywc.png" mode=""></image>
|
||||
</view>
|
||||
@ -71,7 +71,7 @@
|
||||
已完成
|
||||
</view>
|
||||
</view>
|
||||
<view class="centenr-sx">
|
||||
<view class="centenr-sx" @click="gomyorder(3)">
|
||||
<view class="centenr-img">
|
||||
<image src="../../static/my/dpj.png" mode=""></image>
|
||||
</view>
|
||||
@ -172,9 +172,9 @@
|
||||
tabbar
|
||||
},
|
||||
methods: {
|
||||
gomyorder() {
|
||||
gomyorder(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pagesMy/myorder/myorder'
|
||||
url: '/pagesMy/myorder/myorder?id=' + id
|
||||
})
|
||||
},
|
||||
gotodaby() {
|
||||
|
@ -46,7 +46,7 @@
|
||||
<view class="" v-if="item.orderStatus=='paid'">{{parseTime(item.payTime)}}</view>
|
||||
<view class="" v-else>{{item.createTime}}</view>
|
||||
</view>
|
||||
<view class="end-box">
|
||||
<view class="end-box" @click="goComment()">
|
||||
<view class="anniu">
|
||||
<text>评价有礼</text>
|
||||
</view>
|
||||
@ -102,8 +102,10 @@
|
||||
scrollTop: 0,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getMyOrder()
|
||||
onLoad(option) {
|
||||
this.tapindex = option.id
|
||||
this.getTapIndex(option.id)
|
||||
// this.getMyOrder()
|
||||
this.getStores()
|
||||
this.getPayList()
|
||||
},
|
||||
@ -204,14 +206,21 @@
|
||||
method: 'get',
|
||||
params: _this.map,
|
||||
}).then((res) => {
|
||||
if (_this.map.page == 1) {
|
||||
_this.orderList = res.data.records
|
||||
_this.list = res.data.records
|
||||
} else {
|
||||
_this.orderList = _this.orderList.concat(res.data.records)
|
||||
_this.list = _this.list.concat(res.data.records)
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
if (res.code == 200) {
|
||||
if (_this.map.page == 1) {
|
||||
_this.orderList = res.data.records
|
||||
_this.list = res.data.records
|
||||
} else {
|
||||
_this.orderList = _this.orderList.concat(res.data.records)
|
||||
_this.list = _this.list.concat(res.data.records)
|
||||
}
|
||||
_this.total = res.data.total
|
||||
uni.hideLoading();
|
||||
}
|
||||
_this.total = res.data.total
|
||||
|
||||
})
|
||||
},
|
||||
getTapIndex(index) {
|
||||
@ -252,6 +261,11 @@
|
||||
this.getMyOrder()
|
||||
}
|
||||
},
|
||||
goComment() {
|
||||
uni.navigateTo({
|
||||
url: "/pagesMy/comment/comment"
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user