Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
yuanfeiyang02
2024-03-29 12:00:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51bd4c76b22eb7c681daa5a43d4fe9a11db22d20
51bd4c76
1 parent
2e259a7f
desc:app启动页代码迁移
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
864 additions
and
24 deletions
sight_harmony/Users/ysy/.ohos/config/material/ac/1b13c8990c544a52a6656e84acd2b333
sight_harmony/Users/ysy/.ohos/config/material/ce/92f80c1506964c07af0ddd41399c8013
sight_harmony/Users/ysy/.ohos/config/material/fd/0/629f2a9f743741809e817c43f6183537
sight_harmony/Users/ysy/.ohos/config/material/fd/1/e92a2e1f667e42299286d22ec43e3c6e
sight_harmony/Users/ysy/.ohos/config/material/fd/2/fd1b860e992f4a9c906c47964dff7561
sight_harmony/build-profile.json5
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterPage.ets
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterRule.ets
sight_harmony/features/wdComponent/oh-package.json5
sight_harmony/features/wdLogin/oh-package-lock.json5
sight_harmony/features/wdLogin/src/main/resources/base/element/color.json
sight_harmony/products/phone/package-lock.json
sight_harmony/products/phone/src/main/ets/entryability/EntryAbility.ets
sight_harmony/products/phone/src/main/ets/pages/MainPage.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchPage.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/PrivacyPage.ets
sight_harmony/products/phone/src/main/ets/pages/view/CustomDialogComponent.ets
sight_harmony/products/phone/src/main/ets/pages/viewModel/NavigatorModel.ets
sight_harmony/products/phone/src/main/ets/utils/GlobalContext.ets
sight_harmony/products/phone/src/main/resources/base/element/color.json
sight_harmony/products/phone/src/main/resources/base/element/float.json
sight_harmony/products/phone/src/main/resources/base/element/string.json
sight_harmony/products/phone/src/main/resources/base/media/LaunchPage_logo.png
sight_harmony/products/phone/src/main/resources/base/media/Slice.png
sight_harmony/products/phone/src/main/resources/base/profile/main_pages.json
sight_harmony/products/phone/src/main/resources/en_US/element/string.json
sight_harmony/products/phone/src/main/resources/zh_CN/element/string.json
sight_harmony/Users/ysy/.ohos/config/material/ac/1b13c8990c544a52a6656e84acd2b333
0 → 100644
View file @
51bd4c7
a\g)&{]Ϗ
\ No newline at end of file
...
...
sight_harmony/Users/ysy/.ohos/config/material/ce/92f80c1506964c07af0ddd41399c8013
0 → 100644
View file @
51bd4c7
No preview for this file type
sight_harmony/Users/ysy/.ohos/config/material/fd/0/629f2a9f743741809e817c43f6183537
0 → 100644
View file @
51bd4c7
:Ugz4b
\ No newline at end of file
...
...
sight_harmony/Users/ysy/.ohos/config/material/fd/1/e92a2e1f667e42299286d22ec43e3c6e
0 → 100644
View file @
51bd4c7
8_bR[Js
\ No newline at end of file
...
...
sight_harmony/Users/ysy/.ohos/config/material/fd/2/fd1b860e992f4a9c906c47964dff7561
0 → 100644
View file @
51bd4c7
k1Ov7?_ӏQ
\ No newline at end of file
...
...
sight_harmony/build-profile.json5
View file @
51bd4c7
...
...
@@ -5,13 +5,13 @@
"name"
:
"default"
,
"type"
:
"HarmonyOS"
,
"material"
:
{
"certpath"
:
"/Users/ysy/.ohos/config/auto_debug_sight_harmony_com.wondertek.sight_30086000745972390.cer"
,
"storePassword"
:
"0000001AD1ABE6FB1D5AEC538066BBDCACCDF8DFB85BA89D4A7B163112F48FDFAD37222DD5D2FBC6738C"
,
"certpath"
:
"/Users/jrl/.ohos/config/auto_debug_sight_harmony_com.wondertek.sight_2850086000431478878.cer"
,
"storePassword"
:
"0000001B1B59DAB22B389A8BCD25A2C43C89DE581FD6AC3EEE1D3FC227D46727A7763AAE553A50B5E81310"
,
"keyAlias"
:
"debugKey"
,
"keyPassword"
:
"0000001AA4301CF4CB6CD92BFD749A3C09BC771B02A1E544A47EBBC557DB27E8150CB2AB5CB13029999D"
,
"profile"
:
"/Users/ysy/.ohos/config/auto_debug_sight_harmony_com.wondertek.sight_30086000745972390.p7b"
,
"keyPassword"
:
"0000001B2B0EDD642E43906A1B9A6B72A79F40316E908829B79DD96467FE5C3A8D1DF9E40957DA733DF77F"
,
"profile"
:
"/Users/jrl/.ohos/config/auto_debug_sight_harmony_com.wondertek.sight_2850086000431478878.p7b"
,
"signAlg"
:
"SHA256withECDSA"
,
"storeFile"
:
"/Users/
ysy/.ohos/config/auto_debug_sight_harmony_com.wondertek.sight_30086000745972390
.p12"
"storeFile"
:
"/Users/
jrl/.ohos/config/auto_debug_sight_harmony_com.wondertek.sight_2850086000431478878
.p12"
}
}
],
...
...
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterPage.ets
View file @
51bd4c7
...
...
@@ -70,5 +70,13 @@ export class WDRouterPage {
static guidePage = new WDRouterPage("wdLogin", "ets/pages/guide/GuidePages");
//隐私政策页面
static privacyPage = new WDRouterPage("phone", "ets/pages/launchPage/PrivacyPage");
//启动广告页面
static launchAdvertisingPage = new WDRouterPage("phone", "ets/pages/launchPage/LaunchAdvertisingPage");
//主页
static mainPage = new WDRouterPage("phone", "ets/pages/MainPage");
// static loginProtocolPage = new WDRouterPage("wdLogin", "ets/pages/login/LoginProtocolWebview");
}
...
...
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterRule.ets
View file @
51bd4c7
...
...
@@ -29,4 +29,21 @@ export class WDRouterRule {
ToastUtils.showToast("功能开发中", 1000);
}
}
static jumpWithReplacePage(page?: WDRouterPage, params?: object) {
if (page) {
if (params) {
// router.pushUrl({ url: 'pages/routerpage2', , params: params })
router.replaceUrl({ url: page.url(), params: params })
} else {
router.replaceUrl({ url: page.url() }).catch((error:Error)=>{
console.log("err",JSON.stringify(error))//100002 uri is not exist
})
}
} else {
ToastUtils.showToast("功能开发中", 1000);
}
}
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/oh-package.json5
View file @
51bd4c7
...
...
@@ -8,12 +8,12 @@
"version"
:
"1.0.0"
,
"dependencies"
:
{
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdLogin"
:
"file:../../features/wdLogin"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdWebComponent"
:
"file:../../commons/wdWebComponent"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
,
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdLogin"
:
"file:../../features/wdLogin"
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
}
...
...
sight_harmony/features/wdLogin/oh-package-lock.json5
View file @
51bd4c7
{
"lockfileVersion"
:
2
,
"lockfileVersion"
:
1
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"registryType"
:
"ohpm"
}
}
"specifiers"
:
{},
"packages"
:
{}
}
\ No newline at end of file
...
...
sight_harmony/features/wdLogin/src/main/resources/base/element/color.json
View file @
51bd4c7
...
...
@@ -3,6 +3,14 @@
{
"name"
:
"white"
,
"value"
:
"#FFFFFF"
},
{
"name"
:
"start_window_background"
,
"value"
:
"#FFFFFF"
},
{
"name"
:
"color_F9F9F9"
,
"value"
:
"#F9F9F9"
}
]
}
\ No newline at end of file
...
...
sight_harmony/products/phone/package-lock.json
View file @
51bd4c7
{
"name"
:
"
entry
"
,
"name"
:
"
phone
"
,
"lockfileVersion"
:
2
,
"requires"
:
true
,
"packages"
:
{}
...
...
sight_harmony/products/phone/src/main/ets/entryability/EntryAbility.ets
View file @
51bd4c7
...
...
@@ -32,7 +32,8 @@ export default class EntryAbility extends UIAbility {
.catch((err: Error) => {
hilog.error(0x0000, 'testTag', `setPreferredOrientation catch, error error.name : ${err.name}, error.message:${err.message}`);
})
windowStage.loadContent('pages/MainPage', (err, data) => {
//../../../../../../features/wdLogin/src/main/ets/pages/launchPage/LaunchPage
windowStage.loadContent('pages/launchPage/LaunchPage', (err, data) => {
if (err.code) {
hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');
return;
...
...
sight_harmony/products/phone/src/main/ets/pages/MainPage.ets
View file @
51bd4c7
...
...
@@ -4,6 +4,7 @@ import { BreakpointConstants } from 'wdConstant';
import { BreakpointSystem, Logger } from 'wdKit';
import router from '@ohos.router';
const TAG = 'MainPage';
@Entry
...
...
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
0 → 100644
View file @
51bd4c7
import router from '@ohos.router'
import { WDRouterRule } from 'wdRouter';
import { WDRouterPage } from 'wdRouter';
@Entry
@Component
struct LaunchAdvertisingPage {
@State time: number = 4
timer :number = -1
enter() {
// router.replaceUrl({
// url:'pages/MainPage'
// })
WDRouterRule.jumpWithReplacePage(WDRouterPage.mainPage)
}
onPageShow(){
this.timer = setInterval(() => {
this.time--
if (this.time < 1) {
this.enter()
clearInterval(this.timer)
}
},1000)
}
build(){
Column(){
Stack({alignContent:Alignment.Bottom}){
Stack({alignContent:Alignment.Bottom}){
Column(){
Image($r('app.media.app_icon'))
.margin({
top:'128lpx',left:'48lpx',right:'48lpx',bottom:'128lpx'
})
}
.justifyContent(FlexAlign.Center)
.width('100%')
.height('100%')
.margin({
bottom: 0
})
Stack({alignContent:Alignment.TopEnd}){
Button(){
Text(this.time + 's 跳过')
.fontSize('27lpx')
.fontColor(Color.White)
.margin({left:'28lpx',right:'28lpx'})
}
.width('148lpx')
.height('56lpx')
.margin({top:'54lpx',right:'19lpx'})
.backgroundColor('#80000000')
.onClick(() => {
this.enter()
})
}
.width('100%')
.height('100%')
Button(){
Row(){
Text('点击跳转至详情或第三方应用')
.fontSize('31lpx')
.fontColor(Color.White)
.margin({
left:'55lpx'
})
Image($r('app.media.Slice'))
.width('46lpx')
.height('46lpx')
.margin({right:'55lpx'})
}.alignItems(VerticalAlign.Center)
}
.width('566lpx')
.height('111lpx')
.margin({
bottom: '51lpx'
})
.backgroundColor('#80000000')
}
}
.width('100%')
.height('84%')
.backgroundColor('#FF6C75')
.margin({top:'0'})
Image($r('app.media.LaunchPage_logo'))
.width('278lpx')
.height('154lpx')
.margin({bottom: '48lpx'})
}
.width('100%')
.height('100%')
.backgroundColor(Color.White)
}
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchPage.ets
0 → 100644
View file @
51bd4c7
import media from '@ohos.multimedia.media'
import App from '@system.app'
import Router from '@system.router'
import router from '@ohos.router'
import common from '@ohos.app.ability.common'
import CustomDialogComponent from '../view/CustomDialogComponent'
import preferences from '@ohos.data.preferences'
import { GlobalContext } from '../../utils/GlobalContext'
import { WDRouterRule } from 'wdRouter';
import { WDRouterPage } from 'wdRouter';
@Entry
@Component
struct LaunchPage {
private context?: common.UIAbilityContext;
private timerId: number = 0;
private isJumpToAdvertising: boolean = false;
dialogController: CustomDialogController = new CustomDialogController({
builder: CustomDialogComponent(
{
cancel: () => {
this.onCancel();
},
confirm: () => {
this.onConfirm();
}
}),
alignment: DialogAlignment.Center,
offset: { dx: 0, dy: '-24' },
customStyle: true,
autoCancel: false
});
onCancel() {
// Exit the application.
this.context?.terminateSelf();
}
onConfirm() {
// Save privacy agreement status.
this.saveIsPrivacy();
this.jumpToAdvertisingPage();
}
jumpToAdvertisingPage() {
this.timerId = setTimeout(() => {
this.isJumpToAdvertising = true;
WDRouterRule.jumpWithPage(WDRouterPage.launchAdvertisingPage)
// router.pushUrl({
// url: 'pages/LaunchAdvertisingPage'
// }).catch((error: Error) => {
// //Logger.error(CommonConstants.LAUNCHER_PAGE_TAG, 'LauncherPage pushUrl error ' + JSON.stringify(error));
// });
}, 1000);
}
onPageShow() {
this.context = getContext(this) as common.UIAbilityContext;
// Get the operation class for saving data.
this.getDataPreferences(this).then((preferences: preferences.Preferences) => {
preferences.get('isPrivacy', true).then((value: preferences.ValueType) => {
//Logger.info(CommonConstants.LAUNCHER_PAGE_TAG, 'onPageShow value: ' + value);
if (value) {
// let isJumpPrivacy: boolean = globalThis.isJumpPrivacy ?? false;
// let isJumpPrivacy: boolean = (GlobalContext.getContext().getObject('isJumpPrivacy') as boolean) ?? false;
// if (!isJumpPrivacy) {
this.dialogController.open();
// }
} else {
this.jumpToAdvertisingPage();
}
});
});
}
onPageHide() {
if (this.isJumpToAdvertising) {
router.clear();
}
// globalThis.isJumpPrivacy = true;
//GlobalContext.getContext().setObject('isJumpPrivacy', true);
clearTimeout(this.timerId);
}
getDataPreferences(common: Object) {
return preferences.getPreferences(getContext(common), 'myStore');
}
saveIsPrivacy() {
let preferences: Promise<preferences.Preferences> = this.getDataPreferences(this);
preferences.then((result: preferences.Preferences) => {
let privacyPut = result.put('isPrivacy', false);
result.flush();
privacyPut.then(() => {
//Logger.info('LauncherPage', 'Put the value of startup Successfully.');
}).catch((err: Error) => {
//Logger.error('LauncherPage', 'Put the value of startup Failed, err: ' + err);
});
}).catch((err: Error) => {
//Logger.error('LauncherPage', 'Get the preferences Failed, err: ' + err);
});
}
build(){
Stack({alignContent:Alignment.Bottom}){
Image($r('app.media.app_icon'))
.width('278lpx')
.height('154lpx')
.margin({
bottom:'48lpx'
})
}
.width('100%')
.height('100%')
.backgroundColor(Color.White)
}
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/ets/pages/launchPage/PrivacyPage.ets
0 → 100644
View file @
51bd4c7
import webview from '@ohos.web.webview';
import router from '@ohos.router';
import { GlobalContext } from '../../utils/GlobalContext'
import { WDRouterRule } from 'wdRouter';
@Entry
@Component
struct PrivacyPage {
@State message: string = 'Hello World'
webController: webview.WebviewController = new webview.WebviewController();
//@State params: object = router.getParams();
build() {
Row() {
Column() {
// Web component loading H5.
Web({ src: 'https://www.baidu.com', controller: this.webController })
.zoomAccess(false)
.width('100%')
.height('100%')
.aspectRatio(1)
// .onConfirm((event) => {
// AlertDialog.show({
// message: Const.WEB_ALERT_DIALOG_TEXT_VALUE + event?.message,
// confirm: {
// value: $r('app.string.web_alert_dialog_button_value'),
// action: () => {
// event?.result.handleConfirm();
// }
// },
// cancel: () => {
// event?.result.handleCancel();
// }
// });
// return true;
// })
// .onErrorReceive((event) => {
// if (event?.error.getErrorInfo() === 'ERR_INTERNET_DISCONNECTED') {
// prompt.showToast({
// message: $r('app.string.internet_err'),
// duration: Const.WebConstant_DURATION
// })
// }
// if (event?.error.getErrorInfo() === 'ERR_CONNECTION_TIMED_OUT') {
// prompt.showToast({
// message: $r('app.string.internet_err'),
// duration: Const.WebConstant_DURATION
// })
// }
// })
// .onProgressChange((event) => {
// if (event?.newProgress === Const.WebConstant_PROGRESS_MAX) {
// this.isLoading = false;
// clearInterval(this.intervalLoading);
// this.intervalLoading = -1;
// }
// })
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/ets/pages/view/CustomDialogComponent.ets
0 → 100644
View file @
51bd4c7
import router from '@ohos.router';
import { GlobalContext } from '../../utils/GlobalContext'
import { NavigatorModel } from '../viewModel/NavigatorModel';
import { WDRouterRule } from 'wdRouter';
import { WDRouterPage } from 'wdRouter';
@CustomDialog
export default struct CustomDialogComponent {
controller: CustomDialogController = new CustomDialogController({'builder': ''})
cancel: Function = () => {}
confirm: Function = () => {}
build(){
Column(){
Text($r('app.string.dialog_text_title'))
.width("90%")
.fontColor($r('app.color.dialog_text_color'))
.fontSize($r('app.float.dialog_text_privacy_size'))
.textAlign(TextAlign.Center)
.fontWeight('500')
.margin({
top: $r('app.float.dialog_text_privacy_top'),
bottom: $r('app.float.dialog_text_privacy_bottom')
})
Text($r('app.string.dialog_text_subTitle'))
.fontSize($r('app.float.dialog_common_text_size'))
.width('90%')
Text($r('app.string.dialog_text_privacy_content'))
.fontSize($r('app.float.dialog_common_text_size'))
.width('90%')
Row(){
// Button(){
// Text($r('app.string.privacy_text_title_policy'))
// .fontSize('27lpx')
// .fontColor(Color.Red)
// .margin({left:'10lpx',right:'10lpx'})
// }
// .width('90%')
// .height('56lpx')
// .margin({top:'54lpx',right:'19lpx'})
// .backgroundColor('#80000000')
// .onClick(() => {
//
// })
// Button(){
// Text($r('app.string.privacy_text_title_protocol'))
// .fontSize('27lpx')
// .fontColor(Color.Red)
// .margin({left:'10lpx',right:'10lpx'})
// }
// .width('90%')
// .height('56lpx')
// .margin({top:'54lpx',right:'19lpx'})
// .backgroundColor('#80000000')
// .onClick(() => {
//
// })
// Navigator({ target: 'pages/PrivacyPage', type: NavigationType.Push }) {
// Button($r('app.string.privacy_text_title_policy'))
// .onClick(()=>{
// GlobalContext.getContext().setObject('isJumpPrivacy', true);
// })
// {
// // Text($r('app.string.privacy_text_title_policy'))
// // .fontSize($r('app.float.dialog_common_text_size'))
// // .width('50%')
// // .fontColor(Color.Red)
// // .onClick(() => {
// // GlobalContext.getContext().setObject('isJumpPrivacy', true);
// // })
// }
// .fancy(Const.MainConstant_BUTTON_MARGIN_TOP)
// }
// .params({ path: 'https://www.baidu.com', tips: '在线' } as NavigatorModel)
Text($r('app.string.privacy_text_title_policy'))
.fontSize($r('app.float.dialog_common_text_size'))
.width('40%')
.fontColor(Color.Red)
.onClick(() => {
//GlobalContext.getContext().setObject('isJumpPrivacy', false);
// WDRouterRule.jumpWithPage(WDRouterPage.privacyPage)
// router.pushUrl({
// url: 'pages/PrivacyPage'
// }).catch((error: Error) => {
// //Logger.error(CommonConstants.CUSTOM_DIALOG_TAG, 'CustomDialog pushUrl error ' + JSON.stringify(error));
// });
})
Text($r('app.string.privacy_text_title_protocol'))
.fontSize($r('app.float.dialog_common_text_size'))
.width('40%')
.fontColor(Color.Red)
.onClick(() => {
//GlobalContext.getContext().setObject('isJumpPrivacy', true);
// WDRouterRule.jumpWithPage(WDRouterPage.privacyPage)
// router.pushUrl({
// url: 'pages/PrivacyPage'
// }).catch((error: Error) => {
// //Logger.error(CommonConstants.CUSTOM_DIALOG_TAG, 'CustomDialog pushUrl error ' + JSON.stringify(error));
// });
})
}
.margin({
top:'36lpx',
bottom:'21lpx'
})
Text($r('app.string.dialog_text_privacy_statement'))
.width('90%')
.fontColor($r('app.color.dialog_text_color'))
.fontSize($r('app.float.dialog_common_text_size'))
Row() {
Text($r('app.string.dialog_button_disagree'))
.fancy()
.onClick(() => {
this.controller.close();
this.cancel();
})
Blank()
.backgroundColor($r('app.color.dialog_blank_background_color'))
.width($r('app.float.dialog_blank_width'))
.height($r('app.float.dialog_blank_height'))
Text($r('app.string.dialog_button_agree'))
.fancyAgree()
.onClick(() => {
this.controller.close();
this.confirm();
})
}
.margin({ bottom: '21lpx',top:'42lpx' })
}
.width('528lpx')
.borderRadius('15')
.backgroundColor(Color.White)
}
}
// Common text styles.
@Extend(Text) function fancy () {
.fontColor($r("app.color.dialog_fancy_text_left_color"))
.fontSize($r("app.float.dialog_fancy_text_size"))
.textAlign(TextAlign.Center)
.fontWeight(FontWeight.Medium)
.layoutWeight('1')
}
// Common text styles.
@Extend(Text) function fancyAgree () {
.fontColor($r("app.color.dialog_fancy_text_right_color"))
.fontSize($r("app.float.dialog_fancy_text_size"))
.textAlign(TextAlign.Center)
.fontWeight(FontWeight.Medium)
.layoutWeight('1')
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/ets/pages/viewModel/NavigatorModel.ets
0 → 100644
View file @
51bd4c7
/**
* NewsData params info.
*/
export class NavigatorModel {
/**
* Jumping Path.
*/
path: Resource | string = '';
/**
* Prompt message.
*/
tips: Resource | string = '';
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/ets/utils/GlobalContext.ets
0 → 100644
View file @
51bd4c7
export class GlobalContext {
private constructor() { }
private static instance: GlobalContext;
private _objects = new Map<string, Object>();
public static getContext(): GlobalContext {
if (!GlobalContext.instance) {
GlobalContext.instance = new GlobalContext();
}
return GlobalContext.instance;
}
getObject(value: string): Object | undefined {
return this._objects.get(value);
}
setObject(key: string, objectClass: Object): void {
this._objects.set(key, objectClass);
}
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/resources/base/element/color.json
View file @
51bd4c7
...
...
@@ -3,6 +3,54 @@
{
"name"
:
"start_window_background"
,
"value"
:
"#FFFFFF"
},
{
"name"
:
"color_F9F9F9"
,
"value"
:
"#F9F9F9"
},
{
"name"
:
"privacy_back_text"
,
"value"
:
"#007DFF"
},
{
"name"
:
"launcher_text_title_color"
,
"value"
:
"#182431"
},
{
"name"
:
"launcher_text_introduce_color"
,
"value"
:
"#182431"
},
{
"name"
:
"advertising_text_title_color"
,
"value"
:
"#182431"
},
{
"name"
:
"advertising_text_background_color"
,
"value"
:
"#33000000"
},
{
"name"
:
"home_page_text_color"
,
"value"
:
"#14224D"
},
{
"name"
:
"dialog_fancy_text_left_color"
,
"value"
:
"#999999"
},
{
"name"
:
"dialog_fancy_text_right_color"
,
"value"
:
"#ED2800"
},
{
"name"
:
"dialog_text_color"
,
"value"
:
"#222222"
},
{
"name"
:
"dialog_blank_background_color"
,
"value"
:
"#F5F5F5"
},
{
"name"
:
"dialog_text_statement_color"
,
"value"
:
"#007DFF"
}
]
}
\ No newline at end of file
}
...
...
sight_harmony/products/phone/src/main/resources/base/element/float.json
0 → 100644
View file @
51bd4c7
{
"float"
:
[
{
"name"
:
"float_1"
,
"value"
:
"30.6"
},
{
"name"
:
"launcher_logo_size"
,
"value"
:
"119vp"
},
{
"name"
:
"launcher_life_text_width"
,
"value"
:
"105vp"
},
{
"name"
:
"launcher_life_text_height"
,
"value"
:
"35vp"
},
{
"name"
:
"launcher_text_title_size"
,
"value"
:
"26fp"
},
{
"name"
:
"launcher_text_introduce_size"
,
"value"
:
"16fp"
},
{
"name"
:
"launcher_text_opacity"
,
"value"
:
"0.6"
},
{
"name"
:
"advertising_text_opacity"
,
"value"
:
"0.4"
},
{
"name"
:
"advertising_image_width"
,
"value"
:
"54vp"
},
{
"name"
:
"advertising_image_height"
,
"value"
:
"54vp"
},
{
"name"
:
"advertising_text_font_size"
,
"value"
:
"12fp"
},
{
"name"
:
"advertising_text_introduce_size"
,
"value"
:
"16fp"
},
{
"name"
:
"advertising_text_title_size"
,
"value"
:
"26fp"
},
{
"name"
:
"advertising_text_border_width"
,
"value"
:
"1"
},
{
"name"
:
"advertising_title_text_margin_top"
,
"value"
:
"30vp"
},
{
"name"
:
"advertising_title_text_margin_left"
,
"value"
:
"260vp"
},
{
"name"
:
"advertising_text_padding_top"
,
"value"
:
"8vp"
},
{
"name"
:
"advertising_text_padding_bottom"
,
"value"
:
"8vp"
},
{
"name"
:
"advertising_text_padding_left"
,
"value"
:
"12vp"
},
{
"name"
:
"advertising_text_padding_right"
,
"value"
:
"12vp"
},
{
"name"
:
"advertising_text_radius"
,
"value"
:
"18vp"
},
{
"name"
:
"dialog_blank_height"
,
"value"
:
"32vp"
},
{
"name"
:
"dialog_blank_width"
,
"value"
:
"1vp"
},
{
"name"
:
"dialog_common_text_size"
,
"value"
:
"18fp"
},
{
"name"
:
"dialog_text_privacy_size"
,
"value"
:
"20fp"
},
{
"name"
:
"dialog_fancy_text_size"
,
"value"
:
"18fp"
},
{
"name"
:
"dialog_text_button_left_color"
,
"value"
:
"#999999"
},
{
"name"
:
"dialog_text_button_right_color"
,
"value"
:
"#ED2800"
},
{
"name"
:
"dialog_text_privacy_bottom"
,
"value"
:
"23lpx"
},
{
"name"
:
"dialog_text_privacy_top"
,
"value"
:
"38lpx"
},
{
"name"
:
"dialog_text_declaration_bottom"
,
"value"
:
"24"
},
{
"name"
:
"dialog_text_opacity"
,
"value"
:
"0.6"
},
{
"name"
:
"privacy_text_title_size"
,
"value"
:
"20fp"
},
{
"name"
:
"privacy_back_text_size"
,
"value"
:
"20fp"
},
{
"name"
:
"privacy_text_margin_top"
,
"value"
:
"10"
},
{
"name"
:
"privacy_text_margin_bottom"
,
"value"
:
"10"
},
{
"name"
:
"privacy_bottom_text_margin"
,
"value"
:
"12"
},
{
"name"
:
"privacy_text_content_left"
,
"value"
:
"24"
},
{
"name"
:
"privacy_text_content_right"
,
"value"
:
"24"
},
{
"name"
:
"home_page_text_size"
,
"value"
:
"30vp"
}
]
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/resources/base/element/string.json
View file @
51bd4c7
...
...
@@ -11,6 +11,39 @@
{
"name"
:
"EntryAbility_label"
,
"value"
:
"$string:app_name"
},
{
"name"
:
"dialog_text_title"
,
"value"
:
"个人隐私保护指引"
},
{
"name"
:
"dialog_text_subTitle"
,
"value"
:
"欢迎您使用人民日报客户端!"
},
{
"name"
:
"dialog_text_privacy_content"
,
"value"
:
"为了更好地为您提供阅读新闻、发布评论等相关服务,我们会根据您使用服务的具体功能需要,收集必要的用户信息。您可通过阅读《隐私政策》和《用户协议》了解我们收集、使用、存储和共享个人信息的情况,以及对您个人隐私的保护措施。人民日报客户端深知个人信息对您的重要性,我们将以最高标准遵守法律法规要求,尽全力保护您的个人信息安全。"
},
{
"name"
:
"dialog_text_privacy_statement"
,
"value"
:
"如您同意,请点击“同意”开始接受"
},
{
"name"
:
"dialog_button_disagree"
,
"value"
:
"暂不使用"
},
{
"name"
:
"dialog_button_agree"
,
"value"
:
"同意"
},
{
"name"
:
"privacy_text_title_policy"
,
"value"
:
"《隐私政策》"
},
{
"name"
:
"privacy_text_title_protocol"
,
"value"
:
"《用户协议》"
}
]
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/resources/base/media/LaunchPage_logo.png
0 → 100644
View file @
51bd4c7
106 KB
sight_harmony/products/phone/src/main/resources/base/media/Slice.png
0 → 100644
View file @
51bd4c7
6.33 KB
sight_harmony/products/phone/src/main/resources/base/profile/main_pages.json
View file @
51bd4c7
...
...
@@ -6,6 +6,9 @@
"pages/ImageAndTextDetailPage"
,
"pages/MorningEveningPaperPage"
,
"pages/detail/AudioDetail"
,
"pages/detail/MultiPictureDetailPage"
"pages/detail/MultiPictureDetailPage"
,
"pages/launchPage/PrivacyPage"
,
"pages/launchPage/LaunchPage"
,
"pages/launchPage/LaunchAdvertisingPage"
]
}
\ No newline at end of file
}
...
...
sight_harmony/products/phone/src/main/resources/en_US/element/string.json
View file @
51bd4c7
...
...
@@ -11,6 +11,39 @@
{
"name"
:
"EntryAbility_label"
,
"value"
:
"$string:app_name"
},
{
"name"
:
"dialog_text_title"
,
"value"
:
"个人隐私保护指引"
},
{
"name"
:
"dialog_text_subTitle"
,
"value"
:
"欢迎您使用人民日报客户端!"
},
{
"name"
:
"dialog_text_privacy_content"
,
"value"
:
"为了更好地为您提供阅读新闻、发布评论等相关服务,我们会根据您使用服务的具体功能需要,收集必要的用户信息。您可通过阅读《隐私政策》和《用户协议》了解我们收集、使用、存储和共享个人信息的情况,以及对您个人隐私的保护措施。人民日报客户端深知个人信息对您的重要性,我们将以最高标准遵守法律法规要求,尽全力保护您的个人信息安全。"
},
{
"name"
:
"dialog_text_privacy_statement"
,
"value"
:
"如您同意,请点击“同意”开始接受"
},
{
"name"
:
"dialog_button_disagree"
,
"value"
:
"暂不使用"
},
{
"name"
:
"dialog_button_agree"
,
"value"
:
"同意"
},
{
"name"
:
"privacy_text_title_policy"
,
"value"
:
"《隐私政策》"
},
{
"name"
:
"privacy_text_title_protocol"
,
"value"
:
"《用户协议》"
}
]
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/resources/zh_CN/element/string.json
View file @
51bd4c7
...
...
@@ -11,6 +11,38 @@
{
"name"
:
"EntryAbility_label"
,
"value"
:
"$string:app_name"
},
{
"name"
:
"dialog_text_title"
,
"value"
:
"个人隐私保护指引"
},
{
"name"
:
"dialog_text_subTitle"
,
"value"
:
"欢迎您使用人民日报客户端!"
},
{
"name"
:
"dialog_text_privacy_content"
,
"value"
:
"为了更好地为您提供阅读新闻、发布评论等相关服务,我们会根据您使用服务的具体功能需要,收集必要的用户信息。您可通过阅读《隐私政策》和《用户协议》了解我们收集、使用、存储和共享个人信息的情况,以及对您个人隐私的保护措施。人民日报客户端深知个人信息对您的重要性,我们将以最高标准遵守法律法规要求,尽全力保护您的个人信息安全。"
},
{
"name"
:
"dialog_text_privacy_statement"
,
"value"
:
"如您同意,请点击“同意”开始接受"
},
{
"name"
:
"dialog_button_disagree"
,
"value"
:
"暂不使用"
},
{
"name"
:
"dialog_button_agree"
,
"value"
:
"同意"
},
{
"name"
:
"privacy_text_title_policy"
,
"value"
:
"《隐私政策》"
},
{
"name"
:
"privacy_text_title_protocol"
,
"value"
:
"《用户协议》"
}
]
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment