增加视频播放返回按钮显示隐藏

This commit is contained in:
YeMingfei666 2024-12-07 17:39:56 +08:00
parent ff96875de7
commit 014f71b43b
3 changed files with 32 additions and 25 deletions

View File

@ -1,10 +1,10 @@
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
// const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
module.exports = {
APIHOST: ROOTPATH,

View File

@ -6,7 +6,7 @@
<view class="swipers-items" @longpress="openBs()" @appear="appear(item.courseDetailsId,i)"
: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"
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="true"
@timeupdate="timeupdate"
@ -18,7 +18,7 @@
mode="aspectFill">
</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>
<!-- 右边操作 -->
<view class="swipers-items-right" :style="rightTop" v-if="showControls">
@ -313,6 +313,7 @@
export default {
data() {
return {
showBack:false,
noBuyVideoIndex:null,
// 奖品列表,
showMoney: true,
@ -845,6 +846,7 @@
//显示/隐藏适配控制器的回调
controlstoggles(e) {
this.showControls = e.detail.show
this.showBack=!this.showBack
// console.log(e.detail.show, '显示/隐藏控制栏')
},
//打开倍速弹框

View File

@ -18,7 +18,7 @@
"navigationBarTitleText": "任务",
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
},
{
@ -160,7 +160,7 @@
},
{
"path": "pages/login/register",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#f1a48a",
@ -170,7 +170,7 @@
}
}
// #ifdef H5
,
,
"navigationStyle": "custom"
// #endif
}
@ -253,7 +253,7 @@
"navigationBarTitleText": "意见反馈",
"navigationBarBackgroundColor": "#FFFFFF"
}
},{
}, {
"path": "balance/index",
"style": {
"navigationBarTitleText": "我的余额"
@ -447,8 +447,16 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#000000",
"style": {
"safeAreaInsetBottom": "none"
},
"app-plus": {
"bounce": "none"
"bounce": "none",
"safearea": {
"bottom": {
"offset": "none"
}
}
}
// #ifndef MP-TOUTIAO
,
@ -578,25 +586,22 @@
}
},
{
"path" : "choujiang/choujiang",
"style" :
{
"navigationBarTitleText" : "抽奖"
"path": "choujiang/choujiang",
"style": {
"navigationBarTitleText": "抽奖"
}
},
{
"path" : "gift/gift",
"style" :
{
"path": "gift/gift",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText" : "奖品列表"
"navigationBarTitleText": "奖品列表"
}
},
{
"path" : "gift/duihuan",
"style" :
{
"navigationBarTitleText" : "兑换礼品"
"path": "gift/duihuan",
"style": {
"navigationBarTitleText": "兑换礼品"
}
}
]