表更新 #47
@ -17,19 +17,15 @@ import promptAction from '@ohos.promptAction';
|
|||||||
import FilePhoto from './judgeSDK/utils/filePhoto';
|
import FilePhoto from './judgeSDK/utils/filePhoto';
|
||||||
import { getSyncData, upDateTableByArray } from '../common/service/initable';
|
import { getSyncData, upDateTableByArray } from '../common/service/initable';
|
||||||
import { CandidateData, EmptyCandidateObject } from '../mock/CandidateData';
|
import { CandidateData, EmptyCandidateObject } from '../mock/CandidateData';
|
||||||
import BoardPrePareSetPopup from './compontents/judge/BoardPrePareSetPopup'
|
import BoardPrePareSetPopup from './compontents/judge/BoardPrePareSetPopup';
|
||||||
import LoadingPopup from './compontents/judge/LoadingPopup';
|
import LoadingPopup from './compontents/judge/LoadingPopup';
|
||||||
import VoiceAnnounce from './judgeSDK/utils/voiceAnnouncements';
|
import VoiceAnnounce from './judgeSDK/utils/voiceAnnouncements';
|
||||||
import { JudgeConfig } from '../config/judge';
|
|
||||||
import { judgeConfig } from './judgeSDK/utils/judgeConfig';
|
import { judgeConfig } from './judgeSDK/utils/judgeConfig';
|
||||||
|
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
struct UserInfo {
|
struct UserInfo {
|
||||||
private filePhoto: FilePhoto
|
|
||||||
private avPlayer
|
|
||||||
|
|
||||||
@State pageIndex: number = 0
|
@State pageIndex: number = 0
|
||||||
@State ratio: number = 1700 / 960
|
@State ratio: number = 1700 / 960
|
||||||
@State index: number = 0
|
@State index: number = 0
|
||||||
@ -50,7 +46,10 @@ struct UserInfo {
|
|||||||
@State isBoardPrePareSetPopupShow: boolean = false
|
@State isBoardPrePareSetPopupShow: boolean = false
|
||||||
@State isLoadingPopupVisible: boolean = false;
|
@State isLoadingPopupVisible: boolean = false;
|
||||||
@State loadingText: string = '正在认证监管信息,请稍后...'
|
@State loadingText: string = '正在认证监管信息,请稍后...'
|
||||||
@State sczbkf:{xmdm:number,kfdm:string}[] = []
|
@State sczbkf: {
|
||||||
|
xmdm: number,
|
||||||
|
kfdm: string
|
||||||
|
}[] = []
|
||||||
@State currentUser: User = EmptyCandidateObject
|
@State currentUser: User = EmptyCandidateObject
|
||||||
@State dataList: Array<User> = []
|
@State dataList: Array<User> = []
|
||||||
@State list: Array<User> = []
|
@State list: Array<User> = []
|
||||||
@ -87,7 +86,10 @@ struct UserInfo {
|
|||||||
return photoBase64
|
return photoBase64
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private AccountTable = new AccountTable(() => {}, USER);
|
private filePhoto: FilePhoto
|
||||||
|
private avPlayer
|
||||||
|
private AccountTable = new AccountTable(() => {
|
||||||
|
}, USER);
|
||||||
private context = getContext(this) as common.UIAbilityContext;
|
private context = getContext(this) as common.UIAbilityContext;
|
||||||
private labelBlocks = [
|
private labelBlocks = [
|
||||||
{ label: '考生姓名', key: 'xm' },
|
{ label: '考生姓名', key: 'xm' },
|
||||||
@ -887,7 +889,7 @@ struct CommText {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
Text(this.text)
|
Text(this.text)
|
||||||
.fontSize(16 * this.ratio)
|
.fontSize(19.5 * this.ratio)
|
||||||
.lineHeight(30 * this.ratio)
|
.lineHeight(30 * this.ratio)
|
||||||
.fontWeight(500)
|
.fontWeight(500)
|
||||||
.fontColor(this.color)
|
.fontColor(this.color)
|
||||||
@ -913,9 +915,13 @@ struct LabelBlock {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
Row() {
|
Row() {
|
||||||
Text(this.label).fontSize(16 * this.ratio).fontColor('#99948A')
|
Text(this.label).fontSize(18 * this.ratio).fontColor('#99948A')
|
||||||
Row() {
|
Row() {
|
||||||
Text(decodeURIComponent(this.value)).fontColor('#fff').textAlign(TextAlign.Center).width('100%')
|
Text(decodeURIComponent(this.value))
|
||||||
|
.fontColor('#fff')
|
||||||
|
.textAlign(TextAlign.Center)
|
||||||
|
.width('100%')
|
||||||
|
.fontSize(20 * this.ratio)
|
||||||
}
|
}
|
||||||
.commLabelStyle()
|
.commLabelStyle()
|
||||||
}.margin({ bottom: 10 * this.ratio })
|
}.margin({ bottom: 10 * this.ratio })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user