diff --git a/common/debounce.js b/common/debounce.js
new file mode 100644
index 0000000..ad3996b
--- /dev/null
+++ b/common/debounce.js
@@ -0,0 +1,29 @@
+let timeout = null
+
+/**
+ * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
+ *
+ * @param {Function} func 要执行的回调函数
+ * @param {Number} wait 延时的时间
+ * @param {Boolean} immediate 是否立即执行
+ * @return null
+ */
+function debounce(func, wait = 500, immediate = false) {
+ // 清除定时器
+ if (timeout !== null) clearTimeout(timeout)
+ // 立即执行,此类情况一般用不到
+ if (immediate) {
+ const callNow = !timeout
+ timeout = setTimeout(() => {
+ timeout = null
+ }, wait)
+ if (callNow) typeof func === 'function' && func()
+ } else {
+ // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
+ timeout = setTimeout(() => {
+ typeof func === 'function' && func()
+ }, wait)
+ }
+}
+
+export default debounce
diff --git a/config/baseUrl.js b/config/baseUrl.js
index 4814761..e1f047e 100644
--- a/config/baseUrl.js
+++ b/config/baseUrl.js
@@ -6,9 +6,9 @@ if (process.env.NODE_ENV === 'development') {
// socketUrl = "ws://localhost:6001/";
// baseUrl = "https://twin-ui.com/demo/";
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
- baseUrl = "https://api.nuttyreading.com/"; // 线上正式
+ // baseUrl = "https://api.nuttyreading.com/"; // 线上正式
// baseUrl = "http://192.168.110.110:9200/pb/"; // 磊哥
- // baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
+ baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
// baseUrl = "http://59.110.212.44:9200/pb/";
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
// baseUrl = "http://192.168.110.110:9200/pb/";
diff --git a/pages/certificate/certificate.vue b/pages/certificate/certificate.vue
index 96bb93d..26b6f64 100644
--- a/pages/certificate/certificate.vue
+++ b/pages/certificate/certificate.vue
@@ -3,7 +3,11 @@
+
+
+ 【 共 {{certificateList.length}} 个证书 】
+
编号:{{item.certificateNo}}
diff --git a/pages/course/courseDetail.vue b/pages/course/courseDetail.vue
index 17b5b36..32f4503 100644
--- a/pages/course/courseDetail.vue
+++ b/pages/course/courseDetail.vue
@@ -734,13 +734,15 @@
_myurl = '/pages/course/chapterDetailAndorid'
// }
if (this.librayList[this.curIndex].isBuy == 1 || v.isAudition == 1 ||
- this.vip.type != "1" || this.vip.type != "2") {
+ this.vip.type == "1" || this.vip.type == "2") {
let noRecored = false
v.isAudition == 1 && this.userMsg.vip == 0 && 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 {
this.$commonJS.showToast("请先购买课程");
}
diff --git a/pages/course/myCourse.vue b/pages/course/myCourse.vue
index 22d9b71..d411f4d 100644
--- a/pages/course/myCourse.vue
+++ b/pages/course/myCourse.vue
@@ -864,11 +864,12 @@
}
.jianjie {
- line-height: 30rpx; height: 60rpx; overflow: hidden;
+ overflow: hidden;
margin-top: 10rpx;
font-size: 24rpx;
@include bov();
color: #9c9c9c;
+ line-height: 30rpx; height: 60rpx;
}
.txt555 {
diff --git a/pages/course/vipCourse.vue b/pages/course/vipCourse.vue
index e8d07df..34dfaff 100644
--- a/pages/course/vipCourse.vue
+++ b/pages/course/vipCourse.vue
@@ -195,6 +195,7 @@
font-size: 24rpx;
@include bov();
color: #9c9c9c;
+ line-height: 30rpx; height: 60rpx; overflow: hidden;
}
.txt555 {
diff --git a/pages/mine/mine/index.vue b/pages/mine/mine/index.vue
index 275ad3a..2b533af 100644
--- a/pages/mine/mine/index.vue
+++ b/pages/mine/mine/index.vue
@@ -6,8 +6,11 @@
" class="commonPageeeee commonPageBox">
-
+
+
+
+
@@ -349,6 +352,7 @@
this.infoShow = true;
},
goSetting() {
+ console.log('点击了');
this.onPageJump("/pages/mine/set/index");
},
goUserInfo() {
@@ -896,10 +900,11 @@
}
-.setIcon {
+.setIcon {
position: absolute;
right: 30rpx;
- top: 30rpx;
+ top: 70rpx;
+ z-index: 2;
}
.mine_box {
width: 100%;
diff --git a/pages/miniClass/classInfo.vue b/pages/miniClass/classInfo.vue
index 1157b33..35aebf1 100644
--- a/pages/miniClass/classInfo.vue
+++ b/pages/miniClass/classInfo.vue
@@ -43,7 +43,7 @@
学员人数{{students.length}}/{{thisClass.number}}人
管理成员点击查看
-
+
@@ -58,10 +58,10 @@
{{performanceScore.userScore}}分
- ({{performanceScore.examScore}}分考试分 {{performanceScore.examScore}}分考试分
- ,
- {{performanceScore.usualScore}}分平时表现分)
+ ,
+ {{performanceScore.usualScore}}分表现分)
@@ -76,8 +76,9 @@
很遗憾,您的成绩未达标
+ {{newCLass}}
+ v-if="newCLass && newCLass != null && newCLass.id">
加入新班级重修
@@ -157,11 +158,11 @@
{{performanceScore.questionScore}}分
-
+
@@ -248,14 +249,15 @@
v-for="(item, index) in tijiaoTitleList" :key="index">{{item.name}}
-
-
-
+
+
{{item.title}}
-
+ :key="index">{{item.title}}
+
+
+
@@ -286,45 +288,55 @@
-
- {{item.title}}
-
-
-
-
+
+ {{item.title}}
+
+ {{item.zhedie ? '收起' : '展开'}}
-
+
+
+
-
-
- {{item.zhedie ? '收起' : '展开'}}
-
+
日期:{{item.createTime}}
-
-
- 分数:{{item.score}}
+
+
+
+ 等待评分
+
+
+
+ 分数:{{item.score}}
+
-
- 修改
-
-
-
- 已提交答案
-
-
- 未提交答案 点击开始答题
-
-
- 未作答 已不可作答
-
-
+
+
+
+ 等待评分
+ 正在评分
+
+ {{item.otherInfo[0].score}} 分
+
+
+
+
+ 未提交答案 点击开始答题
+
+
+ 未作答 已不可作答
+
+
+
@@ -345,15 +357,28 @@
-
+
-
- 未作答
- 已作答
+
+
+ 未作答
+ 已不可作答
+
+
+
+
+ 等待评分
+
+
+ 已结班无法评分
+
+
+ {{item.reply.score}}分
+
+
-
+
@@ -514,9 +539,7 @@