Browse Source

修复bug

master
前端-胡立永 1 month ago
parent
commit
d317241d30
2 changed files with 4 additions and 8 deletions
  1. +3
    -2
      components/cart/CardList.vue
  2. +1
    -6
      pages/index/cart.vue

+ 3
- 2
components/cart/CardList.vue View File

@ -3,7 +3,8 @@
<view class="container" @click="toOrderDetails(item)" v-for="(item, index) in cardListData" :key="index">
<view class="head">
<text class="orderTime">下单时间{{item.createTime}}</text>
<text class="orderStatus" :class="item.state === 'U' ? 'active' : ''">{{item.stateText}}</text>
<text class="orderStatus" class="active">{{ stateText[item.state] }}</text>
<!-- <text class="orderStatus" :class="item.state === 'U' ? 'active' : ''">{{item.stateText}}</text> -->
</view>
<view class="content cardStyle_" :class="['U','S'].includes(item.state) ? 'content_border' : ''">
<view class="left">
@ -51,7 +52,7 @@
},
data() {
return {
stateText : ['', '待参加', '已完成', '已取消'],
};
},
components: {


+ 1
- 6
pages/index/cart.vue View File

@ -13,11 +13,7 @@
<cardList :cardListData="cardListData" @btnClick="btnClick" @toOrderDetails="toOrderDetails" />
<uv-load-more :status="status" fontSize="24rpx" dashed line />
</view>
<uv-modal
ref="modal"
align="center"
content='是否取消订单?'
@confirm="confirm"></uv-modal>
<signInQrcodePopup ref="signInQrcodePopup"/>
@ -132,7 +128,6 @@
this.orderId = item.id;
if (type == 0) {
// this.$refs.modal.open();
uni.showModal({
title: '是否取消订单?',
success : res => {


Loading…
Cancel
Save