diff --git a/config/baseUrl.js b/config/baseUrl.js
index 1ccd200..001c8ae 100644
--- a/config/baseUrl.js
+++ b/config/baseUrl.js
@@ -3,13 +3,13 @@ let socketUrl = "";
if (process.env.NODE_ENV === 'development') {
// 开发环境
// baseUrl = "https://testapi.nuttyreading.com/"; //线上测试环境
- baseUrl = "https://api.nuttyreading.com/"; //线上正式
- //baseUrl = "http://192.168.110.100:9200/pb/"; //张川川
+ //baseUrl = "https://api.nuttyreading.com/"; //线上正式
+ baseUrl = "http://192.168.110.100:9200/pb/"; //张川川
} else if (process.env.NODE_ENV === 'production') {
// 生产环境11
// baseUrl = "https://testapi.nuttyreading.com/";
- baseUrl = "https://api.nuttyreading.com/";
- //baseUrl = "http://192.168.110.100:9200/pb/"; //张川川
+ //baseUrl = "https://api.nuttyreading.com/";
+ baseUrl = "http://192.168.110.100:9200/pb/"; //张川川
}
const courtConfig = {
//微信公众号APPID1
diff --git a/node_modules.zip b/node_modules.zip
deleted file mode 100644
index 2ac3f28..0000000
Binary files a/node_modules.zip and /dev/null differ
diff --git a/pages.json b/pages.json
index e220a07..b95ce29 100644
--- a/pages.json
+++ b/pages.json
@@ -19,7 +19,7 @@
{
"path": "pages/mine/vip/index",
"style": {
- "navigationBarTitleText": "vip",
+ "navigationBarTitleText": "VIP定制",
"enablePullDownRefresh": true,
"onReachBottomDistance": 100,
"app-plus": {
diff --git a/pages/course/courseDetail.vue b/pages/course/courseDetail.vue
index d0c8078..b9e76ad 100644
--- a/pages/course/courseDetail.vue
+++ b/pages/course/courseDetail.vue
@@ -2,32 +2,17 @@
-
-
-
-
+
+
+
+ {{goBuyTitle}}
+
+
-
- 立即续费
-
-
- 立即升级
-
-
-
-
-
-
-
+
+
@@ -37,9 +22,6 @@
{{ course.title }}
-
-
@@ -66,7 +48,6 @@
-
@@ -86,10 +67,6 @@
第{{index + 1}}次自考成绩
{{item.score}}分
-
查看试卷
@@ -109,10 +86,6 @@
-
-
-
-
@@ -141,10 +114,6 @@
-
-
@@ -168,8 +137,7 @@
加入班级开始更加系统的学习
- 前往查看
- >>
+ 查看>>
@@ -201,7 +169,7 @@
-
@@ -211,14 +179,13 @@
-
+
-
+
- VIP畅学权益有效期截止到:{{userMsg.userVip.endTime}}
-
+ VIP畅学权益有效期截止到:{{userVip.endTime}}
@@ -228,8 +195,7 @@
课程有效期截止到:{{librayList[curIndex].endTime}}
- 续费
+ 续费
@@ -238,18 +204,15 @@
- 您未购买此目录课程或已到期,购买后或开通超级VIP 即可学习本目录课程
+ 您未购买此目录课程或已到期,购买后或开通VIP即可学习本目录课程
-
-
@@ -257,9 +220,9 @@
-
+
VIP畅学权益生效中
- {{ item.title }}
-
+ {{ item.title }}
+ v-if="librayList[curIndex] && librayList[curIndex].isBuy == 1 || userVip!=null">
@@ -300,19 +262,12 @@
学习进度
-
-
-
-
@@ -333,19 +288,9 @@
-
留言板
-
-
发布留言
@@ -359,28 +304,6 @@
-
-
@@ -541,10 +464,10 @@
},
],
isHideCourseInfo: false,
- goBuyTitle: "",
- goBuyType: "",
+ goBuyTitle: "", //顶部文案显示
+ goBuyType: "", //顶部按钮状态标识
playData: {},
- vip: {},
+ vip: {}, //vip数据
catalogueId: null,
fixed: false,
bgiStyle: {
@@ -599,24 +522,7 @@
supportFlag: false,
selectGoodsData: {},
- buyOptions: [
- // {
- // icon: 'chat',
- // text: '客服'
- // },
- // {
- // icon: 'shop',
- // text: '店铺',
- // // info: 2,
- // infoBackgroundColor: '#007aff',
- // infoColor: "#f5f5f5"
- // },
- // {
- // icon: 'cart',
- // text: '购物车',
- // info: 2
- // }
- ],
+ buyOptions: [],
customButtonGroup1: [{
with: 200,
text: "立即购买",
@@ -647,6 +553,8 @@
showNewPayBtn:false,
newPaymentProList:[],
isFudu:false, // 是否复读
+ //是否有vip
+ userVip: null
};
},
//第一次加载
@@ -657,9 +565,10 @@
// this.pageTitle = e.title
console.log(e, "传入分类id");
this.getUserInfo();
+
this.courseId = e.id;
- // this.getCateList(this.courseId)
- // await this.getData(e.id);
+ //是否是vip
+ this.getCourseByVip();
this.getSayList();
this.getOS()
},
@@ -678,7 +587,6 @@
async onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
- console.log('this.courseId', this.courseId);
this.canJoinTestTime = false
await this.getData(this.courseId);
// #ifdef APP-PLUS
@@ -686,22 +594,16 @@
plus.screen.lockOrientation("portrait-primary");
// #endif
await this.request()
-
},
onUnload() {
this.selectGoodsData = {};
this.protocolShow = false;
this.$refs.commonSelectGoods.close();
- // this.showSearchList = false
- // this.searchList = []
},
onHide() {
this.selectGoodsData = {};
this.protocolShow = false;
- // this.handleClickClose();
this.$refs.commonSelectGoods.close();
- // this.showSearchList = false
- // this.searchList = []
},
async onPullDownRefresh() {
await this.getData(this.courseId);
@@ -1063,7 +965,6 @@
this.$commonJS.showToast("商品已下架");
} else {
uni.navigateTo({
- // url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/goods/index/index?navTitle=''&title=''&id=${data.productId}`,
});
}
@@ -1082,25 +983,18 @@
},
//课程详情
async gotoDetail(v, courseIndex) {
- console.log("准备进入学习页面", v);
this.currentCateIndex = courseIndex;
let _myurl = ''
- // if(this.oprateOsName == 'ios'){
- // _myurl = '/pages/course/chapterDetail'
- // }else{
- // h5 和安卓
_myurl = '/pages/course/chapterDetailAndorid'
- // }
- if (this.librayList[this.curIndex].isBuy == 1 || v.isAudition == 1 ||
- this.vip.type == "1" || this.vip.type == "2") {
+ if (this.librayList[this.curIndex].isBuy == 1 || v.isAudition == 1 || this.userVip!=null) {
let noRecored = false
- v.isAudition == 1 && this.userMsg.vip == 0 && this.librayList[this.curIndex].isBuy == 0 ?
+ v.isAudition == 1 && this.userVip==null && this.librayList[this.curIndex].isBuy == 0 ?
noRecored = true : ''
uni.navigateTo({
url: `${_myurl}?navTitle=${this.pageTitle}&title=${v.title}&courseId=${this.courseId}&id=${v.id}&conditions=${v.conditions}&noRecored=${noRecored}`,
});
- } else if (this.vip.type != "1" && this.librayList[this.curIndex].type == 2) {
- this.$commonJS.showToast("请开通超V后观看本课程");
+ } else if (this.userVip==null && this.librayList[this.curIndex].type == 2) {
+ this.$commonJS.showToast("请开通VIP后观看本课程");
} else {
this.$commonJS.showToast("请先购买课程");
}
@@ -1110,20 +1004,16 @@
this.$forceUpdate();
},
onHandleClickBuy(e) {
- console.log("this.selectGoodsData at line 589:", this.selectGoodsData);
-
var mynavData = JSON.stringify({
goods: [this.selectGoodsData],
typeId: 0,
navTitle: this.course.title,
title: this.course.title,
isFudu: this.isFudu
- // sourceType: "curriculum",
}); // 这里转换成 字符串
uni.navigateTo({
url: `/pages/goods/order/index?data=${mynavData}`,
});
- // }
},
openBuyInfoModal() {
this.pricespop = false;
@@ -1194,8 +1084,6 @@
//获取相关关联课程商品
handleClickGetGoodsList(v) {
- // console.log("data at line 313:", data);
-
if (v.type == 0) {
//免费
this.$http
@@ -1206,7 +1094,6 @@
catalogueId: v.id,
},
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -1214,14 +1101,13 @@
console.log("res at line 493:", res);
if (res.code == 0) {
this.getCourseDescriptionData(v);
- // this.$commonJS.showToast("");
}
this.$forceUpdate();
});
- } else if (v.type == 2 && this.userMsg.vip != 1) {
+ } else if (v.type == 2 && this.userVip==null) {
uni.showModal({
title: '提示',
- content: '当前课程目录是超V专享,开通超V可观看',
+ content: '当前课程目录是VIP专享,开通VIP可观看',
confirmText: '好的',
showCancel: false
})
@@ -1239,7 +1125,6 @@
id: v.id,
},
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -1256,19 +1141,53 @@
this.$forceUpdate();
})
},
+ //获取信息
getUserInfo() {
this.$http.post("common/user/getUserInfo").then((res) => {
- console.log("res at line 505:", res);
this.userMsg = res.result
- if (res.result.userVip) {
- this.vip = res.result.userVip;
- } else {
- this.vip = {
- type: 0
- };
- }
});
},
+
+ //获取是否是vip
+ getCourseByVip(){
+ this.$http
+ .request({
+ url: 'common/userVip/ownCourseCatalogueByVip',
+ method: "POST",
+ data: {
+ courseId: this.courseId,
+ },
+ header: {
+ "Content-Type": "application/json",
+ },
+ })
+ .then((res) => {
+ if (res.code == 0) {
+ //如果有userVip,说明是符合课程的vip身份
+ if(res.userVip){
+ this.userVip = res.userVip;
+ let type = res.userVip.type;
+ let role = '';
+ if(type==4){
+ role = '中医学';
+ }else if(type==5){
+ role = '针灸学';
+ }else if(type==6){
+ role = '肿瘤学';
+ }else if(type==7){
+ role = '国学';
+ }else if(type==8){
+ role = '心理学';
+ }
+ this.goBuyTitle = '尊贵的'+role+'VIP,您的有效期到'+res.userVip.endTime;
+ this.goBuyType = 1;
+ }else{ //否则没有开通vip
+ this.goBuyTitle = '购买VIP,即可畅享更多专属权益';
+ this.goBuyType = 0;
+ }
+ }
+ })
+ },
// 评论
showSayModule(data) {
console.log(data, "父级收到值了");
@@ -1665,9 +1584,9 @@
url: `/pages/course/myCourseLearn?id=${this.course.id}`,
});
},
+ //获取课程数据
async getData(id) {
this.courseList = [];
- // console.log("at line 1167:", "调用了几次");
var that = this;
uni.showLoading({
title:'获取课程信息'
@@ -1675,12 +1594,11 @@
await $http
.request({
url: "sociology/course/getCourseDetail",
- method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
+ method: "POST",
data: {
id: id,
},
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -1695,40 +1613,11 @@
}
if (res.code == 0) {
this.course = res.data.course;
- //0 购买 1 续费 2 升级
- // console.log("this.vip.type at line 1045:", this.vip);
- 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.$forceUpdate();
this.pageTitle = this.course.title;
this.librayList = [...res.data.catalogues];
- console.log('获取课程详情=》', res.data);
+
if (this.librayList.length > 0) {
var ll = this.librayList.map(item => item.completion)
var sums = 0
@@ -1744,27 +1633,19 @@
} else {
this.courseCompletion = 0
}
- console.log('lllllll', this.courseCompletion);
that.$forceUpdate();
if (this.librayList.length > 0) {
if (this.catalogueId) {
this.curId = this.catalogueId
let _list = this.librayList
_list = _list.map(item => item.id)
- // console.log('_list过滤后的_list',_list);
this.curIndex = _list.findIndex((element) => element == this.catalogueId)
- console.log('其他页面返回来,_list过滤后的curIndex', this.curIndex, this.catalogueId);
} else {
this.catalogueId = this.librayList[0].id;
this.curId = this.librayList[0].id;
this.curIndex = 0
- console.log('首次加载');
- }
- console.log('this.librayList[0]',this.librayList[0]);
- this.clicklib(this.librayList[0], 0)
- // this.chapterList = await this.getChapterList(this.catalogueId)
- console.log('目录列表', this.librayList)
- // console.log('外面得到的方法列表', this.chapterList);
+ }
+ this.clicklib(this.librayList[0], 0)
if (
res.data.shopProductList &&
res.data.shopProductList.length > 0
@@ -1773,13 +1654,11 @@
} else {
this.tjProList;
}
- // console.log("list at line 1233:", list);
}
}
})
.catch((e) => {
uni.hideLoading()
- console.log(e, "获取课程数据报错666");
});
},
goBuy() {
@@ -1818,7 +1697,6 @@
},
choosePrice(item) {
this.selectGoodsData = item;
- // console.log(item, 'choosePrice')
this.curProId = item.productId;
},
async chooseChapter(item, index) {
@@ -1826,12 +1704,6 @@
// 未购买仅试听
// let data = null
this.courseList[index].tryListen = await this.getPath(item, index);
- console.log(this.courseList, "1*********");
-
- // uni.navigateTo({
- // url: `/pages/course/learn?courseId=${this.course.id}&catalogueId
- // =${this.curId}&chapterId=${item.id}`
- // })
}
},
async getPath(item, index) {
@@ -1852,14 +1724,12 @@
datas = res.data.videos;
console.log(res);
});
- console.log("datas at line 1300:", datas);
return datas;
},
// 选择复读选项
async goNewPay(item){
this.showNewPayBtn ? await this.getNewPaymentList(item.id) : ''
if(this.newPaymentProList.length > 0){
- // this.getCourseDescriptionData(v);
this.goodsList = this.newPaymentProList;
this.selectGoodsData = this.goodsList[0];
this.$refs.commonSelectGoods.open();
@@ -1872,20 +1742,14 @@
}
},
async clicklib(item, index) {
- console.log('hhhhhhhhhhhhhhhhhhh++++++++', item);
-
- // if (item.id == this.curId) {
- // return;
- // }
this.catalogueId = item.id
this.curIndex = index;
this.curId = item.id;
- if(item.isBuy == 0 && this.userMsg.vip != 2 && this.userMsg.vip != 1 ){
- console.log('hhhhhhhhhhhhhhhhhhh++++++++');
+ if(item.isBuy == 0 && this.userVip==null ){
this.showNewPayBtn = await this.checkRenewPayment(item.id)
console.log('可以复读吗?', this.showNewPayBtn );
- }else{ // this.showNewPayBtn = await this.checkRenewPayment(item.id)
+ }else{
console.log('不用复读');
}
this.chapterList = await this.getChapterList(item.id);
@@ -2032,17 +1896,12 @@
border-bottom: 1px solid #eee;
}
- .endBox {
- // @include theme("vipbtnbg");
+ .endBox {
color: #333;
font-size: 26rpx;
// margin: 20rpx 0;
padding: 10rpx 20rpx;
-
- .box {
- // background-color: #258feb;
- }
-
+
.flexbox {
justify-content: space-between;
}
@@ -2500,35 +2359,15 @@
.gouwuche {
border: 1px solid #666;
padding-right: 20rpx;
-
- text {
- // color: #fff;
- }
}
}
- .vipBtn {
- @include theme("vipbtnbg");
- border-radius: 100rpx;
- justify-content: center;
- width: auto;
- padding: 0 20rpx;
- color: #fff;
- margin: 10rpx auto;
- }
-
.buyBtn {
background: #f42c32 !important;
- // background:
}
.buyBox {
- // position: fixed;
- // z-index: 2;
- // bottom: 100rpx;
- // left: 0;
@include pleft_right(4px);
- // @include mshadow(10px, 1);
padding: 20rpx 10rpx;
width: 100%;
font-size: 28rpx;
@@ -2538,7 +2377,6 @@
#ece6fa 30%,
#d7e8f0 60%,
#fff 100%);
- // background: rgba(255, 255, 255, 0.9);
.item {
width: 100%;
@@ -2626,38 +2464,23 @@
.containerBg1 {
border-top: 1px solid #fff;
margin-top: -4rpx;
- // position: relative;
z-index: 1;
-
border-radius: 30rpx 30rpx 0 0;
- // background-color: #fff;
- // overflow: hidden;
}
.containerBg {
- // background-color: #f4f7ff;
- // overflow: hidden;
padding: 0 20rpx;
padding-bottom: 40rpx;
}
-
- .buyBox {}
-
- .vipBgColor {
- // background-color: #8265f9 !important;
- }
-
.coursePart {
margin-top: 20rpx;
@include ptop_bottm(10px);
border-radius: 20rpx 20rpx 0 0;
@include pleft_right(10px);
align-items: flex-end;
- // @include mshadow(10px, 1);
margin-top: 20rpx;
padding: 0 20rpx;
padding-top: 20rpx;
- // background-color: $themeColor;
.item {
justify-content: center;
@@ -2748,12 +2571,7 @@
.catalogueTitle {
justify-content: space-between;
overflow: hidden;
- // background-image: linear-gradient(108deg, #cae9f9 0%, #e1f6fc8c 50%);
-
- // background-image: linear-gradient(180deg, #cfe0ff 0%, #fff 50%);
- // padding: 0 20rpx;
font-size: 40rpx;
-
.learnBtn {
margin-bottom: 20rpx;
width: 150rpx;
@@ -2840,10 +2658,6 @@
line-height: 30rpx;
border-radius: 10rpx;
box-sizing: border-box;
-
- // margin-top: 20rpx;
- // display: flex;
- // align-items: center;
}
.fdButtonBoxRed {
@@ -2950,7 +2764,6 @@
padding: 20rpx;
font-size: 38rpx;
font-weight: bold;
- // background-image: url(@/static/bg1.jpg);
background-size: cover;
background-repeat: no-repeat;
}
@@ -2981,9 +2794,7 @@
font-size: 46rpx;
color: $themeColor;
background-color: #f5f5f5;
- // line-height: 46rpx;
padding: 20rpx;
- // border-leradius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
@@ -3000,13 +2811,11 @@
.center {
line-height: 40rpx;
- // padding:0 10rpx;
}
.bottom {
width: 100%;
margin-top: 60rpx;
-
font-size: 24rpx;
line-height: 26rpx;
color: #b0b0b0;
@@ -3058,11 +2867,6 @@
color: #1e2f3e;
}
}
-
- .textBox.lock {
- width: calc(100% - 60rpx);
- }
-
.shitingTag {
display: flex;
}
@@ -3073,12 +2877,9 @@
.course_info_box {
margin-bottom: 10rpx;
-
- // padding:20rpx;
.course_info {
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
background: #f2f8ff;
- // border-radius:20rpx;
overflow: hidden;
}
}
@@ -3090,15 +2891,6 @@
font-size: 42rpx;
font-weight: bold;
letter-spacing: 4rpx;
-
- // border:4rpx solid #1FB2F8;
- // box-shadow: 0 2px 12px 0 rgba(255,255,255,.1);
- // border-radius:40rpx;
- // color:#fff;
- // width:200rpx;
- // height:70rpx;
- // display:inline-block;
- // padding:10rpx 20rpx;
}
.vipchapter_content {
@@ -3168,10 +2960,6 @@
// box-shadow: 0 2px 12px 0 rgba(255,255,255,.1);
// border-radius:40rpx;
color: #fff;
- // width:200rpx;
- // height:70rpx;
- // display:inline-block;
- // padding:10rpx 20rpx;
font-size: 72rpx;
text-align: center;
}
@@ -3225,12 +3013,30 @@
.seePaper {
color: #35a6ff;
font-size: 32rpx;
- // width: 50rpx;
- // height: 50rpx;
-
- // image {
- // width: 100%;
- // height: 100%;
- // }
+ }
+ .describe_block{
+ padding: 15rpx 20rpx;
+ background: linear-gradient(90deg, #258feb 0%, #00e1ec 100%);
+ position: fixed;
+ left: 0;
+ width: 100%;
+ z-index: 10;
+ color: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ }
+ .describe_block text{
+ display: block;
+ font-size: 28rpx;
+ padding-right: 10rpx;
+ }
+ .describe_block button{
+ font-size: 26rpx;
+ color: #fff;
+ padding: 0 15rpx;
+ border-radius: 10rpx;
+ line-height: 50rpx;
+ height: 50rpx;
}
\ No newline at end of file
diff --git a/pages/course/myCourse.vue b/pages/course/myCourse.vue
index 8219301..c15420d 100644
--- a/pages/course/myCourse.vue
+++ b/pages/course/myCourse.vue
@@ -414,27 +414,24 @@
// 直接购买
buy(val){
var mynavData = JSON.stringify({
- goods: [
- {
- productImages: val.productImages,
- productId: val.productId,
- productName: val.productName,
- price: val.activityPrice && val.activityPrice != 0 ? val.activityPrice:val.price,
- goodsType: val.goodsType,
- },
- ],
-
- navTitle: val.productName,
- title: val.productName,
- typeId: 0,
- }); // 这里转换成 字符串
-
- uni.navigateTo({
- url: `/pages/goods/order/index?data=${mynavData}`,
- });
- // uni.navigateTo({
- // url:`/pages/bookShop/settlement?type=2&list=${val.id}`
- // })
+ goods: [
+ {
+ productImages: val.productImages,
+ productId: val.productId,
+ productName: val.productName,
+ price: val.activityPrice && val.activityPrice != 0 ? val.activityPrice:val.price,
+ goodsType: val.goodsType,
+ },
+ ],
+
+ navTitle: val.productName,
+ title: val.productName,
+ typeId: 0,
+ }); // 这里转换成 字符串
+
+ uni.navigateTo({
+ url: `/pages/goods/order/index?data=${mynavData}`,
+ });
},
closePup(e){
this.pricespop = false
diff --git a/pages/goods/index/index.vue b/pages/goods/index/index.vue
index 6b3885b..b2f88d1 100644
--- a/pages/goods/index/index.vue
+++ b/pages/goods/index/index.vue
@@ -815,23 +815,15 @@ export default {
},
onLoad(options) {
this.options = options;
- console.log("options", options);
- // this.handleClickGetGoodsList();
- // this.getUserInfo()
- // this.getCateList()
},
onHide() {
this.selectGoodsData = {};
this.$refs.commonSelectGoods.close();
- // this.showSearchList = false
- // this.searchList = []
},
onUnload() {
this.selectGoodsData = {};
this.$refs.commonSelectGoods.close();
this.show = false;
- // this.showSearchList = false
- // this.searchList = []
},
onShow() {
this.requestType = this.options.type;
@@ -848,14 +840,13 @@ export default {
await this.$http
.request({
url: "common/coupon/couponToProductList",
- method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
+ method: "POST",
data: {
page: 1,
limit: 100,
productId: this.curriculumData.productId,
},
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -876,9 +867,7 @@ export default {
this.showInfo = true;
},
openPopup() {
- // this.selectGoodsData = this.goodsList[0];
this.$refs.commonSelectGoods.open();
- // this.show = true;
this.$forceUpdate();
},
close() {
@@ -950,13 +939,8 @@ export default {
uni.navigateTo({
url: `/pages/goods/order/index?data=${mynavData}`,
});
- // uni.navigateTo({
- // // url: '../bookShop/commodityDetail?id=' + item.id
- // url: `/pages/goods/order/index?navTitle=${this.options.navTitle}&title=${this.options.title}&oid=${this.options.oid}&conditions=${this.options.conditions}&detailOid=${this.options.detailOid}`
- // })
},
buttonClick(e) {
- console.log(e);
this.options[2].info++;
},
@@ -969,12 +953,6 @@ export default {
...this.taiHuClassInfo,
},
};
- // $mars.progressBegin('申请中...');
- // $mars.post(customerType, 'applyRelearn', data, function (ret) {
- // api.hideProgress();
-
- // fnLoadDataGrid();
- // });
},
fnRelearn(oid, days, courseFee) {
//99和199课程复读一个月60三个月120; 299和399课程复读一个月80三个月180
@@ -1011,14 +989,6 @@ export default {
fee: fee,
};
this.show = true;
- // $aui.alert({
- // title: ,
- // content: '用户您好,该课程已到期,通过支付' + fee + '元,本门课程可获得' + days + '天延期学习时间,点击确认即完成自动扣费,感谢配合!',
- // buttons: ['取消', '确认'],
- // radius: 6,
- // titleColor: '#ff3300',
- // contColor: '#333',
- // btnColor: ''
},
//课程详情
async gotoDetail(v) {
@@ -1035,15 +1005,12 @@ export default {
}
uni.navigateTo({
- // url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/curriculum/order/curriculum/detail?navTitle=${v.title}&title=${v.title}&oid=${v.courseOid}&conditions=${v.conditions}&detailOid=${v.detailOid}`,
});
},
//相关课程
goCourseDescription(v) {
- console.log(v);
uni.navigateTo({
- // url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/curriculum/order/curriculum/index?navTitle=${v.title}&title=${v.title}&oid=${v.oid}`,
});
},
@@ -1062,7 +1029,6 @@ export default {
productId: this.options.id,
},
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -1127,9 +1093,6 @@ export default {
this.swiperList.push(that.curriculumData.productImages);
} else {
that.swiperList = that.curriculumData.productImageList.split(",");
- // for (var i = 0; i < imgList.length; i++) {
- // this.swiperList.push(imgList[i])
- // }
}
this.detailInfo = {
@@ -1149,21 +1112,6 @@ export default {
checkDisable() {
console.log("点击了");
},
- // 显示无权限弹窗
- // showNoRights() {
- // let that = this
- // uni.showModal({
- // content: "",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // that.clear()
- // }
- // }
- // })
- // },
// 获取用户详情
getUserInfo() {
// 用户详情
@@ -1181,9 +1129,6 @@ export default {
var data = [];
console.log(item, index, 99999);
var that = this;
-
- // curriculumInfo
-
this.$http
.post(this.urlList.curriculumInfo, {
customerType: "D",
@@ -1197,173 +1142,23 @@ export default {
// socket.init();
});
-
- // this.$nextTick(() => {
- // switch (item.type) {
- // case 1:
- // // allDataList
- // this.dataList = that.allDataList.result1Lst
- // break;
- // case 2:
- // this.dataList = that.allDataList.result2Lst
- // break;
- // case 3:
- // this.dataList = that.allDataList.result3Lst
- // break;
- // case 4:
- // this.dataList = that.allDataList.result4Lst.filter(e =>
- // e.oid != '5fcf991c027b11e7ae62008cfae40c18' && e.oid != 'b3d8a938b8e147bc877613bb712a9cb3' && e.oid != '4d4730163135420ea962bfac4805e026' && e.oid != '49fb76ca3d6b43718d78c6aa9a3003c2' && e.oid != 'c7b047ed9246469b9ae2b1013fc3df9c'
-
- // )
-
- // console.log(this.dataList.length, 6666666)
- // break;
-
- // }
-
- // this.currentCateIndex = item.index
- // })
- console.log(this.allDataList, this.dataList, "1688");
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
- // this.currentStatusIndex = index
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
- // if (index != 2) {
-
- // uni.createSelectorQuery().select('.statusList').boundingClientRect(function (rect) {
- // var height = rect.height
- // console.log('元素高度:',);
-
- // }).exec();
-
- // } else {
- // this.getJFList(dictType)
- // }
-
return data;
},
async getDetailInfo() {
var that = this;
-
- // curriculumInfo
-
- // this.$nextTick(() => {
- // switch (item.type) {
- // case 1:
- // // allDataList
- // this.dataList = that.allDataList.result1Lst
- // break;
- // case 2:
- // this.dataList = that.allDataList.result2Lst
- // break;
- // case 3:
- // this.dataList = that.allDataList.result3Lst
- // break;
- // case 4:
- // this.dataList = that.allDataList.result4Lst.filter(e =>
- // e.oid != '5fcf991c027b11e7ae62008cfae40c18' && e.oid != 'b3d8a938b8e147bc877613bb712a9cb3' && e.oid != '4d4730163135420ea962bfac4805e026' && e.oid != '49fb76ca3d6b43718d78c6aa9a3003c2' && e.oid != 'c7b047ed9246469b9ae2b1013fc3df9c'
-
- // )
-
- // console.log(this.dataList.length, 6666666)
- // break;
-
- // }
-
- // this.currentCateIndex = item.index
- // })
- console.log(this.allDataList, this.dataList, "1688");
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
- // this.currentStatusIndex = index
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
- // if (index != 2) {
-
- // uni.createSelectorQuery().select('.statusList').boundingClientRect(function (rect) {
- // var height = rect.height
- // console.log('元素高度:',);
-
- // }).exec();
-
- // } else {
- // this.getJFList(dictType)
- // }
-
return data;
},
async setOneCateIndex(item, index) {
this.allDataList = [];
console.log(index, 99999);
var that = this;
-
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
this.currentStatusIndex = index;
- // this.currentCateIndex = 0
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
@@ -1372,19 +1167,6 @@ export default {
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) {
@@ -1396,159 +1178,13 @@ export default {
}
result[letter].push(item);
});
- // const finalResult = Object.keys(result).map(key => ({ [key]: result[key] }));
- return result;
+ return result;
},
- // getJFList(id) {
- // $http.request({
- // url: "book/prescript/prescriptListForJF",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'categoryId': id
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // if (res.code == 0 && res.list.length > 0) {
- // this.twoCateList = []
- // this.dataList = this.transformData(res.list)
- // console.log('JF经方', this.dataList)
- // } else {
- // this.twoCateList = []
- // this.dataList = []
- // }
- // }).catch(e => {
- // this.twoCateList = []
- // this.dataList = []
- // console.log(e)
- // })
- // },
getCateList(id) {
id ? "" : (id = 0);
this.twoCateList = [];
this.curTwoCateIndex = 0;
- // 0为获取顶级分类,其他为搜索下级分类,目前的逻辑,顶级是写死的,所以可能只会涉及到搜索第二级
- // $http.request({
- // url: "book/prescript/prescriptCategoryList",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'categoryId': id
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // console.log(res, '脉穴分类获取成功')
- // if (res.code == 0 && res.list.length > 0) {
- // this.statusList = res.list
- // this.getTowCateList(this.statusList[0].type)
- // } else {
- // this.statusList = []
- // }
- // }).catch(e => {
- // this.statusList = []
- // console.log(e)
- // })
},
-
- // 放大图片
- previewImage(url) {
- console.log(url);
- uni.previewImage({
- urls: [url],
- longPressActions: {
- itemList: ["很抱歉,暂不支持保存图片到本地"],
- success: function (res) {
- // console.log(res,'+++++')
- },
- },
- });
- },
- // getSearch() {
- // $http.request({
- // url: "book/prescript/searchPrescript",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'keywords': this.searchValue,
- // type: this.currentStatusIndex + 1
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // console.log(res, '搜索结果')
- // if (res.code == 0 && res.list.length >= 0) {
- // this.showSearchList = true
- // this.searchList = res.list
- // } else {
- // this.searchList = []
- // }
- // }).catch(e => {
- // // this.dataList = []
- // this.searchList = []
- // console.log(e)
- // })
- // },
- // search(res) {
- // console.log(res, 'res')
- // // uni.showToast({
- // // title: '搜索:' + res,
- // // icon: 'none'
- // // })
- // if (res == '') {
- // this.showSearchList = false
- // this.searchList = []
- // } else {
- // this.getSearch()
- // }
-
- // },
- // input(res) {
- // console.log('----input:', res)
- // if (res == '') {
- // this.searchList = []
- // } else {
- // this.getSearch()
- // }
- // },
- // clear(res) {
- // console.log('----clear:', res)
- // // uni.showToast({
- // // title: 'clear事件,清除值为:',
- // // icon: 'none'
- // // })
- // this.searchValue = ''
- // this.showSearchList = false
- // },
- // blur(res) {
- // // console.log('----blur:', res)
- // // if (res == '') {
- // // this.showSearchList = false
- // // this.searchList = []
- // // } else {
- // // this.getSearch()
- // // }
- // },
- // focus(e) {
- // console.log('----focus:')
- // // uni.showToast({
- // // title: 'focus事件,输出值为:' + e.value,
- // // icon: 'none'
- // // })
- // // 等于1 就是有权限
- // // this.showSearchList = true
-
- // },
- // cancel(res) {
- // uni.showToast({
- // title: '点击取消,输入值为:' + res.value,
- // icon: 'none'
- // })
- // }
},
onBackPress() {
// #ifdef APP-PLUS
diff --git a/pages/goods/order/index.vue b/pages/goods/order/index.vue
index 3dc3f9b..56c3caf 100644
--- a/pages/goods/order/index.vue
+++ b/pages/goods/order/index.vue
@@ -5,17 +5,6 @@
-
-
-
-
-
-
{{ addressData.address }}
@@ -73,13 +60,8 @@
@click="goDetail(item.productId)"
>
-
+
{{ v.productName }}
-
-
+
¥{{
v.activityPrice && v.activityPrice > 0
? v.activityPrice
: v.price
}}
-
-
- 原价:¥{{ v.price }}
+ 原价:¥{{ v.price }}
-
-
@@ -161,14 +140,6 @@
>
-
-
@@ -298,13 +269,6 @@
-
@@ -452,14 +416,6 @@
>
-
-
3.非中国大陆用户可以信用卡支付。简单快捷,推荐使用!
支付时使用的信用卡需要带有Visa或MasterCard的标识。请向邮箱
-
-
-
-
-
-
+
-
@@ -658,7 +578,6 @@ export default {
this.payType = this.payList[this.selectPayIndex].type;
}
}
- // this.payType = this.payList[this.selectPayIndex].type;
this.$forceUpdate();
},
},
@@ -670,8 +589,6 @@ export default {
await this.getActiveCouponList();
});
}
-
- // this.payType = this.payList[this.selectPayIndex].type;
this.$forceUpdate();
},
},
@@ -809,7 +726,6 @@ export default {
urlList: {
list: "app/phone.do?getCourseDetail_new",
initPrepareOrder: "common/buyOrder/initPrepareOrder",
- // buyOrder: "book/buyOrder/placeOrder",
buyOrder: "book/buyOrder/placeOrder",
curriculumInfo: "app/phone.do?getCourseInfo",
detailInfo: "app/phoneDoctor.do?getTaiHuClassInfo_new",
@@ -843,15 +759,8 @@ export default {
};
},
async onLoad(options) {
- console.log("调用了onLoad方法");
var that = this;
- console.log("options at line 387: 获取到的内容", options);
this.options = JSON.parse(options.data);
- // if (this.options.goods.findIndex((e) => e.goodsType == "05") >= 0) {
- // this.isShowAddress = false;
- // } else {
- // this.isShowAddress = true;
- // }
this.goodsDataList = this.options.goods;
var list = [...this.options.goods];
list = list.map((e) => e.goodsType);
@@ -869,15 +778,6 @@ export default {
};
}
that.initPrepareOrder();
- console.log("this.options at line 375:", this.options, this.goToInfo);
-
- // this.getUserInfo()
- // this.getCateList()
- },
-
- onHide() {
- // this.showSearchList = false
- // this.searchList = []
},
async onShow() {
this.curCouponId = undefined;
@@ -899,9 +799,6 @@ export default {
console.log("没有接受到数据");
}
});
-
- // this.selectPayIndex = 0;
- console.log("this.addressData at line 416:", this.addressData);
// #ifdef APP-PLUS
this.getOS();
// #endif
@@ -914,11 +811,9 @@ export default {
this.showCouponPup = false;
},
confirmCoupon(data) {
- console.log("选中的优惠券是", data);
if (data) {
this.curCoupon = data;
this.curCouponId = data.couponEntity.id;
- // this.getTotalPrice()
} else {
this.curCoupon = {};
this.curCouponId = undefined;
@@ -928,7 +823,6 @@ export default {
},
// 查询商品可用优惠券
async getActiveCouponList() {
- console.log("this.goodsDataList", this.goodsDataList);
if (this.goodsDataList.length <= 0) {
uni.showToast({
title: "商品参数错误,无法获取优惠券",
@@ -946,18 +840,14 @@ export default {
});
var idsString = list.join(",");
- console.log("idsString", idsString);
- // var idsString = ''
this.$http
.request({
- // url: "book/buyOrder/buySave",
url: "common/coupon/getCouponListPayment",
- method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
+ method: "POST",
data: {
shopProductInfos: idsString,
},
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -977,13 +867,6 @@ export default {
return;
}
if (res.code == 0) {
- console.log("可用优惠券列表", res);
- // res.couponHistoryList.forEach((item) => {
- // if (item.couponEntity.useLevel > this.totalPrice) {
- // item.canUse = 0;
- // item.canUseReason = "未到使用门槛";
- // }
- // });
this.couponHistoryList = res.couponHistoryList;
this.selectcouponList = this.couponHistoryList.filter(
@@ -1018,10 +901,8 @@ export default {
} else {
await this.getTotalPrice();
}
- // await that.getDetailInfo();
})
.catch((e) => {
- console.log("可用优惠券列表报错", e);
uni.showToast({
title: e.errMsg,
icon: "none",
@@ -1032,13 +913,11 @@ export default {
getOS() {
let oprateOs = "";
oprateOs = uni.getSystemInfoSync().platform;
- // console.log(oprateOs)
if (oprateOs == "android") {
this.isAndorid = true;
} else {
this.isAndorid = false;
if (this.haveCourse && !this.isAndorid) {
- console.log("苹果系统,并且有商品类型为05");
this.selectPayIndex = 0;
this.payType = this.payListIOS[0].type;
this.beizhuShow = true;
@@ -1046,7 +925,6 @@ export default {
}
},
handleChangejf(val) {
- console.log("val at line 653:", val);
var value = val;
this.$nextTick(() => {
if (val == 0) {
@@ -1059,7 +937,6 @@ export default {
this.$forceUpdate();
} else {
}
- // value = value.replace(/[^\d]/g, "");
this.jfNumber = Number(value);
this.jfNumberShow = this.jfNumber.toFixed(2);
}
@@ -1067,7 +944,6 @@ export default {
if (this.curCouponId && this.curCoupon.couponEntity.id) {
couponAmount = this.curCoupon.couponEntity.couponAmount;
}
- // that.actualPayment = that.actualPayment - that.couponAmount; // 减去优惠券的金额
this.actualPayment =
this.totalPrice - couponAmount - this.jfNumber + this.freightNum;
@@ -1076,10 +952,6 @@ export default {
} else {
this.isDefaultCurrency = false;
}
- console.log(
- "this.isDefaultCurrency at line 692:",
- this.isDefaultCurrency
- );
this.$forceUpdate();
});
},
@@ -1133,9 +1005,6 @@ export default {
},
];
}
- // this.goodsDataList
- console.log("this.goodsDataList at line 595:", this.goodsDataList);
-
var data = {
uid: this.userInfo.id,
productList: this.goodsDataList.map((e) => {
@@ -1150,18 +1019,15 @@ export default {
this.$http
.request({
- // url: "book/buyOrder/buySave",
url: `${this.urlList.initPrepareOrder}`,
- method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
+ method: "POST",
data,
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
.then(async (res) => {
- console.log("res at line 374:", res);
if (res.code == 0) {
this.initData = res.data;
console.log(
@@ -1181,25 +1047,20 @@ export default {
}
this.$forceUpdate();
-
- // await that.getDetailInfo();
});
},
// 获取地址列表
async getUserAddress() {
- console.log("this.userInfo.id at line 368:", this.userInfo.id);
var data = {};
var that = this;
this.$http
.request({
- // url: "book/buyOrder/buySave",
url: `${this.urlList.addressList}?userId=${this.userInfo.id}`,
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
data,
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -1240,16 +1101,11 @@ export default {
if (!this.addressData.id) {
this.addressData = this.defaultAddressList;
}
- console.log("this.addressData at line 742:", this.addressData);
-
if (this.defaultAddressList.id) {
console.log("有默认地址");
await this.getFreightNum();
}
- // await this.getFreightNum();
this.$forceUpdate();
-
- // await that.getDetailInfo();
});
},
@@ -1270,12 +1126,10 @@ export default {
this.$http
.request({
- // url: "book/buyOrder/buySave",
url: `${this.urlList.freightNum}`,
- method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
+ method: "POST",
data,
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -1287,8 +1141,6 @@ export default {
}
await this.getTotalPrice();
this.$forceUpdate();
-
- // await that.getDetailInfo();
});
},
handleFresh() {
@@ -1306,15 +1158,7 @@ export default {
: this.goodsDataList[i].price;
}
that.totalPrice = s * this.orderNumber;
- // !
-
var couponAmount = 0;
-
- console.log(
- "that.curCoupon.couponEntity.id at line 1288:",
- that.curCoupon,
- this.selectcouponList
- );
var couponData = this.selectcouponList.filter(
(e) => e.couponId == that.curCouponId
);
@@ -1322,8 +1166,6 @@ export default {
couponAmount = that.curCoupon.couponEntity.couponAmount;
} else {
couponAmount = 0;
- // that.curCoupon={}
- // that.curCouponId=undefined
}
if (!this.isShowAddress) {
if (this.initData.user.jf >= that.totalPrice) {
@@ -1350,10 +1192,6 @@ export default {
} else {
that.actualPayment = that.totalPrice + that.freightNum - couponAmount;
}
-
- // console.log('couponAmount优惠券金额',couponAmount);
- // that.actualPayment = that.actualPayment - couponAmount; // 减去优惠券的金额
-
if (this.actualPayment == 0 && !this.isShowAddress) {
this.isDefaultCurrency = true;
} else {
@@ -1368,10 +1206,6 @@ export default {
uni.navigateTo({
url: "/pages/component/commonComponents/address/index?type=order",
});
- // this.show = true;
- // this.$nextTick(() => {
- // this.$refs.commonAddress.open();
- // });
},
fnCopy(value, title) {
this.$commonJS.handleMakingPhoneCalls(value, title);
@@ -1392,7 +1226,6 @@ export default {
}
},
async goBuyJie() {
- console.log("this.buyingFlag", this.buyingFlag);
if (this.buyingFlag) {
uni.showToast({
title: "操作太频繁了,休息下吧",
@@ -1402,35 +1235,11 @@ export default {
}
this.buyingFlag = true;
var that = this;
- // if (this.addressList.length == 0) {
- // this.dizhiShow = true // 如果没有地址信息
- // }
- // if (!this.nowClick) {
- // return
- // }
this.nowClick = false;
setTimeout(() => {
this.nowClick = true;
}, 5000);
-
- // let youPre = {
- // id: "",
- // coupons: {
- // amount: 0,
- // name: "",
- // },
- // };
- // if (this.youhuiContent.id != undefined) {
- // youPre = this.youhuiContent;
- // }
let xiaBiao = [];
- // for (let i = 0; i < this.cartList.length; i++) {
- // xiaBiao.push({
- // productId: this.cartList[i].productId,
- // quantity: this.cartList[i].productAmount,
- // });
- // }
- console.log("99999999999", this.options);
let data = {};
if (this.options.isFudu) {
console.log(
@@ -1494,9 +1303,6 @@ export default {
});
thisproduct = thisproduct.join(",");
}
-
- console.log("data at line 477 提交后台的下单数据:", data);
- // console.log('成功信息',product,thisproduct,data.addressId, data.realMoney);
if (
this.historyOrderInfo &&
thisproduct == this.historyOrderInfo.product &&
@@ -1535,14 +1341,12 @@ export default {
await $http
.request({
- // url: "book/buyOrder/buySave",
url: that.options.isFudu
? that.urlList.renewPayment
: that.urlList.buyOrder,
- method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
+ method: "POST",
data,
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -1601,9 +1405,6 @@ export default {
url: `${that.goToInfo.url}?type=order`,
});
} else {
- // uni.navigateBack({
- // delta: 2,
- // });
uni.redirectTo({
url: `${that.goToInfo.url}?backType=order`,
});
@@ -1611,10 +1412,6 @@ export default {
}
}, 1000);
} else {
- uni.hideLoading();
- console.log("失败失败失败");
- // this.buyingFlag = false
- // that.$commonJS.showToast('支付是失败')
setTimeout(() => {
console.log("延迟调用 失败提示");
uni.showToast({
@@ -1622,13 +1419,6 @@ export default {
image: "../../../static/icon/ic_close.png",
});
}, 0);
-
- // setTimeout(() => {
-
- // uni.navigateTo({
- // url: './orderList'
- // });
- // }, 1000)
}
}
);
@@ -1660,7 +1450,6 @@ export default {
}
}, 1000);
} else {
- // this.buyingFlag = false
uni.hideLoading();
console.log(res, "微信支付111111111111111");
if (res.data.errMsg.indexOf("User canceled") != -1) {
@@ -1717,13 +1506,6 @@ export default {
? (this.beizhuShow = true)
: (this.beizhuShow = false);
this.payType = this.payList[this.selectPayIndex].type;
- console.log("this.selectPayIndex at line 315:", this.selectPayIndex);
- // if(this.isAndorid){
- // console.log('是安卓');
- // }else{
- // this.payType = this.payListIOS[0].type
- // console.log('不是安卓',this.payType);
- // }
this.$forceUpdate();
},
handleValChange(e) {
@@ -1743,12 +1525,6 @@ export default {
...this.taiHuClassInfo,
},
};
- // $mars.progressBegin('申请中...');
- // $mars.post(customerType, 'applyRelearn', data, function (ret) {
- // api.hideProgress();
-
- // fnLoadDataGrid();
- // });
},
fnRelearn(oid, days, courseFee) {
//99和199课程复读一个月60三个月120; 299和399课程复读一个月80三个月180
@@ -1785,41 +1561,6 @@ export default {
fee: fee,
};
this.show = true;
- // $aui.alert({
- // title: ,
- // content: '用户您好,该课程已到期,通过支付' + fee + '元,本门课程可获得' + days + '天延期学习时间,点击确认即完成自动扣费,感谢配合!',
- // buttons: ['取消', '确认'],
- // radius: 6,
- // titleColor: '#ff3300',
- // contColor: '#333',
- // btnColor: ''
- },
- //课程详情
- async gotoDetail(v) {
- console.log(v);
-
- 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;
- }
-
- uni.navigateTo({
- // url: '../bookShop/commodityDetail?id=' + item.id
- url: `/pages/curriculum/order/curriculum/detail?navTitle=${v.title}&title=${v.title}&oid=${v.courseOid}&conditions=${v.conditions}&detailOid=${v.detailOid}`,
- });
- },
- //相关课程
- goCourseDescription(v) {
- console.log(v);
- uni.navigateTo({
- // url: '../bookShop/commodityDetail?id=' + item.id
- url: `/pages/curriculum/order/curriculum/index?navTitle=${v.title}&title=${v.title}&oid=${v.oid}`,
- });
},
async getCourseDescriptionData() {
var data = {};
@@ -1842,16 +1583,10 @@ export default {
this.swiperList.push(that.curriculumData.explainsImg);
} else {
that.swiperList = that.curriculumData.productImageList.split(",");
- // for (var i = 0; i < imgList.length; i++) {
- // this.swiperList.push(imgList[i])
- // }
}
that.dataList = res.obj.correlatedList;
await that.getDetailInfo();
- // that.relatedCoursesList = res.obj.correlatedList
- // await that.handleselectCate({ ...this.cateList[0], index: 0 })
- // socket.init();
});
},
getPriceData() {
@@ -1866,21 +1601,6 @@ export default {
checkDisable() {
console.log("点击了");
},
- // 显示无权限弹窗
- // showNoRights() {
- // let that = this
- // uni.showModal({
- // content: "",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // that.clear()
- // }
- // }
- // })
- // },
// 获取用户详情
getUserInfo() {
// 用户详情
@@ -1898,9 +1618,6 @@ export default {
var data = [];
console.log(item, index, 99999);
var that = this;
-
- // curriculumInfo
-
this.$http
.post(this.urlList.curriculumInfo, {
customerType: "D",
@@ -1911,170 +1628,22 @@ export default {
.then(async (res) => {
that.curriculumInfo = res.obj;
that.dataList = res.obj.courseList;
-
- // socket.init();
});
-
- // this.$nextTick(() => {
- // switch (item.type) {
- // case 1:
- // // allDataList
- // this.dataList = that.allDataList.result1Lst
- // break;
- // case 2:
- // this.dataList = that.allDataList.result2Lst
- // break;
- // case 3:
- // this.dataList = that.allDataList.result3Lst
- // break;
- // case 4:
- // this.dataList = that.allDataList.result4Lst.filter(e =>
- // e.oid != '5fcf991c027b11e7ae62008cfae40c18' && e.oid != 'b3d8a938b8e147bc877613bb712a9cb3' && e.oid != '4d4730163135420ea962bfac4805e026' && e.oid != '49fb76ca3d6b43718d78c6aa9a3003c2' && e.oid != 'c7b047ed9246469b9ae2b1013fc3df9c'
-
- // )
-
- // console.log(this.dataList.length, 6666666)
- // break;
-
- // }
-
- // this.currentCateIndex = item.index
- // })
- console.log(this.allDataList, this.dataList, "1688");
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
- // this.currentStatusIndex = index
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
- // if (index != 2) {
-
- // uni.createSelectorQuery().select('.statusList').boundingClientRect(function (rect) {
- // var height = rect.height
- // console.log('元素高度:',);
-
- // }).exec();
-
- // } else {
- // this.getJFList(dictType)
- // }
-
return data;
},
async getDetailInfo() {
var that = this;
-
- // curriculumInfo
-
this.detailInfo = {
content:
"

没有中医基础想学中医难不难?中医学者治疗出现瓶颈怎么办?中西医究竟有什么不同呢?吴雄志教授将以全新的视角,完美整合中药学和西医学知识,让你领略当代中医生理学魅力。
【思考题】
1、简述中医的发展这些年出现了哪些变化?
2、简述中西医学科的异同?
",
};
- // this.$http
- // .post(this.urlList.detailInfo, {
- // customerType
- // :
- // "D",
- // token
- // : uni.getStorageSync("token")
- // ,
- // customerOid
- // : uni.getStorageSync("customerOid"),
- // classOid: 'f81b558ca4ee406e97c4045c87c2539c'
-
- // })
- // .then(async res => {
- // that.detailInfo = res.obj
- // // that.dataList = res.obj.courseList
-
- // // socket.init();
-
- // });
-
- // this.$nextTick(() => {
- // switch (item.type) {
- // case 1:
- // // allDataList
- // this.dataList = that.allDataList.result1Lst
- // break;
- // case 2:
- // this.dataList = that.allDataList.result2Lst
- // break;
- // case 3:
- // this.dataList = that.allDataList.result3Lst
- // break;
- // case 4:
- // this.dataList = that.allDataList.result4Lst.filter(e =>
- // e.oid != '5fcf991c027b11e7ae62008cfae40c18' && e.oid != 'b3d8a938b8e147bc877613bb712a9cb3' && e.oid != '4d4730163135420ea962bfac4805e026' && e.oid != '49fb76ca3d6b43718d78c6aa9a3003c2' && e.oid != 'c7b047ed9246469b9ae2b1013fc3df9c'
-
- // )
-
- // console.log(this.dataList.length, 6666666)
- // break;
-
- // }
-
- // this.currentCateIndex = item.index
- // })
- console.log(this.allDataList, this.dataList, "1688");
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
- // this.currentStatusIndex = index
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
- // if (index != 2) {
-
- // uni.createSelectorQuery().select('.statusList').boundingClientRect(function (rect) {
- // var height = rect.height
- // console.log('元素高度:',);
-
- // }).exec();
-
- // } else {
- // this.getJFList(dictType)
- // }
return data;
},
@@ -2082,31 +1651,7 @@ export default {
this.allDataList = [];
console.log(index, 99999);
var that = this;
-
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
this.currentStatusIndex = index;
- // this.currentCateIndex = 0
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
@@ -2115,19 +1660,6 @@ export default {
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) {
@@ -2139,159 +1671,13 @@ export default {
}
result[letter].push(item);
});
- // const finalResult = Object.keys(result).map(key => ({ [key]: result[key] }));
return result;
},
- // getJFList(id) {
- // $http.request({
- // url: "book/prescript/prescriptListForJF",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'categoryId': id
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // if (res.code == 0 && res.list.length > 0) {
- // this.twoCateList = []
- // this.dataList = this.transformData(res.list)
- // console.log('JF经方', this.dataList)
- // } else {
- // this.twoCateList = []
- // this.dataList = []
- // }
- // }).catch(e => {
- // this.twoCateList = []
- // this.dataList = []
- // console.log(e)
- // })
- // },
getCateList(id) {
id ? "" : (id = 0);
this.twoCateList = [];
this.curTwoCateIndex = 0;
- // 0为获取顶级分类,其他为搜索下级分类,目前的逻辑,顶级是写死的,所以可能只会涉及到搜索第二级
- // $http.request({
- // url: "book/prescript/prescriptCategoryList",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'categoryId': id
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // console.log(res, '脉穴分类获取成功')
- // if (res.code == 0 && res.list.length > 0) {
- // this.statusList = res.list
- // this.getTowCateList(this.statusList[0].type)
- // } else {
- // this.statusList = []
- // }
- // }).catch(e => {
- // this.statusList = []
- // console.log(e)
- // })
},
-
- // 放大图片
- previewImage(url) {
- console.log(url);
- uni.previewImage({
- urls: [url],
- longPressActions: {
- itemList: ["很抱歉,暂不支持保存图片到本地"],
- success: function (res) {
- // console.log(res,'+++++')
- },
- },
- });
- },
- // getSearch() {
- // $http.request({
- // url: "book/prescript/searchPrescript",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'keywords': this.searchValue,
- // type: this.currentStatusIndex + 1
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // console.log(res, '搜索结果')
- // if (res.code == 0 && res.list.length >= 0) {
- // this.showSearchList = true
- // this.searchList = res.list
- // } else {
- // this.searchList = []
- // }
- // }).catch(e => {
- // // this.dataList = []
- // this.searchList = []
- // console.log(e)
- // })
- // },
- // search(res) {
- // console.log(res, 'res')
- // // uni.showToast({
- // // title: '搜索:' + res,
- // // icon: 'none'
- // // })
- // if (res == '') {
- // this.showSearchList = false
- // this.searchList = []
- // } else {
- // this.getSearch()
- // }
-
- // },
- // input(res) {
- // console.log('----input:', res)
- // if (res == '') {
- // this.searchList = []
- // } else {
- // this.getSearch()
- // }
- // },
- // clear(res) {
- // console.log('----clear:', res)
- // // uni.showToast({
- // // title: 'clear事件,清除值为:',
- // // icon: 'none'
- // // })
- // this.searchValue = ''
- // this.showSearchList = false
- // },
- // blur(res) {
- // // console.log('----blur:', res)
- // // if (res == '') {
- // // this.showSearchList = false
- // // this.searchList = []
- // // } else {
- // // this.getSearch()
- // // }
- // },
- // focus(e) {
- // console.log('----focus:')
- // // uni.showToast({
- // // title: 'focus事件,输出值为:' + e.value,
- // // icon: 'none'
- // // })
- // // 等于1 就是有权限
- // // this.showSearchList = true
-
- // },
- // cancel(res) {
- // uni.showToast({
- // title: '点击取消,输入值为:' + res.value,
- // icon: 'none'
- // })
- // }
},
onBackPress() {
// #ifdef APP-PLUS
diff --git a/pages/mine/mine/index.vue b/pages/mine/mine/index.vue
index c911faa..c384a29 100644
--- a/pages/mine/mine/index.vue
+++ b/pages/mine/mine/index.vue
@@ -13,36 +13,32 @@
-
-
-
+
+
-
-
- 超级VIP
- 众妙之门VIP
- 吴门医述VIP
+
+
+ 医学
+ 国学心理学
+
-
+
- 昵称:{{ userMes.nickname ? userMes.nickname : "未设置" }}
+ {{ userMes.nickname ? userMes.nickname : "未设置" }}
-
手机号:({{ userMes.tel }})
-
- 邮箱({{ userMes.email }})
+
+
+ {{item}}
+
-
- VIP{{userMes.userVip.endTime.split(" ")[0]}}到期
-
-
@@ -50,57 +46,36 @@
-
-
-
+
-
+
- VIP
+ VIP
-
-
-
-
-
-
-
+
+
+
+
+
+ {{item.text}}VIP({{item.endTime.split(' ')[0]}} 到期)
+
-
-
-
-
-
- VIP
-
-
- {{ userMes.userVip.endTime.split(" ")[0] }}到期
+ 定制VIP,畅享更多专属权益
+
-
天医币
-
{{
@@ -133,12 +102,6 @@
" @click="onPageJump('/pages/mine/wallet/jf/index')">
积分
-
{{
@@ -160,13 +123,6 @@
}}
-
-
-
-
-
@@ -231,8 +181,6 @@
-
-
@@ -242,7 +190,6 @@
@@ -634,52 +568,40 @@
@import "@/style/mixin.scss";
.per_mes_user {
- display: block !important;
+ width: 125rpx;
+ text-align: center;
}
-
+
.per_mes {
width: 100%;
position: relative;
- margin: 20rpx 0;
- margin-top: 20rpx;
+ margin-top: 50rpx;
align-items: center;
display: flex;
align-items: center;
justify-content: space-between;
.per_mes_img {
- // @include themeBorder(10rpx,10rpx,#4E79A3, #A6D8DC);
- width: 100rpx;
- height: 100rpx;
- // background-color: #fff;
+ width: 120rpx;
+ height: 120rpx;
border-radius: 100rpx;
margin: 0 0 0 0;
float: left;
}
view {
- // float: left;
- // margin-top: 20rpx;
-
.name {
width: 100%;
- // display: inline-block;
font-weight: bold;
- font-size: 38upx;
- margin-bottom: 10rpx;
+ font-size: 32rpx;
color: #6990c7 !important;
}
.phone {
- font-size: 28rpx;
+ font-size: 26rpx;
color: #6990c7 !important;
}
- .tong {
- color: #6990c7 !important;
- font-size: 25upx;
- }
-
.per_user_img {
display: inline-block;
width: 40upx;
@@ -735,18 +657,11 @@
.chong_zhi {
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;
height: auto;
.zhanghu {
- width: 100%;
margin-bottom: 10rpx;
-
- // line-height: 80rpx;
font-weight: bold;
display: flex;
align-items: center;
@@ -760,19 +675,14 @@
height: 100%;
display: flex;
align-items: center;
- justify-content: space-around;
-
- // flex-direction: column;
+ justify-content: space-between;
+
.zhanghu {
font-size: 40rpx;
- width: 200rpx;
- // margin-top: 20rpx;
margin-bottom: 0rpx;
text-align: center;
display: flex;
align-items: center;
-
- // justify-content: space-around;
image {
width: 100rpx;
height: 100rpx;
@@ -888,40 +798,27 @@
.box_fillet {
border-radius: 20rpx;
-
overflow: hidden;
-
- // background: #fff;
}
.chongzhi_box {
position: relative;
width: 100%;
height: 100%;
- // float: left;
padding: 30rpx 20rpx 10rpx;
background-color: #f0f9fb;
border-radius: 20rpx;
}
.vip_box {
+ padding: 22rpx 0 !important;
margin-bottom: 32rpx;
padding: 0;
position: relative;
width: 100%;
- height: 100%;
border-radius: 20rx;
background-image: linear-gradient(60deg, #8265f9 30%, #016dea 100%);
- // @include themeBorder(6rpx, 20rpx, #258feb, #a6d8dc);
- // @include themeBorder(
- // 10rpx,
- // 20rpx,
- // (
- // linear-gradient(#DDF2FC, #BFDDF2),
- // linear-gradient(to bottom left, #D5EDF8, #a6d8dc)
- // )
- // );
-
+
.zhanghu {
font-size: 80rpx;
text-align: center;
@@ -933,25 +830,16 @@
/deep/.scroll-view-item:nth-child(2n-1) {
background-color: transparent !important;
}
-
- uni-page-body {
- // background: #d8f8e4 !important;
- }
-
.bg_top {
padding: 0 30rpx;
padding-top: 80rpx;
margin-bottom: 60rpx;
- overflow: hidden;
- // position: relative;
-
-
}
.setIcon {
position: absolute;
right: 30rpx;
- top: 70rpx;
+ top: 60rpx;
z-index: 2;
}
@@ -962,7 +850,6 @@
}
.list_box {
- // background: #d8f8e4 !important;
padding: 20rpx 0;
margin-top: -10rpx;
}
@@ -977,8 +864,6 @@
padding: 8rpx;
box-sizing: border-box;
font-weight: bold;
- // float: left;
- // margin-right: 20rpx;
margin: 0 auto;
margin-bottom: 10rpx;
//margin-top:-10rpx;
@@ -997,7 +882,6 @@
font-size: 46rpx;
color: $themeColor;
background-color: #f5f5f5;
- // line-height: 46rpx;
padding: 20rpx;
// border-leradius: 6px;
border-top-left-radius: 6px;
@@ -1016,13 +900,11 @@
.center {
line-height: 40rpx;
- // padding:0 10rpx;
}
.bottom {
width: 100%;
margin-top: 60rpx;
-
font-size: 24rpx;
line-height: 26rpx;
color: #b0b0b0;
@@ -1044,36 +926,86 @@
}
}
}
-
- .user_vip_box {
- display: block;
- // min-width: 100rpx;
-
- // position: absolute;
- // bottom: -20rpx;
- // display: flex;
+ .user_vip_box{
+ width: 125rpx;
+ position: absolute;
+ margin-top: - 40rpx;
+ z-index: 99;
+ }
+ .user_vip_item{
+ display: flex;
align-items: center;
justify-content: center;
-
- view {
- font-size: 22rpx;
- font-weight: normal;
- }
}
- .user_vip {
- z-index: 1;
- color: #fff;
- font-size: 24rpx;
- width: auto;
- padding: 4rpx 10rpx;
- font-weight: 800;
+ .user_vip_item {
border-radius: 20rpx;
- background: linear-gradient(60deg, #8265f9 30%, #016dea 100%);
+ background: linear-gradient(90deg, #ff1f00 0%, #fa9f93 100%);
+ color: #fff;
+ font-size: 20rpx;
+ line-height: 40rpx;
+ height: 40rpx;
+ font-weight: bold;
+ margin-bottom: 5rpx;
}
-
- .super {
- background: linear-gradient(to right, #5bc9c1 0%, #258feb 100%);
- color: #f4f2e4;
+ .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 12rpx;
+ 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 image{
+ width: 34rpx;
+ height: 24rpx;
+ }
+ .vip_infor{
+ padding-left: 22rpx;
+ }
+ .vip_infor_item{
+ display: block;
+ color: #fff;
+ font-size: 27rpx;
+ line-height: 36rpx;
+ font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
+ font-weight: normal;
+ }
+ .vip_infor_item text{
+ color: #fff;
+ }
+ .vip_btn{
+ margin-right: 20rpx;
+ height: 50rpx;
+ }
+ .vip_btn button{
+ background: none;
+ border: 2rpx solid #f9ae3d;
+ border-radius: 40rpx;
+ font-size: 26rpx;
+ width: 90rpx;
+ height: 45rpx;
+ line-height: 45rpx;
+ color: #f9ae3d;
+ font-weight: bold;
+ }
+ .vip_null{
+ color: #fff;
+ font-size: 26rpx;
+ line-height: 34rpx;
}
\ No newline at end of file
diff --git a/pages/mine/vip/index.vue b/pages/mine/vip/index.vue
index 50f2d9f..7c9139e 100644
--- a/pages/mine/vip/index.vue
+++ b/pages/mine/vip/index.vue
@@ -1,968 +1,211 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.title }}
- ¥{{ item.lastFee }}
-
-
+
+
+
+
+ {{item.title}}
+ 已定制
+
+
+ 超级VIP价格:
+ VIP价格:
+
+ {{item_price.year}}年{{item_price.rebateFee}}元
+
+
+
+ 延期价格:
+
+ {{item_yq.year}}年{{item_yq.rebateFee}}元
+
+
+
+ VIP权限:
+ 无限制观看吴门医述APP中医学、针灸学、肿瘤学三个板块任意课程;
+ 无限制观看众妙之门APP与吴门医述APP心理学板块任意课程;
+ 无限制观看众妙之门APP任意课程;
+ 无限制观看吴门医述APP{{item.title.replace(/VIP/g, '')}}板块任意课程;
+
+
+ {{item.title.replace(/超级VIP/g, '')}}
+ {{item.title.replace(/VIP/g, '')}}
+ 培训班报名享受8折9折优惠
-
+ 疯子读书APP购书享受8折9折优惠
+
+
-
-
\ No newline at end of file
diff --git a/pages/mine/vip/index123.vue b/pages/mine/vip/index123.vue
new file mode 100644
index 0000000..bcb0c38
--- /dev/null
+++ b/pages/mine/vip/index123.vue
@@ -0,0 +1,926 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ ¥{{ item.lastFee }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/mine/vip/order.vue b/pages/mine/vip/order.vue
index 56a60e7..df0a8f1 100644
--- a/pages/mine/vip/order.vue
+++ b/pages/mine/vip/order.vue
@@ -60,14 +60,6 @@
022-24142321
-
-
3.非中国大陆用户可以信用卡支付。简单快捷,推荐使用!
支付时使用的信用卡需要带有Visa或MasterCard的标识。请向邮箱
合计:
-
¥{{ dataInfo.lastFee }}
-
-
-
-
-
@@ -197,14 +181,6 @@
},
],
priceBreakdownList: [],
- // orderInfoList: [
- // {
- // text: "订单备注",
- // placeholder: "点击填写订单备注",
- // imgUrl: "",
- // type: "remark",
- // },
- // ],
number: 1,
detailInfo: {},
content: "",
@@ -253,7 +229,6 @@
urlList: {
list: "app/phone.do?getCourseDetail_new",
initPrepareOrder: "/common/buyOrder/initPrepareOrder",
- // buyOrder: "book/buyOrder/placeOrder",
buyOrder: "common/userVip/placeVipOrder",
curriculumInfo: "app/phone.do?getCourseInfo",
detailInfo: "app/phoneDoctor.do?getTaiHuClassInfo_new",
@@ -275,43 +250,17 @@
};
},
async onLoad(options) {
- console.log("调用了onLoad方法");
var that = this;
- console.log("options at line 387:", options);
this.options = JSON.parse(options.data);
- // if (this.options.goods.findIndex((e) => e.goodsType == "05") >= 0) {
- // this.isShowAddress = false;
- // } else {
- // this.isShowAddress = true;
- // }
this.goodsDataList = this.options.goods;
- // if (this.options.sourceType == "curriculum") {
- // this.goToInfo = {
- // url: "/pages/curriculum/order/index/index",
- // type: 2,
- // };
- // } else {
this.goToInfo = {
url: "/pages/bookShop/orderList",
type: 1,
};
- // }
- // that.initPrepareOrder();
- console.log("this.options at line 375:", this.options, this.goToInfo);
-
- // this.getUserInfo()
- // this.getCateList()
- },
-
- onHide() {
- // this.showSearchList = false
- // this.searchList = []
},
async onShow() {
- console.log("调用了onShow方法");
var that = this;
await uni.$on("returnData", function(data) {
- console.log("data at line 415:", data);
if (data) {
that.addressData = {
...data,
@@ -326,9 +275,6 @@
console.log("没有接受到数据");
}
});
- // this.selectPayIndex = 0;
-
- console.log("this.addressData at line 416:", this.addressData);
},
computed: {
...mapState(["userInfo"]),
@@ -345,8 +291,6 @@
this.orderModalShow = false;
},
onPageJump(url) {
- console.log(url, "url");
-
uni.navigateTo({
url: url,
});
@@ -364,9 +308,6 @@
type: 2,
},
];
- // this.goodsDataList
- console.log("this.goodsDataList at line 595:", this.goodsDataList);
-
var data = {
uid: this.userInfo.id,
productList: [],
@@ -376,12 +317,10 @@
this.$http
.request({
- // url: "book/buyOrder/buySave",
url: `${this.urlList.initPrepareOrder}`,
- method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
+ method: "POST",
data,
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
@@ -390,12 +329,9 @@
console.log("res at line 374:", res);
if (res.code == 0) {
this.initData = res.data;
- // this.$emit('user')
}
this.$forceUpdate();
-
- // await that.getDetailInfo();
});
},
// 获取订单初始话
@@ -445,10 +381,6 @@
uni.navigateTo({
url: "/pages/component/commonComponents/address/index?type=order",
});
- // this.show = true;
- // this.$nextTick(() => {
- // this.$refs.commonAddress.open();
- // });
},
fnCopy(value, title) {
this.$commonJS.handleMakingPhoneCalls(value, title);
@@ -459,44 +391,19 @@
},
openOrderModal(v) {
this.orderModalShowInfo = v;
- console.log(
- "this.orderModalShowInfo at line 727:",
- this.orderModalShowInfo
- );
this.orderModalShow = true;
if (this.orderModalShowInfo.type == "remark") {
this.content = this.remark;
}
},
+ //支付请求
async goBuyJie() {
var that = this;
- // if (this.addressList.length == 0) {
- // this.dizhiShow = true // 如果没有地址信息
- // }
- // if (!this.nowClick) {
- // return
- // }
this.nowClick = false;
setTimeout(() => {
this.nowClick = true;
}, 5000);
- // let youPre = {
- // id: "",
- // coupons: {
- // amount: 0,
- // name: "",
- // },
- // };
- // if (this.youhuiContent.id != undefined) {
- // youPre = this.youhuiContent;
- // }
let xiaBiao = [];
- // for (let i = 0; i < this.cartList.length; i++) {
- // xiaBiao.push({
- // productId: this.cartList[i].productId,
- // quantity: this.cartList[i].productAmount,
- // });
- // }
if (this.payType == 4 && this.initData.user.peanutCoin < this.dataInfo.lastFee) {
uni.showToast({
title: '天医币余额不足',
@@ -512,25 +419,17 @@
jfDeduction: 0, //积分抵扣
vipBuyConfigId: this.dataInfo.id,
come: 2, //订单来源,0疯子读书1国学众妙之门2医学吴门医述
-
- // appName: "wumen",
};
-
- console.log("data at line 477:", data);
-
await $http
.request({
- // url: "book/buyOrder/buySave",
url: that.urlList.buyOrder,
- method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
+ method: "POST",
data,
header: {
- //默认 无 说明:请求头
"Content-Type": "application/json",
},
})
.then(async (res) => {
- console.log("res at line 598:", res);
if (res.code == 0) {
if (res.orderSn == null) {
uni.showToast({
@@ -539,7 +438,6 @@
image: "../../../static/icon/ic_close.png",
});
} else {
- console.log("that.payType at line 607:", that.payType);
if (that.payType == 2) {
// 常规支付
uni.showToast({
@@ -569,24 +467,13 @@
});
}, 1000);
} else {
- console.log("失败失败失败");
-
- // that.$commonJS.showToast('支付是失败')
setTimeout(() => {
console.log("延迟调用 失败提示");
uni.showToast({
title: "支付失败",
-
image: "../../../static/icon/ic_close.png",
});
}, 0);
-
- // setTimeout(() => {
-
- // uni.navigateTo({
- // url: './orderList'
- // });
- // }, 1000)
}
}
);
@@ -608,7 +495,6 @@
});
}, 1000);
} else {
- console.log(res, "微信支付111111111111111");
if (res.data.errMsg.indexOf("User canceled") != -1) {
uni.showToast({
title: "用户取消支付",
@@ -644,7 +530,6 @@
radioChange(index) {
this.selectPayIndex = index;
this.payType = this.payList[this.selectPayIndex].type;
- console.log("this.selectPayIndex at line 315:", this.selectPayIndex);
this.$forceUpdate();
},
handleValChange(e) {
@@ -664,12 +549,6 @@
...this.taiHuClassInfo,
},
};
- // $mars.progressBegin('申请中...');
- // $mars.post(customerType, 'applyRelearn', data, function (ret) {
- // api.hideProgress();
-
- // fnLoadDataGrid();
- // });
},
fnRelearn(oid, days, courseFee) {
//99和199课程复读一个月60三个月120; 299和399课程复读一个月80三个月180
@@ -705,14 +584,6 @@
fee: fee,
};
this.show = true;
- // $aui.alert({
- // title: ,
- // content: '用户您好,该课程已到期,通过支付' + fee + '元,本门课程可获得' + days + '天延期学习时间,点击确认即完成自动扣费,感谢配合!',
- // buttons: ['取消', '确认'],
- // radius: 6,
- // titleColor: '#ff3300',
- // contColor: '#333',
- // btnColor: ''
},
//课程详情
async gotoDetail(v) {
@@ -729,7 +600,6 @@
}
uni.navigateTo({
- // url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/curriculum/order/curriculum/detail?navTitle=${v.title}&title=${v.title}&oid=${v.courseOid}&conditions=${v.conditions}&detailOid=${v.detailOid}`,
});
},
@@ -737,14 +607,12 @@
goCourseDescription(v) {
console.log(v);
uni.navigateTo({
- // url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/curriculum/order/curriculum/index?navTitle=${v.title}&title=${v.title}&oid=${v.oid}`,
});
},
async getCourseDescriptionData() {
var data = {};
var that = this;
- console.log(this.$store.state, "11111111111");
this.$http
.post(this.urlList.list, {
customerType: "D",
@@ -762,16 +630,10 @@
this.swiperList.push(that.curriculumData.explainsImg);
} else {
that.swiperList = that.curriculumData.productImageList.split(",");
- // for (var i = 0; i < imgList.length; i++) {
- // this.swiperList.push(imgList[i])
- // }
}
that.dataList = res.obj.correlatedList;
await that.getDetailInfo();
- // that.relatedCoursesList = res.obj.correlatedList
- // await that.handleselectCate({ ...this.cateList[0], index: 0 })
- // socket.init();
});
},
getPriceData() {
@@ -786,21 +648,6 @@
checkDisable() {
console.log("点击了");
},
- // 显示无权限弹窗
- // showNoRights() {
- // let that = this
- // uni.showModal({
- // content: "",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // that.clear()
- // }
- // }
- // })
- // },
// 获取用户详情
getUserInfo() {
// 用户详情
@@ -818,9 +665,6 @@
var data = [];
console.log(item, index, 99999);
var that = this;
-
- // curriculumInfo
-
this.$http
.post(this.urlList.curriculumInfo, {
customerType: "D",
@@ -831,201 +675,27 @@
.then(async (res) => {
that.curriculumInfo = res.obj;
that.dataList = res.obj.courseList;
-
- // socket.init();
});
-
- // this.$nextTick(() => {
- // switch (item.type) {
- // case 1:
- // // allDataList
- // this.dataList = that.allDataList.result1Lst
- // break;
- // case 2:
- // this.dataList = that.allDataList.result2Lst
- // break;
- // case 3:
- // this.dataList = that.allDataList.result3Lst
- // break;
- // case 4:
- // this.dataList = that.allDataList.result4Lst.filter(e =>
- // e.oid != '5fcf991c027b11e7ae62008cfae40c18' && e.oid != 'b3d8a938b8e147bc877613bb712a9cb3' && e.oid != '4d4730163135420ea962bfac4805e026' && e.oid != '49fb76ca3d6b43718d78c6aa9a3003c2' && e.oid != 'c7b047ed9246469b9ae2b1013fc3df9c'
-
- // )
-
- // console.log(this.dataList.length, 6666666)
- // break;
-
- // }
-
- // this.currentCateIndex = item.index
- // })
- console.log(this.allDataList, this.dataList, "1688");
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
- // this.currentStatusIndex = index
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
- // if (index != 2) {
-
- // uni.createSelectorQuery().select('.statusList').boundingClientRect(function (rect) {
- // var height = rect.height
- // console.log('元素高度:',);
-
- // }).exec();
-
- // } else {
- // this.getJFList(dictType)
- // }
-
return data;
},
async getDetailInfo() {
var that = this;
-
- // curriculumInfo
-
this.detailInfo = {
content: "

没有中医基础想学中医难不难?中医学者治疗出现瓶颈怎么办?中西医究竟有什么不同呢?吴雄志教授将以全新的视角,完美整合中药学和西医学知识,让你领略当代中医生理学魅力。
【思考题】
1、简述中医的发展这些年出现了哪些变化?
2、简述中西医学科的异同?
",
};
-
- // this.$http
- // .post(this.urlList.detailInfo, {
- // customerType
- // :
- // "D",
- // token
- // : uni.getStorageSync("token")
- // ,
- // customerOid
- // : uni.getStorageSync("customerOid"),
- // classOid: 'f81b558ca4ee406e97c4045c87c2539c'
-
- // })
- // .then(async res => {
- // that.detailInfo = res.obj
- // // that.dataList = res.obj.courseList
-
- // // socket.init();
-
- // });
-
- // this.$nextTick(() => {
- // switch (item.type) {
- // case 1:
- // // allDataList
- // this.dataList = that.allDataList.result1Lst
- // break;
- // case 2:
- // this.dataList = that.allDataList.result2Lst
- // break;
- // case 3:
- // this.dataList = that.allDataList.result3Lst
- // break;
- // case 4:
- // this.dataList = that.allDataList.result4Lst.filter(e =>
- // e.oid != '5fcf991c027b11e7ae62008cfae40c18' && e.oid != 'b3d8a938b8e147bc877613bb712a9cb3' && e.oid != '4d4730163135420ea962bfac4805e026' && e.oid != '49fb76ca3d6b43718d78c6aa9a3003c2' && e.oid != 'c7b047ed9246469b9ae2b1013fc3df9c'
-
- // )
-
- // console.log(this.dataList.length, 6666666)
- // break;
-
- // }
-
- // this.currentCateIndex = item.index
- // })
- console.log(this.allDataList, this.dataList, "1688");
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
- // this.currentStatusIndex = index
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
- // if (index != 2) {
-
- // uni.createSelectorQuery().select('.statusList').boundingClientRect(function (rect) {
- // var height = rect.height
- // console.log('元素高度:',);
-
- // }).exec();
-
- // } else {
- // this.getJFList(dictType)
- // }
-
return data;
},
async setOneCateIndex(item, index) {
this.allDataList = [];
console.log(index, 99999);
var that = this;
-
- // if(this.userMes.tgdzPower == 0){
- // let that = this
- // uni.showModal({
- // content: "购买 针灸六经法要上册和下册 后方可使用此功能",
- // confirmText: '好的',
- // showCancel: false,
- // success: function(res) {
- // if (res.confirm) {
- // // console.log('用户点击确定');
- // }
- // }
- // })
- // return
- // }
- // if(item.title == "时辰取穴"){
- // uni.navigateTo({
- // url: "../timeAcupoint/timeAcupoint"
- // })
- // return
- // }
-
this.currentStatusIndex = index;
- // this.currentCateIndex = 0
-
this.searchValue = "";
this.searchList = [];
this.showSearchList = false;
@@ -1034,19 +704,6 @@
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) {
@@ -1060,159 +717,13 @@
}
result[letter].push(item);
});
- // const finalResult = Object.keys(result).map(key => ({ [key]: result[key] }));
return result;
},
- // getJFList(id) {
- // $http.request({
- // url: "book/prescript/prescriptListForJF",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'categoryId': id
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // if (res.code == 0 && res.list.length > 0) {
- // this.twoCateList = []
- // this.dataList = this.transformData(res.list)
- // console.log('JF经方', this.dataList)
- // } else {
- // this.twoCateList = []
- // this.dataList = []
- // }
- // }).catch(e => {
- // this.twoCateList = []
- // this.dataList = []
- // console.log(e)
- // })
- // },
getCateList(id) {
id ? "" : (id = 0);
this.twoCateList = [];
this.curTwoCateIndex = 0;
- // 0为获取顶级分类,其他为搜索下级分类,目前的逻辑,顶级是写死的,所以可能只会涉及到搜索第二级
- // $http.request({
- // url: "book/prescript/prescriptCategoryList",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'categoryId': id
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // console.log(res, '脉穴分类获取成功')
- // if (res.code == 0 && res.list.length > 0) {
- // this.statusList = res.list
- // this.getTowCateList(this.statusList[0].type)
- // } else {
- // this.statusList = []
- // }
- // }).catch(e => {
- // this.statusList = []
- // console.log(e)
- // })
},
-
- // 放大图片
- previewImage(url) {
- console.log(url);
- uni.previewImage({
- urls: [url],
- longPressActions: {
- itemList: ["很抱歉,暂不支持保存图片到本地"],
- success: function(res) {
- // console.log(res,'+++++')
- },
- },
- });
- },
- // getSearch() {
- // $http.request({
- // url: "book/prescript/searchPrescript",
- // method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
- // data: {
- // loadAnimate: 'none', // 请求加载动画
- // 'keywords': this.searchValue,
- // type: this.currentStatusIndex + 1
- // },
- // header: { //默认 无 说明:请求头
- // 'Content-Type': 'application/json'
- // },
- // }).then(res => {
- // console.log(res, '搜索结果')
- // if (res.code == 0 && res.list.length >= 0) {
- // this.showSearchList = true
- // this.searchList = res.list
- // } else {
- // this.searchList = []
- // }
- // }).catch(e => {
- // // this.dataList = []
- // this.searchList = []
- // console.log(e)
- // })
- // },
- // search(res) {
- // console.log(res, 'res')
- // // uni.showToast({
- // // title: '搜索:' + res,
- // // icon: 'none'
- // // })
- // if (res == '') {
- // this.showSearchList = false
- // this.searchList = []
- // } else {
- // this.getSearch()
- // }
-
- // },
- // input(res) {
- // console.log('----input:', res)
- // if (res == '') {
- // this.searchList = []
- // } else {
- // this.getSearch()
- // }
- // },
- // clear(res) {
- // console.log('----clear:', res)
- // // uni.showToast({
- // // title: 'clear事件,清除值为:',
- // // icon: 'none'
- // // })
- // this.searchValue = ''
- // this.showSearchList = false
- // },
- // blur(res) {
- // // console.log('----blur:', res)
- // // if (res == '') {
- // // this.showSearchList = false
- // // this.searchList = []
- // // } else {
- // // this.getSearch()
- // // }
- // },
- // focus(e) {
- // console.log('----focus:')
- // // uni.showToast({
- // // title: 'focus事件,输出值为:' + e.value,
- // // icon: 'none'
- // // })
- // // 等于1 就是有权限
- // // this.showSearchList = true
-
- // },
- // cancel(res) {
- // uni.showToast({
- // title: '点击取消,输入值为:' + res.value,
- // icon: 'none'
- // })
- // }
},
onBackPress() {
// #ifdef APP-PLUS
diff --git a/static/icon/chao_svip.png b/static/icon/chao_svip.png
new file mode 100644
index 0000000..2437ade
Binary files /dev/null and b/static/icon/chao_svip.png differ
diff --git a/static/icon/chao_vip.png b/static/icon/chao_vip.png
new file mode 100644
index 0000000..6afdacb
Binary files /dev/null and b/static/icon/chao_vip.png differ