|
@@ -24,20 +24,18 @@
|
|
>
|
|
>
|
|
</li> -->
|
|
</li> -->
|
|
<li class="nav-link">
|
|
<li class="nav-link">
|
|
- <a href="https://www.ptcshop.com.au/" target="_blank"
|
|
|
|
- >ONLINE SHOP</a
|
|
|
|
- >
|
|
|
|
|
|
+ <a href="https://www.ptcshop.com.au/">ONLINE SHOP</a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="nav-link">
|
|
|
|
+ <a href="https://www.ptc.net.au/">PTC Care Plus</a>
|
|
</li>
|
|
</li>
|
|
- <li class="nav-link">PTC Care Plus</li>
|
|
|
|
<li class="nav-link">
|
|
<li class="nav-link">
|
|
- <a href="https://www.ptc.net.au/store-locator/" target="_blank"
|
|
|
|
|
|
+ <a href="https://www.ptc.net.au/store-locator/"
|
|
>SOTRE LOCATION</a
|
|
>SOTRE LOCATION</a
|
|
>
|
|
>
|
|
</li>
|
|
</li>
|
|
<li class="nav-link">
|
|
<li class="nav-link">
|
|
- <a href="https://www.ptc.net.au/contact-us/" target="_blank"
|
|
|
|
- >CONTACT US</a
|
|
|
|
- >
|
|
|
|
|
|
+ <a href="https://www.ptc.net.au/contact-us/">CONTACT US</a>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
@@ -82,15 +80,19 @@
|
|
</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>
|
|
|
|
- <button class="btn" @click="$router.push('/fill-order')">
|
|
|
|
- BUY
|
|
|
|
- </button>
|
|
|
|
|
|
+ <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="handleBuy">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" @click="handleBuy">Buy now ></strong>
|
|
</div>
|
|
</div>
|
|
<div class="swiper">
|
|
<div class="swiper">
|
|
<div class="swiper-wrapper">
|
|
<div class="swiper-wrapper">
|
|
@@ -147,7 +149,7 @@
|
|
</router-link>
|
|
</router-link>
|
|
</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"
|
|
<router-link to="/repair/history"
|
|
>MY REPAIR REQUEST</router-link
|
|
>MY REPAIR REQUEST</router-link
|
|
@@ -164,7 +166,10 @@
|
|
<router-link to="/invite"
|
|
<router-link to="/invite"
|
|
>INVITE FRIENDS
|
|
>INVITE FRIENDS
|
|
<span v-if="state.coupon.coupon_amount" class="ptc-tag"
|
|
<span v-if="state.coupon.coupon_amount" class="ptc-tag"
|
|
- >Get a ${{ state.coupon.coupon_amount }} coupon</span
|
|
|
|
|
|
+ >Get ${{
|
|
|
|
+ state.coupon.coupon_amount * state.coupon.coupon_num
|
|
|
|
+ }}
|
|
|
|
+ coupon</span
|
|
></router-link
|
|
></router-link
|
|
>
|
|
>
|
|
</li>
|
|
</li>
|
|
@@ -240,6 +245,10 @@ function onClickMine() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function handleBuy() {
|
|
|
|
+ router.push('/fill-order')
|
|
|
|
+}
|
|
|
|
+
|
|
async function signOut() {
|
|
async function signOut() {
|
|
await Dialog.confirm('TIPS', 'Are you sure you want to sign out?', {
|
|
await Dialog.confirm('TIPS', 'Are you sure you want to sign out?', {
|
|
confirmText: 'YES',
|
|
confirmText: 'YES',
|
|
@@ -550,7 +559,10 @@ async function signOut() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.p2 {
|
|
.p2 {
|
|
- padding: 48px;
|
|
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ padding: 0 48px;
|
|
height: 224px;
|
|
height: 224px;
|
|
border-radius: 0 0 8px 8px;
|
|
border-radius: 0 0 8px 8px;
|
|
border: 2px solid #e9ebf0;
|
|
border: 2px solid #e9ebf0;
|