From 8c9fe474d3d43265c33653f17bb411336269dfab Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 26 七月 2024 15:34:22 +0800 Subject: [PATCH] fix bug 接口对接和样式调整 --- pages/order/order.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pages/order/order.vue b/pages/order/order.vue index 2c4d1a8..33e9d8c 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() { @@ -51,12 +51,17 @@ <view>消费订单:¥<span>{{ '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"> @@ -151,6 +156,7 @@ padding-left: 20rpx; padding-right: 20rpx; width: fit-content; + min-width: 120rpx; text-align: center; } -- Gitblit v1.9.3