Showing
1 changed file
with
3 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-16 13:19:23 | 2 | * @Date: 2024-01-16 13:19:23 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-27 12:31:05 | 4 | + * @LastEditTime: 2024-01-29 16:05:29 |
| 5 | * @FilePath: /xysBooking/src/views/bookingDetail.vue | 5 | * @FilePath: /xysBooking/src/views/bookingDetail.vue |
| 6 | * @Description: 预约记录详情 | 6 | * @Description: 预约记录详情 |
| 7 | --> | 7 | --> |
| ... | @@ -31,7 +31,7 @@ | ... | @@ -31,7 +31,7 @@ |
| 31 | </div> | 31 | </div> |
| 32 | </div> | 32 | </div> |
| 33 | <div style="height: 5rem;"></div> | 33 | <div style="height: 5rem;"></div> |
| 34 | - <div v-if="billInfo.status === CodeStatus.SUCCESS" class="cancel-wrapper"> | 34 | + <div v-if="billInfo.status === CodeStatus.SUCCESS && billInfo.show_cancel_reserve === 1" class="cancel-wrapper"> |
| 35 | <div @click="cancelBooking" class="cancel-btn ">取消预约</div> | 35 | <div @click="cancelBooking" class="cancel-btn ">取消预约</div> |
| 36 | </div> | 36 | </div> |
| 37 | <div v-if="loading" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center;background: rgba(0, 0, 0, 0.5);"> | 37 | <div v-if="loading" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center;background: rgba(0, 0, 0, 0.5);"> |
| ... | @@ -118,7 +118,7 @@ onMounted(async () => { | ... | @@ -118,7 +118,7 @@ onMounted(async () => { |
| 118 | // | 118 | // |
| 119 | data.datetime = data && formatDatetime(data); | 119 | data.datetime = data && formatDatetime(data); |
| 120 | data.order_time = data.created_time.slice(0, -3); | 120 | data.order_time = data.created_time.slice(0, -3); |
| 121 | - // | 121 | + // show_cancel_reserve 显示“取消预约”按钮 1=显示,否则不显示 |
| 122 | billInfo.value = data; | 122 | billInfo.value = data; |
| 123 | // 显示二维码状态 | 123 | // 显示二维码状态 |
| 124 | switch (billInfo.value.status) { | 124 | switch (billInfo.value.status) { | ... | ... |
-
Please register or login to post a comment