From d89c495a7da517d653e9ea42b8e6405eef823ef6 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期一, 29 七月 2024 16:23:24 +0800 Subject: [PATCH] update 还有售后需要测试一下 --- pages/order/order.vue | 27 ++++++++++++++++++--------- 1 files changed, 18 insertions(+), 9 deletions(-) diff --git a/pages/order/order.vue b/pages/order/order.vue index 2c4d1a8..7a3e36d 100644 --- a/pages/order/order.vue +++ b/pages/order/order.vue @@ -19,7 +19,7 @@ }, onLoad(options) { this.query.status = options.status || '' - this.listApi = `/api/customer/list` + this.listApi = `/api/customer/order/list` this.getList() }, onReachBottom() { @@ -34,8 +34,9 @@ methods: { toDetail(item) { // 订单详情页面 + console.log(' toDetail item',item) uni.navigateTo({ - url: 'pages/order/order-detail?id=' + item.id + url: '/pages/order/order-detail?id=' + item.id }) }, }, @@ -48,15 +49,20 @@ <view class="flex"> <image class="image img100" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/67/67acf980f310460a97d305c6ffc7e811位图@2x (1).png"></image> - <view>消费订单:¥<span>{{ '0' }}</span> 总消费:¥<span>{{ '0' }}</span></view> + <view>消费订单:¥<span class="m-r-10">{{ '0' }}</span> 总消费:¥<span>{{ '0' }}</span></view> </view> </view> - <view class="status-list m-t-12 flex"> - <view v-for="each of status" :key="each.value" class="status-each" :class="[query.status===each.value?'cur':'']"> + <view class="status-list m-t-12 flex flex-wrap-normal"> + <view v-for="each of status" :key="each.value" + @click.stop="(e)=>{ + query.status = each.value || ''; + refreshList(); + }" + class="status-each" :class="[query.status===each.value?'cur':'']"> {{ each.name }} </view> </view> - <no-data v-if="!list||list.length==0" style="width: 100%;" class="m-t-12"></no-data> + <no-data v-if="!list||list.length===0" style="width: 100%;" class="m-t-12"></no-data> <view v-for="(item,index) in list" :key="index" class="m-t-12"> <view @click.stop="toDetail(item)" class="order-item list-item"> <view class="title flex"> @@ -108,6 +114,8 @@ .order-item { margin-bottom: 20rpx; padding: 28rpx; + background-color: #fff; + border-radius: 8rpx; .title { font-weight: 600; @@ -148,9 +156,10 @@ line-height: 40rpx; margin: 0 auto; //min-width: ; - padding-left: 20rpx; - padding-right: 20rpx; + // padding-left: 10rpx; + // padding-right: 10rpx; width: fit-content; + min-width: 120rpx; text-align: center; } @@ -158,7 +167,7 @@ font-weight: 600; font-size: 32rpx; color: #20613D; - line-height: 44rpx; + // line-height: 44rpx; } .status-each:first-child { -- Gitblit v1.9.3