调整vip规则

This commit is contained in:
liuyuan
2025-03-13 11:28:13 +08:00
parent c7875bae17
commit cd31512ac8
11 changed files with 38 additions and 598 deletions

View File

@@ -5,7 +5,7 @@
<z-nav-bar title="课程介绍"></z-nav-bar>
<view class="contentBox commonPageContentBox">
<view v-if="goBuyTitle" class="describe_block">
<view style=" display: flex;">
<view style=" display: flex; align-items: center;">
<uni-icons type="info" size="20" color="#fff"></uni-icons>
<text>{{goBuyTitle}}</text>
</view>
@@ -24,13 +24,20 @@
<view class="flexbox course_title" v-if="course.id">
<text class="courseTitle title">{{ course.title }}</text>
</view>
<view style="color: #b0b0b0; padding: 0 20rpx">
{{
librayList && librayList.length > 0
? `${librayList.length}个目录`
: ""
}}
</view>
<view class="containerBg" v-if="course.content && course.content != ''">
<view class="prof">
<view style="
position: relative;
display: flex;
align-items: center;
">
position: relative;
display: flex;
align-items: center;
">
<view :class="`${isHideCourseInfo ? 'hidden2' : ''}`"
style="font-size: 30rpx; text-align: justify;" v-html="course.content">
</view>
@@ -236,7 +243,7 @@
<text class="hidden1" style="width: 88%;">{{ item.title }}</text>
<uni-tag
v-if="item.isAudition == 1 && librayList[curIndex].isBuy == 0 && userVip==null"
style="margin-left: 10rpx" :inverted="true" text="试听" size="mini"
style="margin-left: 10rpx;font-size: 20rpx;" :inverted="true" text="试听" size="mini"
type="success" />
<template v-if="librayList[curIndex] && librayList[curIndex].isBuy == 1 || userVip!=null">
<uni-tag v-if="item.isLearned == 0" style="margin-left: 10rpx;"
@@ -249,7 +256,7 @@
<view class="shitingTag" style="position: absolute; right: 20px;">
<u-icon
v-if="librayList[curIndex].type!=0 &&librayList[curIndex].isBuy == 0 && userVip==null && item.isAudition == 0"
name="lock" color="#258feb" size="26"></u-icon>
name="lock" color="#258feb" size="24"></u-icon>
</view>
</view>
@@ -2658,14 +2665,10 @@
line-height: 50rpx;
padding: 10rpx 0;
color: #333;
// background-color: #f0f0f0;
// margin-bottom: 10rpx;
}
::v-deep .prof img {
width: 100px;
height: 100px;
.prof image{
width: 100%;
}
.catalogueTitle {
@@ -2750,10 +2753,9 @@
border: 1rpx solid $themeColor;
background-color: $themeColor;
color: #fff !important;
// width: 100%;
float: right;
padding: 4rpx 14rpx;
font-size: 24rpx;
padding: 4rpx 10rpx;
font-size: 20rpx;
font-weight: 500;
line-height: 30rpx;
border-radius: 10rpx;
@@ -2856,7 +2858,6 @@
.course_title {
align-items: center;
justify-content: space-between;
background: #fff;
}
.courseTitle {
@@ -2959,7 +2960,7 @@
.textBox {
padding: 20rpx 0;
align-items: center;
justify-content: start;
justify-content: space-between;
width: 100%;
font-size: 28rpx;

View File

@@ -75,7 +75,7 @@
</view>
<view class="tag-view">
<uni-tag @click="goBuy()" text="购买课程" type="warning" size="normal" />
<uni-tag v-if="isAndorid" @click="onPageJump('/pages/mine/vip/index')" size="normal" style="margin-left: 20rpx;" text="开通VIP" type="success" />
<uni-tag @click="onPageJump('/pages/mine/vip/index')" size="normal" style="margin-left: 20rpx;" text="开通VIP" type="success" />
</view>
</view>
</view>
@@ -114,7 +114,6 @@
export default {
data() {
return {
isAndorid: true,
playData: {},
catalogueId: null,
// fixed: false,
@@ -176,13 +175,8 @@
// 隐藏原生的tabbar
uni.hideTabBar();
this.windowWidth = uni.getSystemInfoSync().windowWidth;
// this.pageTitle = e.title
console.log(e, '传入分类id')
this.getUserInfo()
this.courseId = e.id
// this.getCateList(this.courseId)
// this.getSayList()
},
onPullDownRefresh() {
uni.stopPullDownRefresh()
@@ -190,7 +184,6 @@
onPageScroll(e) {
this.scrollTop = e.scrollTop;
if (this.scrollTop > 100) {
// console.log('高度符合');
this.fixed = true
} else {
this.fixed = false
@@ -207,35 +200,14 @@
plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary");
// #endif
this.getData(this.courseId)
this.getOS()
},
onReachBottom() {
console.log('触底');
// if (this.status != 2) {
// this.pPage++
// this.getSayList()
// }
this.getData(this.courseId)
},
components: {
// musicPlay
emotion,
buyPup
},
//方法
methods: {
// 获得操作系统
getOS() {
let oprateOs = "";
oprateOs = uni.getSystemInfoSync().platform;
// console.log(oprateOs)
if (oprateOs == "android") {
this.isAndorid = true;
} else {
this.isAndorid = false;
}
},
getUserInfo() {
// 用户详情
// if (this.userInfo.id != undefined) {