Showing
2 changed files
with
4 additions
and
16 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-24 16:38:13 | 2 | * @Date: 2024-01-24 16:38:13 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-24 17:57:11 | 4 | + * @LastEditTime: 2024-01-25 11:17:39 |
| 5 | * @FilePath: /xysBooking/src/components/reserveCard.vue | 5 | * @FilePath: /xysBooking/src/components/reserveCard.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -14,7 +14,9 @@ | ... | @@ -14,7 +14,9 @@ |
| 14 | <div class="booking-list-item-body"> | 14 | <div class="booking-list-item-body"> |
| 15 | <div class="booking-num"> | 15 | <div class="booking-num"> |
| 16 | <div class="num-body">预约人数:<span>{{ props.data.total_qty }} 人</span></div> | 16 | <div class="num-body">预约人数:<span>{{ props.data.total_qty }} 人</span></div> |
| 17 | - <div><van-icon name="arrow" /></div> | 17 | + <div v-if="(props.data.status === CodeStatus.SUCCESS || props.data.status === CodeStatus.USED || props.data.status === CodeStatus.CANCEL)"> |
| 18 | + <van-icon name="arrow" /> | ||
| 19 | + </div> | ||
| 18 | </div> | 20 | </div> |
| 19 | <div class="booking-price">支付金额:<span>¥ {{ props.data.total_amt }}</span></div> | 21 | <div class="booking-price">支付金额:<span>¥ {{ props.data.total_amt }}</span></div> |
| 20 | <div class="booking-time">下单时间:<span>{{ props.data.order_time }}</span></div> | 22 | <div class="booking-time">下单时间:<span>{{ props.data.order_time }}</span></div> | ... | ... |
| ... | @@ -13,20 +13,6 @@ | ... | @@ -13,20 +13,6 @@ |
| 13 | :finished-text="finishedTextStatus ? '没有更多了' : ''" | 13 | :finished-text="finishedTextStatus ? '没有更多了' : ''" |
| 14 | @load="onLoad" | 14 | @load="onLoad" |
| 15 | > | 15 | > |
| 16 | - <!-- <div @click="goToDetail(item)" v-for="(item, index) in bookingList" :key="index" class="booking-list-item"> | ||
| 17 | - <div class="booking-list-item-header"> | ||
| 18 | - <div>{{ item.booking_time }}</div> | ||
| 19 | - <div :class="[formatStatus(item.status)?.key, 'status']">{{ formatStatus(item.status)?.value }}</div> | ||
| 20 | - </div> | ||
| 21 | - <div class="booking-list-item-body"> | ||
| 22 | - <div class="booking-num"> | ||
| 23 | - <div class="num-body">预约人数:<span>{{ item.total_qty }} 人</span></div> | ||
| 24 | - <div><van-icon name="arrow" /></div> | ||
| 25 | - </div> | ||
| 26 | - <div class="booking-price">支付金额:<span>¥ {{ item.total_amt }}</span></div> | ||
| 27 | - <div class="booking-time">下单时间:<span>{{ item.order_time }}</span></div> | ||
| 28 | - </div> | ||
| 29 | - </div> --> | ||
| 30 | <template v-for="(item, index) in bookingList" :key="index"> | 16 | <template v-for="(item, index) in bookingList" :key="index"> |
| 31 | <reserveCard :data="item" /> | 17 | <reserveCard :data="item" /> |
| 32 | </template> | 18 | </template> | ... | ... |
-
Please register or login to post a comment