|
@@ -12,13 +12,21 @@
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div v-if="!state.userInfo.orders.length" class="p2">
|
|
<div v-if="!state.userInfo.orders.length" class="p2">
|
|
- <p class="txt">You have not purchased a member</p>
|
|
|
|
|
|
+ <p class="txt">
|
|
|
|
+ You have not purchased a member{{
|
|
|
|
+ state.userInfo.num_order_expired > 0
|
|
|
|
+ ? `, $${state.rebuyDiscount} off for additional services`
|
|
|
|
+ : ''
|
|
|
|
+ }}
|
|
|
|
+ </p>
|
|
<button class="btn" @click="$router.push('/fill-order')">BUY</button>
|
|
<button class="btn" @click="$router.push('/fill-order')">BUY</button>
|
|
</div>
|
|
</div>
|
|
<div v-else class="p3">
|
|
<div v-else class="p3">
|
|
<div class="txt">
|
|
<div class="txt">
|
|
- $10 off for additional services |
|
|
|
|
- <strong class="primary">Buy now ></strong>
|
|
|
|
|
|
+ ${{ state.rebuyDiscount }} off for additional services |
|
|
|
|
+ <strong class="primary pointer" @click="$router.push('/fill-order')"
|
|
|
|
+ >Buy now ></strong
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
<div class="swiper">
|
|
<div class="swiper">
|
|
<div
|
|
<div
|
|
@@ -62,7 +70,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ul class="dropdown-list">
|
|
<ul class="dropdown-list">
|
|
- <template v-if="state.userInfo.orders.length">
|
|
|
|
|
|
+ <template v-if="state.userInfo.num_order > 0">
|
|
<li class="dropdown-item i1">
|
|
<li class="dropdown-item i1">
|
|
<router-link to="/repair/history">MY REPAIR REQUEST</router-link>
|
|
<router-link to="/repair/history">MY REPAIR REQUEST</router-link>
|
|
</li>
|
|
</li>
|
|
@@ -76,7 +84,12 @@
|
|
<li class="dropdown-item i4">
|
|
<li class="dropdown-item i4">
|
|
<router-link to="/invite"
|
|
<router-link to="/invite"
|
|
>INVITE FRIENDS
|
|
>INVITE FRIENDS
|
|
- <span class="ptc-tag">Get a $10 coupon</span></router-link
|
|
|
|
|
|
+ <span v-if="state.coupon.coupon_amount" class="ptc-tag"
|
|
|
|
+ >Get ${{
|
|
|
|
+ state.coupon.coupon_amount * state.coupon.coupon_num
|
|
|
|
+ }}
|
|
|
|
+ coupon</span
|
|
|
|
+ ></router-link
|
|
>
|
|
>
|
|
</li>
|
|
</li>
|
|
<li class="dropdown-item i5">
|
|
<li class="dropdown-item i5">
|