diff --git a/main.js b/main.js
index 7b3a69b..7f40514 100644
--- a/main.js
+++ b/main.js
@@ -22,7 +22,7 @@ Vue.prototype.$getHours = nowHour
Vue.prototype.$baseUrl = "https://api.nuttyreading.com/"
// 安卓安卓包下载地址
// Vue.prototype.$apkUrl = "https://www.nuttyreading.com/nuttyreading.apk" // 本地地址
-Vue.prototype.$apkUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=com.cn.nuttyreading" // 应用宝
+Vue.prototype.$apkUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=com.cn.medicine" // 应用宝
// 判断手机型号
diff --git a/pages.json b/pages.json
index 7074500..3394d43 100644
--- a/pages.json
+++ b/pages.json
@@ -1,7 +1,7 @@
{
- // "easycom": {
- // "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
- // },
+ "easycom": {
+ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
+ },
"pages": [
{
"path": "pages/peanut/home",
diff --git a/pages/component/commonComponents/video/index.vue b/pages/component/commonComponents/video/index.vue
index f551d17..fe98850 100644
--- a/pages/component/commonComponents/video/index.vue
+++ b/pages/component/commonComponents/video/index.vue
@@ -16,16 +16,7 @@
ref="videoContent"
@tap="renderScript.handleClick"
id="url-player-test"
- :videoData="videoData"
- :winWidth="winWidth"
- :winHeight="winHeight"
- :currentVideoList="currentVideoList"
- :firstTime="firstTime"
- :change:videoData="renderScript.receiveMsg"
- :change:winWidth="renderScript.receiveWinWidth"
- :change:winHeight="renderScript.receiveWinHeight"
- :change:firstTime="renderScript.receiveFirstTime"
- :change:currentVideoList="renderScript.receiveVideoList"
+ :videoData="videoData"
>
直接调用renderjs中的emitData的方法,传递当前播放时长
@@ -152,7 +143,7 @@ export default {
this.options = JSON.parse(options.data);
- this.videoId = this.options.video;
+ this.videoId = this.options.id;
this.timer = setInterval(() => {
var that = this;
@@ -212,7 +203,7 @@ export default {
}
this.options = data.currentVideo;
console.log("this.options at line 64:", this.options);
- this.videoId = this.options.video;
+ this.videoId = this.options.id;
this.timer = setInterval(async () => {
var that = this;
if (this.currentTime) {
@@ -297,13 +288,14 @@ export default {
},
// 获取数据
getLive() {
+ console.log(this.options,'----------------11111111111111--------')
var data = {
...this.options,
};
-
+ console.log(data,'------------------------')
$http
.request({
- url: `sociology/course/checkVideo`,
+ url: "medical/course/checkVideoByMD",
method: "Post", // POST、GET、PUT、DELETE,具体说明查看官方文档
data,
header: {
@@ -313,22 +305,23 @@ export default {
})
.then((res) => {
console.log("res at line 252111111111111111111111111111:", res);
+
if (this.currentVideo.type == 1) {
- var playAuth = res.video.playAuth.replace(/=/g, "");
+ var playAuth = res.playAuth.replace(/=/g, "");
this.videoData = {
- ...res.video,
- videoId: res.video.video,
+ ...res,
+ video: res.id,
playAuth: playAuth,
};
this.playAuth = playAuth;
} else {
- this.videoData = res.video;
- this.videoUrl =
- // "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/taiHuClass/" +
- res.video.videoUrl;
- this.$nextTick(async () => {
- await this.getData();
- });
+ // this.videoData = res.video;
+ // this.videoUrl =
+ // // "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/taiHuClass/" +
+ // res.video.videoUrl;
+ // this.$nextTick(async () => {
+ // await this.getData();
+ // });
}
this.$forceUpdate();
@@ -505,6 +498,9 @@ this.player.fullscreenService.requestFullScreen();
ownerInstance.callMethod('handleEnd', )
},
getLive() {
+
+
+ console.log(this.videoData,'走没走。。。。。。。。。。')
if(this.videoData.type==1){
var fullScreenButtonComponent = Aliplayer.Component({
/**
@@ -732,15 +728,15 @@ this.player.on('ended', function() {
// console.log('vm', vm)
},
checkValue() {
- console.log(this.videoId, this.authId, "1111888888")
- if (!this.videoData.playAuth||!this.currentVideoList) {
+ console.log(this.videoId, this.videoData, "1111888888")
+ if (!this.videoData.playAuth) {
setTimeout(() => {
this.checkValue();
}, 1000);
} else {
-console.log('this.videoList at line 这是这只只是594:', this.currentVideoList)
- this.getLive();
+
+ this.getLive();console.log('this.videoList at line 这是这只只是594:',this.videoData)
}
},
loadWebPlayerSDK() {
diff --git a/pages/course/courseDetail.vue b/pages/course/courseDetail.vue
index d870584..184aeca 100644
--- a/pages/course/courseDetail.vue
+++ b/pages/course/courseDetail.vue
@@ -591,12 +591,12 @@
},
// 查询课程的评论
getSayList() {
+ this.status = 1
if (this.loadFlag) {
console.log('有未完成的进程');
return
}
- this.loadFlag = true
- this.status = 1
+ this.loadFlag = true
$http.request({
url: "common/courseGuestbook/getCourseGuestbookList",
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
diff --git a/pages/course/illustrate.vue b/pages/course/illustrate.vue
index 841ab26..7d85150 100644
--- a/pages/course/illustrate.vue
+++ b/pages/course/illustrate.vue
@@ -18,34 +18,48 @@
{{item.title}}
+
+
+
+ {{item.title}}
{{item.title}}
-
+
+
+
+
-
-
-
-
+ :videoData="videoData"
+ :change:videoData="renderScript.receiveMsg">
+
-
-
-
-
-
+
+
+