@@ -8,7 +8,6 @@ import { CardDataService } from '../common/CardDataService';
|
||||
import { BackgroundSyncService } from '../common/BackgroundSyncService';
|
||||
import { AccountStore, DavAccount } from '../common/AccountStore';
|
||||
import { ReminderService } from '../common/ReminderService';
|
||||
import { TipsPanel } from '../common/TipsPanel';
|
||||
import { DocViewer } from '../common/DocViewer';
|
||||
|
||||
const INTERVAL_OPTIONS: number[] = [1, 5, 15, 30, 60];
|
||||
@@ -38,7 +37,6 @@ struct SettingsPage {
|
||||
@State showDoc: boolean = false;
|
||||
@State docTitle: string = '';
|
||||
@State docUrl: string = '';
|
||||
@State showTips: boolean = false; // 功能引导卡片(底部弹出)
|
||||
@State defaultView: string = 'month'; // 打开 App 默认视图:month | week | agenda
|
||||
@State displayStyle: string = 'timeline'; // 日程显示方式:timeline(时间轴)| list(列表)
|
||||
private context?: common.Context;
|
||||
@@ -844,42 +842,6 @@ struct SettingsPage {
|
||||
this.openDoc(AppSettings.HELP_TITLE, AppSettings.HELP_URL);
|
||||
})
|
||||
|
||||
// 功能引导(首启引导卡片,可在设置里再看一次;bindSheet 挂在本卡片上)
|
||||
Column({ space: 8 }) {
|
||||
Row({ space: 10 }) {
|
||||
Column({ space: 2 }) {
|
||||
Text('功能引导')
|
||||
.fontSize(15)
|
||||
.fontWeight(FontWeight.Medium)
|
||||
.fontColor($r('app.color.text_primary'))
|
||||
Text('图文介绍安全、系统日历与只读 / 静音')
|
||||
.fontSize(12)
|
||||
.fontColor($r('app.color.text_secondary'))
|
||||
}
|
||||
.alignItems(HorizontalAlign.Start)
|
||||
.layoutWeight(1)
|
||||
Text('›')
|
||||
.fontSize(18)
|
||||
.fontColor($r('app.color.text_hint'))
|
||||
}
|
||||
.width('100%')
|
||||
}
|
||||
.alignItems(HorizontalAlign.Start)
|
||||
.width('100%')
|
||||
.padding(14)
|
||||
.borderRadius(12)
|
||||
.backgroundColor($r('app.color.card_bg'))
|
||||
.border({ width: 1, color: $r('app.color.shadow_color') })
|
||||
.onClick(() => {
|
||||
this.showTips = true;
|
||||
})
|
||||
.bindSheet($$this.showTips, this.tipsSheet(), {
|
||||
height: '72%',
|
||||
dragBar: true,
|
||||
showClose: true,
|
||||
title: { title: '功能引导' }
|
||||
})
|
||||
|
||||
// 隐私政策与用户协议(点击弹层;bindSheet 挂在本卡片上,避免与其它弹层冲突)
|
||||
Column({ space: 8 }) {
|
||||
Row({ space: 10 }) {
|
||||
@@ -1022,12 +984,6 @@ struct SettingsPage {
|
||||
.height('100%')
|
||||
}
|
||||
|
||||
/** 功能引导卡片(与首页共用 TipsPanel) */
|
||||
@Builder
|
||||
tipsSheet() {
|
||||
TipsPanel({ onClose: (): void => { this.showTips = false; } })
|
||||
}
|
||||
|
||||
/** 隐私政策与用户协议弹层 */
|
||||
@Builder
|
||||
legalSheet() {
|
||||
|
||||
Reference in New Issue
Block a user