vip功能
This commit is contained in:
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
|
||||||
|
</state>
|
||||||
|
</component>
|
||||||
6
.idea/dictionaries
generated
Normal file
6
.idea/dictionaries
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectDictionaryState">
|
||||||
|
<dictionary name="liuyuan" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/sociology_app.iml" filepath="$PROJECT_DIR$/.idea/sociology_app.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
12
.idea/sociology_app.iml
generated
Normal file
12
.idea/sociology_app.iml
generated
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
7
.idea/vagrant.xml
generated
Normal file
7
.idea/vagrant.xml
generated
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VagrantProjectSettings">
|
||||||
|
<option name="instanceFolder" value="" />
|
||||||
|
<option name="provider" value="" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
50
.idea/workspace.xml
generated
Normal file
50
.idea/workspace.xml
generated
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="dfe45a93-1e39-4dfb-998a-b7e9e7e56d8f" name="Default Changelist" comment="">
|
||||||
|
<change beforePath="$PROJECT_DIR$/pages/component/input/input.nvue" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pages/tabBar/extUI/extUI.nvue" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pages/tabBar/template/template.nvue" beforeDir="false" />
|
||||||
|
</list>
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectId" id="2oVBuLEFt2modl2kF1Af1nW7QEi" />
|
||||||
|
<component name="ProjectViewState">
|
||||||
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
|
<option name="showLibraryContents" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent">
|
||||||
|
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
||||||
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||||
|
<property name="nodejs.protractor.protractor_package" value="" />
|
||||||
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
||||||
|
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
||||||
|
<property name="settings.editor.selected.configurable" value="com.github.masahirosuzuka.PhoneGapIntelliJPlugin.PhoneGapConfigurationProvider" />
|
||||||
|
<property name="vue.rearranger.settings.migration" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||||
|
<component name="SvnConfiguration">
|
||||||
|
<configuration>$USER_HOME$/.subversion</configuration>
|
||||||
|
</component>
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="dfe45a93-1e39-4dfb-998a-b7e9e7e56d8f" name="Default Changelist" comment="" />
|
||||||
|
<created>1730945085136</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1730945085136</updated>
|
||||||
|
<workItem from="1730945086809" duration="384000" />
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="3" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
BIN
bkhumor-emojiplus/.DS_Store
vendored
Normal file
BIN
bkhumor-emojiplus/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
components/.DS_Store
vendored
Normal file
BIN
components/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -2,42 +2,12 @@ let baseUrl = "";
|
|||||||
let socketUrl = "";
|
let socketUrl = "";
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// 开发环境
|
// 开发环境
|
||||||
// baseUrl = "http://localhost:7001/";
|
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
||||||
// socketUrl = "ws://localhost:6001/";
|
//baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||||
// baseUrl = "https://twin-ui.com/demo/";
|
|
||||||
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
|
||||||
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
|
||||||
|
|
||||||
|
|
||||||
// baseUrl = "http://101.201.146.165:8088/App-EH/"; // 一路健康APP线上正式
|
|
||||||
|
|
||||||
|
|
||||||
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
|
||||||
// baseUrl = "http://59.110.212.44:9200/pb/";
|
|
||||||
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
|
||||||
|
|
||||||
|
|
||||||
// baseUrl = "http://192.168.110.110:9200/pb/"; //磊哥
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// baseUrl = "http://192.168.110.38:9200/pb/"; // 吴春磊笔记本1
|
|
||||||
// socketUrl = "ws://8.129.186.35:6001/";
|
|
||||||
} else if (process.env.NODE_ENV === 'production') {
|
} else if (process.env.NODE_ENV === 'production') {
|
||||||
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
||||||
// 生产环境11
|
// 生产环境11
|
||||||
|
//baseUrl = "https://api.nuttyreading.com/"; //1
|
||||||
// baseUrl = "http://192.168.110.110:9200/pb/"; //磊哥
|
|
||||||
// baseUrl = "http://59.110.212.44:9100/pb/";
|
|
||||||
// baseUrl = "https://testapi.nuttyreading.com/";
|
|
||||||
baseUrl = "https://api.nuttyreading.com/"; //1
|
|
||||||
// baseUrl = "ws://twin-ui.com:6001/";
|
|
||||||
// socketUrl = "ws://twin-ui.com:6001/";
|
|
||||||
}
|
}
|
||||||
const courtConfig = {
|
const courtConfig = {
|
||||||
//微信公众号APPID
|
//微信公众号APPID
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ let $http = new request({
|
|||||||
// 'Content-Type': 'application/json;charset=UTF-8',
|
// 'Content-Type': 'application/json;charset=UTF-8',
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
// 'project_token': base.projectToken, //项目token(可删除)
|
// 'project_token': base.projectToken, //项目token(可删除)
|
||||||
}
|
},
|
||||||
|
timeout: '15000' // 15秒
|
||||||
});
|
});
|
||||||
// 添加获取七牛云token的方法
|
// 添加获取七牛云token的方法
|
||||||
$http.getQnToken = function (callback) {
|
$http.getQnToken = function (callback) {
|
||||||
|
|||||||
BIN
js_sdk/.DS_Store
vendored
Normal file
BIN
js_sdk/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
node_modules/.DS_Store
generated
vendored
Normal file
BIN
node_modules/.DS_Store
generated
vendored
Normal file
Binary file not shown.
BIN
pages/.DS_Store
vendored
Normal file
BIN
pages/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -1421,6 +1421,7 @@
|
|||||||
|
|
||||||
.commonDetailPage {
|
.commonDetailPage {
|
||||||
background-color: $themeBgColor;
|
background-color: $themeBgColor;
|
||||||
|
height: calc(100vh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.order_box {
|
.order_box {
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
<template><page-meta
|
<template>
|
||||||
:page-font-size="$baseFontSize() + 'px'"
|
|
||||||
:root-font-size="$baseFontSize() + 'px'"
|
|
||||||
></page-meta>
|
|
||||||
<view class="container commonPageBox commonDetailPage">
|
<view class="container commonPageBox commonDetailPage">
|
||||||
<!-- 公共组件-每个页面必须引入 -->
|
|
||||||
<public-module></public-module>
|
|
||||||
<template v-show="!screenLoading">
|
<template v-show="!screenLoading">
|
||||||
<z-nav-bar bgColor="#333" fontColor="#fff" title="教学内容"></z-nav-bar>
|
<z-nav-bar bgColor="#333" fontColor="#fff" title="教学内容"></z-nav-bar>
|
||||||
|
|
||||||
|
|||||||
@@ -65,8 +65,6 @@
|
|||||||
<text class="courseTitle title">{{
|
<text class="courseTitle title">{{
|
||||||
curriculumData.title
|
curriculumData.title
|
||||||
}}</text>
|
}}</text>
|
||||||
|
|
||||||
<!-- <view class="start_learn_btn PM_font">进入学习</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
<view style="color: #b0b0b0; padding: 0 20rpx">
|
<view style="color: #b0b0b0; padding: 0 20rpx">
|
||||||
{{
|
{{
|
||||||
@@ -159,17 +157,11 @@
|
|||||||
slotProps.row.viewFlg == 1 ? 'aui-text-success' : ''
|
slotProps.row.viewFlg == 1 ? 'aui-text-success' : ''
|
||||||
}`">{{ slotProps.row.title }}</text>
|
}`">{{ slotProps.row.title }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <text v-if="slotProps.row.conditions!='03'">【试听】</text> -->
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="leftSlot" slot-scope="slotProps">
|
<template slot="leftSlot" slot-scope="slotProps">
|
||||||
<!-- {{ slotProps.row.bxType }} -->
|
|
||||||
<!-- <text v-if="slotProps.row.conditions!='03'">【试听】</text> -->
|
|
||||||
</template>
|
</template>
|
||||||
<template slot="rightSlot" slot-scope="slotProps">
|
<template slot="rightSlot" slot-scope="slotProps">
|
||||||
<!-- {{ slotProps.row.bxType }} -->
|
|
||||||
|
|
||||||
<text class="fdButtonBox aui-text-success" style="background: none"
|
<text class="fdButtonBox aui-text-success" style="background: none"
|
||||||
v-if="slotProps.row.isAudition == 1">试听</text>
|
v-if="slotProps.row.isAudition == 1">试听</text>
|
||||||
|
|
||||||
@@ -178,26 +170,7 @@
|
|||||||
</courseDescription>
|
</courseDescription>
|
||||||
</view>
|
</view>
|
||||||
<view class="small_class_teaching_box">
|
<view class="small_class_teaching_box">
|
||||||
<!-- <view class="small_class_teaching_top">
|
|
||||||
<view class="small_class_teaching_top_left">
|
|
||||||
<image src="@/static/icon/course_ic.png" mode="aspectFil" class="icon1"></image>
|
|
||||||
<text>小班教学</text>
|
|
||||||
</view>
|
|
||||||
<text>{{ curriculumInfo.remainingDays }}</text>
|
|
||||||
|
|
||||||
|
|
||||||
</view> -->
|
|
||||||
<view class="small_class_teaching_content">
|
<view class="small_class_teaching_content">
|
||||||
<!-- <view class="top">
|
|
||||||
<view class="top_item" v-for="(v, i) in teachingList">
|
|
||||||
{{ v.title }}
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<view class="schedule">
|
<view class="schedule">
|
||||||
<view class="icon_box">
|
<view class="icon_box">
|
||||||
<image src="@/static/icon/course_07.png" mode="aspectFil" class="icon1">学习进度
|
<image src="@/static/icon/course_07.png" mode="aspectFil" class="icon1">学习进度
|
||||||
@@ -224,15 +197,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</common-anchor-link>
|
</common-anchor-link>
|
||||||
|
|
||||||
<!-- <u-modal
|
|
||||||
:show="show"
|
|
||||||
:title="modalInfo.title"
|
|
||||||
:content="modalInfo.content"
|
|
||||||
showCancelButton
|
|
||||||
@confirm="hancleModalConfirm"
|
|
||||||
@cancel="hancleModalCancel"
|
|
||||||
></u-modal> -->
|
|
||||||
<common-select-goods ref="commonSelectGoods" :selectGoodsData="selectGoodsData" :goodsList="goodsList"
|
<common-select-goods ref="commonSelectGoods" :selectGoodsData="selectGoodsData" :goodsList="goodsList"
|
||||||
:buyOptions="buyOptions" :customButtonGroup1="customButtonGroup1" @selectGoods="handleClickSelectGoods"
|
:buyOptions="buyOptions" :customButtonGroup1="customButtonGroup1" @selectGoods="handleClickSelectGoods"
|
||||||
@onHandleClickBuy="
|
@onHandleClickBuy="
|
||||||
@@ -297,24 +261,7 @@
|
|||||||
options: {},
|
options: {},
|
||||||
percentage: 0,
|
percentage: 0,
|
||||||
selectGoodsData: {},
|
selectGoodsData: {},
|
||||||
buyOptions: [
|
buyOptions: [],
|
||||||
// {
|
|
||||||
// icon: 'chat',
|
|
||||||
// text: '客服'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// icon: 'shop',
|
|
||||||
// text: '店铺',
|
|
||||||
// // info: 2,
|
|
||||||
// infoBackgroundColor: '#007aff',
|
|
||||||
// infoColor: "#f5f5f5"
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// icon: 'cart',
|
|
||||||
// text: '购物车',
|
|
||||||
// info: 2
|
|
||||||
// }
|
|
||||||
],
|
|
||||||
customButtonGroup1: [{
|
customButtonGroup1: [{
|
||||||
with: 200,
|
with: 200,
|
||||||
text: "立即购买",
|
text: "立即购买",
|
||||||
@@ -391,24 +338,17 @@
|
|||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
|
|
||||||
// this.getUserInfo()
|
|
||||||
// this.getCateList()
|
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
this.selectGoodsData = {};
|
this.selectGoodsData = {};
|
||||||
this.protocolShow = false;
|
this.protocolShow = false;
|
||||||
this.handleClickClose();
|
this.handleClickClose();
|
||||||
this.$refs.commonSelectGoods.close();
|
this.$refs.commonSelectGoods.close();
|
||||||
// this.showSearchList = false
|
|
||||||
// this.searchList = []
|
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
this.selectGoodsData = {};
|
this.selectGoodsData = {};
|
||||||
this.protocolShow = false;
|
this.protocolShow = false;
|
||||||
this.$refs.commonSelectGoods.close();
|
this.$refs.commonSelectGoods.close();
|
||||||
// this.showSearchList = false
|
|
||||||
// this.searchList = []
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["userInfo"]),
|
...mapState(["userInfo"]),
|
||||||
@@ -420,11 +360,6 @@
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getCourseDescriptionData();
|
this.getCourseDescriptionData();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 也可以通过主题形式调用,如:
|
|
||||||
// this.$refs.uNotify.primary('Primary主题')
|
|
||||||
// 关闭 notify
|
|
||||||
// this.$refs.uNotify.close()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClickGetVip() {
|
handleClickGetVip() {
|
||||||
@@ -432,10 +367,9 @@
|
|||||||
url: "/pages/mine/vip/index",
|
url: "/pages/mine/vip/index",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//获取vip信息数据
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
console.log("111111111111111111111111111");
|
|
||||||
this.$http.post("common/user/getUserInfo").then((res) => {
|
this.$http.post("common/user/getUserInfo").then((res) => {
|
||||||
console.log(res, "111111111111111111111111111");
|
|
||||||
if (res.result.userVip) {
|
if (res.result.userVip) {
|
||||||
this.vip = res.result.userVip;
|
this.vip = res.result.userVip;
|
||||||
} else {
|
} else {
|
||||||
@@ -502,11 +436,6 @@
|
|||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
onHandleClickBuy(e) {
|
onHandleClickBuy(e) {
|
||||||
console.log("e at line 387:", e);
|
|
||||||
// if (e.index == 0) {
|
|
||||||
// this.handleClickClose();
|
|
||||||
// }
|
|
||||||
// if (e.index == 0) {
|
|
||||||
var mynavData = JSON.stringify({
|
var mynavData = JSON.stringify({
|
||||||
goods: [this.selectGoodsData],
|
goods: [this.selectGoodsData],
|
||||||
typeId: 0,
|
typeId: 0,
|
||||||
@@ -517,7 +446,6 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/goods/order/index?data=${mynavData}`,
|
url: `/pages/goods/order/index?data=${mynavData}`,
|
||||||
});
|
});
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
handleClickGoBuy() {},
|
handleClickGoBuy() {},
|
||||||
handleClickClose() {
|
handleClickClose() {
|
||||||
@@ -528,11 +456,8 @@
|
|||||||
//获取相关关联课程商品
|
//获取相关关联课程商品
|
||||||
//获取相关关联课程商品
|
//获取相关关联课程商品
|
||||||
handleClickGetGoodsList(v) {
|
handleClickGetGoodsList(v) {
|
||||||
// console.log("data at line 313:", data);
|
|
||||||
|
|
||||||
if (v.type == 0) {
|
if (v.type == 0) {
|
||||||
//免费
|
//免费
|
||||||
|
|
||||||
this.$http
|
this.$http
|
||||||
.request({
|
.request({
|
||||||
url: this.urlList.startStudyForMF,
|
url: this.urlList.startStudyForMF,
|
||||||
@@ -541,25 +466,13 @@
|
|||||||
catalogueId: v.id,
|
catalogueId: v.id,
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
//默认 无 说明:请求头
|
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
console.log("res at line 493:", res);
|
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.getCourseDescriptionData();
|
this.getCourseDescriptionData();
|
||||||
// this.$commonJS.showToast("");
|
|
||||||
}
|
}
|
||||||
// if (res.productList.length > 0) {
|
|
||||||
// this.goodsList = res.productList;
|
|
||||||
// this.selectGoodsData = this.goodsList[0];
|
|
||||||
// this.$refs.commonSelectGoods.open();
|
|
||||||
// this.show = true;
|
|
||||||
// } else {
|
|
||||||
// this.$commonJS.showToast("此课程暂无购买方式");
|
|
||||||
// }
|
|
||||||
|
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -585,7 +498,6 @@
|
|||||||
id: v.id,
|
id: v.id,
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
//默认 无 说明:请求头
|
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -613,12 +525,6 @@
|
|||||||
...this.taiHuClassInfo,
|
...this.taiHuClassInfo,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// $mars.progressBegin('申请中...');
|
|
||||||
// $mars.post(customerType, 'applyRelearn', data, function (ret) {
|
|
||||||
// api.hideProgress();
|
|
||||||
|
|
||||||
// fnLoadDataGrid();
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
fnRelearn(oid, days, courseFee) {
|
fnRelearn(oid, days, courseFee) {
|
||||||
//99和199课程复读一个月60三个月120; 299和399课程复读一个月80三个月180
|
//99和199课程复读一个月60三个月120; 299和399课程复读一个月80三个月180
|
||||||
@@ -654,33 +560,9 @@
|
|||||||
fee: fee,
|
fee: fee,
|
||||||
};
|
};
|
||||||
this.show = true;
|
this.show = true;
|
||||||
// $aui.alert({
|
|
||||||
// title: ,
|
|
||||||
// content: '用户您好,该课程已到期,通过支付' + fee + '元,本门课程可获得' + days + '天延期学习时间,点击确认即完成自动扣费,感谢配合!',
|
|
||||||
// buttons: ['取消', '确认'],
|
|
||||||
// radius: 6,
|
|
||||||
// titleColor: '#ff3300',
|
|
||||||
// contColor: '#333',
|
|
||||||
// btnColor: ''
|
|
||||||
},
|
},
|
||||||
//课程详情
|
//课程详情
|
||||||
async gotoDetail(v, index) {
|
async gotoDetail(v, index) {
|
||||||
console.log('v at line 664:', v)
|
|
||||||
console.log(
|
|
||||||
this.cateList[this.currentCateIndex],
|
|
||||||
8888888888888888888888888
|
|
||||||
);
|
|
||||||
|
|
||||||
// var result = await this.$commonJS.getCheckCourseStatus({
|
|
||||||
// oid: v.courseOid,
|
|
||||||
// });
|
|
||||||
// console.log("result at line 364:", result);
|
|
||||||
|
|
||||||
// if (result.buyFlg == 0 && v.conditions != "01") {
|
|
||||||
// this.$commonJS.showToast("请先购买课程");
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.cateList[this.currentCateIndex].isBuy == 1 ||
|
this.cateList[this.currentCateIndex].isBuy == 1 ||
|
||||||
v.isAudition == 1 ||
|
v.isAudition == 1 ||
|
||||||
@@ -688,7 +570,6 @@
|
|||||||
this.vip.type == "3"
|
this.vip.type == "3"
|
||||||
) {
|
) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
// url: '../bookShop/commodityDetail?id=' + item.id
|
|
||||||
url: `/pages/curriculum/order/curriculum/detail?navTitle=${this.options.navTitle}&title=${v.title}&id=${v.id}&conditions=${v.conditions}&detailOid=${v.detailOid}&curriculumImgUrl=${this.curriculumData.image}`,
|
url: `/pages/curriculum/order/curriculum/detail?navTitle=${this.options.navTitle}&title=${v.title}&id=${v.id}&conditions=${v.conditions}&detailOid=${v.detailOid}&curriculumImgUrl=${this.curriculumData.image}`,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -697,9 +578,7 @@
|
|||||||
},
|
},
|
||||||
//相关课程
|
//相关课程
|
||||||
goCourseDescription(v) {
|
goCourseDescription(v) {
|
||||||
console.log(v);
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
// url: '../bookShop/commodityDetail?id=' + item.id
|
|
||||||
url: `/pages/curriculum/order/curriculum/index?navTitle=${v.title}&title=${v.title}&oid=${v.oid}`,
|
url: `/pages/curriculum/order/curriculum/index?navTitle=${v.title}&title=${v.title}&oid=${v.oid}`,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -710,25 +589,17 @@
|
|||||||
await $http
|
await $http
|
||||||
.request({
|
.request({
|
||||||
url: this.urlList.curriculumInfo,
|
url: this.urlList.curriculumInfo,
|
||||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
id: v.id,
|
id: v.id,
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
//默认 无 说明:请求头
|
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
if (res.code == 0 && res.chapterList.length > 0) {
|
if (res.code == 0 && res.chapterList.length > 0) {
|
||||||
// res.chapterList.map((item) => {
|
|
||||||
// item.tryListen = [];
|
|
||||||
// });
|
|
||||||
|
|
||||||
list = JSON.parse(JSON.stringify(res.chapterList));
|
list = JSON.parse(JSON.stringify(res.chapterList));
|
||||||
|
|
||||||
console.log("at line 1343:", list);
|
|
||||||
// console.log('status', res)
|
|
||||||
} else {
|
} else {
|
||||||
list = [];
|
list = [];
|
||||||
}
|
}
|
||||||
@@ -741,8 +612,6 @@
|
|||||||
getCourseDescriptionData() {
|
getCourseDescriptionData() {
|
||||||
var data = {};
|
var data = {};
|
||||||
var that = this;
|
var that = this;
|
||||||
console.log(this.$store.state, "11111111111");
|
|
||||||
|
|
||||||
this.$http
|
this.$http
|
||||||
.request({
|
.request({
|
||||||
url: this.urlList.list,
|
url: this.urlList.list,
|
||||||
@@ -751,17 +620,12 @@
|
|||||||
id: this.options.id,
|
id: this.options.id,
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
//默认 无 说明:请求头
|
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
that.curriculumData = res.data.course;
|
that.curriculumData = res.data.course;
|
||||||
that.cateList = [...res.data.catalogues];
|
that.cateList = [...res.data.catalogues];
|
||||||
|
|
||||||
console.log("that.allDataList at line 1068:", that.allDataList);
|
|
||||||
// this..getPercentage();
|
|
||||||
|
|
||||||
for (let i = 0; i < that.cateList.length; i++) {
|
for (let i = 0; i < that.cateList.length; i++) {
|
||||||
var list = await that.getChapterList(that.cateList[i]);
|
var list = await that.getChapterList(that.cateList[i]);
|
||||||
|
|
||||||
@@ -769,18 +633,12 @@
|
|||||||
...that.cateList[i],
|
...that.cateList[i],
|
||||||
courseList: [...list],
|
courseList: [...list],
|
||||||
};
|
};
|
||||||
// that.allDataList[i].courseList = [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.$refs.commonAnchorLink.getDistanceArr();
|
that.$refs.commonAnchorLink.getDistanceArr();
|
||||||
}, 200);
|
}, 200);
|
||||||
console.log("that.courseList at line 1238:", that.allDataList);
|
this.$forceUpdate();
|
||||||
this.$forceUpdate(); // that.relatedCoursesList = res.data.correlatedList
|
|
||||||
// ? res.data.correlatedList
|
|
||||||
// : [];
|
|
||||||
// await that.handleselectCate(this.cateList[0], 0);
|
|
||||||
// socket.init();
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getPriceData() {
|
getPriceData() {
|
||||||
@@ -795,115 +653,12 @@
|
|||||||
checkDisable() {
|
checkDisable() {
|
||||||
console.log("点击了");
|
console.log("点击了");
|
||||||
},
|
},
|
||||||
// 显示无权限弹窗
|
|
||||||
// showNoRights() {
|
|
||||||
// let that = this
|
|
||||||
// uni.showModal({
|
|
||||||
// content: "",
|
|
||||||
// confirmText: '好的',
|
|
||||||
// showCancel: false,
|
|
||||||
// success: function(res) {
|
|
||||||
// if (res.confirm) {
|
|
||||||
// // console.log('用户点击确定');
|
|
||||||
// that.clear()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
// // 获取用户详情
|
|
||||||
// getUserInfo() {
|
|
||||||
// // 用户详情
|
|
||||||
// if (this.userInfo.id != undefined) {
|
|
||||||
// this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
|
|
||||||
// this.userMes = res.user;
|
|
||||||
// this.getCateList();
|
|
||||||
// console.log(this.userMes, "呼呼");
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
|
|
||||||
async handleselectCate(item, index) {
|
|
||||||
console.log("item at line 662:", item);
|
|
||||||
console.log("index at line 637:", index);
|
|
||||||
// this.description=`您还未购买当前【${item.title}】课程,`
|
|
||||||
var title1 = "";
|
|
||||||
this.currentCateIndex = index;
|
|
||||||
switch (this.vip.type) {
|
|
||||||
case 0:
|
|
||||||
this.goBuyTitle = "购买VIP,即可免费观看吴门医述所有课程";
|
|
||||||
this.goBuyType = 0;
|
|
||||||
break;
|
|
||||||
case 1 || 2:
|
|
||||||
var vipName = "";
|
|
||||||
if (this.vip.type == 1) {
|
|
||||||
vipName = "超级VIP";
|
|
||||||
}
|
|
||||||
if (this.vip.type == 2) {
|
|
||||||
vipName = "吴门医述VIP";
|
|
||||||
}
|
|
||||||
//超级VIP
|
|
||||||
this.goBuyTitle = `尊贵的${vipName},您的有效期到 ${
|
|
||||||
this.vip.endTime && this.vip.endTime.split(" ")[0]
|
|
||||||
}`;
|
|
||||||
this.goBuyType = 1;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 3:
|
|
||||||
//众妙之门
|
|
||||||
this.goBuyTitle =
|
|
||||||
"尊贵的众妙之门VIP,升级至超级VIP,即可免费观看吴门医述所有课程";
|
|
||||||
|
|
||||||
this.goBuyType = 2;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// this.currentCateIndex = index;
|
|
||||||
this.dataList = [];
|
|
||||||
var data = [];
|
|
||||||
console.log(item, index, 99999);
|
|
||||||
var that = this;
|
|
||||||
|
|
||||||
// curriculumInfo
|
|
||||||
this.$http
|
|
||||||
.request({
|
|
||||||
url: this.urlList.curriculumInfo,
|
|
||||||
method: "POST",
|
|
||||||
data: {
|
|
||||||
id: item.id,
|
|
||||||
},
|
|
||||||
header: {
|
|
||||||
//默认 无 说明:请求头
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
.then(async (res) => {
|
|
||||||
// that.curriculumInfo = res.obj;
|
|
||||||
// that.currentCateIndex = index;
|
|
||||||
that.percentage = item.completion;
|
|
||||||
that.dataList = res.chapterList;
|
|
||||||
// that.getPercentage();
|
|
||||||
that.$forceUpdate();
|
|
||||||
|
|
||||||
// socket.init();
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log(this.allDataList, this.dataList, "1688");
|
|
||||||
|
|
||||||
this.searchValue = "";
|
|
||||||
this.searchList = [];
|
|
||||||
this.showSearchList = false;
|
|
||||||
|
|
||||||
return data;
|
|
||||||
},
|
|
||||||
async setOneCateIndex(item, index) {
|
async setOneCateIndex(item, index) {
|
||||||
this.allDataList = [];
|
this.allDataList = [];
|
||||||
console.log(index, 99999);
|
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
||||||
this.currentStatusIndex = index;
|
this.currentStatusIndex = index;
|
||||||
// this.currentCateIndex = 0
|
|
||||||
|
|
||||||
this.searchValue = "";
|
this.searchValue = "";
|
||||||
this.searchList = [];
|
this.searchList = [];
|
||||||
this.showSearchList = false;
|
this.showSearchList = false;
|
||||||
@@ -912,19 +667,6 @@
|
|||||||
|
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
});
|
});
|
||||||
|
|
||||||
// this.handleselectCate(this.cateList[this.currentCateIndex])
|
|
||||||
// if (index != 2) {
|
|
||||||
|
|
||||||
// uni.createSelectorQuery().select('.statusList').boundingClientRect(function (rect) {
|
|
||||||
// var height = rect.height
|
|
||||||
// console.log('元素高度:',);
|
|
||||||
|
|
||||||
// }).exec();
|
|
||||||
|
|
||||||
// } else {
|
|
||||||
// this.getJFList(dictType)
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
transformData(inputData) {
|
transformData(inputData) {
|
||||||
@@ -938,23 +680,8 @@
|
|||||||
}
|
}
|
||||||
result[letter].push(item);
|
result[letter].push(item);
|
||||||
});
|
});
|
||||||
// const finalResult = Object.keys(result).map(key => ({ [key]: result[key] }));
|
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
// 放大图片
|
|
||||||
previewImage(url) {
|
|
||||||
console.log(url);
|
|
||||||
uni.previewImage({
|
|
||||||
urls: [url],
|
|
||||||
longPressActions: {
|
|
||||||
itemList: ["很抱歉,暂不支持保存图片到本地"],
|
|
||||||
success: function(res) {
|
|
||||||
// console.log(res,'+++++')
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
onBackPress() {
|
onBackPress() {
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
@@ -966,11 +693,6 @@
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "@/style/mixin.scss";
|
@import "@/style/mixin.scss";
|
||||||
|
|
||||||
.u-grid-list {
|
|
||||||
// height: 40rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.searchList {
|
.searchList {
|
||||||
.item {
|
.item {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
|||||||
@@ -1,27 +1,9 @@
|
|||||||
<template><page-meta
|
<template>
|
||||||
:page-font-size="$baseFontSize() + 'px'"
|
|
||||||
:root-font-size="$baseFontSize() + 'px'"
|
|
||||||
></page-meta>
|
|
||||||
<view
|
<view
|
||||||
class="container commonPageBox commonDetailPage"
|
class="container commonPageBox commonDetailPage"
|
||||||
style="position: relative; height: auto"
|
style="position: relative; height: auto"
|
||||||
>
|
>
|
||||||
<!-- <cover-view class="image_box">
|
|
||||||
|
|
||||||
|
|
||||||
<image
|
|
||||||
|
|
||||||
src="http://101.201.146.165:8088/curriculum/detailImg/curriculum_20170411123240222.png"
|
|
||||||
mode="aspectFit"
|
|
||||||
class="headImage"
|
|
||||||
style="background-color: #f5f5f5"
|
|
||||||
|
|
||||||
>
|
|
||||||
</image>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</cover-view> -->
|
|
||||||
<video
|
<video
|
||||||
@timeupdate="videoTimeUpdateEvent($event)"
|
@timeupdate="videoTimeUpdateEvent($event)"
|
||||||
ref="videos"
|
ref="videos"
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// importScripts('@/static/aliplayer/aliplayer-min.js')
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,24 +1,5 @@
|
|||||||
<template><page-meta
|
<template>
|
||||||
:page-font-size="$baseFontSize() + 'px'"
|
|
||||||
:root-font-size="$baseFontSize() + 'px'"
|
|
||||||
></page-meta>
|
|
||||||
<view class="container commonPageBox commonDetailPage" style="position: relative;">
|
<view class="container commonPageBox commonDetailPage" style="position: relative;">
|
||||||
<!-- <cover-view class="image_box">
|
|
||||||
|
|
||||||
|
|
||||||
<image
|
|
||||||
|
|
||||||
src="http://101.201.146.165:8088/curriculum/detailImg/curriculum_20170411123240222.png"
|
|
||||||
mode="aspectFit"
|
|
||||||
class="headImage"
|
|
||||||
style="background-color: #f5f5f5"
|
|
||||||
|
|
||||||
>
|
|
||||||
</image>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</cover-view> -->
|
|
||||||
<video
|
<video
|
||||||
@fullscreenchange="fullscreenchange"
|
@fullscreenchange="fullscreenchange"
|
||||||
@timeupdate="videoTimeUpdateEvent($event)"
|
@timeupdate="videoTimeUpdateEvent($event)"
|
||||||
@@ -33,9 +14,6 @@
|
|||||||
:poster="`${videoUrl}?x-oss-process=video/snapshot,t_${1},f_jpg`"
|
:poster="`${videoUrl}?x-oss-process=video/snapshot,t_${1},f_jpg`"
|
||||||
@play="playVideo"
|
@play="playVideo"
|
||||||
>
|
>
|
||||||
<!-- <cover-image class="controls-play img" src="http://101.201.146.165:8088/curriculum/detailImg/curriculum_20170411123240222.png"></cover-image>
|
|
||||||
|
|
||||||
-->
|
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@@ -43,14 +21,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import courseDescription from "@/pages/component/commonComponents/list";
|
import courseDescription from "@/pages/component/commonComponents/list";
|
||||||
import price from "../price/index.vue";
|
|
||||||
|
|
||||||
import $http from "@/config/requestConfig.js";
|
import $http from "@/config/requestConfig.js";
|
||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
courseDescription, //课程说明
|
courseDescription, //课程说明
|
||||||
price, //课程价格
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
<template><page-meta
|
<template>
|
||||||
:page-font-size="$baseFontSize() + 'px'"
|
|
||||||
:root-font-size="$baseFontSize() + 'px'"
|
|
||||||
></page-meta>
|
|
||||||
<view class="container" style="background-color: #000; position: relative">
|
<view class="container" style="background-color: #000; position: relative">
|
||||||
<u-icon
|
<u-icon
|
||||||
@click="goBack"
|
@click="goBack"
|
||||||
|
|||||||
BIN
pages/mine/.DS_Store
vendored
Normal file
BIN
pages/mine/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -17,183 +17,63 @@
|
|||||||
|
|
||||||
<view class="mine_box" :style="`top:${(45 + statusBarHeight) * 2}rpx`">
|
<view class="mine_box" :style="`top:${(45 + statusBarHeight) * 2}rpx`">
|
||||||
<view class="per_mes">
|
<view class="per_mes">
|
||||||
<view style="display: flex; align-items: center; flex-direction: column">
|
<view :style="hasVipType2?'width: 170rpx;':''">
|
||||||
<image @click="goUserInfo" :src="userMes.avatar" v-if="userMes.avatar != null"
|
<view style="display: flex; align-items: center; flex-direction: column">
|
||||||
class="per_mes_img color_shandow"></image>
|
<image @click="goUserInfo" :src="userMes.avatar" v-if="userMes.avatar"
|
||||||
</view>
|
class="per_mes_img color_shandow"></image>
|
||||||
|
<image src="@/static/icon/ic_login_health.png" v-else
|
||||||
<image src="@/static/icon/home_icon_logo.png" v-if="userMes.avatar == null"
|
class="per_mes_img color_shandow"></image>
|
||||||
class="per_mes_img color_shandow"></image>
|
</view>
|
||||||
|
|
||||||
<view class="userInfoBox" style="width: calc(100% - 120rpx)">
|
<view class="user_vip_box" v-if="isAndorid&&hasVipType1 || isAndorid&&hasVipType2">
|
||||||
<view class="name">昵称:{{ userMes.nickname ? userMes.nickname : "未设置" }}</view>
|
<view class="user_vip super" :style="hasVipType2?'width: 170rpx;':''">
|
||||||
|
<view class="user_vip_item" v-if="hasVipType1"><text>医学</text><image src="@/static/icon/chao_svip.png"></image></view>
|
||||||
<view class="name" v-if="!userMes.userVip" style="
|
<view class="user_vip_item" v-if="hasVipType2"><text>国学心理学</text><image src="@/static/icon/chao_svip.png"></image></view>
|
||||||
font-size: 28rpx;
|
</view>
|
||||||
font-weight: 500;
|
|
||||||
color: #606266 !important;
|
|
||||||
">普通用户</view>
|
|
||||||
|
|
||||||
<view style="display: flex; align-items: center" v-else-if="userMes.userVip&&$platform=='ios'">
|
|
||||||
<view class="user_vip_box1">
|
|
||||||
<view v-if="userMes.vip == 1" class="user_vip super user_vip_super">超级VIP</view>
|
|
||||||
<view v-if="userMes.vip == 3" class="user_vip user_vip_zmzm">众妙之门VIP</view>
|
|
||||||
<view v-if="userMes.vip == 2" class="user_vip user_vip_wumen">吴门医述VIP</view>
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<view class="viptime" v-if="userMes.vip != 0">会员时长:{{
|
|
||||||
userMes.userVip.endTime.split(" ")[0]
|
|
||||||
}} 到期</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- -->
|
|
||||||
|
|
||||||
<!-- <view class="phone" v-if="userMes.tel">手机号:({{ userMes.tel }})</view>
|
|
||||||
|
|
||||||
|
|
||||||
<view class="phone email" v-if="userMes.email">邮箱({{ userMes.email }})</view>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- <text class="tong">累计读书5本
|
|
||||||
<span style="margin: 0 20upx;">|</span> 今日读50分钟
|
|
||||||
</text> -->
|
|
||||||
</view>
|
</view>
|
||||||
<br clear="both" />
|
|
||||||
|
<view class="userInfoBox" style="margin-left: 30rpx;">
|
||||||
|
<view class="name">昵称:{{ userMes.nickname ? userMes.nickname : "未设置" }}</view>
|
||||||
|
<view class="name" style="color: #606266 !important;font-weight: normal;font-size: 28rpx;" v-if="userMes.tel">手机号:({{ userMes.tel }})</view>
|
||||||
|
|
||||||
|
<template v-if="isAndorid&&textList.length>0">
|
||||||
|
<view class="vip_type">
|
||||||
|
<view class="vip_type_item" v-for="(item,index) in textList" :key="index">
|
||||||
|
{{item}}<image src="@/static/icon/chao_vip.png"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="now_vip" v-if="userMes.vip==0">
|
|
||||||
<text>
|
|
||||||
<image src="../../static/icon/mine_p.png" style="height: 44rpx;"></image>
|
|
||||||
开通会员畅享海量内容
|
|
||||||
</text>
|
|
||||||
<b class="kt_btn" @click="onPageJump('./opeVip')">开通VIP</b>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<!-- <view class="now_vip" v-if="userMes.vip==1">
|
|
||||||
<text>
|
|
||||||
<image src="../../static/icon/mine_v.png"></image>
|
|
||||||
尊贵的VIP会员
|
|
||||||
<font style="font-size: 14rpx;margin-left: 20rpx;">{{userMes.vipValidtime}}到期</font>
|
|
||||||
</text>
|
|
||||||
<b class="kt_btn" @click="onPageJump('./opeVip')">立即续费</b>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<view v-if="$platform=='android'" style="
|
|
||||||
padding: 20rpx 20rpx 0;
|
|
||||||
height: auto;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
">
|
|
||||||
|
|
||||||
|
<view v-if="isAndorid" style="
|
||||||
|
padding: 20rpx 20rpx 0;
|
||||||
|
margin-top: 50rpx;
|
||||||
|
height: auto;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
">
|
||||||
<template>
|
<template>
|
||||||
<view v-if="!userMes.userVip" :class="`chong_zhi boxShadow box_fillet vip_box`"
|
<view class="chong_zhi boxShadow box_fillet vip_box"
|
||||||
@click="onPageJump('/pages/mine/vip/index')">
|
@click="onPageJump('/pages/mine/vip/index')">
|
||||||
<view class="noVip">
|
<view class="noVip">
|
||||||
<view class="zhanghu PM_font" style="text-align: center">
|
<view style="display: flex; align-items: center;">
|
||||||
<image class="vip_image" src="@/static/icon/mine_p.png" mode="aspectFit">
|
<view class="zhanghu PM_font" style="text-align: left; margin-left: 15rpx;">
|
||||||
</image>
|
<image class="vip_image" src="@/static/icon/mine_p.png" mode="aspectFit"></image>
|
||||||
|
<text style="color: #fff; font-size: 60rpx;" v-if="vipList.length==0">VIP</text>
|
||||||
<text style="color: #452808; letter-spacing: 2rpx">超级VIP</text>
|
</view>
|
||||||
</view>
|
<view class="vip_infor" v-if="vipList&&vipList.length>0">
|
||||||
<view style="margin-left: 20rpx">加入会员,畅享更多专属权益</view>
|
<view class="vip_infor_item" v-for="(item, index) in vipList" :key="index" :class="{expired: isExpired(item.endTime.split(' ')[0])}">
|
||||||
<view class="right_arrow" style="color: #fff">
|
<text>{{item.text}}VIP</text>
|
||||||
<!-- <image src="@/static/icon/mine_p.png" mode="aspectFit"> </image> -->
|
<text v-if="isExpired(item.endTime.split(' ')[0])">({{item.endTime.split(' ')[0]}} 已到期)</text>
|
||||||
>
|
<text v-else>(有效期到 {{item.endTime.split(' ')[0]}})</text>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
<!-- <swiper
|
<view v-else class="vip_null" style=" padding-left: 30rpx;">办理VIP,畅享更多专属权益</view>
|
||||||
:autoplay="true"
|
|
||||||
:interval="3000"
|
|
||||||
:duration="1000"
|
|
||||||
style="width: 100%; height: 60rpx"
|
|
||||||
>
|
|
||||||
<swiper-item
|
|
||||||
v-for="(item, index) in swiperList"
|
|
||||||
style="width: 100%; height: 100%"
|
|
||||||
>
|
|
||||||
<view
|
|
||||||
style="
|
|
||||||
background: linear-gradient(
|
|
||||||
130deg,
|
|
||||||
rgb(46, 103, 106) 0%,
|
|
||||||
rgb(114, 173, 146) 100%
|
|
||||||
)
|
|
||||||
text;
|
|
||||||
text-align: center;
|
|
||||||
"
|
|
||||||
:style="item.style"
|
|
||||||
v-html="item.name"
|
|
||||||
></view>
|
|
||||||
</swiper-item>
|
|
||||||
</swiper> -->
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view v-else :class="`chong_zhi boxShadow box_fillet vip_box hasVipBox ${
|
|
||||||
userMes.vip == 1
|
|
||||||
? 'hasVipSuper'
|
|
||||||
: userMes.vip == 2
|
|
||||||
? 'hasVipWumen'
|
|
||||||
: userMes.vip == 3
|
|
||||||
? 'hasVipZmZm'
|
|
||||||
: ''
|
|
||||||
}`" @click="onPageJump('/pages/mine/vip/index')">
|
|
||||||
<view class="current_identity">当前身份</view>
|
|
||||||
<view class="hasVip" style="position: relative">
|
|
||||||
<view class="zhanghu" style="text-align: center">
|
|
||||||
<view class="vbg" v-if="userMes.vip == 2 || userMes.vip == 3">V</view>
|
|
||||||
<image v-if="userMes.vip == 1" class="vip_image" src="@/static/icon/quanyi.png"
|
|
||||||
mode="aspectFit">
|
|
||||||
</image>
|
|
||||||
<!-- <image
|
|
||||||
v-if="userMes.vip == 3"
|
|
||||||
class="vip_image"
|
|
||||||
src="@/static/icon/quanyiZM.png"
|
|
||||||
mode="aspectFit"
|
|
||||||
>
|
|
||||||
</image>
|
|
||||||
<image
|
|
||||||
v-if="userMes.vip == 2"
|
|
||||||
class="vip_image"
|
|
||||||
src="@/static/icon/quanyi.png"
|
|
||||||
mode="aspectFit"
|
|
||||||
>
|
|
||||||
</image> -->
|
|
||||||
|
|
||||||
<view v-if="userMes.vip == 1" class="vip_info">
|
|
||||||
<view class="PM_font vip_name">超级VIP</view>
|
|
||||||
</view>
|
|
||||||
<view v-if="userMes.vip == 3" class="vip_info">
|
|
||||||
<view class="PM_font vip_name">众妙之门VIP</view>
|
|
||||||
</view>
|
|
||||||
<view v-if="userMes.vip == 2" class="vip_info">
|
|
||||||
<view class="PM_font vip_name">吴门医述VIP</view>
|
|
||||||
</view>
|
|
||||||
<view class="viptime">会员时长:{{
|
|
||||||
userMes.userVip.endTime.split(" ")[0]
|
|
||||||
}} 到期</view>
|
|
||||||
</view>
|
|
||||||
<view class="zhanghu quanyi" style="text-align: center">
|
|
||||||
<!-- <image
|
|
||||||
class="vip_image"
|
|
||||||
src="@/static/icon/quanyi.png"
|
|
||||||
mode="aspectFit"
|
|
||||||
>
|
|
||||||
</image> -->
|
|
||||||
|
|
||||||
<view v-if="userMes.vip == 1" class="vip_info vip_info_bottom">
|
|
||||||
<view style="color: #d33b1b">尊享 5 项专属特权</view>
|
|
||||||
<view class="xufei">立即续费</view>
|
|
||||||
</view>
|
|
||||||
<view v-if="userMes.vip == 2" class="vip_info vip_info_bottom">
|
|
||||||
<view style="">尊享 4 项专属特权,</view>
|
|
||||||
<view class="xufei">立即续费</view>
|
|
||||||
</view>
|
|
||||||
<view v-if="userMes.vip == 3" class="vip_info vip_info_bottom">
|
|
||||||
<view style="">尊享 4 项专属特权</view>
|
|
||||||
<view class="xufei">立即续费</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
<view class="vip_btn"><button v-if="vipList.length==0">办理</button><button v-else>续费</button></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -207,13 +87,6 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
">
|
">
|
||||||
<view class="chong_zhi boxShadow box_fillet chongzhi_box">
|
<view class="chong_zhi boxShadow box_fillet chongzhi_box">
|
||||||
<!-- <view
|
|
||||||
class="zhanghu"
|
|
||||||
@click="onPageJump('/pages/mine/wallet/index/index')"
|
|
||||||
>
|
|
||||||
我的账户
|
|
||||||
<image src="@/static/icon/icon_right.png" class="rightArrow"></image>
|
|
||||||
</view> -->
|
|
||||||
<view class="chong_list">
|
<view class="chong_list">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view class="chong_list_item" style="
|
<view class="chong_list_item" style="
|
||||||
@@ -225,12 +98,6 @@
|
|||||||
<view class="pay_item_img">
|
<view class="pay_item_img">
|
||||||
天医币<u-icon @click.native.stop="openInfo()" name="question-circle"
|
天医币<u-icon @click.native.stop="openInfo()" name="question-circle"
|
||||||
style="float: right; margin: 0 6rpx"></u-icon>
|
style="float: right; margin: 0 6rpx"></u-icon>
|
||||||
<!-- <image
|
|
||||||
style="width: 100%; height: 100%"
|
|
||||||
src="@/static/icon/pay_3.png"
|
|
||||||
mode="aspectFil"
|
|
||||||
>
|
|
||||||
</image> -->
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="text" style="line-height: 40rpx; display: flex">{{
|
<view class="text" style="line-height: 40rpx; display: flex">{{
|
||||||
@@ -246,12 +113,6 @@
|
|||||||
" @click="onPageJump('/pages/mine/wallet/jf/index')">
|
" @click="onPageJump('/pages/mine/wallet/jf/index')">
|
||||||
<view class="pay_item_img">
|
<view class="pay_item_img">
|
||||||
积分
|
积分
|
||||||
<!-- <image
|
|
||||||
style="width: 100%; height: 100%"
|
|
||||||
src="@/static/icon/jifen2.png"
|
|
||||||
mode="aspectFil"
|
|
||||||
>
|
|
||||||
</image> -->
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="text" style="line-height: 40rpx">{{
|
<view class="text" style="line-height: 40rpx">{{
|
||||||
@@ -259,13 +120,6 @@
|
|||||||
}}</view>
|
}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- v-if="iosHide" -->
|
|
||||||
|
|
||||||
<!-- <view v-if="iosHide" class="chong_list_item">
|
|
||||||
<b>{{ userMes.conponsCount }}</b>
|
|
||||||
优惠券
|
|
||||||
</view> -->
|
|
||||||
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')">充 值</b> -->
|
|
||||||
<view class="chong_list_item" style="
|
<view class="chong_list_item" style="
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -278,24 +132,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view class="list_box order_box">
|
|
||||||
<view class="xiugai boxShadow box_fillet">
|
|
||||||
<view class="title">我的订单</view>
|
|
||||||
<view class="cate_box">
|
|
||||||
|
|
||||||
<view class="cate_item_box" v-for="(v, i) in orderList"
|
|
||||||
@click="goOrderList(`/pages/bookShop/orderList`, 'mine', i)">
|
|
||||||
<view class="cate_item_border">
|
|
||||||
<image :src="v.imgUrl" mode="aspectFill" style="width: 58rpx; height: 58rpx"></image>
|
|
||||||
<u-badge type="error" max="99" :value="v.badge.value"
|
|
||||||
style="position: absolute; top: -10rpx; right: -10rpx"></u-badge>
|
|
||||||
</view>
|
|
||||||
<view class="cate_item_name">{{ v.title }}</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
<view class="list_box">
|
<view class="list_box">
|
||||||
<view class="xiugai boxShadow box_fillet">
|
<view class="xiugai boxShadow box_fillet">
|
||||||
<common-list :dataList="pageList" @hancleClick="handleClickTab" label="name">
|
<common-list :dataList="pageList" @hancleClick="handleClickTab" label="name">
|
||||||
@@ -306,34 +142,6 @@
|
|||||||
<view> </view>
|
<view> </view>
|
||||||
</template>
|
</template>
|
||||||
</common-list>
|
</common-list>
|
||||||
|
|
||||||
<!-- <view class="nav_list" @click="onPageJump('../clock/clockList')">
|
|
||||||
<text>我的打卡</text>
|
|
||||||
</view> -->
|
|
||||||
<!-- <view class="nav_list" @click="onPageJump('../listen/home')" v-if="iosHide">
|
|
||||||
<text>我的听书</text>
|
|
||||||
</view> -->
|
|
||||||
<!-- 暂时去掉 -->
|
|
||||||
<!-- <view class="nav_list" @click="onPageJump('../listen/setListen')" v-if="iosHide">
|
|
||||||
<text>听书设置</text>
|
|
||||||
</view> -->
|
|
||||||
<!-- <view class="nav_list" @click="onPageJump('../peanut/myComments')">
|
|
||||||
<text>我的评价</text>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<!-- 暂时去掉 -->
|
|
||||||
|
|
||||||
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookBuy')">
|
|
||||||
<text>电子书购买记录</text>
|
|
||||||
</view> -->
|
|
||||||
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookRecord')">
|
|
||||||
<text>阅读记录</text>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<!-- <view class="nav_list" @click="onGoing()">
|
|
||||||
<text>帮助与反馈11111</text>
|
|
||||||
</view> -->
|
|
||||||
<!-- <view class="nav_list" @click="newOnShare" v-if="isAndorid"> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -363,20 +171,14 @@
|
|||||||
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
">
|
">
|
||||||
<!-- <u-button
|
<u-button style="width: 200rpx; float: center" :plain="true" text="知道啦" color="#9b9b9b"
|
||||||
size="small"
|
|
||||||
text="不同意"
|
|
||||||
@click="protocolShow=false"
|
|
||||||
></u-button> -->
|
|
||||||
<u-button style="width: 200rpx; float: center" :plain="true" text="知道啦" color="#9b9b9b"
|
|
||||||
size="small" @click="infoShow = false"></u-button>
|
size="small" @click="infoShow = false"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
|
||||||
<!-- <u-modal :show="infoShow" title="提示信息" :content=""></u-modal> -->
|
|
||||||
<music-play :playData="playData"></music-play>
|
<music-play :playData="playData"></music-play>
|
||||||
<z-navigation></z-navigation>
|
<z-navigation></z-navigation>
|
||||||
</view>
|
</view>
|
||||||
@@ -385,7 +187,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import musicPlay from "@/components/music.vue";
|
import musicPlay from "@/components/music.vue";
|
||||||
import $http from "@/config/requestConfig.js";
|
import $http from "@/config/requestConfig.js";
|
||||||
// import appShare, { closeShare } from '@/uni_modules/zhouWei-APPshare/js_sdk/appShare';
|
|
||||||
import {
|
import {
|
||||||
mapState,
|
mapState,
|
||||||
mapMutations
|
mapMutations
|
||||||
@@ -460,11 +261,6 @@
|
|||||||
|
|
||||||
type: "switchTab",
|
type: "switchTab",
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// name: "购物车",
|
|
||||||
// url: "../peanut/shopping",
|
|
||||||
// type: "pageJump",
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
name: "个人资料",
|
name: "个人资料",
|
||||||
url: "/pages/mine/userInfo/persData",
|
url: "/pages/mine/userInfo/persData",
|
||||||
@@ -491,22 +287,19 @@
|
|||||||
name: "问题反馈/申诉",
|
name: "问题反馈/申诉",
|
||||||
url: "/pages/homePage/index/workOrder",
|
url: "/pages/homePage/index/workOrder",
|
||||||
type: "workOrder"
|
type: "workOrder"
|
||||||
},
|
}
|
||||||
|
|
||||||
//{ name: "设置", url: "/pages/mine/set/index", type: "pageJump" },
|
|
||||||
// { name: "退出登录", type: "quitLogin" },
|
|
||||||
// { name: "注销帐号", type: "loginOut" },
|
|
||||||
],
|
],
|
||||||
|
hasVipType1: false,
|
||||||
|
hasVipType2: false,
|
||||||
|
vipList: [],
|
||||||
|
textList: [], //普通vip文字
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
//第一次加载
|
//第一次加载
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
// 隐藏原生的tabbar
|
|
||||||
// uni.hideTabBar();
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
this.getOS();
|
this.getOS();
|
||||||
this.platform = uni.getSystemInfoSync().platform;
|
this.platform = uni.getSystemInfoSync().platform;
|
||||||
// console.log('操纵系统',this.platform)
|
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -514,11 +307,11 @@
|
|||||||
},
|
},
|
||||||
//页面显示
|
//页面显示
|
||||||
onShow() {
|
onShow() {
|
||||||
console.log(this.userInfo, "11111111111111");
|
|
||||||
// 隐藏原生的tabbar
|
|
||||||
// uni.hideTabBar();
|
|
||||||
this.getBookList();
|
this.getBookList();
|
||||||
this.getData();
|
this.getData();
|
||||||
|
//获取vip身份
|
||||||
|
this.textList = [];
|
||||||
|
this.getUserVipType();
|
||||||
},
|
},
|
||||||
async onTabItemTap() {
|
async onTabItemTap() {
|
||||||
this.getBookList();
|
this.getBookList();
|
||||||
@@ -533,11 +326,6 @@
|
|||||||
getBookList(flag, refreshflag) {
|
getBookList(flag, refreshflag) {
|
||||||
this.isLoadingHide = false;
|
this.isLoadingHide = false;
|
||||||
var that = this;
|
var that = this;
|
||||||
// 根据tab不同,获取最新书评、最热书评、书集列表
|
|
||||||
// uni.showLoading({
|
|
||||||
// title: '加载中'
|
|
||||||
// });
|
|
||||||
|
|
||||||
// 顶部红点数量
|
// 顶部红点数量
|
||||||
$http
|
$http
|
||||||
.request({
|
.request({
|
||||||
@@ -594,7 +382,6 @@
|
|||||||
this.onPageJump("/pages/mine/userInfo/persData");
|
this.onPageJump("/pages/mine/userInfo/persData");
|
||||||
},
|
},
|
||||||
handleClickTab(v) {
|
handleClickTab(v) {
|
||||||
console.log("v at line 259:", v);
|
|
||||||
switch (v.type) {
|
switch (v.type) {
|
||||||
case "pageJump":
|
case "pageJump":
|
||||||
this.onPageJump(v.url);
|
this.onPageJump(v.url);
|
||||||
@@ -618,7 +405,6 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `${v.url}?name=userPage`
|
url: `${v.url}?name=userPage`
|
||||||
})
|
})
|
||||||
// this.onPageJump(v.url);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -626,7 +412,6 @@
|
|||||||
getOS() {
|
getOS() {
|
||||||
let oprateOs = "";
|
let oprateOs = "";
|
||||||
oprateOs = uni.getSystemInfoSync().platform;
|
oprateOs = uni.getSystemInfoSync().platform;
|
||||||
// console.log(oprateOs)
|
|
||||||
if (oprateOs == "android") {
|
if (oprateOs == "android") {
|
||||||
this.isAndorid = true;
|
this.isAndorid = true;
|
||||||
} else {
|
} else {
|
||||||
@@ -691,14 +476,7 @@
|
|||||||
this.$http.post("common/user/getUserInfo").then((res) => {
|
this.$http.post("common/user/getUserInfo").then((res) => {
|
||||||
this.userMes = res.result;
|
this.userMes = res.result;
|
||||||
if (this.userMes.userVip) {
|
if (this.userMes.userVip) {
|
||||||
// console.log(
|
|
||||||
// "this.userMes.vipValidtime at line 510:",
|
|
||||||
// this.userMes.vipValidtime
|
|
||||||
// );
|
|
||||||
// this.userMes.vipValidtime = this.userMes.vipValidtime.substring(
|
|
||||||
// 0,
|
|
||||||
// this.userMes.vipValidtime.indexOf(" ")
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -757,6 +535,73 @@
|
|||||||
url: "/pages/user/login/login",
|
url: "/pages/user/login/login",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//获取vip身份
|
||||||
|
getUserVipType() {
|
||||||
|
this.$http.request({
|
||||||
|
url: "common/userVip/getUserVipType",
|
||||||
|
method: "POST",
|
||||||
|
data: {},
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.vipList = res.list;
|
||||||
|
this.hasVipType1 = this.vipList.some(item => item.type === 1);
|
||||||
|
this.hasVipType2 = this.vipList.some(item => item.type === 2);
|
||||||
|
//筛选出来已过期的
|
||||||
|
let listAll = this.vipList;
|
||||||
|
let list = this.vipList.filter(item => !this.isExpired(item.endTime.split(' ')[0]));
|
||||||
|
|
||||||
|
//全部的 vip模块展示
|
||||||
|
if(listAll.length>0){
|
||||||
|
listAll = this.showDataList(listAll);
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('-------listAll',listAll)
|
||||||
|
//筛选过期以后的 昵称模块展示需要
|
||||||
|
if(list.length>0){
|
||||||
|
list = this.showDataList(list);
|
||||||
|
}
|
||||||
|
console.log('-------list',list)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//分情况展示逻辑
|
||||||
|
showDataList(list){
|
||||||
|
this.textList = [];
|
||||||
|
list.forEach((item, index) => {
|
||||||
|
if(item.type=='4'){
|
||||||
|
item.text = '中医学';
|
||||||
|
this.textList.push(item.text);
|
||||||
|
}else if(item.type=='5'){
|
||||||
|
item.text = '针灸学';
|
||||||
|
this.textList.push(item.text);
|
||||||
|
}else if(item.type=='6'){
|
||||||
|
item.text = '肿瘤学';
|
||||||
|
this.textList.push(item.text);
|
||||||
|
}else if(item.type=='7'){
|
||||||
|
item.text = '国学';
|
||||||
|
this.textList.push(item.text);
|
||||||
|
}else if(item.type=='8'){
|
||||||
|
item.text = '心理学';
|
||||||
|
this.textList.push(item.text);
|
||||||
|
}else if(item.type=='1'){
|
||||||
|
item.text = '医学S';
|
||||||
|
}else if(item.type=='2'){
|
||||||
|
item.text = '国学心理学S';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return this.textList;
|
||||||
|
},
|
||||||
|
//判断过期的vip
|
||||||
|
isExpired(dateString){
|
||||||
|
const date = new Date(dateString);
|
||||||
|
const now = new Date();
|
||||||
|
return date < now;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -764,34 +609,25 @@
|
|||||||
@import "@/style/mixin.scss";
|
@import "@/style/mixin.scss";
|
||||||
|
|
||||||
.per_mes {
|
.per_mes {
|
||||||
// height: 200rpx;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0rpx 20rpx 0rpx 20rpx;
|
margin: 0rpx 20rpx 0rpx 20rpx;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
|
||||||
|
|
||||||
.per_mes_img {
|
.per_mes_img {
|
||||||
// @include themeBorder(10rpx,10rpx,#4E79A3, #A6D8DC);
|
width: 120rpx;
|
||||||
width: 90rpx;
|
height: 120rpx;
|
||||||
height: 90rpx;
|
|
||||||
// background-color: #fff;
|
|
||||||
border-radius: 90rpx;
|
border-radius: 90rpx;
|
||||||
margin: 0 0 0 0;
|
margin: 0 0 0 0;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
view {
|
view {
|
||||||
float: left;
|
|
||||||
// margin-top: 20rpx;
|
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// display: inline-block;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 30rpx;
|
font-size: 32rpx;
|
||||||
margin-bottom: 10rpx;
|
|
||||||
color: #333 !important;
|
color: #333 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -860,18 +696,11 @@
|
|||||||
|
|
||||||
.chong_zhi {
|
.chong_zhi {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
// border-bottom-left-radius: 0rpx !important;
|
|
||||||
// border-bottom-right-radius: 0rpx !important;
|
|
||||||
// background-color: #d8f8e4;
|
|
||||||
// margin: 0 0 30upx 0;
|
|
||||||
padding: 0 30upx;
|
padding: 0 30upx;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
||||||
.zhanghu {
|
.zhanghu {
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
font-size: 44rpx;
|
|
||||||
// line-height: 80rpx;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -885,25 +714,17 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 20rpx;
|
justify-content: space-between;
|
||||||
|
|
||||||
// justify-content: space-between;
|
|
||||||
// flex-direction: column;
|
|
||||||
.zhanghu {
|
.zhanghu {
|
||||||
font-size: 42rpx;
|
font-size: 40rpx;
|
||||||
width: auto;
|
|
||||||
display: inline-block;
|
|
||||||
// margin-top: 20rpx;
|
|
||||||
margin-bottom: 0rpx;
|
margin-bottom: 0rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
// justify-content: space-around;
|
|
||||||
image {
|
image {
|
||||||
width: 40rpx;
|
width: 50rpx;
|
||||||
height: 40rpx;
|
height: 50rpx;
|
||||||
margin-right: 10rpx;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1027,27 +848,12 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
border-radius: 10rx !important;
|
border-radius: 10rx !important;
|
||||||
// background: rgba(255, 255, 255, 0.85);
|
background-image: linear-gradient(90deg, #3ab3ae 0%, #d5ecdd 120%);
|
||||||
|
|
||||||
// padding: 30rpx 20rpx 10rpx;
|
|
||||||
// background-color: $themeBgColor;
|
|
||||||
// @include themeBorder(6rpx, 20rpx, #3ab3ae, #a6d8dc);
|
|
||||||
// #FFE9BB
|
|
||||||
background-image: linear-gradient(80deg, #eaeff2 0%, #c2d0db 100%);
|
|
||||||
|
|
||||||
.PM_font {
|
.PM_font {
|
||||||
color: #476379;
|
color: #476379;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @include themeBorder(
|
|
||||||
// 10rpx,
|
|
||||||
// 20rpx,
|
|
||||||
// (
|
|
||||||
// linear-gradient(#edf6f5ad, #edf6f5ad),
|
|
||||||
// linear-gradient(to bottom left, #bed1b1, #a6d8dc)
|
|
||||||
// )
|
|
||||||
// );
|
|
||||||
|
|
||||||
.zhanghu {
|
.zhanghu {
|
||||||
font-size: 80rpx;
|
font-size: 80rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -1065,25 +871,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bg_top {
|
.bg_top {
|
||||||
// background-position: center center;
|
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
|
|
||||||
height: 30vh;
|
height: 30vh;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
|
||||||
.setIcon {
|
.setIcon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 30rpx;
|
right: 30rpx;
|
||||||
// top: 30rpx;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mine_box {
|
.mine_box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
// top: 90rpx;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
padding: 0 0rpx;
|
padding: 0 0rpx;
|
||||||
|
margin-top: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list_box {
|
.list_box {
|
||||||
@@ -1169,64 +973,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.user_vip_box {
|
|
||||||
z-index: 10;
|
|
||||||
// min-width: 130rpx;
|
|
||||||
// margin-top: -20rpx;
|
|
||||||
// position: absolute;
|
|
||||||
// bottom: -20rpx;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_vip {
|
|
||||||
font-size: 24rpx;
|
|
||||||
width: auto;
|
|
||||||
padding: 1rpx 20rpx;
|
|
||||||
font-weight: 800;
|
|
||||||
border-radius: 40rpx;
|
|
||||||
// background: linear-gradient(
|
|
||||||
// to right,
|
|
||||||
// rgb(204, 229, 244) 0%,
|
|
||||||
// rgb(197, 227, 215) 100%
|
|
||||||
// );
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_vip_box1 {
|
|
||||||
.user_vip {
|
|
||||||
|
|
||||||
// padding: 0;
|
|
||||||
font-size: 20rpx;
|
|
||||||
margin-right: 10rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_vip_super {
|
|
||||||
background-image: linear-gradient(90deg, #fff0dc 0%, #f8e483 100%);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_vip_wumen {
|
|
||||||
background-image: linear-gradient(90deg, #c4e8fe 0%, #60bcff 100%);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_vip_zmzm {
|
|
||||||
background-image: linear-gradient(90deg, #aff7d6 0%, #edf5f1 100%);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.super {
|
.super {
|
||||||
// background: linear-gradient(to right, #fff0dc 0%, #f8e483 100%);
|
|
||||||
color: #f4a04c;
|
color: #f4a04c;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cate_box {
|
.cate_box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
// background: $themeColor;
|
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -1251,30 +1004,18 @@
|
|||||||
|
|
||||||
.cate_item_border {
|
.cate_item_border {
|
||||||
position: relative;
|
position: relative;
|
||||||
// width: 75rpx;
|
|
||||||
// height: 98rpx;
|
|
||||||
// background-size: 100% 100%;
|
|
||||||
// background-image: url("@/static/icon/homePage/cate_bg.png");
|
|
||||||
// border-radius: 4rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
image {
|
|
||||||
// height: 56rpx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cate_item_name {
|
.cate_item_name {
|
||||||
margin-top: 6rpx;
|
margin-top: 6rpx;
|
||||||
// font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
|
|
||||||
|
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
// line-height: 46rpx;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
// color: #fff;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1513,4 +1254,91 @@
|
|||||||
.vip_info_bottom {
|
.vip_info_bottom {
|
||||||
height: 64rpx;
|
height: 64rpx;
|
||||||
}
|
}
|
||||||
|
.user_vip_box{
|
||||||
|
width: 125rpx;
|
||||||
|
position: absolute;
|
||||||
|
margin-top: - 40rpx;
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
.user_vip_item{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user_vip_item {
|
||||||
|
border-radius: 20rpx;
|
||||||
|
background: linear-gradient(90deg, #ff1f00 0%, #fa9f93 100%);
|
||||||
|
color: #fff;
|
||||||
|
font-size: 20rpx;
|
||||||
|
line-height: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 5rpx;
|
||||||
|
}
|
||||||
|
.user_vip_item image{
|
||||||
|
width: 49rpx;
|
||||||
|
height: 16rpx;
|
||||||
|
}
|
||||||
|
.vip_type{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.vip_type_item{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0 10rpx;
|
||||||
|
background: linear-gradient(90deg, #258feb 0%, #00e1ec 100%);
|
||||||
|
border-radius: 20rpx;
|
||||||
|
font-size: 20rpx;
|
||||||
|
line-height: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
}
|
||||||
|
.vip_type_item:last-child{
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.vip_type_item image{
|
||||||
|
width: 34rpx;
|
||||||
|
height: 24rpx;
|
||||||
|
}
|
||||||
|
.vip_infor{
|
||||||
|
padding-left: 15rpx;
|
||||||
|
}
|
||||||
|
.vip_infor_item{
|
||||||
|
display: block;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 26rpx;
|
||||||
|
line-height: 36rpx;
|
||||||
|
font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.vip_infor_item text{
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.vip_btn{
|
||||||
|
margin-right: 15rpx;
|
||||||
|
height: 50rpx;
|
||||||
|
}
|
||||||
|
.vip_btn button{
|
||||||
|
background: none;
|
||||||
|
border: 2rpx solid #3ab3ae;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
width: 82rpx;
|
||||||
|
line-height: 42rpx;
|
||||||
|
color: #3ab3ae;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.vip_null{
|
||||||
|
color: #fff;
|
||||||
|
font-size: 26rpx;
|
||||||
|
line-height: 34rpx;
|
||||||
|
}
|
||||||
|
.expired{
|
||||||
|
opacity: 0.55;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
static/.DS_Store
vendored
Normal file
BIN
static/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
static/icon/chao_svip.png
Normal file
BIN
static/icon/chao_svip.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
BIN
static/icon/chao_vip.png
Normal file
BIN
static/icon/chao_vip.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
BIN
uni_modules/.DS_Store
vendored
Normal file
BIN
uni_modules/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
unpackage/.DS_Store
vendored
Normal file
BIN
unpackage/.DS_Store
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user