|
@@ -98,12 +98,18 @@ export default defineComponent({
|
|
|
//设置容器16:9
|
|
|
setContainer()
|
|
|
// 横屏
|
|
|
- postMessage({
|
|
|
- api: 'setRequestedOrientation',
|
|
|
- content: {
|
|
|
- orientation: type
|
|
|
+ postMessage(
|
|
|
+ {
|
|
|
+ api: 'setRequestedOrientation',
|
|
|
+ content: {
|
|
|
+ orientation: type
|
|
|
+ }
|
|
|
+ },
|
|
|
+ () => {
|
|
|
+ console.log(234)
|
|
|
+
|
|
|
}
|
|
|
- })
|
|
|
+ )
|
|
|
// 头,包括返回箭头
|
|
|
postMessage({
|
|
|
api: 'setTitleBarVisibility',
|
|
@@ -468,7 +474,7 @@ export default defineComponent({
|
|
|
|
|
|
// 轮播切换
|
|
|
const handleSwipeChange = (index: number) => {
|
|
|
- if(popupData.activeIndex == index) return;
|
|
|
+ if (popupData.activeIndex == index) return
|
|
|
console.log('轮播切换')
|
|
|
popupData.activeIndex = index
|
|
|
setTimeout(() => {
|
|
@@ -693,9 +699,8 @@ export default defineComponent({
|
|
|
round
|
|
|
v-model:show={popupData.open}
|
|
|
onClose={() => {
|
|
|
- console.log('关闭')
|
|
|
const item = data.itemList[popupData.activeIndex]
|
|
|
- if (item?.type == 'VIDEO') {
|
|
|
+ if (item?.type == 'VIDEO' && !item.videoEle?.paused) {
|
|
|
setModelOpen()
|
|
|
}
|
|
|
}}
|
|
@@ -723,7 +728,7 @@ export default defineComponent({
|
|
|
v-model:show={popupData.guideOpen}
|
|
|
onClose={() => {
|
|
|
const item = data.itemList[popupData.activeIndex]
|
|
|
- if (item?.type == 'VIDEO') {
|
|
|
+ if (item?.type == 'VIDEO' && !item.videoEle?.paused) {
|
|
|
setModelOpen()
|
|
|
}
|
|
|
}}
|