Compare commits
No commits in common. "2ad7db0c7b01c12832426e8a54ef4c2f5089380d" and "c4a3b21499d871a3781ff24b9ea4d92d35de49bd" have entirely different histories.
2ad7db0c7b
...
c4a3b21499
@ -16,22 +16,12 @@ class VideoTools {
|
|||||||
this.hashMap.clear();
|
this.hashMap.clear();
|
||||||
this.hashMap.set('video_uuid', video_uuid)
|
this.hashMap.set('video_uuid', video_uuid)
|
||||||
hdHttp.httpReq<string>(BasicConstant.videoDetail,this.hashMap).then(async (res: HdResponse<string>) => {
|
hdHttp.httpReq<string>(BasicConstant.videoDetail,this.hashMap).then(async (res: HdResponse<string>) => {
|
||||||
|
|
||||||
logger.info('Response videoDetail'+res);
|
logger.info('Response videoDetail'+res);
|
||||||
let json:VideoDetailModel = JSON.parse(res+'') as VideoDetailModel;
|
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)
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.goPLVMediaPlayerSingleVideoPage(json.video.polyv_uuid,video_uuid)
|
this.goPLVMediaPlayerSingleVideoPage(json.video.polyv_uuid,video_uuid)
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}).catch((err: BusinessError) => {
|
}).catch((err: BusinessError) => {
|
||||||
this.goPLVMediaPlayerSingleVideoPage('',video_uuid)
|
this.goPLVMediaPlayerSingleVideoPage('','')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -142,7 +142,7 @@ export struct ChangePhoneComp {
|
|||||||
|
|
||||||
// 登录按钮
|
// 登录按钮
|
||||||
Button({type:ButtonType.Normal}){
|
Button({type:ButtonType.Normal}){
|
||||||
Text('确 定')
|
Text('登 录')
|
||||||
}
|
}
|
||||||
.width('90%')
|
.width('90%')
|
||||||
.height(48)
|
.height(48)
|
||||||
|
|||||||
@ -75,7 +75,7 @@ export struct FourSection {
|
|||||||
abilityName: 'com.huawei.hmos.settings.MainAbility',
|
abilityName: 'com.huawei.hmos.settings.MainAbility',
|
||||||
uri: 'application_info_entry',
|
uri: 'application_info_entry',
|
||||||
parameters: {
|
parameters: {
|
||||||
pushParams: 'cn.shangyu.gdxzExprts'
|
pushParams: 'cn.shangyu.gdxzExprt'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const context = getContext(this) as common.UIAbilityContext;
|
const context = getContext(this) as common.UIAbilityContext;
|
||||||
|
|||||||
@ -34,19 +34,7 @@ export struct LoginComp {
|
|||||||
|
|
||||||
hashMap: HashMap<string, string> = new HashMap();
|
hashMap: HashMap<string, string> = new HashMap();
|
||||||
|
|
||||||
dialog = new CustomDialogController({
|
|
||||||
builder: PrivacyDialog({
|
|
||||||
isPassLogin:this.isPassLogin,
|
|
||||||
okCallBack:()=>
|
|
||||||
{
|
|
||||||
this.isAgree=true
|
|
||||||
this.login()
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
cornerRadius: 4,
|
|
||||||
autoCancel:false
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
login() {
|
login() {
|
||||||
if (this.loading) return;
|
if (this.loading) return;
|
||||||
@ -70,9 +58,7 @@ export struct LoginComp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!this.isAgree) {
|
if (!this.isAgree) {
|
||||||
// return promptAction.showToast({ message: '请勾选已阅读并同意' })
|
return promptAction.showToast({ message: '请勾选已阅读并同意' })
|
||||||
this.dialog.open()
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.hashMap.clear();
|
this.hashMap.clear();
|
||||||
@ -102,7 +88,6 @@ export struct LoginComp {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
getSaveUserInfor(type:number,objs:LoginInfo) {
|
getSaveUserInfor(type:number,objs:LoginInfo) {
|
||||||
let state:number=objs.data.state
|
let state:number=objs.data.state
|
||||||
let checkInfo:string=objs.data.checkInfo
|
let checkInfo:string=objs.data.checkInfo
|
||||||
@ -289,32 +274,28 @@ export struct LoginComp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}.width('100%')
|
}.width('100%')
|
||||||
Column()
|
|
||||||
{
|
|
||||||
Blank()
|
|
||||||
Row() {
|
Row() {
|
||||||
Checkbox()
|
Checkbox()
|
||||||
.shape(CheckBoxShape.CIRCLE)
|
.shape(CheckBoxShape.CIRCLE)
|
||||||
.selectedColor($r('app.color.top_title'))
|
.selectedColor($r('app.color.top_title'))
|
||||||
.size({ width: 22, height: 22 })
|
.size({ width: 22, height: 22 })
|
||||||
.select(this.isAgree)
|
.select(this.isAgree)
|
||||||
.alignSelf(ItemAlign.Start)
|
.alignSelf((ItemAlign.Start))
|
||||||
// .margin({bottom:20})
|
|
||||||
.onChange((val) => {
|
.onChange((val) => {
|
||||||
this.isAgree = val
|
this.isAgree = val
|
||||||
})
|
})
|
||||||
|
|
||||||
if(this.isPassLogin)
|
if(this.isPassLogin)
|
||||||
{
|
{
|
||||||
Text() {
|
Text() {
|
||||||
Span('登录即代表同意').fontColor($r('app.color.common_gray_03'))
|
Span('登录即代表同意').fontColor($r('app.color.common_gray_03'))
|
||||||
Span('《肝胆相照隐私政策》').fontColor($r('app.color.top_title')).onClick(() => {
|
Span('《肝胆相照隐私政策》').fontColor($r('app.color.top_title')).onClick(() => {
|
||||||
ToWeb(BasicConstant.getyyzc,'《肝胆相照隐私政策》')
|
this.ToWeb(BasicConstant.getyyzc,'《肝胆相照隐私政策》')
|
||||||
})
|
})
|
||||||
Span('和').fontColor($r('app.color.common_gray_03'))
|
Span('和').fontColor($r('app.color.common_gray_03'))
|
||||||
Span('《肝胆相照用户服务协议》').fontColor($r('app.color.top_title'))
|
Span('《肝胆相照用户服务协议》').fontColor($r('app.color.top_title'))
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
ToWeb(BasicConstant.getzcxy,'《肝胆相照用户服务协议》')
|
this.ToWeb(BasicConstant.getzcxy,'《肝胆相照用户服务协议》')
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -327,12 +308,12 @@ export struct LoginComp {
|
|||||||
Text() {
|
Text() {
|
||||||
Span('未注册的手机号验证登录后将自动创建肝胆相照账号,登录即代表同意').fontColor($r('app.color.common_gray_03'))
|
Span('未注册的手机号验证登录后将自动创建肝胆相照账号,登录即代表同意').fontColor($r('app.color.common_gray_03'))
|
||||||
Span('《肝胆相照隐私政策》').fontColor($r('app.color.top_title')).onClick(() => {
|
Span('《肝胆相照隐私政策》').fontColor($r('app.color.top_title')).onClick(() => {
|
||||||
ToWeb(BasicConstant.getyyzc,'《肝胆相照隐私政策》')
|
this.ToWeb(BasicConstant.getyyzc,'《肝胆相照隐私政策》')
|
||||||
})
|
})
|
||||||
Span('和').fontColor($r('app.color.common_gray_03'))
|
Span('和').fontColor($r('app.color.common_gray_03'))
|
||||||
Span('《肝胆相照用户服务协议》').fontColor($r('app.color.top_title'))
|
Span('《肝胆相照用户服务协议》').fontColor($r('app.color.top_title'))
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
ToWeb(BasicConstant.getzcxy,'《肝胆相照用户服务协议》')
|
this.ToWeb(BasicConstant.getzcxy,'《肝胆相照用户服务协议》')
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -342,21 +323,12 @@ export struct LoginComp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}.padding({bottom:20}).alignSelf(ItemAlign.End)
|
||||||
}
|
}
|
||||||
.padding({bottom:20})
|
.height("100%")
|
||||||
|
|
||||||
}
|
|
||||||
.layoutWeight(1)
|
|
||||||
.justifyContent(FlexAlign.End)
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
.layoutWeight(1)
|
|
||||||
|
|
||||||
.padding({ left: 20, right: 20, top: 30 })
|
.padding({ left: 20, right: 20, top: 30 })
|
||||||
|
|
||||||
}
|
}
|
||||||
.height('100%')
|
|
||||||
}
|
}
|
||||||
startTime() {
|
startTime() {
|
||||||
this.time=60
|
this.time=60
|
||||||
@ -371,94 +343,7 @@ export struct LoginComp {
|
|||||||
|
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
ToWeb(u:string,t:string)
|
||||||
}
|
|
||||||
@Extend(TextInput)
|
|
||||||
function customStyle() {
|
|
||||||
.placeholderColor('#C3C3C5')
|
|
||||||
.caretColor('#fa711d')
|
|
||||||
.height(45)
|
|
||||||
.borderRadius(0)
|
|
||||||
.backgroundColor($r('app.color.white'))
|
|
||||||
.margin({right:30})
|
|
||||||
}
|
|
||||||
|
|
||||||
@CustomDialog
|
|
||||||
struct PrivacyDialog {
|
|
||||||
// 添加回调函数属性
|
|
||||||
private okCallBack: () => void = () => {};
|
|
||||||
controller: CustomDialogController
|
|
||||||
@Prop isPassLogin:boolean = false;
|
|
||||||
|
|
||||||
build() {
|
|
||||||
Column() {
|
|
||||||
Text('请阅读并同意以下条款')
|
|
||||||
.fontSize(18)
|
|
||||||
.margin({bottom:10})
|
|
||||||
if(this.isPassLogin)
|
|
||||||
{
|
|
||||||
Text() {
|
|
||||||
Span('登录即代表同意').fontColor($r('app.color.common_gray_03'))
|
|
||||||
Span('《肝胆相照隐私政策》').fontColor($r('app.color.top_title')).onClick(() => {
|
|
||||||
ToWeb(BasicConstant.getyyzc,'《肝胆相照隐私政策》')
|
|
||||||
})
|
|
||||||
Span('和').fontColor($r('app.color.common_gray_03'))
|
|
||||||
Span('《肝胆相照用户服务协议》').fontColor($r('app.color.top_title'))
|
|
||||||
.onClick(() => {
|
|
||||||
ToWeb(BasicConstant.getzcxy,'《肝胆相照用户服务协议》')
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
.fontSize(16)
|
|
||||||
.padding({ left: 4 ,right:20})
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
Text() {
|
|
||||||
Span('未注册的手机号验证登录后将自动创建肝胆相照账号,登录即代表同意').fontColor($r('app.color.common_gray_03'))
|
|
||||||
Span('《肝胆相照隐私政策》').fontColor($r('app.color.top_title')).onClick(() => {
|
|
||||||
ToWeb(BasicConstant.getyyzc,'《肝胆相照隐私政策》')
|
|
||||||
})
|
|
||||||
Span('和').fontColor($r('app.color.common_gray_03'))
|
|
||||||
Span('《肝胆相照用户服务协议》').fontColor($r('app.color.top_title'))
|
|
||||||
.onClick(() => {
|
|
||||||
ToWeb(BasicConstant.getzcxy,'《肝胆相照用户服务协议》')
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
.fontSize(16)
|
|
||||||
.padding({ left: 4 ,right:20})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Column() {
|
|
||||||
Button('同意并继续', { type: ButtonType.Normal })
|
|
||||||
.backgroundColor($r('app.color.top_title'))
|
|
||||||
.width(200)
|
|
||||||
.borderRadius(4)
|
|
||||||
.height(44)
|
|
||||||
.onClick(() => {
|
|
||||||
this.okCallBack()
|
|
||||||
this.controller.close()
|
|
||||||
}).fontColor($r('app.color.white'))
|
|
||||||
.margin({bottom:10})
|
|
||||||
Button('不同意')
|
|
||||||
.width(200)
|
|
||||||
.height(44)
|
|
||||||
.onClick(() => {
|
|
||||||
this.controller.close()
|
|
||||||
|
|
||||||
}).backgroundColor(0xffffff).fontColor($r('app.color.common_gray_03'))
|
|
||||||
}.margin({ bottom: 10,top:10 })
|
|
||||||
}
|
|
||||||
.width('100%')
|
|
||||||
.justifyContent(FlexAlign.Center)
|
|
||||||
.backgroundColor($r('app.color.white'))
|
|
||||||
.padding(20)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function ToWeb(u:string,t:string)
|
|
||||||
{
|
{
|
||||||
let paramsInfo: DataWebModel = {
|
let paramsInfo: DataWebModel = {
|
||||||
url:u ,
|
url:u ,
|
||||||
@ -470,4 +355,15 @@ function ToWeb(u:string,t:string)
|
|||||||
params: paramsInfo // 添加params属性,传递自定义参数
|
params: paramsInfo // 添加params属性,传递自定义参数
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@Extend(TextInput)
|
||||||
|
function customStyle() {
|
||||||
|
.placeholderColor('#C3C3C5')
|
||||||
|
.caretColor('#fa711d')
|
||||||
|
.height(45)
|
||||||
|
.borderRadius(0)
|
||||||
|
.backgroundColor($r('app.color.white'))
|
||||||
|
.margin({right:30})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { BasicConstant,ExpertData,perfactAuth,ChangeUtil,authStore,preferenceStore,LoginInfo,
|
import { BasicConstant,ExpertData,perfactAuth,ChangeUtil,authStore,preferenceStore,LoginInfo,
|
||||||
logger } from '@itcast/basic'
|
logger,DefaultHintProWindows } from '@itcast/basic'
|
||||||
import { LengthMetrics, promptAction, router } from '@kit.ArkUI'
|
import { LengthMetrics, promptAction, router } from '@kit.ArkUI'
|
||||||
import { EditUserDataItem } from '@itcast/basic/src/main/ets/Views/EditUserDataItem'
|
import { EditUserDataItem } from '@itcast/basic/src/main/ets/Views/EditUserDataItem'
|
||||||
import { PerfactInputSheet } from '@itcast/basic/src/main/ets/Views/PerfactInputSheet'
|
import { PerfactInputSheet } from '@itcast/basic/src/main/ets/Views/PerfactInputSheet'
|
||||||
@ -11,7 +11,7 @@ import { SpecialitySelectedSheet } from '@itcast/basic/src/main/ets/Views/Specia
|
|||||||
import { emitter } from '@kit.BasicServicesKit'
|
import { emitter } from '@kit.BasicServicesKit'
|
||||||
import { BusinessError } from '@kit.BasicServicesKit';
|
import { BusinessError } from '@kit.BasicServicesKit';
|
||||||
import { rcp } from '@kit.RemoteCommunicationKit';
|
import { rcp } from '@kit.RemoteCommunicationKit';
|
||||||
import { HdNav,HdLoadingDialog } from '@itcast/basic'
|
import { HdNav } from '@itcast/basic'
|
||||||
interface extraData {
|
interface extraData {
|
||||||
uuid: string
|
uuid: string
|
||||||
}
|
}
|
||||||
@ -85,11 +85,8 @@ export struct PerfectUserDataComp {
|
|||||||
private diseaseSheetDialog!:CustomDialogController;
|
private diseaseSheetDialog!:CustomDialogController;
|
||||||
private sexSheetDilog!:CustomDialogController;
|
private sexSheetDilog!:CustomDialogController;
|
||||||
private perfactInputSheet!:CustomDialogController;
|
private perfactInputSheet!:CustomDialogController;
|
||||||
dialog: CustomDialogController = new CustomDialogController({
|
private hintWindowDialog!: CustomDialogController;
|
||||||
builder: HdLoadingDialog({ message: '提交中...' }),
|
|
||||||
customStyle: true,
|
|
||||||
alignment: DialogAlignment.Center
|
|
||||||
})
|
|
||||||
aboutToAppear() {
|
aboutToAppear() {
|
||||||
this.initSexDialog();
|
this.initSexDialog();
|
||||||
this.initPhotoDialog();
|
this.initPhotoDialog();
|
||||||
@ -99,6 +96,7 @@ export struct PerfectUserDataComp {
|
|||||||
this.initCerficatePhotoDialog();
|
this.initCerficatePhotoDialog();
|
||||||
this.initDiseaseSheetDIalog();
|
this.initDiseaseSheetDIalog();
|
||||||
this.handleState()
|
this.handleState()
|
||||||
|
this.hintPopWindowDialog();
|
||||||
// logger.info("Response this.photoPath "+this.photoPath)
|
// logger.info("Response this.photoPath "+this.photoPath)
|
||||||
|
|
||||||
// 收到eventId为1的事件后执行回调函数
|
// 收到eventId为1的事件后执行回调函数
|
||||||
@ -130,14 +128,7 @@ export struct PerfectUserDataComp {
|
|||||||
if(this.checkInfo!=''||this.checkInfo!=null)
|
if(this.checkInfo!=''||this.checkInfo!=null)
|
||||||
{
|
{
|
||||||
this.info=this.checkInfo
|
this.info=this.checkInfo
|
||||||
promptAction.showDialog({ title: '温馨提示', message: this.checkInfo,
|
this.hintWindowDialog.open();
|
||||||
buttons: [{ text: '确定', color: $r('app.color.main_color') }],
|
|
||||||
})
|
|
||||||
.then(data => {
|
|
||||||
if (data.index == 1) {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -150,7 +141,7 @@ export struct PerfectUserDataComp {
|
|||||||
{
|
{
|
||||||
this.photoPath = BasicConstant.urlImage+authStore.getUser().photo
|
this.photoPath = BasicConstant.urlImage+authStore.getUser().photo
|
||||||
this.name = authStore.getUser().realName?authStore.getUser().realName:'请输入姓名'
|
this.name = authStore.getUser().realName?authStore.getUser().realName:'请输入姓名'
|
||||||
this.sex = authStore.getUser().sex?authStore.getUser().sex == 0 ? '男' : '女':'请选择性别';
|
this.sex = authStore.getUser().sex?'请选择性别':authStore.getUser().sex == 0 ? '男' : '女';
|
||||||
this.sexnum = authStore.getUser().sex;
|
this.sexnum = authStore.getUser().sex;
|
||||||
this.hospatilName = authStore.getUser().hospitalName?authStore.getUser().hospitalName:'请选择所在医院'
|
this.hospatilName = authStore.getUser().hospitalName?authStore.getUser().hospitalName:'请选择所在医院'
|
||||||
this.officeName = authStore.getUser().officeName?authStore.getUser().officeName:'请选择科室';
|
this.officeName = authStore.getUser().officeName?authStore.getUser().officeName:'请选择科室';
|
||||||
@ -302,7 +293,6 @@ export struct PerfectUserDataComp {
|
|||||||
promptAction.showToast({ message: "请选择专长" , duration: 1000 })
|
promptAction.showToast({ message: "请选择专长" , duration: 1000 })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.dialog.open()
|
|
||||||
const updateDataUrl:string = BasicConstant.urlExpert + 'modify';
|
const updateDataUrl:string = BasicConstant.urlExpert + 'modify';
|
||||||
// 定义content,请根据实际情况选择
|
// 定义content,请根据实际情况选择
|
||||||
const postContent = new rcp.MultipartForm({
|
const postContent = new rcp.MultipartForm({
|
||||||
@ -329,7 +319,6 @@ export struct PerfectUserDataComp {
|
|||||||
const session = rcp.createSession();
|
const session = rcp.createSession();
|
||||||
session.post(updateDataUrl, postContent)
|
session.post(updateDataUrl, postContent)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.dialog.close()
|
|
||||||
let json:LoginInfo = JSON.parse(response+'') as LoginInfo;
|
let json:LoginInfo = JSON.parse(response+'') as LoginInfo;
|
||||||
if(json.code=='1') {
|
if(json.code=='1') {
|
||||||
this.state=-1
|
this.state=-1
|
||||||
@ -481,6 +470,21 @@ export struct PerfectUserDataComp {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private hintPopWindowDialog() {
|
||||||
|
this.hintWindowDialog = new CustomDialogController({
|
||||||
|
builder:DefaultHintProWindows({
|
||||||
|
controller:this.hintWindowDialog,
|
||||||
|
message:this.checkInfo,
|
||||||
|
confirmTitleColor: $r('app.color.main_color'),
|
||||||
|
selectedButton: (index:number)=>{
|
||||||
|
this.hintWindowDialog.close();
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
alignment: DialogAlignment.Center,
|
||||||
|
cornerRadius:24,
|
||||||
|
backgroundColor: ('rgba(0,0,0,0.5)'),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|||||||
@ -174,7 +174,6 @@ export struct SelectedHospitalComp {
|
|||||||
ForEach(this.provinces, (item: ProvinceOrCiry) => {
|
ForEach(this.provinces, (item: ProvinceOrCiry) => {
|
||||||
ListItem() {
|
ListItem() {
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
.width('100%')
|
|
||||||
.fontColor(item.name == this.provincerSelectedName ? $r('app.color.main_color') : '#666666')
|
.fontColor(item.name == this.provincerSelectedName ? $r('app.color.main_color') : '#666666')
|
||||||
.fontSize(17)
|
.fontSize(17)
|
||||||
.height(40)
|
.height(40)
|
||||||
@ -203,7 +202,6 @@ export struct SelectedHospitalComp {
|
|||||||
ForEach(this.cities, (item : ProvinceOrCiry) => {
|
ForEach(this.cities, (item : ProvinceOrCiry) => {
|
||||||
ListItem() {
|
ListItem() {
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
.width('100%')
|
|
||||||
.fontColor(item.name == this.citySelectedName?$r('app.color.main_color'):'#666666')
|
.fontColor(item.name == this.citySelectedName?$r('app.color.main_color'):'#666666')
|
||||||
.fontSize(17)
|
.fontSize(17)
|
||||||
.height(40)
|
.height(40)
|
||||||
@ -230,7 +228,6 @@ export struct SelectedHospitalComp {
|
|||||||
ForEach(this.hospitals, (item: Hospital) => {
|
ForEach(this.hospitals, (item: Hospital) => {
|
||||||
ListItem() {
|
ListItem() {
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
.width('100%')
|
|
||||||
// .fontColor(item.name == this.districtsSelectedName?$r('app.color.main_color'):'#666666')
|
// .fontColor(item.name == this.districtsSelectedName?$r('app.color.main_color'):'#666666')
|
||||||
.fontSize(17)
|
.fontSize(17)
|
||||||
.height(40)
|
.height(40)
|
||||||
@ -257,7 +254,6 @@ export struct SelectedHospitalComp {
|
|||||||
ForEach(this.districts, (item: ProvinceOrCiry) => {
|
ForEach(this.districts, (item: ProvinceOrCiry) => {
|
||||||
ListItem() {
|
ListItem() {
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
.width('100%')
|
|
||||||
.fontColor(item.name == this.districtsSelectedName?$r('app.color.main_color'):'#666666')
|
.fontColor(item.name == this.districtsSelectedName?$r('app.color.main_color'):'#666666')
|
||||||
.fontSize(17)
|
.fontSize(17)
|
||||||
.height(40)
|
.height(40)
|
||||||
@ -283,7 +279,6 @@ export struct SelectedHospitalComp {
|
|||||||
ForEach(this.hospitals, (item:Hospital) => {
|
ForEach(this.hospitals, (item:Hospital) => {
|
||||||
ListItem() {
|
ListItem() {
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
.width('100%')
|
|
||||||
.fontSize(17)
|
.fontSize(17)
|
||||||
.height(40)
|
.height(40)
|
||||||
.margin({left:20})
|
.margin({left:20})
|
||||||
@ -329,13 +324,11 @@ export struct SelectedHospitalComp {
|
|||||||
ForEach(this.searchHospitals, (item: Hospital) => {
|
ForEach(this.searchHospitals, (item: Hospital) => {
|
||||||
ListItem() {
|
ListItem() {
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
.width('100%')
|
|
||||||
.fontSize(17)
|
.fontSize(17)
|
||||||
.height(40)
|
.height(40)
|
||||||
.margin({ left: 20 })
|
.margin({ left: 20 })
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
//医院点击
|
//医院点击
|
||||||
this.backtoEdit(item)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -39,7 +39,6 @@ struct BootPage {
|
|||||||
dialog = new CustomDialogController({
|
dialog = new CustomDialogController({
|
||||||
builder: PrivacyDialog(),
|
builder: PrivacyDialog(),
|
||||||
cornerRadius: 4,
|
cornerRadius: 4,
|
||||||
autoCancel:false
|
|
||||||
})
|
})
|
||||||
|
|
||||||
startTick()
|
startTick()
|
||||||
@ -192,7 +191,6 @@ struct PrivacyDialog {
|
|||||||
|
|
||||||
controller: CustomDialogController
|
controller: CustomDialogController
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
Column({ space: 10 }) {
|
Column({ space: 10 }) {
|
||||||
Text('温馨提示')
|
Text('温馨提示')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user