xugenyuan

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

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
@@ -108,21 +108,25 @@ export struct TopPlayComponent { @@ -108,21 +108,25 @@ export struct TopPlayComponent {
108 this.resizeWindow() 108 this.resizeWindow()
109 109
110 if (this.liveDetailPageLogic.livingNeedShowNoWifiTip()) { 110 if (this.liveDetailPageLogic.livingNeedShowNoWifiTip()) {
111 - this.livingDialogToast = new CustomDialogController({  
112 - builder: CustomToast({  
113 - bgColor: 0xB3000000,  
114 - opacityValue: 1,  
115 - fontSizeValue: "25lpx",  
116 - lineHeightValue: "36lpx",  
117 - msg: "正在使用非Wi-Fi网络,播放将产生流量费用",  
118 - marginTop:211/2+px2vp(this.topSafeHeight)-px2vp(84/2)  
119 - }),  
120 - autoCancel: false,  
121 - alignment: DialogAlignment.Top,  
122 - customStyle: true,  
123 - maskColor: "#00000000" 111 + onlyWifiLoadVideo().then((onlyWifiLoadVideo) => {
  112 + if (!onlyWifiLoadVideo) {
  113 + this.livingDialogToast = new CustomDialogController({
  114 + builder: CustomToast({
  115 + bgColor: 0xB3000000,
  116 + opacityValue: 1,
  117 + fontSizeValue: "25lpx",
  118 + lineHeightValue: "36lpx",
  119 + msg: "正在使用非Wi-Fi网络,播放将产生流量费用",
  120 + marginTop:211/2+px2vp(this.topSafeHeight)-px2vp(84/2)
  121 + }),
  122 + autoCancel: false,
  123 + alignment: DialogAlignment.Top,
  124 + customStyle: true,
  125 + maskColor: "#00000000"
  126 + })
  127 + this.livingDialogToast.open()
  128 + }
124 }) 129 })
125 - this.livingDialogToast.open()  
126 } else if (this.liveDetailPageLogic.noLivingNeedShowNoWifiTip()) { 130 } else if (this.liveDetailPageLogic.noLivingNeedShowNoWifiTip()) {
127 onlyWifiLoadVideo().then((onlyWifiLoadVideo) => { 131 onlyWifiLoadVideo().then((onlyWifiLoadVideo) => {
128 if (!onlyWifiLoadVideo) { 132 if (!onlyWifiLoadVideo) {