bug修改
This commit is contained in:
@@ -5,7 +5,7 @@ import { promptAction, router } from '@kit.ArkUI'
|
||||
import { BusinessError } from '@kit.BasicServicesKit';
|
||||
import { HdLoadingDialog,EmptyViewComp } from '@itcast/basic'
|
||||
import HashMap from '@ohos.util.HashMap';
|
||||
|
||||
import { uiObserver, UIObserver } from '@kit.ArkUI';
|
||||
|
||||
@Component
|
||||
export struct ListCompGandan {
|
||||
@@ -34,7 +34,25 @@ export struct ListCompGandan {
|
||||
onUpdate() {
|
||||
this.onRefresh()
|
||||
}
|
||||
listener: (info: uiObserver.RouterPageInfo) => void = (info: uiObserver.RouterPageInfo) => {
|
||||
let routerInfo: uiObserver.RouterPageInfo | undefined = this.queryRouterPageInfo();
|
||||
if (info.pageId == routerInfo?.pageId) {
|
||||
if (info.state == uiObserver.RouterPageState.ON_PAGE_SHOW) {
|
||||
this.onRefresh()
|
||||
} else if (info.state == uiObserver.RouterPageState.ON_PAGE_HIDE) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
aboutToAppear(): void {
|
||||
let uiObserver: UIObserver = this.getUIContext().getUIObserver();
|
||||
uiObserver.on('routerPageUpdate', this.listener);
|
||||
}
|
||||
|
||||
aboutToDisappear(): void {
|
||||
let uiObserver: UIObserver = this.getUIContext().getUIObserver();
|
||||
uiObserver.off('routerPageUpdate', this.listener);
|
||||
}
|
||||
|
||||
onRefresh() {
|
||||
this.page = 1
|
||||
|
||||
@@ -21,8 +21,31 @@ class VideoTools {
|
||||
let json:VideoDetailModel = JSON.parse(res+'') as VideoDetailModel;
|
||||
if(json.video.polyv_uuid==null||json.video.polyv_uuid==undefined)
|
||||
{
|
||||
promptAction.showToast({ message: '视频信息错误' })
|
||||
this.goPLVMediaPlayerSingleVideoPage('',video_uuid)
|
||||
if(json.video.content!=null)
|
||||
{
|
||||
let content=json.video.content
|
||||
let split = content.split("\"vid\" : ");
|
||||
if (split.length<2){
|
||||
split = content.split("'vid' : ");
|
||||
if (split.length>1){
|
||||
let split1 = split[1].split("'");
|
||||
this.goPLVMediaPlayerSingleVideoPage(split1[1],video_uuid)
|
||||
|
||||
}else {
|
||||
promptAction.showToast({ message: '视频信息错误' })
|
||||
this.goPLVMediaPlayerSingleVideoPage('',video_uuid)
|
||||
}
|
||||
}else if(split.length>1){
|
||||
let split1 = split[1].split("\"");
|
||||
this.goPLVMediaPlayerSingleVideoPage(split1[1],video_uuid)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
promptAction.showToast({ message: '视频信息错误' })
|
||||
this.goPLVMediaPlayerSingleVideoPage('',video_uuid)
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -33,6 +56,7 @@ class VideoTools {
|
||||
}).catch((err: BusinessError) => {
|
||||
this.goPLVMediaPlayerSingleVideoPage('',video_uuid)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
async goPLVMediaPlayerSingleVideoPage(vid:string,video_uuid:string)
|
||||
|
||||
@@ -401,11 +401,13 @@ struct PrivacyDialog {
|
||||
Span('登录即代表同意').fontColor($r('app.color.common_gray_03'))
|
||||
Span('《肝胆相照隐私政策》').fontColor($r('app.color.top_title')).onClick(() => {
|
||||
ToWeb(BasicConstant.getyyzc,'《肝胆相照隐私政策》')
|
||||
this.controller.close()
|
||||
})
|
||||
Span('和').fontColor($r('app.color.common_gray_03'))
|
||||
Span('《肝胆相照用户服务协议》').fontColor($r('app.color.top_title'))
|
||||
.onClick(() => {
|
||||
ToWeb(BasicConstant.getzcxy,'《肝胆相照用户服务协议》')
|
||||
this.controller.close()
|
||||
})
|
||||
|
||||
}
|
||||
@@ -419,11 +421,14 @@ struct PrivacyDialog {
|
||||
Span('未注册的手机号验证登录后将自动创建肝胆相照账号,登录即代表同意').fontColor($r('app.color.common_gray_03'))
|
||||
Span('《肝胆相照隐私政策》').fontColor($r('app.color.top_title')).onClick(() => {
|
||||
ToWeb(BasicConstant.getyyzc,'《肝胆相照隐私政策》')
|
||||
this.controller.close()
|
||||
})
|
||||
Span('和').fontColor($r('app.color.common_gray_03'))
|
||||
Span('《肝胆相照用户服务协议》').fontColor($r('app.color.top_title'))
|
||||
.onClick(() => {
|
||||
|
||||
ToWeb(BasicConstant.getzcxy,'《肝胆相照用户服务协议》')
|
||||
this.controller.close()
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
@@ -245,6 +245,7 @@ export struct SelectedHospitalComp {
|
||||
})
|
||||
ListItem() {
|
||||
Text('其他医院')
|
||||
.width('100%')
|
||||
.fontSize(17)
|
||||
.height(40)
|
||||
.margin({left:20})
|
||||
@@ -295,6 +296,7 @@ export struct SelectedHospitalComp {
|
||||
})
|
||||
ListItem() {
|
||||
Text('其他医院')
|
||||
.width('100%')
|
||||
.fontSize(17)
|
||||
.height(40)
|
||||
.margin({left:20})
|
||||
|
||||
Reference in New Issue
Block a user