|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<Layout class="vip-subscribe-buy" contentWithState="full" :needAd="false">
|
|
<Layout class="vip-subscribe-buy" contentWithState="full" :needAd="false">
|
|
- <div class="vip-subscribe-title">开通超级订阅</div>
|
|
|
|
|
|
+ <div class="vip-subscribe-title">{{ buyTypeText }}超级订阅</div>
|
|
<div class="vip-subscribe-content">
|
|
<div class="vip-subscribe-content">
|
|
<div class="vip-sub-list">
|
|
<div class="vip-sub-list">
|
|
<SelectorCard
|
|
<SelectorCard
|
|
@@ -33,7 +33,7 @@
|
|
<div class="vip-sub-item-content">
|
|
<div class="vip-sub-item-content">
|
|
<CouponCardList
|
|
<CouponCardList
|
|
:productionId="specActiveItem.productionId"
|
|
:productionId="specActiveItem.productionId"
|
|
- :price="specActiveItem.price * 100"
|
|
|
|
|
|
+ :price="computedPrice.total * 100"
|
|
@loaded="couponCardLoaded"
|
|
@loaded="couponCardLoaded"
|
|
@change="couponCardChange" />
|
|
@change="couponCardChange" />
|
|
</div>
|
|
</div>
|
|
@@ -43,7 +43,11 @@
|
|
v-show="moduleShow.gift"
|
|
v-show="moduleShow.gift"
|
|
:cardType="conf.selectorType">
|
|
:cardType="conf.selectorType">
|
|
<div slot="header" class="vip-sub-item-title">赠品</div>
|
|
<div slot="header" class="vip-sub-item-title">赠品</div>
|
|
- <div class="vip-sub-item-content"></div>
|
|
|
|
|
|
+ <div class="vip-sub-item-content">
|
|
|
|
+ <CouponGiftList
|
|
|
|
+ :productionId="specActiveItem.productionId"
|
|
|
|
+ @loaded="giftListLoaded" />
|
|
|
|
+ </div>
|
|
</SelectorCard>
|
|
</SelectorCard>
|
|
<SelectorCard
|
|
<SelectorCard
|
|
class="vip-sub-list-item"
|
|
class="vip-sub-list-item"
|
|
@@ -92,6 +96,7 @@ import SelectorCard from '@/components/selector/SelectorCard.vue'
|
|
import AreaSelector from '@/components/selector/AreaSelector.vue'
|
|
import AreaSelector from '@/components/selector/AreaSelector.vue'
|
|
import SpecList from '@/components/coupon/SpecList.vue'
|
|
import SpecList from '@/components/coupon/SpecList.vue'
|
|
import CouponCardList from '@/components/coupon/CouponCardList.vue'
|
|
import CouponCardList from '@/components/coupon/CouponCardList.vue'
|
|
|
|
+import CouponGiftList from '@/components/coupon/CouponGiftList.vue'
|
|
import CheckPhone from '@/components/coupon/CheckPhone.vue'
|
|
import CheckPhone from '@/components/coupon/CheckPhone.vue'
|
|
import BuySubmit from '@/components/coupon/BuySubmit.vue'
|
|
import BuySubmit from '@/components/coupon/BuySubmit.vue'
|
|
import Contrast from '@/views/vipsubscribe/components/Contrast.vue'
|
|
import Contrast from '@/views/vipsubscribe/components/Contrast.vue'
|
|
@@ -114,6 +119,7 @@ export default {
|
|
AreaSelector,
|
|
AreaSelector,
|
|
SpecList,
|
|
SpecList,
|
|
CouponCardList,
|
|
CouponCardList,
|
|
|
|
+ CouponGiftList,
|
|
CheckPhone,
|
|
CheckPhone,
|
|
BuySubmit,
|
|
BuySubmit,
|
|
Contrast,
|
|
Contrast,
|
|
@@ -216,7 +222,7 @@ export default {
|
|
},
|
|
},
|
|
buyTypeText () {
|
|
buyTypeText () {
|
|
const map = {
|
|
const map = {
|
|
- buy: '购买',
|
|
|
|
|
|
+ buy: '开通',
|
|
upgrade: '升级'
|
|
upgrade: '升级'
|
|
}
|
|
}
|
|
return map[this.buyType]
|
|
return map[this.buyType]
|
|
@@ -313,6 +319,13 @@ export default {
|
|
this.couponActiveItem = coupon
|
|
this.couponActiveItem = coupon
|
|
this.updatePrice()
|
|
this.updatePrice()
|
|
},
|
|
},
|
|
|
|
+ giftListLoaded ({ list }) {
|
|
|
|
+ if (Array.isArray(list) && list.length) {
|
|
|
|
+ const gift = list[0]
|
|
|
|
+ this.specActiveItem.tipText = `赠送${gift.giftInfo}`
|
|
|
|
+ this.$set(this.specActiveItem, 'discountId', gift.discountId)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
showAreaDialog () {
|
|
showAreaDialog () {
|
|
this.dialog.area = true
|
|
this.dialog.area = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -388,7 +401,7 @@ export default {
|
|
userLotteryId: coupon.userLotteryId,
|
|
userLotteryId: coupon.userLotteryId,
|
|
lotteryId: coupon.lotteryId,
|
|
lotteryId: coupon.lotteryId,
|
|
useProduct: this.specActiveItem.productionId,
|
|
useProduct: this.specActiveItem.productionId,
|
|
- discountId: ''
|
|
|
|
|
|
+ discountId: this.specActiveItem.discountId
|
|
}
|
|
}
|
|
|
|
|
|
// orderType: 1购买、2续费、3升级
|
|
// orderType: 1购买、2续费、3升级
|