master
gongfuxiang 2026-01-08 10:34:03 +08:00
commit 98e453d992
3 changed files with 44 additions and 6 deletions

View File

@ -7,10 +7,10 @@
data: {
//
//
request_url:'http://shopxo.com/',
request_url:'https://new.shopxo.vip/',
// publicpublichttps://d1.shopxo.vip/public/
static_url:'http://shopxo.com/',
static_url:'https://new.shopxo.vip/',
// default
system_type: 'default',

View File

@ -156,7 +156,7 @@
auto_play_success(e) {
//
if (e) {
this.$emit('mutedAutoPlaySuccess');
this.$emit('mutedAutoPlaySuccess', this.muted);
}
},
@ -169,7 +169,13 @@
auto_play_error(e) {
//
if (!e) {
this.muted = true;
console.log(this.muted);
//
if (this.muted) {
this.$emit('mutedAutoPlayError');
} else {
this.muted = true;
}
}
},

View File

@ -23,6 +23,10 @@
因浏览器限制静音<text class="ml-5 cr-f live-muted-text" @tap="muted_tap"></text>
</view>
</view>
<!-- 视频播放提示 -->
<view v-if="!is_live_ended && is_muted_auto_play_error && !live_be_right_back_error" class="live-play flex-row align-c jc-c pointer-events-none">
<component-icon propName="bofang" propSize="200rpx" propColor="#fff" @click="muted_tap"></component-icon>
</view>
<!-- 主播暂时离开的提示信息-->
<view v-if="live_be_right_back_error" class="live-pause flex-row align-c jc-c pointer-events-none">
<view class="flex-1 flex-col align-c jc-c">
@ -55,12 +59,18 @@
return {
theme_view: app.globalData.get_theme_value_view(),
is_muted_auto_play_success: false,
is_muted_auto_play_error: false,
initial_reminder: false
}
},
methods: {
muted_auto_play_success() {
this.is_muted_auto_play_success = true;
muted_auto_play_success(is_muted) {
if (is_muted) {
this.is_muted_auto_play_success = true;
}
},
muted_auto_play_error() {
this.is_muted_auto_play_error = true;
},
//
muted_tap() {
@ -69,6 +79,8 @@
}
//
this.is_muted_auto_play_success = false;
//
this.is_muted_auto_play_error = false;
}
},
}
@ -121,6 +133,26 @@
border-bottom: 1px solid rgba(210,27,70,1);
}
}
.live-play {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 11;
width: 100%;
height: 100%;
.icon-bofang {
height: 200rpx;
width: 200rpx;
font-size: 200rpx !important;
color: inherit !important;
background: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
}
.live-ended {
background: linear-gradient(to bottom,#AD18F9,#05DFC7);
position: absolute;