Showing
3 changed files
with
14 additions
and
7 deletions
| @@ -163,7 +163,7 @@ function buildErrorMsg(httpStatus: number): string { | @@ -163,7 +163,7 @@ function buildErrorMsg(httpStatus: number): string { | ||
| 163 | if(httpStatus != undefined){ | 163 | if(httpStatus != undefined){ |
| 164 | message = `连接出错(${httpStatus})!`; | 164 | message = `连接出错(${httpStatus})!`; |
| 165 | }else{ | 165 | }else{ |
| 166 | - message = `连接出错!`; | 166 | + message = `网络出小差了,请检查网络后重试`; |
| 167 | } | 167 | } |
| 168 | } | 168 | } |
| 169 | 169 |
| @@ -115,7 +115,7 @@ struct LaunchAdvertisingPage { | @@ -115,7 +115,7 @@ struct LaunchAdvertisingPage { | ||
| 115 | if (this.defaultModel.linkUrl.length > 0 || this.defaultModel.objectId.length > 0){ | 115 | if (this.defaultModel.linkUrl.length > 0 || this.defaultModel.objectId.length > 0){ |
| 116 | Button(){ | 116 | Button(){ |
| 117 | Row(){ | 117 | Row(){ |
| 118 | - Text('点击跳转至详情') | 118 | + Text(this.defaultModel.isAd == '1'?'点击跳转至详情或第三方应用':'点击跳转至详情') |
| 119 | .fontSize('31lpx') | 119 | .fontSize('31lpx') |
| 120 | .fontColor(Color.White) | 120 | .fontColor(Color.White) |
| 121 | .margin({ | 121 | .margin({ |
| @@ -3,6 +3,7 @@ import { WDRouterRule } from 'wdRouter'; | @@ -3,6 +3,7 @@ import { WDRouterRule } from 'wdRouter'; | ||
| 3 | import { WDRouterPage } from 'wdRouter'; | 3 | import { WDRouterPage } from 'wdRouter'; |
| 4 | import { SPHelper } from 'wdKit/Index'; | 4 | import { SPHelper } from 'wdKit/Index'; |
| 5 | import { SpConstants } from 'wdConstant/Index'; | 5 | import { SpConstants } from 'wdConstant/Index'; |
| 6 | +import { CustomToast} from 'wdKit' | ||
| 6 | import { ButtonOptions, promptAction, window } from '@kit.ArkUI'; | 7 | import { ButtonOptions, promptAction, window } from '@kit.ArkUI'; |
| 7 | import { ParamType, TrackConstants, TrackingContent } from 'wdTracking/Index'; | 8 | import { ParamType, TrackConstants, TrackingContent } from 'wdTracking/Index'; |
| 8 | import { ImageKnifeComponent,ScaleType } from '@ohos/imageknife'; | 9 | import { ImageKnifeComponent,ScaleType } from '@ohos/imageknife'; |
| @@ -16,6 +17,16 @@ struct LaunchInterestsHobbiesPage { | @@ -16,6 +17,16 @@ struct LaunchInterestsHobbiesPage { | ||
| 16 | @State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 | 17 | @State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 |
| 17 | @State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 | 18 | @State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 |
| 18 | 19 | ||
| 20 | + dialogToast: CustomDialogController = new CustomDialogController({ | ||
| 21 | + builder: CustomToast({ | ||
| 22 | + msg: '请先选择您感兴趣的内容哦', | ||
| 23 | + }), | ||
| 24 | + autoCancel: false, | ||
| 25 | + alignment: DialogAlignment.Center, | ||
| 26 | + customStyle: true, | ||
| 27 | + maskColor:"#00000000" | ||
| 28 | + }) | ||
| 29 | + | ||
| 19 | aboutToAppear(){ | 30 | aboutToAppear(){ |
| 20 | //请求接口,获取兴趣偏好数据 | 31 | //请求接口,获取兴趣偏好数据 |
| 21 | this.requestInterestsData() | 32 | this.requestInterestsData() |
| @@ -153,11 +164,7 @@ struct LaunchInterestsHobbiesPage { | @@ -153,11 +164,7 @@ struct LaunchInterestsHobbiesPage { | ||
| 153 | .borderRadius('10lpx') | 164 | .borderRadius('10lpx') |
| 154 | .onClick(()=>{ | 165 | .onClick(()=>{ |
| 155 | if (this.selectCount == 0) { | 166 | if (this.selectCount == 0) { |
| 156 | - promptAction.showToast({ | ||
| 157 | - message : '请先选择您感兴趣的内容哦', | ||
| 158 | - duration: 2000, | ||
| 159 | - bottom: '50%', | ||
| 160 | - }) | 167 | + this.dialogToast.open() |
| 161 | return | 168 | return |
| 162 | } | 169 | } |
| 163 | this.saveTagIds() | 170 | this.saveTagIds() |
-
Please register or login to post a comment