xugenyuan

ref |> 处理一处误处理直播弹wifi提示

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -108,21 +108,25 @@ export struct TopPlayComponent {
this.resizeWindow()
if (this.liveDetailPageLogic.livingNeedShowNoWifiTip()) {
this.livingDialogToast = new CustomDialogController({
builder: CustomToast({
bgColor: 0xB3000000,
opacityValue: 1,
fontSizeValue: "25lpx",
lineHeightValue: "36lpx",
msg: "正在使用非Wi-Fi网络,播放将产生流量费用",
marginTop:211/2+px2vp(this.topSafeHeight)-px2vp(84/2)
}),
autoCancel: false,
alignment: DialogAlignment.Top,
customStyle: true,
maskColor: "#00000000"
onlyWifiLoadVideo().then((onlyWifiLoadVideo) => {
if (!onlyWifiLoadVideo) {
this.livingDialogToast = new CustomDialogController({
builder: CustomToast({
bgColor: 0xB3000000,
opacityValue: 1,
fontSizeValue: "25lpx",
lineHeightValue: "36lpx",
msg: "正在使用非Wi-Fi网络,播放将产生流量费用",
marginTop:211/2+px2vp(this.topSafeHeight)-px2vp(84/2)
}),
autoCancel: false,
alignment: DialogAlignment.Top,
customStyle: true,
maskColor: "#00000000"
})
this.livingDialogToast.open()
}
})
this.livingDialogToast.open()
} else if (this.liveDetailPageLogic.noLivingNeedShowNoWifiTip()) {
onlyWifiLoadVideo().then((onlyWifiLoadVideo) => {
if (!onlyWifiLoadVideo) {
... ...