合并后
This commit is contained in:
@@ -6,9 +6,9 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
// socketUrl = "ws://localhost:6001/";
|
// socketUrl = "ws://localhost:6001/";
|
||||||
// baseUrl = "https://twin-ui.com/demo/";
|
// baseUrl = "https://twin-ui.com/demo/";
|
||||||
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
// 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.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://59.110.212.44:9200/pb/";
|
||||||
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
||||||
// baseUrl = "http://192.168.110.110:9200/pb/";
|
// baseUrl = "http://192.168.110.110:9200/pb/";
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ let $http = new request({
|
|||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
// 'project_token': base.projectToken, //项目token(可删除)
|
// 'project_token': base.projectToken, //项目token(可删除)
|
||||||
},
|
},
|
||||||
// timeout:'360000'
|
timeout:'15000' // 15秒
|
||||||
|
|
||||||
});
|
});
|
||||||
// 添加获取七牛云token的方法
|
// 添加获取七牛云token的方法
|
||||||
|
|||||||
@@ -334,13 +334,14 @@
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
console.log('获取播放凭证666', res.video);
|
||||||
this.reaquestFlag = false
|
this.reaquestFlag = false
|
||||||
if (this.$platform == 'ios') {
|
if (this.$platform == 'ios') {
|
||||||
if (this.currentVideo.type == 1 && res.video.m3u8Url == null || this.currentVideo
|
if (res.video.type == 1 && res.video.m3u8Url == null || res.video
|
||||||
.type == 1 && res.video.m3u8Url == '') {
|
.type == 1 && res.video.m3u8Url == '') {
|
||||||
// 只存在私有加密
|
// 只存在私有加密
|
||||||
this.show = true
|
this.show = true
|
||||||
|
this.UnlockChangeVideo() // 解锁按钮
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: '抱歉,苹果手机不支持此加密视频格式,您可以在安卓端观看本视频',
|
content: '抱歉,苹果手机不支持此加密视频格式,您可以在安卓端观看本视频',
|
||||||
confirmText: '知道了',
|
confirmText: '知道了',
|
||||||
@@ -578,7 +579,7 @@
|
|||||||
},
|
},
|
||||||
// renderjs阿里云播放器引入与配置
|
// renderjs阿里云播放器引入与配置
|
||||||
getLive() {
|
getLive() {
|
||||||
console.log('这是这只只是666666:', this.firstTime, this.videoData)
|
console.log('阿里云播放器引入与配置:', this.firstTime, videoData)
|
||||||
|
|
||||||
$('#url-player-test').empty();
|
$('#url-player-test').empty();
|
||||||
|
|
||||||
@@ -714,18 +715,17 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.videoData.type == 1) {
|
if (videoData.type == 1) {
|
||||||
if (this.videoData.m3u8Url == null || this.videoData.m3u8Url == '') {
|
if (videoData.m3u8Url == null || videoData.m3u8Url == '') {
|
||||||
console.log('这是私有加密的视频');
|
console.log('这是私有加密的视频');
|
||||||
if (this.$platform == 'ios') {
|
if (this.$platform == 'ios') {
|
||||||
this.$refs.videoContent5.click()
|
this.$refs.videoContent5.click()
|
||||||
} else {
|
} else {
|
||||||
playerOptions = {
|
playerOptions = {
|
||||||
...playerOptions,
|
...playerOptions,
|
||||||
"vid": this.videoData
|
"vid": videoData.videoId, // 必选参数,可以通过点播控制台(路径:媒资库>音/视频)查询。示例:1e067a2831b641db90d570b6480f****。
|
||||||
.videoId, // 必选参数,可以通过点播控制台(路径:媒资库>音/视频)查询。示例:1e067a2831b641db90d570b6480f****。
|
|
||||||
|
|
||||||
"playauth": this.videoData.playAuth, // 必选参数,参数值可通过调用GetVideoPlayAuth接口获取。
|
"playauth": videoData.playAuth, // 必选参数,参数值可通过调用GetVideoPlayAuth接口获取。
|
||||||
"encryptType": 1, // 必选参数,当播放私有加密流时需要设置本参数值为1。其它情况无需设置。
|
"encryptType": 1, // 必选参数,当播放私有加密流时需要设置本参数值为1。其它情况无需设置。
|
||||||
"playConfig": {
|
"playConfig": {
|
||||||
"EncryptType": 'AliyunVoDEncryption'
|
"EncryptType": 'AliyunVoDEncryption'
|
||||||
@@ -733,19 +733,19 @@
|
|||||||
}
|
}
|
||||||
console.log('这是私有加密的视频');
|
console.log('这是私有加密的视频');
|
||||||
}
|
}
|
||||||
} else if (this.videoData.m3u8Url != null || this.videoData.m3u8Url != '') {
|
} else if (videoData.m3u8Url != null || videoData.m3u8Url != '') {
|
||||||
playerOptions = {
|
playerOptions = {
|
||||||
...playerOptions,
|
...playerOptions,
|
||||||
source: this.videoData.m3u8Url,
|
source: videoData.m3u8Url,
|
||||||
// "playConfig": {"EncryptType": "HLSEncryption"}
|
// "playConfig": {"EncryptType": "HLSEncryption"}
|
||||||
}
|
}
|
||||||
console.log('这是标准加密的视频', this.videoData.id, this.videoData.m3u8Url);
|
console.log('这是标准加密的视频', videoData.id, videoData.m3u8Url);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
playerOptions = {
|
playerOptions = {
|
||||||
...playerOptions,
|
...playerOptions,
|
||||||
source: this.videoData.videoUrl
|
source: videoData.videoUrl
|
||||||
}
|
}
|
||||||
console.log('这是没有加密的视频');
|
console.log('这是没有加密的视频');
|
||||||
}
|
}
|
||||||
@@ -874,24 +874,7 @@
|
|||||||
receiveMsg(newValue, oldValue, ownerVm, vm) {
|
receiveMsg(newValue, oldValue, ownerVm, vm) {
|
||||||
//数据变化
|
//数据变化
|
||||||
videoData = newValue
|
videoData = newValue
|
||||||
if (videoData) {
|
|
||||||
return
|
|
||||||
console.log('切换后的播放数据videoData', videoData.type);
|
|
||||||
if (videoData.type == 1) {
|
|
||||||
if (videoData.m3u8Url != '' && videoData.m3u8Url != null) {
|
|
||||||
// myplayer.source(videoData.m3u8Url)
|
|
||||||
myplayer.loadByUrl(videoData.m3u8Url)
|
|
||||||
console.log('切换走了吗?m3u8');
|
|
||||||
} else {
|
|
||||||
myplayer.replayByVidAndPlayAuth(videoData.videoId, videoData.playAuth)
|
|
||||||
console.log('切换走了吗?私有加密');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
myplayer.loadByUrl(videoData.videoUrl)
|
|
||||||
console.log('切换常规视频');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// console.log('可能是切换视频', videoData, );
|
|
||||||
},
|
},
|
||||||
receiveWinWidth(newValue, oldValue, ownerVm, vm) {
|
receiveWinWidth(newValue, oldValue, ownerVm, vm) {
|
||||||
//数据变化
|
//数据变化
|
||||||
@@ -903,8 +886,8 @@
|
|||||||
},
|
},
|
||||||
// 检测是否传入播放参数
|
// 检测是否传入播放参数
|
||||||
checkValue() {
|
checkValue() {
|
||||||
console.log(this.videoId, this.authId, this.videoData, "1111888888")
|
console.log(this.videoId, this.authId, videoData, "1111888888")
|
||||||
if ((!this.videoData.playAuth || !this.currentVideoList)) {
|
if ((!videoData.playAuth || !this.currentVideoList)) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.checkValue();
|
this.checkValue();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
v-if="course.canzk == '1' && librayList[curIndex] && (!classInfo.id || classInfo.state == '2' || selfStudyCertificate.length >= 0)">
|
v-if="course.canzk == '1' && librayList[curIndex] && (!classInfo.id || classInfo.state == '2' || selfStudyCertificate.length >= 0)">
|
||||||
|
|
||||||
<view style="padding: 20rpx;"
|
<view style="padding: 20rpx;"
|
||||||
v-if="selfStudyCertificate.length > 0 || selfStudyCertificate.length == 0 && (!classInfo.id || classInfo.state == '2')">
|
v-if="selfStudyCertificate.length > 0 || selfStudyPaperList.length > 0 || selfStudyCertificate.length == 0 && (!classInfo.id || classInfo.state == '2')">
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="" style="line-height: 40rpx; font-size: 28rpx;"
|
<view class="" style="line-height: 40rpx; font-size: 28rpx;"
|
||||||
@@ -1691,7 +1691,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
console.log(e, "获取目录数据报错");
|
console.log(e, "获取目录数据报错666");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
goBuy() {
|
goBuy() {
|
||||||
|
|||||||
@@ -19,9 +19,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<text>恭喜!您本次考试获得了自考证书,请前往 我的->我的证书查看</text>
|
<text>恭喜!您本次考试获得了自考证书,请前往 我的->我的证书查看</text>
|
||||||
<view class="" style="text-align: center;">
|
<<view class="" style="text-align: center;">
|
||||||
<text class="small_btn border_radius_10"
|
<text class="small_btn border_radius_10"
|
||||||
style="display: block;font-size: 28rpx; color: #55aaff; border:1px solid #55aaff"
|
style="display: inline-block;font-size: 28rpx; color: #55aaff; border:1px solid #55aaff"
|
||||||
@click="onPageJump('/pages/certificate/certificate')">查看证书</text>
|
@click="onPageJump('/pages/certificate/certificate')">查看证书</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -33,9 +33,9 @@
|
|||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex_box flex_between">
|
<view class="flex_box flex_between">
|
||||||
<button type="primary" v-if="testPaper.type == '2'" @click="goToCourse">返回课程</button>
|
<button size="mini" type="primary" v-if="testPaper.type == '2'" @click="goToCourse">返回课程</button>
|
||||||
<button type="primary" v-else @click="goToClass">返回班级</button>
|
<button size="mini" type="primary" v-else @click="goToClass">返回班级</button>
|
||||||
<button type="warn" @click="goToPaper">查看试卷</button>
|
<button size="mini" type="warn" @click="goToPaper">查看试卷</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="result_imgBox">
|
<view class="result_imgBox">
|
||||||
<image src="../../static/jiesuan_Icon.jpg" mode="widthFix"></image>
|
<image src="../../static/jiesuan_Icon.jpg" mode="widthFix"></image>
|
||||||
|
|||||||
@@ -12,16 +12,18 @@
|
|||||||
本次考试卷面成绩为:<text class="score PM_font">{{exameResult.score}} 分</text>
|
本次考试卷面成绩为:<text class="score PM_font">{{exameResult.score}} 分</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="" style="margin: 20rpx 0; text-align: center;">
|
<view class="" style="margin: 20rpx 0; text-align: center;">
|
||||||
<template v-if="exameResult.score >= 1 && selfStudyCertificate.length > 0">
|
<template v-if="exameResult.score >= 60 && selfStudyCertificate.length > 0">
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="congritulations">
|
<view class="congritulations">
|
||||||
<image src="../../static/icon/xunzhang.png" mode="widthFix"></image>
|
<image src="../../static/icon/xunzhang.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<text>恭喜!您本次考试获得了自考证书,请前往 我的->我的证书查看</text>
|
<text>恭喜!您本次考试获得了自考证书,请前往 我的->我的证书查看</text>
|
||||||
<text class="small_btn border_radius_10"
|
<view class="" style="text-align: center;">
|
||||||
style="display: block;font-size: 28rpx; color: #55aaff; border:1px solid #55aaff"
|
<text class="small_btn border_radius_10"
|
||||||
@click="onPageJump('/pages/certificate/certificate')">查看证书</text>
|
style="display: inline-block;font-size: 28rpx; color: #55aaff; border:1px solid #55aaff"
|
||||||
|
@click="onPageJump('/pages/certificate/certificate')">查看证书</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -408,7 +410,7 @@
|
|||||||
that.showQuestIndex = false
|
that.showQuestIndex = false
|
||||||
that.secondTimeDif = 0
|
that.secondTimeDif = 0
|
||||||
that.isOvertime = true
|
that.isOvertime = true
|
||||||
if(that.exameResult.score >= 1){
|
if(that.exameResult.score >= 60){
|
||||||
var newCertificate = await that.getCertificateInfo()
|
var newCertificate = await that.getCertificateInfo()
|
||||||
console.log('5555555证书资料', newCertificate);
|
console.log('5555555证书资料', newCertificate);
|
||||||
that.selfStudyCertificate = []
|
that.selfStudyCertificate = []
|
||||||
|
|||||||
@@ -36,9 +36,19 @@ export const dispatchRequest = function(requestInfo) {
|
|||||||
errMsg: "请求超时,请重新尝试",
|
errMsg: "请求超时,请重新尝试",
|
||||||
statusCode: 0,
|
statusCode: 0,
|
||||||
});
|
});
|
||||||
uni.navigateTo({
|
console.log('requestInfo.url',requestInfo.url);
|
||||||
url: "/pages/user/login"
|
if(!requestInfo.url.includes('sociology/course/saveCoursePosition')){
|
||||||
});
|
uni.showToast({
|
||||||
|
title:'请求超时,请重新尝试',
|
||||||
|
icon:'none',
|
||||||
|
duration: 5000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// console.log('');
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pages/user/login"
|
||||||
|
// });
|
||||||
} else {
|
} else {
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user