Merge branch 'test' of https://e.coding.net/g-cphe0354/duanju/video_app into ymf
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// APP
|
// APP
|
||||||
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
|
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
|
||||||
// const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
|
const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
|
||||||
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
// const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
||||||
const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
|
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
|
||||||
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名
|
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"name" : "斯耀短剧",
|
"name" : "斯耀短剧",
|
||||||
"appid" : "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.1.2",
|
"versionName" : "1.1.4",
|
||||||
"versionCode" : 112,
|
"versionCode" : 114,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -166,7 +166,9 @@
|
|||||||
'width': '750rpx',
|
'width': '750rpx',
|
||||||
},
|
},
|
||||||
isShowVideo: '',
|
isShowVideo: '',
|
||||||
playFlag: false
|
playFlag: false,
|
||||||
|
// 延时器对象
|
||||||
|
scrollTimer : null,
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -185,7 +187,13 @@
|
|||||||
})
|
})
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.randomNum = Math.floor(Math.random() * 33);
|
this.randomNum = Math.floor(Math.random() * 33);
|
||||||
this.getDataList()
|
console.log("getDataList1")
|
||||||
|
if(this.scrollTimer != null){
|
||||||
|
clearTimeout(this.scrollTimer);
|
||||||
|
}
|
||||||
|
this.scrollTimer = setTimeout(()=>{
|
||||||
|
this.getDataList()
|
||||||
|
}, 1000)
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
try {
|
try {
|
||||||
@@ -208,6 +216,7 @@
|
|||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
//播放时的回掉
|
//播放时的回掉
|
||||||
videoPlay(videoId,courseDetailsId) {
|
videoPlay(videoId,courseDetailsId) {
|
||||||
this.courseDetailsId = courseDetailsId
|
this.courseDetailsId = courseDetailsId
|
||||||
@@ -395,6 +404,7 @@
|
|||||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '',
|
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '',
|
||||||
randomNum: this.randomNum
|
randomNum: this.randomNum
|
||||||
};
|
};
|
||||||
|
console.log("getDataList")
|
||||||
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {
|
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.pages = res.data.totalPage
|
this.pages = res.data.totalPage
|
||||||
@@ -413,8 +423,11 @@
|
|||||||
if (this.page == 1) {
|
if (this.page == 1) {
|
||||||
let numIdCurr = this.videoList[0].courseDetailsId;
|
let numIdCurr = this.videoList[0].courseDetailsId;
|
||||||
this.videoContextId = 'myVideo' + numIdCurr;
|
this.videoContextId = 'myVideo' + numIdCurr;
|
||||||
|
console.log(this.videoList)
|
||||||
|
console.log(this.videoContextId)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.videoContext = uni.createVideoContext(this.videoContextId, this);
|
this.videoContext = uni.createVideoContext(this.videoContextId, this);
|
||||||
|
console.log("videoContext",this.videoContext)
|
||||||
this.videoContext.play();
|
this.videoContext.play();
|
||||||
})
|
})
|
||||||
if (uni.getStorageSync('token')) { //如果有token则插入
|
if (uni.getStorageSync('token')) { //如果有token则插入
|
||||||
|
|||||||
Reference in New Issue
Block a user