修改vip规则

This commit is contained in:
liuyuan
2025-03-12 10:21:24 +08:00
parent 655940c4f6
commit fee58a1e70
5 changed files with 228 additions and 144 deletions

View File

@@ -27,7 +27,7 @@
</view>
</view>
</view>
<view class="userInfoBox" style="margin-left: 30rpx;">
<view class="userInfoBox" style="margin-left: 20rpx;">
<template>
<view class="name">{{ userMes.nickname ? userMes.nickname : "未设置" }}</view>
</template>
@@ -36,7 +36,7 @@
</template>
<template v-if="textList.length>0">
<view class="vip_type">
<view class="vip_type_item" v-for="(item,index) in textList" :key="index">
<view class="vip_type_item" :class="textList.length>4?'vip_type_item_len':''" v-for="(item,index) in textList" :key="index">
{{item}}<image src="@/static/icon/chao_vip.png"></image>
</view>
</view>
@@ -553,6 +553,9 @@
}else if(item.type=='8'){
item.text = '心理学';
this.textList.push(item.text);
}else if(item.type=='9'){
item.text = '中西汇通学';
this.textList.push(item.text);
}else if(item.type=='1'){
item.text = '医学S';
}else if(item.type=='2'){
@@ -831,7 +834,7 @@
background-color: transparent !important;
}
.bg_top {
padding: 0 20rpx;
padding: 0 10rpx 0 20rpx;
padding-top: 80rpx;
margin-bottom: 60rpx;
}
@@ -970,6 +973,13 @@
color: #fff;
margin-right: 8rpx;
}
.vip_type_item_len{
padding: 0 8rpx;
font-size: 14rpx;
line-height: 34rpx;
height: 34rpx;
margin-right: 5rpx;
}
.vip_type_item:last-child{
margin-right: 0;
}

View File

@@ -38,8 +38,9 @@
</text>
</view>
<view class="vip_qx">
<text class="font_bold" style=" display: block;">VIP权限</text>
<view class="vip_qx_v" v-if="item.type==1">无限制观看吴门医述APP中医学针灸学肿瘤学三个板块任意课程</view>
<text class="font_bold" style=" display: block;" v-if="item.type==1||item.type==2">超级VIP权限</text>
<text class="font_bold" style=" display: block;" v-else>VIP权限</text>
<view class="vip_qx_v" v-if="item.type==1">无限制观看吴门医述APP中医学中西汇通学针灸学肿瘤学四个板块任意课程</view>
<view class="vip_qx_v" v-else-if="item.type==2">无限制观看众妙之门APP与吴门医述APP心理学板块任意课程</view>
<view class="vip_qx_v" v-else-if="item.type==7">无限制观看众妙之门APP任意课程</view>
<view class="vip_qx_v" v-else>无限制观看吴门医述APP{{item.title.replace(/VIP/g, '')}}板块任意课程</view>
@@ -47,9 +48,9 @@
<view class="vip_qx_v">
<text v-if="item.type==1||item.type==2">{{item.title.replace(/超级VIP/g, '')}}</text>
<text v-else>{{item.title.replace(/VIP/g, '')}}</text>
培训班报名享受<text class="vip_fee" v-if="item.type==1||item.type==2">8折</text><text class="vip_fee" v-else>9折</text>优惠
培训班报名享受<text class="vip_fee" v-if="item.type==1||item.type==2">8折</text><text class="vip_fee" v-else>9折</text>优惠
</view>
<view class="vip_qx_v">疯子读书APP购书享受<text class="vip_fee" v-if="item.type==1||item.type==2">8折</text><text class="vip_fee" v-else>9折</text>优惠</view>
<view class="vip_qx_v">疯子读书APP购书享受<text class="vip_fee" v-if="item.type==1||item.type==2">8折</text><text class="vip_fee" v-else>9折</text>优惠</view>
</view>
</view>
</view>