12.06前端

This commit is contained in:
@QQNZX 2023-12-06 09:41:19 +08:00
parent 1194f7db5c
commit 3bcbbf5d5d
2 changed files with 31 additions and 17 deletions

View File

@ -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() {

View File

@ -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,6 +206,10 @@
method: 'get',
params: _this.map,
}).then((res) => {
uni.showLoading({
title: '加载中'
});
if (res.code == 200) {
if (_this.map.page == 1) {
_this.orderList = res.data.records
_this.list = res.data.records
@ -212,6 +218,9 @@
_this.list = _this.list.concat(res.data.records)
}
_this.total = res.data.total
uni.hideLoading();
}
})
},
getTapIndex(index) {
@ -252,6 +261,11 @@
this.getMyOrder()
}
},
goComment() {
uni.navigateTo({
url: "/pagesMy/comment/comment"
})
},
goBack() {
uni.navigateBack()
}