|
@@ -9,11 +9,11 @@
|
|
|
v-for="item of list"
|
|
|
:key="item.id"
|
|
|
class="ptc-block wrapper"
|
|
|
- :class="{ pb24: item.status !== 1 }"
|
|
|
+ :class="{ pb24: item.status != 1 }"
|
|
|
>
|
|
|
<div
|
|
|
class="pointer"
|
|
|
- @click="item.status === 1 && $router.push(`/order/${item.id}`)"
|
|
|
+ @click="item.status == 1 && $router.push(`/order/${item.id}`)"
|
|
|
>
|
|
|
<div class="cell-group border-bottom">
|
|
|
<div class="cell">
|
|
@@ -22,14 +22,14 @@
|
|
|
<span
|
|
|
class="ptc-tag"
|
|
|
:class="{
|
|
|
- 'not-paid': item.status === 0,
|
|
|
- paid: item.status === 1,
|
|
|
+ 'not-paid': item.status == 0,
|
|
|
+ paid: item.status == 1,
|
|
|
canceled: item.stauts > 1,
|
|
|
}"
|
|
|
>{{
|
|
|
- item.status === 0
|
|
|
+ item.status == 0
|
|
|
? 'Not Paid'
|
|
|
- : item.status === 1
|
|
|
+ : item.status == 1
|
|
|
? 'Paid'
|
|
|
: 'Canceled'
|
|
|
}}</span
|
|
@@ -78,8 +78,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="item.status !== 1" class="button-group">
|
|
|
- <template v-if="item.status === 0">
|
|
|
+ <div v-if="item.status != 1" class="button-group">
|
|
|
+ <template v-if="item.status == 0">
|
|
|
<button class="ptc-button" @click="handlePay(item.stripe_pay_link)">
|
|
|
Pay 14:40
|
|
|
</button>
|