|
@@ -38,28 +38,31 @@
|
|
<div class="section" v-if="vipInfo.vipFlag !== 1">
|
|
<div class="section" v-if="vipInfo.vipFlag !== 1">
|
|
<div class="section-title">超级会员套餐</div>
|
|
<div class="section-title">超级会员套餐</div>
|
|
<div class="content combo-list">
|
|
<div class="content combo-list">
|
|
- <div>
|
|
|
|
- <template v-for="(item, index) in comboInfo">
|
|
|
|
- <div class="combo" :class="{active: index === currentIndex,recommend: item.recommend}"
|
|
|
|
- :key="index" @click="chooseCombo(index)">
|
|
|
|
- <div class="how-mounts">{{ item.duration }}个月</div>
|
|
|
|
- <div class="price"><i>¥</i>{{ item.price }}</div>
|
|
|
|
- <div class="average">{{ item.price / item.duration }}元/月</div>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <div class="pay-btn">
|
|
|
|
- <a href="javascript:void(0);" @click="payAction(1)">
|
|
|
|
- 立即支付{{ comboInfo[currentIndex].price }}元开通
|
|
|
|
- </a>
|
|
|
|
|
|
+ <template v-if="comboInfo.length > 0">
|
|
|
|
+ <div>
|
|
|
|
+ <template v-for="(item, index) in comboInfo">
|
|
|
|
+ <div class="combo" :class="{active: index === currentIndex,recommend: item.recommend}"
|
|
|
|
+ :key="index" @click="chooseCombo(index)">
|
|
|
|
+ <div class="how-mounts">{{ item.duration }}个月</div>
|
|
|
|
+ <div class="price"><i>¥</i>{{ item.price }}</div>
|
|
|
|
+ <div class="average">{{ item.price / item.duration }}元/月</div>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
- <div class="pay-btn plain">
|
|
|
|
- <a href="javascript:void(0);" @click="payAction(2)">
|
|
|
|
- 抵扣{{ comboInfo[currentIndex].price * comboInfo[currentIndex].proportion }}个采美豆开通
|
|
|
|
- </a>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <div class="pay-btn">
|
|
|
|
+ <a href="javascript:void(0);" @click="payAction(1)">
|
|
|
|
+ 立即支付{{ comboInfo[currentIndex].price }}元开通
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="pay-btn plain">
|
|
|
|
+ <a href="javascript:void(0);" @click="payAction(2)">
|
|
|
|
+ 抵扣{{ comboInfo[currentIndex].price * comboInfo[currentIndex].proportion }}个采美豆开通
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ <span v-else>暂无可选套餐~</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--服务列表-->
|
|
<!--服务列表-->
|
|
@@ -95,7 +98,7 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<!--优惠商品-->
|
|
<!--优惠商品-->
|
|
- <div class="section">
|
|
|
|
|
|
+ <div class="section" v-if="productList.length > 0">
|
|
<div class="section-title clear">优惠商品<a href="/user/member-product.html">查看更多></a></div>
|
|
<div class="section-title clear">优惠商品<a href="/user/member-product.html">查看更多></a></div>
|
|
<div class="content goods-list">
|
|
<div class="content goods-list">
|
|
<div class="goods" v-for="(product, index) in productList" :key="index">
|
|
<div class="goods" v-for="(product, index) in productList" :key="index">
|
|
@@ -123,11 +126,11 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--底部支付按钮 仅未开通和到期显示-->
|
|
<!--底部支付按钮 仅未开通和到期显示-->
|
|
- <div class="pay-amount-bottom" v-if="vipInfo.vipFlag !== 1 && showBottomBtns">
|
|
|
|
|
|
+ <div class="pay-amount-bottom" v-if="comboInfo.length > 0 && vipInfo.vipFlag !== 1 && showBottomBtns">
|
|
<div>
|
|
<div>
|
|
<div class="pay-btn plain">
|
|
<div class="pay-btn plain">
|
|
<a href="javascript:void(0);" @click="payAction(1)">
|
|
<a href="javascript:void(0);" @click="payAction(1)">
|
|
- 抵扣{{ comboInfo[currentIndex].price * 100 }}个采美豆开通
|
|
|
|
|
|
+ 抵扣{{ comboInfo[currentIndex].price * comboInfo[currentIndex].proportion }}个采美豆开通
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="pay-btn">
|
|
<div class="pay-btn">
|
|
@@ -143,28 +146,31 @@
|
|
<div class="renew-popup" v-if="showRenewPopup">
|
|
<div class="renew-popup" v-if="showRenewPopup">
|
|
<div class="popup-title">续费超级会员套餐<span class="close" @click="handleCloseRenewPopup">×</span></div>
|
|
<div class="popup-title">续费超级会员套餐<span class="close" @click="handleCloseRenewPopup">×</span></div>
|
|
<div class="content combo-list">
|
|
<div class="content combo-list">
|
|
- <div>
|
|
|
|
- <template v-for="(item, index) in comboInfo">
|
|
|
|
- <div class="combo" :class="{active: index === currentIndex,recommend: item.recommend}"
|
|
|
|
- :key="index" @click="chooseCombo(index)">
|
|
|
|
- <div class="how-mounts">{{ item.duration }}个月</div>
|
|
|
|
- <div class="price"><i>¥</i>{{ item.price }}</div>
|
|
|
|
- <div class="average">{{ item.price / item.duration }}元/月</div>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <div class="pay-btn">
|
|
|
|
- <a href="javascript:void(0);" @click="payAction(1)">
|
|
|
|
- 立即支付{{ comboInfo[currentIndex].price }}元开通
|
|
|
|
- </a>
|
|
|
|
|
|
+ <template v-if="comboInfo.length > 0">
|
|
|
|
+ <div>
|
|
|
|
+ <template v-for="(item, index) in comboInfo">
|
|
|
|
+ <div class="combo" :class="{active: index === currentIndex,recommend: item.recommend}"
|
|
|
|
+ :key="index" @click="chooseCombo(index)">
|
|
|
|
+ <div class="how-mounts">{{ item.duration }}个月</div>
|
|
|
|
+ <div class="price"><i>¥</i>{{ item.price }}</div>
|
|
|
|
+ <div class="average">{{ item.price / item.duration }}元/月</div>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
- <div class="pay-btn plain">
|
|
|
|
- <a href="javascript:void(0);" @click="payAction(2)">
|
|
|
|
- 抵扣{{ comboInfo[currentIndex].price * comboInfo[currentIndex].proportion }}个采美豆开通
|
|
|
|
- </a>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <div class="pay-btn">
|
|
|
|
+ <a href="javascript:void(0);" @click="payAction(1)">
|
|
|
|
+ 立即支付{{ comboInfo[currentIndex].price }}元开通
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="pay-btn plain">
|
|
|
|
+ <a href="javascript:void(0);" @click="payAction(2)">
|
|
|
|
+ 抵扣{{ comboInfo[currentIndex].price * comboInfo[currentIndex].proportion }}个采美豆开通
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ <span v-else>暂无可选套餐~</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--立即支付弹窗-->
|
|
<!--立即支付弹窗-->
|