增加视频播放返回按钮显示隐藏
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,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<view class="swipers-items" @longpress="openBs()" @appear="appear(item.courseDetailsId,i)"
|
<view class="swipers-items" @longpress="openBs()" @appear="appear(item.courseDetailsId,i)"
|
||||||
:style="boxStyle">
|
:style="boxStyle">
|
||||||
<!-- 视频 -->
|
<!-- 视频 -->
|
||||||
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="cover"
|
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="contain"
|
||||||
v-if="isShowVideo == item.courseDetailsId && item.videoUrl" :play-strategy="2"
|
v-if="isShowVideo == item.courseDetailsId && item.videoUrl" :play-strategy="2"
|
||||||
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="true"
|
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="true"
|
||||||
@timeupdate="timeupdate"
|
@timeupdate="timeupdate"
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
mode="aspectFill">
|
mode="aspectFill">
|
||||||
</image>
|
</image>
|
||||||
<!-- 返回图标 -->
|
<!-- 返回图标 -->
|
||||||
<image src="../static/nvueIcon/backs.png" @click="goBack()" class="swipers-items-back" mode="">
|
<image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()" class="swipers-items-back" mode="">
|
||||||
</image>
|
</image>
|
||||||
<!-- 右边操作 -->
|
<!-- 右边操作 -->
|
||||||
<view class="swipers-items-right" :style="rightTop" v-if="showControls">
|
<view class="swipers-items-right" :style="rightTop" v-if="showControls">
|
||||||
@@ -313,6 +313,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
showBack:false,
|
||||||
noBuyVideoIndex:null,
|
noBuyVideoIndex:null,
|
||||||
// 奖品列表,
|
// 奖品列表,
|
||||||
showMoney: true,
|
showMoney: true,
|
||||||
@@ -845,6 +846,7 @@
|
|||||||
//显示/隐藏适配控制器的回调
|
//显示/隐藏适配控制器的回调
|
||||||
controlstoggles(e) {
|
controlstoggles(e) {
|
||||||
this.showControls = e.detail.show
|
this.showControls = e.detail.show
|
||||||
|
this.showBack=!this.showBack
|
||||||
// console.log(e.detail.show, '显示/隐藏控制栏')
|
// console.log(e.detail.show, '显示/隐藏控制栏')
|
||||||
},
|
},
|
||||||
//打开倍速弹框
|
//打开倍速弹框
|
||||||
|
|||||||
39
pages.json
39
pages.json
@@ -18,7 +18,7 @@
|
|||||||
"navigationBarTitleText": "任务",
|
"navigationBarTitleText": "任务",
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/login/register",
|
"path": "pages/login/register",
|
||||||
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"navigationBarBackgroundColor": "#f1a48a",
|
"navigationBarBackgroundColor": "#f1a48a",
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
,
|
,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
"navigationBarTitleText": "意见反馈",
|
"navigationBarTitleText": "意见反馈",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},{
|
}, {
|
||||||
"path": "balance/index",
|
"path": "balance/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的余额"
|
"navigationBarTitleText": "我的余额"
|
||||||
@@ -447,8 +447,16 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#000000",
|
"navigationBarBackgroundColor": "#000000",
|
||||||
|
"style": {
|
||||||
|
"safeAreaInsetBottom": "none"
|
||||||
|
},
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
"bounce": "none"
|
"bounce": "none",
|
||||||
|
"safearea": {
|
||||||
|
"bottom": {
|
||||||
|
"offset": "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// #ifndef MP-TOUTIAO
|
// #ifndef MP-TOUTIAO
|
||||||
,
|
,
|
||||||
@@ -578,25 +586,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path" : "choujiang/choujiang",
|
"path": "choujiang/choujiang",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
"navigationBarTitleText": "抽奖"
|
||||||
"navigationBarTitleText" : "抽奖"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path" : "gift/gift",
|
"path": "gift/gift",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText" : "奖品列表"
|
"navigationBarTitleText": "奖品列表"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path" : "gift/duihuan",
|
"path": "gift/duihuan",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
"navigationBarTitleText": "兑换礼品"
|
||||||
"navigationBarTitleText" : "兑换礼品"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user