调整vip规则

This commit is contained in:
liuyuan
2025-03-13 11:29:12 +08:00
parent b4f9e13059
commit 14807d6b54
6 changed files with 309 additions and 342 deletions

View File

@@ -6,12 +6,14 @@
"request" : 3000 "request" : 3000
}, },
"transformPx" : false, "transformPx" : false,
"icons": [{ "icons" : [
{
"sizes" : "分辨率192x192", "sizes" : "分辨率192x192",
"src" : "图片路径" "src" : "图片路径"
}], }
"versionName": "1.0.29", ],
"versionCode": 1029, "versionName" : "1.0.30",
"versionCode" : 1030,
"app-plus" : { "app-plus" : {
"nvueCompiler" : "weex", "nvueCompiler" : "weex",
"compatible" : { "compatible" : {
@@ -268,3 +270,4 @@
} }
} }
// 小程序特有相关 // 小程序特有相关

View File

@@ -101,14 +101,13 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.list_item { .list_item {
width: 100%; width: 100%;
padding: 20rpx 30rpx; padding: 20rpx;
font-size: 30rpx; font-size: 30rpx;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1rpx solid #e0e0e0; border-bottom: 1rpx solid #e0e0e0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
// position: relative;
} }
.list_item :last-child(1) { .list_item :last-child(1) {
@@ -122,9 +121,6 @@ export default {
.rightArrow { .rightArrow {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
// position: absolute;
// right: 30rpx;
// top: 20rpx;
} }
.scroll-Y { .scroll-Y {

View File

@@ -127,14 +127,6 @@
</view> </view>
</template> </template>
<template slot="detail_vipRecord" slot-scope="slotProps"> <vip-record v-if="currentCateIndex == 1"></vip-record> <template slot="detail_vipRecord" slot-scope="slotProps"> <vip-record v-if="currentCateIndex == 1"></vip-record>
<!-- <rich-text
:nodes="slotProps.dataList | formatRichText"
@click.stop="showPreview"
:data-nodes="slotProps.dataList"
></rich-text> -->
</template> </template>
</common-anchor-link> </common-anchor-link>
</view> </view>

View File

@@ -24,8 +24,8 @@
}" }"
> >
<template slot="otherContent" slot-scope="slotProps"> <template slot="otherContent" slot-scope="slotProps">
<view v-if="goBuyTitle && isAndorid" class="describe_block"> <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> <uni-icons type="info" size="20" color="#fff"></uni-icons>
<text>{{ goBuyTitle }}</text> <text>{{ goBuyTitle }}</text>
</view> </view>
@@ -40,7 +40,7 @@
<view <view
v-if="curriculumData.image" v-if="curriculumData.image"
:style="isAndorid ? 'padding-top:80rpx;' : ''" style="padding-top:80rpx;"
> >
<image <image
style="width: 100%" style="width: 100%"
@@ -68,9 +68,7 @@
<view class="course_info_box"> <view class="course_info_box">
<view class="course_info"> <view class="course_info">
<view class="flexbox course_title" v-if="curriculumData.id"> <view class="flexbox course_title" v-if="curriculumData.id">
<text class="courseTitle title">{{ <text class="courseTitle title">{{curriculumData.title}}</text>
curriculumData.title
}}</text>
</view> </view>
<view style="color: #b0b0b0; padding: 0 20rpx"> <view style="color: #b0b0b0; padding: 0 20rpx">
{{ {{
@@ -84,16 +82,26 @@
v-if="curriculumData.content && curriculumData.content != ''" v-if="curriculumData.content && curriculumData.content != ''"
> >
<view class="prof"> <view class="prof">
<view <view style="
style="padding: 0 20rpx" position: relative;
@click="isHideCourseInfo = !isHideCourseInfo" display: flex;
> align-items: center;
">
<view <view
:class="`${isHideCourseInfo ? 'hidden2' : ''}`" :class="`${isHideCourseInfo ? 'hidden2' : ''}`"
style="width: calc(100% - 50rpx)" style="font-size: 30rpx; text-align: justify;"
v-html="curriculumData.content" v-html="curriculumData.content"
> >
</view> </view>
<text @click="isHideCourseInfo = !isHideCourseInfo" style="
position: absolute;
background-color: #f2f8ff; padding: 4rpx ;
bottom: 0;
right: 0;
color: #838588;
">
{{ isHideCourseInfo ? "展开" : "收起" }}
</text>
</view> </view>
</view> </view>
</view> </view>
@@ -107,9 +115,7 @@
<view class="top"> <view class="top">
<view class="line"></view> <view class="line"></view>
<view class="left"> <view class="left">
<text style="font-weight: blod" class="catalogue_title">{{ <text style="font-weight: blod" class="catalogue_title">{{slotProps.data.title }}</text>
slotProps.data.title
}}</text>
</view> </view>
<view class="not_purchased"> <view class="not_purchased">
<view class="spot"></view> <view class="spot"></view>
@@ -205,7 +211,7 @@
" "
name="lock" name="lock"
color="#258feb" color="#258feb"
size="26" size="24"
></u-icon> ></u-icon>
</view> </view>
</template> </template>
@@ -320,7 +326,7 @@ export default {
}, },
data() { data() {
return { return {
isHideCourseInfo: true, isHideCourseInfo: false,
courseList: [], courseList: [],
showGoBuy: true, showGoBuy: true,
protocolShow: false, protocolShow: false,
@@ -403,7 +409,6 @@ export default {
goodsList: "sociology/product/getProductListForCourse", goodsList: "sociology/product/getProductListForCourse",
startStudyForMF: "sociology/course/startStudyForMF", startStudyForMF: "sociology/course/startStudyForMF",
}, },
isAndorid: true,
userVip: null, //是否有vip userVip: null, //是否有vip
textList: [], //转化文字集合 textList: [], //转化文字集合
}; };
@@ -413,7 +418,6 @@ export default {
this.getUserInfo(); this.getUserInfo();
//是否是vip //是否是vip
this.getCourseByVip(); this.getCourseByVip();
this.getOS();
}, },
onHide() { onHide() {
this.selectGoodsData = {}; this.selectGoodsData = {};
@@ -436,18 +440,6 @@ export default {
}); });
}, },
methods: { methods: {
//获得操作系统
getOS() {
let oprateOs = "";
oprateOs = uni.getSystemInfoSync().platform;
this.oprateOsName = uni.getSystemInfoSync().platform;
console.log("oprateOs", oprateOs);
if (oprateOs == "android") {
this.isAndorid = true;
} else {
this.isAndorid = false;
}
},
//点击顶部按钮 //点击顶部按钮
handleClickGetVip() { handleClickGetVip() {
uni.navigateTo({ uni.navigateTo({
@@ -966,18 +958,13 @@ export default {
border: 1rpx solid $themeColor; border: 1rpx solid $themeColor;
background-color: $themeColor; background-color: $themeColor;
color: $themeColor; color: $themeColor;
// width: 100%;
float: right; float: right;
padding: 4rpx 14rpx; padding: 4rpx 10rpx;
font-size: 24rpx; font-size: 20rpx;
font-weight: 500; font-weight: 500;
line-height: 30rpx; line-height: 30rpx;
border-radius: 10rpx; border-radius: 10rpx;
box-sizing: border-box; box-sizing: border-box;
// margin-top: 20rpx;
// display: flex;
// align-items: center;
} }
.fdButtonBoxRed { .fdButtonBoxRed {
@@ -1167,7 +1154,10 @@ export default {
// .common_curriculum_list{ // .common_curriculum_list{
// } // }
.hidden2 {
line-height: 50rpx;
height: 100rpx;
}
.goods_box { .goods_box {
padding: 40rpx 20rpx; padding: 40rpx 20rpx;
padding-bottom: 150rpx; padding-bottom: 150rpx;
@@ -1517,7 +1507,6 @@ export default {
.course_title { .course_title {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
background: #fff;
} }
.catalogueTitle { .catalogueTitle {
@@ -1583,21 +1572,19 @@ export default {
line-height: 50rpx; line-height: 50rpx;
padding: 10rpx 0; padding: 10rpx 0;
color: #333; color: #333;
// background-color: #f0f0f0; }
// margin-bottom: 10rpx; .prof image{
width: 100%;
}
.containerBg {
padding: 0 20rpx;
padding-bottom: 40rpx;
} }
.containerBg1 { .containerBg1 {
border-top: 1px solid #fff; border-top: 1px solid #fff;
margin-top: -4rpx; margin-top: -4rpx;
// background: rgb(243, 250, 243);
// position: relative;
z-index: 1;
// padding: 40rpx 0;
border-radius: 30rpx 30rpx 0 0; border-radius: 30rpx 30rpx 0 0;
// background-color: #fff;
// overflow: hidden;
} }
.courseTitle { .courseTitle {

View File

@@ -349,7 +349,6 @@ export default {
...mapMutations(["setUserInfo"]), ...mapMutations(["setUserInfo"]),
async getAdvertisement() { async getAdvertisement() {
console.log("11111111111111111111 at line 233:", 11111111111111111111);
await this.$http await this.$http
.request({ .request({
url: "common/mainAd/getMainAd", url: "common/mainAd/getMainAd",
@@ -358,7 +357,6 @@ export default {
type: 2, type: 2,
}, },
header: { header: {
//默认 无 说明:请求头
"Content-Type": "application/json", "Content-Type": "application/json",
}, },
}) })
@@ -388,12 +386,6 @@ export default {
}); });
}, },
goNotice(index) { goNotice(index) {
console.log("at line 297:", this.noticeList[index]);
// var mynavData = JSON.stringify({
// ...this.noticeList[index],
// navTitle: this.noticeList[index].title,
// title: this.noticeList[index].title,
// }); // 这里转换成 字符串
uni.navigateTo({ uni.navigateTo({
url: `/pages/homePage/index/noticeDetail?id=${this.noticeList[index].id}`, url: `/pages/homePage/index/noticeDetail?id=${this.noticeList[index].id}`,
}); });

View File

@@ -108,10 +108,7 @@
" "
> >
<template> <template>
<view <view class="chong_zhi boxShadow box_fillet vip_box">
class="chong_zhi boxShadow box_fillet vip_box"
@click="onPageJump('/pages/mine/vip/index')"
>
<view class="noVip"> <view class="noVip">
<view style="display: flex; align-items: center"> <view style="display: flex; align-items: center">
<view <view
@@ -149,7 +146,7 @@
>办理VIP畅享更多专属权益</view >办理VIP畅享更多专属权益</view
> >
</view> </view>
<view class="vip_btn" <view class="vip_btn" @click="onPageJump('/pages/mine/vip/index')"
><button v-if="vipList.length == 0">办理</button ><button v-if="vipList.length == 0">办理</button
><button v-else>续费</button></view ><button v-else>续费</button></view
> >