新增VIP活动模块
This commit is contained in:
4
App.vue
4
App.vue
@@ -20,11 +20,9 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLaunch: function (e) {
|
onLaunch: function (e) {
|
||||||
setTimeout(updata(), 1600);
|
|
||||||
|
|
||||||
// 检测自动更新
|
// 检测自动更新
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
updata();
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
"src" : "图片路径"
|
"src" : "图片路径"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versionName" : "1.0.42",
|
"versionName" : "1.0.46",
|
||||||
"versionCode" : 1042,
|
"versionCode" : 1046,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"nvueCompiler" : "uni-app",
|
"nvueCompiler" : "uni-app",
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
|
|||||||
@@ -365,6 +365,12 @@
|
|||||||
"navigationBarTitleText": "自评测表"
|
"navigationBarTitleText": "自评测表"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/course/superVip",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "超v介绍"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/course/courseDetail",
|
"path": "pages/course/courseDetail",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="buyItems">
|
<view class="buyItems">
|
||||||
<view class="txt555">
|
<view class="txt555">
|
||||||
{{item.title}}
|
<text>{{item.title}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="jianjie" v-html="item.content">
|
<view class="jianjie" v-html="item.content">
|
||||||
|
|
||||||
@@ -43,11 +43,20 @@
|
|||||||
<uni-tag v-if="item.selective != 0 && item.selective == 1" style="margin-right: 10rpx;" text="必修" size="small" type="warning" />
|
<uni-tag v-if="item.selective != 0 && item.selective == 1" style="margin-right: 10rpx;" text="必修" size="small" type="warning" />
|
||||||
<uni-tag v-if="item.selective != 0 && item.selective == 2" style="margin-right: 10rpx;" text="选修" size="small" type="success" />
|
<uni-tag v-if="item.selective != 0 && item.selective == 2" style="margin-right: 10rpx;" text="选修" size="small" type="success" />
|
||||||
</view>
|
</view>
|
||||||
<view class="btn_box">
|
|
||||||
<text>了解课程</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
<view class="btn_box">
|
||||||
|
<view class="btn_box_price" v-if="item.courseCatalogueEntityList.length==1">
|
||||||
|
<text v-if="item.courseCatalogueEntityList[0].halfFee==0">免费</text>
|
||||||
|
<text v-else>¥{{item.courseCatalogueEntityList[0].halfFee}}/{{item.courseCatalogueEntityList[0].fee}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="btn_box_price" v-if="item.courseCatalogueEntityList.length>1">
|
||||||
|
<text v-for="(v,i) in item.courseCatalogueEntityList" :key="i">
|
||||||
|
{{(v.title).substring(0, 1)}}<text v-if="i !== item.courseCatalogueEntityList.length - 1">/</text>
|
||||||
|
</text>
|
||||||
|
<text style="margin-left: 20rpx;">¥{{item.courseCatalogueEntityList[0].halfFee}}/{{item.courseCatalogueEntityList[0].fee}}</text>
|
||||||
|
</view>
|
||||||
|
<text class="btn_box_btn">了解课程</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-divider v-show="status == 2" text="已加载全部"></u-divider>
|
<u-divider v-show="status == 2" text="已加载全部"></u-divider>
|
||||||
@@ -127,7 +136,9 @@ export default {
|
|||||||
value: [0, 0],
|
value: [0, 0],
|
||||||
selectedData: {}, //城市
|
selectedData: {}, //城市
|
||||||
countryIndex: 0, //抑郁症文字区分国家展示
|
countryIndex: 0, //抑郁症文字区分国家展示
|
||||||
countryText: ''
|
countryText: '',
|
||||||
|
//列表显示价格
|
||||||
|
courseCatalogueEntityList: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
//第一次加载
|
//第一次加载
|
||||||
@@ -398,13 +409,13 @@ export default {
|
|||||||
this.flag = false
|
this.flag = false
|
||||||
$http.request({
|
$http.request({
|
||||||
url: "medical/home/getMedicalCourseList",
|
url: "medical/home/getMedicalCourseList",
|
||||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
"id": id,
|
"id": id,
|
||||||
"limit": 12,
|
"limit": 12,
|
||||||
"page": this.page
|
"page": this.page
|
||||||
},
|
},
|
||||||
header: { //默认 无 说明:请求头
|
header: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -424,7 +435,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.status = 3 // 暂无数据
|
this.status = 3 // 暂无数据
|
||||||
}
|
}
|
||||||
console.log('status', this.status)
|
|
||||||
this.flag = true
|
this.flag = true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -496,8 +506,11 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.newBox {
|
.newBox {
|
||||||
|
.flexbox{
|
||||||
|
padding-bottom: 100rpx !important;
|
||||||
|
}
|
||||||
.item {
|
.item {
|
||||||
|
position: relative;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
@@ -521,10 +534,28 @@ export default {
|
|||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.btn_box{ text-align: right;
|
.btn_box{
|
||||||
text{
|
position: absolute;
|
||||||
|
bottom: 20rpx;
|
||||||
|
right: 20rpx;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: end;
|
||||||
|
.btn_box_price{
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-right: 30rpx;
|
||||||
|
color: red;
|
||||||
|
line-height: 54rpx;
|
||||||
|
}
|
||||||
|
.btn_box_btn{
|
||||||
|
width: 140rpx;
|
||||||
|
height: 54rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 54rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 3px 5px; @include theme("btn_bg");
|
@include theme("btn_bg");
|
||||||
font-size: 28rpx; color: #fff;
|
font-size: 28rpx; color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,19 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="ss" >
|
<view class="ss" >
|
||||||
<view class="box">
|
<view class="box">
|
||||||
|
<view class="item flexbox" @click="itemClick('chaov')">
|
||||||
|
|
||||||
|
<view class="logo">
|
||||||
|
<image class="" src="@/static/logo.png" mode="aspectFill"></image>
|
||||||
|
</view>
|
||||||
|
<view class="flexbox tt">
|
||||||
|
<view class="type">
|
||||||
|
<image src="/static/chaovIcon.png" mode="widthFix"></image>
|
||||||
|
</view>
|
||||||
|
<text style="letter-spacing: 1.2px;">超V介绍 > </text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
<view class="item flexbox" @click="itemClick('jiage')">
|
<view class="item flexbox" @click="itemClick('jiage')">
|
||||||
|
|
||||||
<view class="logo">
|
<view class="logo">
|
||||||
@@ -28,7 +41,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="flexbox tt">
|
<view class="flexbox tt">
|
||||||
<view class="type">
|
<view class="type">
|
||||||
<image src="/static/shuomingIcon.png" mode="aspectFill"></image>
|
<image src="/static/shuomingIcon.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<text>课程说明 > </text>
|
<text>课程说明 > </text>
|
||||||
</view>
|
</view>
|
||||||
@@ -89,6 +102,9 @@
|
|||||||
itemClick(op){
|
itemClick(op){
|
||||||
var path = ''
|
var path = ''
|
||||||
switch(op){
|
switch(op){
|
||||||
|
case "chaov":
|
||||||
|
path = '/pages/course/superVip'
|
||||||
|
break
|
||||||
case "jiage":
|
case "jiage":
|
||||||
path = '/pages/course/coursePrice'
|
path = '/pages/course/coursePrice'
|
||||||
break
|
break
|
||||||
|
|||||||
73
pages/course/superVip.vue
Normal file
73
pages/course/superVip.vue
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<template>
|
||||||
|
<view class="super_content">
|
||||||
|
<z-nav-bar title="超v介绍"></z-nav-bar>
|
||||||
|
<text class="super_title">中医学超v</text>
|
||||||
|
<text class="super_con">办理时长分别为3年和4年。中医学超v时间内可享受无限制观看,吴门医述APP-中医学分类板块下的任意课程。</text>
|
||||||
|
<text class="super_title">针灸学超v</text>
|
||||||
|
<text class="super_con">办理时长分别为3年和4年。针灸学超v时间内可享受无限制观看,吴门医述APP-针灸学分类板块下的任意课程。</text>
|
||||||
|
<text class="super_title">肿瘤学超v</text>
|
||||||
|
<text class="super_con">办理时长分别为3年和4年。肿瘤学超v时间内可享受无限制观看,吴门医述APP-肿瘤学分类板块下的任意课程。</text>
|
||||||
|
<text class="super_title">心理学超v</text>
|
||||||
|
<text class="super_con">办理时长分别为3年和4年。心理学超v时间内可享受无限制观看,吴门医述APP-心理学分类板块下的任意课程。</text>
|
||||||
|
<text class="super_title" style="width: 290rpx;">众妙之门(国学)超v</text>
|
||||||
|
<text class="super_con">办理时长分别为3年和4年。众妙之门国学超v时间内可享受无限制观看,众妙之门APP的任意课程。</text>
|
||||||
|
|
||||||
|
<text class="super_con2">说明:
|
||||||
|
1 购买1天医币=1元人民币
|
||||||
|
2 因微信支付有金额上限,可通过以下途径支付:
|
||||||
|
(1)国内银行转账
|
||||||
|
户名:天津众妙之门科技有限公司
|
||||||
|
账号:122913225110501
|
||||||
|
开户行:招商银行股份有限公司天津新技术产业园区支行
|
||||||
|
(2)海外用户信用卡支付。简单快捷,推荐使用!
|
||||||
|
支付时使用的信用卡需要带有Visa或MasterCard的标识。加一路健康客服微信(yilujiankangkefu)联系我们,我们将在24小时内向您发送支付链接,根据提示即可完成信用卡支付,无需兑换外币。
|
||||||
|
(3)海外银行账户:
|
||||||
|
银行名称:ASB Bank Limited,
|
||||||
|
银行地址:505 Pakuranga RD, Highland Park, Auckland 1140, New Zealand
|
||||||
|
账号名称 :Amazing Limited
|
||||||
|
银行间代码(SWIFT):ASBBNZ2A
|
||||||
|
银行账号:12-3233-0749438-00
|
||||||
|
收款人地址:3 the mews,shamrock park,auckland 2016, New zealand.
|
||||||
|
注:以上支付方式请务必备注本软件注册的用户名及手机号以便核对信息。
|
||||||
|
3 若有疑问或意见联系客服,微信号yilujiankangkefu 电话 022-24142321,13110039505。(本天医币一经购买,暂不支持退款)</text>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import '@/style/mixin.scss';
|
||||||
|
.super_content{
|
||||||
|
height: 100vh;
|
||||||
|
background: #f2f8ff;
|
||||||
|
}
|
||||||
|
.super_title{
|
||||||
|
width: 180rpx;
|
||||||
|
text-align: center;
|
||||||
|
height: 54rpx;
|
||||||
|
line-height: 54rpx;
|
||||||
|
display: block;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
@include theme("btn_bg");
|
||||||
|
color: #fff;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
margin: 50rpx 30rpx 0;
|
||||||
|
}
|
||||||
|
.super_con{
|
||||||
|
display: block;
|
||||||
|
font-size: 30rpx;
|
||||||
|
line-height: 46rpx;
|
||||||
|
margin: 20rpx 30rpx 50rpx;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
.super_con2{
|
||||||
|
background: #f2f8ff;
|
||||||
|
display: block;
|
||||||
|
font-size: 28rpx;
|
||||||
|
line-height: 50rpx;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
color: #666;
|
||||||
|
padding: 50rpx 30rpx 60rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -341,7 +341,7 @@
|
|||||||
<view class="related_courses_name" :class="`goods_item `">
|
<view class="related_courses_name" :class="`goods_item `">
|
||||||
<view class="image_box" style="margin-right: 10rpx">
|
<view class="image_box" style="margin-right: 10rpx">
|
||||||
<image
|
<image
|
||||||
:src="slotProps.row.images"
|
:src="slotProps.row.images||slotProps.row.image"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
class="goods_image"
|
class="goods_image"
|
||||||
></image>
|
></image>
|
||||||
|
|||||||
@@ -58,9 +58,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// #ifdef APP-PLUS
|
import updata from "@/uni_modules/uni-upgrade-center-app/utils/check-update";
|
||||||
import updata from "@/uni_modules/uni-upgrade-center-app/utils/check-update";
|
|
||||||
// #endif
|
|
||||||
import list from "@/pages/component/commonComponents/list";
|
import list from "@/pages/component/commonComponents/list";
|
||||||
import $http from "@/config/requestConfig.js";
|
import $http from "@/config/requestConfig.js";
|
||||||
|
|
||||||
@@ -237,9 +235,8 @@ showCodeImg:false,
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 版本检测
|
// 版本检测
|
||||||
async getNewVersion(){
|
getNewVersion(){
|
||||||
// #ifdef APP-PLUS
|
var info = updata();
|
||||||
var info = await updata();
|
|
||||||
console.log('info',JSON.stringify(info))
|
console.log('info',JSON.stringify(info))
|
||||||
if(info.result.code == 0){
|
if(info.result.code == 0){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -247,7 +244,6 @@ showCodeImg:false,
|
|||||||
icon:'none'
|
icon:'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// #endif
|
|
||||||
},
|
},
|
||||||
// 详情
|
// 详情
|
||||||
gotoDetail(v) {
|
gotoDetail(v) {
|
||||||
|
|||||||
@@ -178,6 +178,26 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- vip活动 -->
|
||||||
|
<view class="superBox" v-if="superList.length > 0">
|
||||||
|
<view class="learnBox">
|
||||||
|
<view class="titleBox flexbox">
|
||||||
|
<image src="../../static/superVip_icon.png" mode="aspectFit"></image>
|
||||||
|
<text>VIP活动</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="super_block">
|
||||||
|
<scroll-view class="scroll-view" scroll-x="true" scroll-left="0">
|
||||||
|
<view class="super_product_list">
|
||||||
|
<view class="super_product_item" v-for="(item,index) in superList" :key="index" @click="goGoodsDetail(item, 0)">
|
||||||
|
<image :src="item.productImages"></image>
|
||||||
|
<text>{{item.productName}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<!-- 限时秒杀 -->
|
<!-- 限时秒杀 -->
|
||||||
<view class="seckillBox" v-if="seckillList.length > 0">
|
<view class="seckillBox" v-if="seckillList.length > 0">
|
||||||
<view class="hightLightTitleBox">
|
<view class="hightLightTitleBox">
|
||||||
@@ -376,7 +396,9 @@
|
|||||||
//下标
|
//下标
|
||||||
currentIndex: 0,
|
currentIndex: 0,
|
||||||
currentIndex: null,
|
currentIndex: null,
|
||||||
fixed: null
|
fixed: null,
|
||||||
|
//vip活动
|
||||||
|
superList: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
@@ -629,6 +651,7 @@
|
|||||||
this.getNewsList();
|
this.getNewsList();
|
||||||
// this.getTags()
|
// this.getTags()
|
||||||
// this.getYXTgs()
|
// this.getYXTgs()
|
||||||
|
this.getSuperData();
|
||||||
},
|
},
|
||||||
// 获取医学标签列表
|
// 获取医学标签列表
|
||||||
getMedicalTags(id) {
|
getMedicalTags(id) {
|
||||||
@@ -691,6 +714,31 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//获取vip活动商品
|
||||||
|
getSuperData(){
|
||||||
|
$http
|
||||||
|
.request({
|
||||||
|
url: "medical/labelAndMarket/getMarketShopProductList",
|
||||||
|
method: "POST",
|
||||||
|
data: {
|
||||||
|
current: 1,
|
||||||
|
limit: 12,
|
||||||
|
medicineMarketId: "6",
|
||||||
|
},
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
if (res.result.records.length > 0) {
|
||||||
|
this.superList = res.result.records;
|
||||||
|
} else {
|
||||||
|
this.superList = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
// 获取秒杀商品列表
|
// 获取秒杀商品列表
|
||||||
getSeckill() {
|
getSeckill() {
|
||||||
$http
|
$http
|
||||||
@@ -700,7 +748,7 @@
|
|||||||
data: {
|
data: {
|
||||||
current: 1,
|
current: 1,
|
||||||
limit: 12,
|
limit: 12,
|
||||||
medicineMarketId: "1",
|
medicineMarketId: "1", //vip活动 6
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
//默认 无 说明:请求头
|
//默认 无 说明:请求头
|
||||||
@@ -1335,7 +1383,7 @@
|
|||||||
|
|
||||||
text {
|
text {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
padding-left: 20rpx;
|
padding-left: 10rpx;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1831,4 +1879,45 @@
|
|||||||
border: 1px solid #fff;
|
border: 1px solid #fff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
.superBox{
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
.super_block{
|
||||||
|
margin-top: 20rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
.scroll-view{
|
||||||
|
|
||||||
|
}
|
||||||
|
.super_product_list{
|
||||||
|
display: inline-flex;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
|
|
||||||
|
.super_product_item{
|
||||||
|
width: 185rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
image{
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 185rpx;
|
||||||
|
}
|
||||||
|
text{
|
||||||
|
text-align: center;
|
||||||
|
font-size: 24rpx;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 36rpx;
|
||||||
|
line-height: 36rpx;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.super_product_item:last-child{
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
BIN
static/chaovIcon.png
Normal file
BIN
static/chaovIcon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 465 B |
BIN
static/superVip_icon.png
Normal file
BIN
static/superVip_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
Reference in New Issue
Block a user