|
@@ -34,13 +34,13 @@
|
|
|
:class="{ current: tabCurrent === index }"
|
|
|
@click="handleCheckedPay(index, pay)"
|
|
|
>
|
|
|
- <view class="hot" v-if="index == 0">推荐</view> <view class="text-1">{{ pay.month }}</view>
|
|
|
- <view class="text-2"> <text>¥</text>{{ pay.money }}</view>
|
|
|
- <view class="text-3">{{ pay.text }}</view>
|
|
|
+ <view class="hot" v-if="index == 0">推荐</view> <view class="text-1">{{ pay.duration }}个月</view>
|
|
|
+ <view class="text-2"> <text>¥</text>{{ pay.price }}</view>
|
|
|
+ <view class="text-3" v-if="index == 0 || index == 1">{{ pay.price / pay.duration }}/月</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="cm-member-button">
|
|
|
- <view class="pay-btn pay" @click="hanldWechatPay">立即支付{{ handelPayMsg.money }}元开通</view>
|
|
|
+ <view class="pay-btn pay" @click="hanldWechatPay">立即支付{{ handelPayMsg.price }}元开通</view>
|
|
|
<view class="pay-btn none" @click="hanldeShowBeans">抵扣{{ handelPayMsg.beans }}个采美豆开通</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -123,16 +123,11 @@
|
|
|
<template v-if="pro.priceFlag != 1 && userIdentity == 2">
|
|
|
<view class="svip-tags">
|
|
|
<view class="tags">SVIP</view>
|
|
|
- <view
|
|
|
- class="price"
|
|
|
- >{{ pro.svipPriceTag }}</view
|
|
|
- >
|
|
|
+ <view class="price">{{ pro.svipPriceTag }}</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <view class="svip-tags">
|
|
|
- <view class="tags none">SVIP</view>
|
|
|
- </view>
|
|
|
+ <view class="svip-tags"> <view class="tags none">SVIP</view> </view>
|
|
|
</template>
|
|
|
</template>
|
|
|
</view>
|
|
@@ -140,7 +135,9 @@
|
|
|
<view class="product-price">
|
|
|
<view class="list-none" v-if="pro.priceFlag == 1">¥未公开价格</view>
|
|
|
<template v-else>
|
|
|
- <view class="list-none" v-if="pro.priceFlag == 2 && userIdentity == 4">¥价格仅会员可见</view>
|
|
|
+ <view class="list-none" v-if="pro.priceFlag == 2 && userIdentity == 4"
|
|
|
+ >¥价格仅会员可见</view
|
|
|
+ >
|
|
|
<view class="list-none-price" v-else>¥{{ pro.price | NumFormat }}</view>
|
|
|
</template>
|
|
|
</view>
|
|
@@ -184,16 +181,16 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
StaticUrl: this.$Static,
|
|
|
- isRequest:false,
|
|
|
+ isRequest: false,
|
|
|
isModallayer: false,
|
|
|
isShowBeansModal: false,
|
|
|
memberType: 0,
|
|
|
tabCurrent: 0,
|
|
|
- userIdentity:0,
|
|
|
+ userIdentity: 0,
|
|
|
userVip: {},
|
|
|
handelPayMsg: {
|
|
|
beans: 480000,
|
|
|
- money: 4800,
|
|
|
+ price: 4800,
|
|
|
month: '12个月',
|
|
|
packageId: 1
|
|
|
},
|
|
@@ -201,11 +198,7 @@ export default {
|
|
|
userId: 0,
|
|
|
packageId: 1
|
|
|
},
|
|
|
- payList: [
|
|
|
- { month: '12个月', money: 4800, packageId: 1, text: '400元/月', beans: 480000 },
|
|
|
- { month: '3个月', money: 1500, packageId: 2, text: '500元/月', beans: 150000 },
|
|
|
- { month: '1个月', money: 600, packageId: 3, text: '', beans: 60000 }
|
|
|
- ],
|
|
|
+ payList: [],
|
|
|
privilegeList: [
|
|
|
{
|
|
|
icon: 'https://static.caimei365.com/app/img/icon/icon-member-prer1@2x.png',
|
|
@@ -290,7 +283,7 @@ export default {
|
|
|
methods: {
|
|
|
async initGetStotage() {
|
|
|
const userInfo = await this.$api.getStorage()
|
|
|
- this.payParam.userId = this.listQuery.userId =userInfo.userId ? userInfo.userId : 0
|
|
|
+ this.payParam.userId = this.listQuery.userId = userInfo.userId ? userInfo.userId : 0
|
|
|
this.userIdentity = userInfo.userIdentity ? userInfo.userIdentity : 0
|
|
|
this.getUserSuperCenter()
|
|
|
},
|
|
@@ -319,15 +312,19 @@ export default {
|
|
|
this.$util.msg(error.msg, 2000)
|
|
|
})
|
|
|
},
|
|
|
- getUserSuperPackage(){
|
|
|
+ getUserSuperPackage() {
|
|
|
//获取会员中心套餐
|
|
|
this.UserService.getUserSuperPackage()
|
|
|
.then(response => {
|
|
|
let data = response.data
|
|
|
-
|
|
|
+ data.forEach(el => {
|
|
|
+ el.beans = el.price * el.proportion
|
|
|
+ el.packageId = el.id
|
|
|
+ })
|
|
|
+ this.payList = data
|
|
|
})
|
|
|
.catch(error => {
|
|
|
- this.$util.msg(error.msg, 2000)
|
|
|
+ console.log('获取会员套餐异常~')
|
|
|
})
|
|
|
},
|
|
|
hanldeShowBeans() {
|