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