Showing
4 changed files
with
19 additions
and
26 deletions
| @@ -26,7 +26,6 @@ export class HttpUrlUtils { | @@ -26,7 +26,6 @@ export class HttpUrlUtils { | ||
| 26 | * 启动接口(底导接口) | 26 | * 启动接口(底导接口) |
| 27 | */ | 27 | */ |
| 28 | static readonly BOTTOM_NAV_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup"; | 28 | static readonly BOTTOM_NAV_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup"; |
| 29 | - | ||
| 30 | /** | 29 | /** |
| 31 | * 展现pageInfo接口 | 30 | * 展现pageInfo接口 |
| 32 | */ | 31 | */ |
| @@ -56,12 +55,10 @@ export class HttpUrlUtils { | @@ -56,12 +55,10 @@ export class HttpUrlUtils { | ||
| 56 | * 浏览历史新增、删除接口 | 55 | * 浏览历史新增、删除接口 |
| 57 | */ | 56 | */ |
| 58 | static readonly INTERACT_BROWS_OPERATE: string = "/api/rmrb-interact/interact/zh/c/brows/operate"; | 57 | static readonly INTERACT_BROWS_OPERATE: string = "/api/rmrb-interact/interact/zh/c/brows/operate"; |
| 59 | - | ||
| 60 | /** | 58 | /** |
| 61 | * 电子报信息 | 59 | * 电子报信息 |
| 62 | */ | 60 | */ |
| 63 | static readonly E_NEWSPAPER_INFO_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/paperApi/paperTime"; | 61 | static readonly E_NEWSPAPER_INFO_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/paperApi/paperTime"; |
| 64 | - | ||
| 65 | /** | 62 | /** |
| 66 | * 电子报列表 | 63 | * 电子报列表 |
| 67 | */ | 64 | */ |
| @@ -103,22 +100,18 @@ export class HttpUrlUtils { | @@ -103,22 +100,18 @@ export class HttpUrlUtils { | ||
| 103 | * 我的收藏 | 100 | * 我的收藏 |
| 104 | */ | 101 | */ |
| 105 | static readonly APPOINTMENT_MyCollectionList_PATH: string = "/api/rmrb-interact/content/zh/c/interact"; | 102 | static readonly APPOINTMENT_MyCollectionList_PATH: string = "/api/rmrb-interact/content/zh/c/interact"; |
| 106 | - | ||
| 107 | /** | 103 | /** |
| 108 | * 个人中心 我的评论列表 | 104 | * 个人中心 我的评论列表 |
| 109 | */ | 105 | */ |
| 110 | static readonly MINE_COMMENT_LIST_DATA_PATH: string = "/api/rmrb-comment/comment/zh/c/myCommentList"; | 106 | static readonly MINE_COMMENT_LIST_DATA_PATH: string = "/api/rmrb-comment/comment/zh/c/myCommentList"; |
| 111 | - | ||
| 112 | /** | 107 | /** |
| 113 | * 个人中心 APP获取用户等级 | 108 | * 个人中心 APP获取用户等级 |
| 114 | */ | 109 | */ |
| 115 | static readonly MINE_USER_LEVEL_DATA_PATH: string = "/api/rmrb-user-point/auth/level/zh/c/queryUserLevel"; | 110 | static readonly MINE_USER_LEVEL_DATA_PATH: string = "/api/rmrb-user-point/auth/level/zh/c/queryUserLevel"; |
| 116 | - | ||
| 117 | /** | 111 | /** |
| 118 | * 个人中心 APP获取其他用户等级 | 112 | * 个人中心 APP获取其他用户等级 |
| 119 | */ | 113 | */ |
| 120 | static readonly OTHER_USER_LEVEL_DATA_PATH: string = "/api/rmrb-user-point/auth/level/zh/c/batchUser"; | 114 | static readonly OTHER_USER_LEVEL_DATA_PATH: string = "/api/rmrb-user-point/auth/level/zh/c/batchUser"; |
| 121 | - | ||
| 122 | /** | 115 | /** |
| 123 | * 个人中心 (号主/普通用户)我的基本信息 | 116 | * 个人中心 (号主/普通用户)我的基本信息 |
| 124 | */ | 117 | */ |
| @@ -159,13 +152,11 @@ export class HttpUrlUtils { | @@ -159,13 +152,11 @@ export class HttpUrlUtils { | ||
| 159 | * pageSize=20&pageNum=1&topicId=10000009445 | 152 | * pageSize=20&pageNum=1&topicId=10000009445 |
| 160 | * */ | 153 | * */ |
| 161 | static readonly MORNING_EVENING_PAGE_INFO_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/pageInfo"; | 154 | static readonly MORNING_EVENING_PAGE_INFO_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/pageInfo"; |
| 162 | - | ||
| 163 | static readonly MORNING_EVENING_COMP_INFO_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/compInfo"; | 155 | static readonly MORNING_EVENING_COMP_INFO_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/compInfo"; |
| 164 | - | ||
| 165 | private static hostUrl: string = HttpUrlUtils.HOST_PRODUCT; | 156 | private static hostUrl: string = HttpUrlUtils.HOST_PRODUCT; |
| 166 | - private static userId='' | ||
| 167 | - private static userType='' | ||
| 168 | - private static token='' | 157 | + private static userId = '' |
| 158 | + private static userType = '' | ||
| 159 | + private static token = '' | ||
| 169 | 160 | ||
| 170 | static getCommonHeaders(): HashMap<string, string> { | 161 | static getCommonHeaders(): HashMap<string, string> { |
| 171 | let headers: HashMap<string, string> = new HashMap<string, string>() | 162 | let headers: HashMap<string, string> = new HashMap<string, string>() |
| @@ -374,7 +365,7 @@ export class HttpUrlUtils { | @@ -374,7 +365,7 @@ export class HttpUrlUtils { | ||
| 374 | return url; | 365 | return url; |
| 375 | } | 366 | } |
| 376 | 367 | ||
| 377 | - static getAppLoginUrl() :string{ | 368 | + static getAppLoginUrl(): string { |
| 378 | let url = HttpUrlUtils.getHost() + "/api/rmrb-user-center/auth/zh/c/appLogin"; | 369 | let url = HttpUrlUtils.getHost() + "/api/rmrb-user-center/auth/zh/c/appLogin"; |
| 379 | return url; | 370 | return url; |
| 380 | } | 371 | } |
| @@ -513,16 +504,15 @@ export class HttpUrlUtils { | @@ -513,16 +504,15 @@ export class HttpUrlUtils { | ||
| 513 | // return headers; | 504 | // return headers; |
| 514 | // } | 505 | // } |
| 515 | 506 | ||
| 516 | - public static setUserId(userId:string){ | ||
| 517 | - HttpUrlUtils.userId=userId; | 507 | + public static setUserId(userId: string) { |
| 508 | + HttpUrlUtils.userId = userId; | ||
| 518 | } | 509 | } |
| 519 | 510 | ||
| 520 | - public static setUserType(userType:string){ | ||
| 521 | - HttpUrlUtils.userType=userType; | 511 | + public static setUserType(userType: string) { |
| 512 | + HttpUrlUtils.userType = userType; | ||
| 522 | } | 513 | } |
| 523 | 514 | ||
| 524 | - public static setUserToken(token:string){ | ||
| 525 | - HttpUrlUtils.token=token; | 515 | + public static setUserToken(token: string) { |
| 516 | + HttpUrlUtils.token = token; | ||
| 526 | } | 517 | } |
| 527 | - | ||
| 528 | } | 518 | } |
| @@ -69,9 +69,9 @@ export function registerRouter() { | @@ -69,9 +69,9 @@ export function registerRouter() { | ||
| 69 | Action2Page.register("JUMP_INNER_NEW_PAGE", (action) => { | 69 | Action2Page.register("JUMP_INNER_NEW_PAGE", (action) => { |
| 70 | if (action.params?.pageID == "E_NEWSPAPER") { | 70 | if (action.params?.pageID == "E_NEWSPAPER") { |
| 71 | return WDRouterPage.eNewspaper | 71 | return WDRouterPage.eNewspaper |
| 72 | - } else if (action.params?.pageID == "MorningEveningPaper"){ | 72 | + } else if (action.params?.pageID == "MorningEveningPaper") { |
| 73 | return WDRouterPage.morningEveningPaperPage | 73 | return WDRouterPage.morningEveningPaperPage |
| 74 | - } else if (action.params?.pageID == "IMAGE_TEXT_DETAIL"){ | 74 | + } else if (action.params?.pageID == "IMAGE_TEXT_DETAIL") { |
| 75 | return WDRouterPage.imageTextDetailPage | 75 | return WDRouterPage.imageTextDetailPage |
| 76 | } | 76 | } |
| 77 | return undefined | 77 | return undefined |
| @@ -9,6 +9,12 @@ export class WDRouterPage { | @@ -9,6 +9,12 @@ export class WDRouterPage { | ||
| 9 | this.pagePath = pagePath | 9 | this.pagePath = pagePath |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | + static getBundleInfo(){ | ||
| 13 | + let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT) | ||
| 14 | + return `@bundle:${bundleInfo.name}/${"phone"}/${"ets/pages/MainPage"}` | ||
| 15 | + } | ||
| 16 | + | ||
| 17 | + | ||
| 12 | url() { | 18 | url() { |
| 13 | let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT) | 19 | let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT) |
| 14 | return `@bundle:${bundleInfo.name}/${this.moduleName}/${this.pagePath}` | 20 | return `@bundle:${bundleInfo.name}/${this.moduleName}/${this.pagePath}` |
| @@ -38,7 +44,6 @@ export class WDRouterPage { | @@ -38,7 +44,6 @@ export class WDRouterPage { | ||
| 38 | // 音乐详情页 | 44 | // 音乐详情页 |
| 39 | static audioDetail = new WDRouterPage("phone", "ets/pages/detail/AudioDetail"); | 45 | static audioDetail = new WDRouterPage("phone", "ets/pages/detail/AudioDetail"); |
| 40 | static loginPage = new WDRouterPage("wdLogin", "ets/pages/login/LoginPage"); | 46 | static loginPage = new WDRouterPage("wdLogin", "ets/pages/login/LoginPage"); |
| 41 | - | ||
| 42 | static forgetPasswordPage = new WDRouterPage("wdLogin", "ets/pages/login/ForgetPasswordPage"); | 47 | static forgetPasswordPage = new WDRouterPage("wdLogin", "ets/pages/login/ForgetPasswordPage"); |
| 43 | //我的 预约 | 48 | //我的 预约 |
| 44 | static appointmentListPage = new WDRouterPage("wdComponent", "ets/components/page/AppointmentListPage"); | 49 | static appointmentListPage = new WDRouterPage("wdComponent", "ets/components/page/AppointmentListPage"); |
| @@ -65,10 +70,8 @@ export class WDRouterPage { | @@ -65,10 +70,8 @@ export class WDRouterPage { | ||
| 65 | static settingPage = new WDRouterPage("wdComponent", "ets/components/page/SettingPage"); | 70 | static settingPage = new WDRouterPage("wdComponent", "ets/components/page/SettingPage"); |
| 66 | // 设置密码页、设置手机号页等等 (需要传参) | 71 | // 设置密码页、设置手机号页等等 (需要传参) |
| 67 | static settingPasswordPage = new WDRouterPage("wdLogin", "ets/pages/login/SettingPasswordPage"); | 72 | static settingPasswordPage = new WDRouterPage("wdLogin", "ets/pages/login/SettingPasswordPage"); |
| 68 | - | ||
| 69 | //其他普通用户 主页 | 73 | //其他普通用户 主页 |
| 70 | static otherNormalUserHomePagePage = new WDRouterPage("wdComponent", "ets/pages/OtherNormalUserHomePage"); | 74 | static otherNormalUserHomePagePage = new WDRouterPage("wdComponent", "ets/pages/OtherNormalUserHomePage"); |
| 71 | - | ||
| 72 | static guidePage = new WDRouterPage("wdLogin", "ets/pages/guide/GuidePages"); | 75 | static guidePage = new WDRouterPage("wdLogin", "ets/pages/guide/GuidePages"); |
| 73 | 76 | ||
| 74 | //隐私政策页面 | 77 | //隐私政策页面 |
| @@ -305,7 +305,7 @@ struct LoginPage { | @@ -305,7 +305,7 @@ struct LoginPage { | ||
| 305 | router.back({ | 305 | router.back({ |
| 306 | params: { userName: data.userName, | 306 | params: { userName: data.userName, |
| 307 | userId:data.id}, | 307 | userId:data.id}, |
| 308 | - url: 'pages/MainPage' | 308 | + url: `${WDRouterPage.getBundleInfo()}` |
| 309 | } | 309 | } |
| 310 | ) | 310 | ) |
| 311 | }) | 311 | }) |
-
Please register or login to post a comment