Merge branch 'gaohao' of https://e.coding.net/g-cphe0354/duanju/video_app into test
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
|
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
|
||||||
// const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
||||||
const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||||
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
APIHOST: ROOTPATH,
|
APIHOST: ROOTPATH,
|
||||||
|
|||||||
@@ -421,7 +421,7 @@
|
|||||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
|
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
|
||||||
const res = await this.$Request.getT('app/discSpinning/draw')
|
const res = await this.$Request.getT('app/discSpinning/draw')
|
||||||
this.freeNum--
|
this.freeNum--
|
||||||
this.getCount()
|
// this.getCount()
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.code != 0) {
|
if (res.code != 0) {
|
||||||
return uni.showToast({
|
return uni.showToast({
|
||||||
@@ -531,7 +531,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
lingquClose(){
|
lingquClose(){
|
||||||
this.getCount()
|
// this.getCount()
|
||||||
this.getRedPack()
|
this.getRedPack()
|
||||||
},
|
},
|
||||||
showLingPop(data){
|
showLingPop(data){
|
||||||
|
|||||||
@@ -552,7 +552,6 @@
|
|||||||
},
|
},
|
||||||
//播放进度变化回掉
|
//播放进度变化回掉
|
||||||
timeupdate(e) {
|
timeupdate(e) {
|
||||||
|
|
||||||
if (e.detail.currentTime > e.detail.duration*0.9) {
|
if (e.detail.currentTime > e.detail.duration*0.9) {
|
||||||
if ( this.playFlag) {
|
if ( this.playFlag) {
|
||||||
this.playFlag = false
|
this.playFlag = false
|
||||||
@@ -568,6 +567,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
appear(e, index) {
|
appear(e, index) {
|
||||||
|
this.courseDetailsId = e
|
||||||
this.current = index
|
this.current = index
|
||||||
this.showControls = true
|
this.showControls = true
|
||||||
this.isShowVideo = e
|
this.isShowVideo = e
|
||||||
@@ -586,10 +586,15 @@
|
|||||||
this.videoContext.stop();
|
this.videoContext.stop();
|
||||||
this.videoContext = null;
|
this.videoContext = null;
|
||||||
}
|
}
|
||||||
let numIdCurr = this.videoList[index-1].courseDetailsId;
|
if ( this.current > index) {
|
||||||
if (this.videoList[index-1].videoUrl) { //已经购买可直接播放
|
index = index+1
|
||||||
|
} else {
|
||||||
|
index = index-1
|
||||||
|
}
|
||||||
|
let numIdCurr = this.videoList[index].courseDetailsId;
|
||||||
|
if (this.videoList[index].videoUrl) { //已经购买可直接播放
|
||||||
// 播放时记录当前播放的id
|
// 播放时记录当前播放的id
|
||||||
this.appear(numIdCurr,index-1)
|
this.appear(numIdCurr,index)
|
||||||
this.videoContextId = 'myVideo' + numIdCurr;
|
this.videoContextId = 'myVideo' + numIdCurr;
|
||||||
this.videoContext = uni.createVideoContext(this.videoContextId, this);
|
this.videoContext = uni.createVideoContext(this.videoContextId, this);
|
||||||
console.log('走更新了')
|
console.log('走更新了')
|
||||||
@@ -1234,18 +1239,19 @@
|
|||||||
this.goListPosition(this.videoList[indexs].courseDetailsId)
|
this.goListPosition(this.videoList[indexs].courseDetailsId)
|
||||||
}
|
}
|
||||||
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex)
|
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex)
|
||||||
if(this.noBuyVideoIndex!==null){
|
|
||||||
uni.navigateTo({
|
|
||||||
url:'/me/choujiang/choujiang'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (this.videoList[indexss].videoUrl) { //有播放权限
|
if (this.videoList[indexss].videoUrl) { //有播放权限
|
||||||
|
|
||||||
let numIdCurr = this.videoList[indexss].courseDetailsId;
|
let numIdCurr = this.videoList[indexss].courseDetailsId;
|
||||||
this.videoContextId = 'myVideo' + numIdCurr;
|
this.videoContextId = 'myVideo' + numIdCurr;
|
||||||
this.videoContext = uni.createVideoContext(this
|
this.videoContext = uni.createVideoContext(this
|
||||||
.videoContextId,
|
.videoContextId,
|
||||||
this);
|
this);
|
||||||
if(this.noBuyVideoIndex!=null){
|
if(this.noBuyVideoIndex!=null&&this.videoList[this.noBuyVideoIndex].videoUrl){
|
||||||
|
this.videoContext.stop();
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/me/choujiang/choujiang'
|
||||||
|
})
|
||||||
this.noBuyVideoIndex=null
|
this.noBuyVideoIndex=null
|
||||||
}else{
|
}else{
|
||||||
this.videoContext.play();
|
this.videoContext.play();
|
||||||
|
|||||||
@@ -352,7 +352,7 @@
|
|||||||
zongPrice: 0, //整部价格
|
zongPrice: 0, //整部价格
|
||||||
countPrice: 0, //单集价格
|
countPrice: 0, //单集价格
|
||||||
wallCurr: 0,
|
wallCurr: 0,
|
||||||
wallet: [],
|
wallet: [],·
|
||||||
productId: '', //默认苹果内购商品ID
|
productId: '', //默认苹果内购商品ID
|
||||||
productIds: ['sixzuan', 'shierzuan'], //苹果内购商品
|
productIds: ['sixzuan', 'shierzuan'], //苹果内购商品
|
||||||
openLists: [],
|
openLists: [],
|
||||||
|
|||||||
@@ -92,9 +92,9 @@
|
|||||||
<view class="money-box-title-l">
|
<view class="money-box-title-l">
|
||||||
金币余额
|
金币余额
|
||||||
</view>
|
</view>
|
||||||
<view @click="isShoMoney = !isShoMoney" class="money-box-title-r" style="margin-left: 12rpx;">
|
<!-- <view @click="isShoMoney = !isShoMoney" class="money-box-title-r" style="margin-left: 12rpx;">
|
||||||
<u-icon :name="isShoMoney?'eye':'eye-off'" color="#5A4A32" size="40"></u-icon>
|
<u-icon :name="isShoMoney?'eye':'eye-off'" color="#5A4A32" size="40"></u-icon>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="money-box-price">
|
<view class="money-box-price">
|
||||||
<block v-if="isShoMoney">
|
<block v-if="isShoMoney">
|
||||||
@@ -265,7 +265,7 @@
|
|||||||
backgroundImage: 'linear-gradient(to right, #FFE5EA 0%, #E4F5FB 49%, #FFF0EE 100%)'
|
backgroundImage: 'linear-gradient(to right, #FFE5EA 0%, #E4F5FB 49%, #FFF0EE 100%)'
|
||||||
},
|
},
|
||||||
kami: '', //卡密
|
kami: '', //卡密
|
||||||
isShoMoney: false, //是否显示余额
|
isShoMoney: true, //是否显示余额
|
||||||
avatar: '../../static/images/logo.png',
|
avatar: '../../static/images/logo.png',
|
||||||
img: '../../static/images/me/huiyuan.png',
|
img: '../../static/images/me/huiyuan.png',
|
||||||
swiperList: [{
|
swiperList: [{
|
||||||
|
|||||||
Reference in New Issue
Block a user