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
wangliang_wd
2024-06-05 16:15:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4434cd6432bab1c253e50d26cf191cd5e3f7e1c9
4434cd64
1 parent
cf49b95e
feat:优化断网提示,优化兴趣提示
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
sight_harmony/commons/wdNetwork/src/main/ets/http/AxiosRequest.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchInterestsHobbiesPage.ets
sight_harmony/commons/wdNetwork/src/main/ets/http/AxiosRequest.ets
View file @
4434cd6
...
...
@@ -163,7 +163,7 @@ function buildErrorMsg(httpStatus: number): string {
if(httpStatus != undefined){
message = `连接出错(${httpStatus})!`;
}else{
message = `
连接出错!
`;
message = `
网络出小差了,请检查网络后重试
`;
}
}
...
...
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
View file @
4434cd6
...
...
@@ -115,7 +115,7 @@ struct LaunchAdvertisingPage {
if (this.defaultModel.linkUrl.length > 0 || this.defaultModel.objectId.length > 0){
Button(){
Row(){
Text('点击跳转至详情')
Text(
this.defaultModel.isAd == '1'?'点击跳转至详情或第三方应用':
'点击跳转至详情')
.fontSize('31lpx')
.fontColor(Color.White)
.margin({
...
...
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchInterestsHobbiesPage.ets
View file @
4434cd6
...
...
@@ -3,6 +3,7 @@ import { WDRouterRule } from 'wdRouter';
import { WDRouterPage } from 'wdRouter';
import { SPHelper } from 'wdKit/Index';
import { SpConstants } from 'wdConstant/Index';
import { CustomToast} from 'wdKit'
import { ButtonOptions, promptAction, window } from '@kit.ArkUI';
import { ParamType, TrackConstants, TrackingContent } from 'wdTracking/Index';
import { ImageKnifeComponent,ScaleType } from '@ohos/imageknife';
...
...
@@ -16,6 +17,16 @@ struct LaunchInterestsHobbiesPage {
@State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
dialogToast: CustomDialogController = new CustomDialogController({
builder: CustomToast({
msg: '请先选择您感兴趣的内容哦',
}),
autoCancel: false,
alignment: DialogAlignment.Center,
customStyle: true,
maskColor:"#00000000"
})
aboutToAppear(){
//请求接口,获取兴趣偏好数据
this.requestInterestsData()
...
...
@@ -153,11 +164,7 @@ struct LaunchInterestsHobbiesPage {
.borderRadius('10lpx')
.onClick(()=>{
if (this.selectCount == 0) {
promptAction.showToast({
message : '请先选择您感兴趣的内容哦',
duration: 2000,
bottom: '50%',
})
this.dialogToast.open()
return
}
this.saveTagIds()
...
...
Please
register
or
login
to post a comment