张善主

fix(意见反馈):入口

@@ -92,6 +92,8 @@ export function registerRouter() { @@ -92,6 +92,8 @@ export function registerRouter() {
92 return WDRouterPage.liveMorePage 92 return WDRouterPage.liveMorePage
93 } else if (action.params?.pageID == "ORDER_MORE_PAGE") { 93 } else if (action.params?.pageID == "ORDER_MORE_PAGE") {
94 return WDRouterPage.reserveMorePage 94 return WDRouterPage.reserveMorePage
  95 + } else if (action.params?.pageID == "FeedBackActivity") {
  96 + return WDRouterPage.feedBackActivity
95 } 97 }
96 return undefined 98 return undefined
97 }) 99 })
@@ -133,4 +133,7 @@ export class WDRouterPage { @@ -133,4 +133,7 @@ export class WDRouterPage {
133 static columnPage = new WDRouterPage("phone", "ets/pages/column/ColumnPage"); 133 static columnPage = new WDRouterPage("phone", "ets/pages/column/ColumnPage");
134 //展示头像 134 //展示头像
135 static showUserHeaderPage = new WDRouterPage("wdComponent", "ets/pages/ShowUserHeaderPage"); 135 static showUserHeaderPage = new WDRouterPage("wdComponent", "ets/pages/ShowUserHeaderPage");
  136 +
  137 + //意见反馈
  138 + static feedBackActivity = new WDRouterPage("wdComponent", "ets/components/FeedBackActivity");
136 } 139 }
@@ -441,4 +441,18 @@ export class ProcessUtils { @@ -441,4 +441,18 @@ export class ProcessUtils {
441 let params = { 'creatorId': creatorId } as Record<string, string>; 441 let params = { 'creatorId': creatorId } as Record<string, string>;
442 WDRouterRule.jumpWithPage(WDRouterPage.peopleShipHomePage, params) 442 WDRouterRule.jumpWithPage(WDRouterPage.peopleShipHomePage, params)
443 } 443 }
  444 +
  445 + /**
  446 + * 意见反馈
  447 + */
  448 + public static gotoFeedBackActivity() {
  449 + let taskAction: Action = {
  450 + type: 'JUMP_INNER_NEW_PAGE',
  451 + params: {
  452 + pageID: 'FeedBackActivity'
  453 + } as Params,
  454 + };
  455 + WDRouterRule.jumpWithAction(taskAction)
  456 + }
  457 +
444 } 458 }
@@ -6,6 +6,7 @@ import { ArrayList } from '@kit.ArkTS'; @@ -6,6 +6,7 @@ import { ArrayList } from '@kit.ArkTS';
6 6
7 const TAG = 'FeedBackActivity' 7 const TAG = 'FeedBackActivity'
8 // 意见反馈页面 8 // 意见反馈页面
  9 +@Entry
9 @Component 10 @Component
10 export struct FeedBackActivity { 11 export struct FeedBackActivity {
11 //UI 12 //UI
@@ -63,10 +64,7 @@ export struct FeedBackActivity { @@ -63,10 +64,7 @@ export struct FeedBackActivity {
63 .fontWeight(FontWeight.Bold) 64 .fontWeight(FontWeight.Bold)
64 .margin({ left: $r('app.float.vp_16'), top: $r('app.float.vp_12') }) 65 .margin({ left: $r('app.float.vp_16'), top: $r('app.float.vp_12') })
65 Stack() { 66 Stack() {
66 - TextInput({ placeholder: '您的宝贵意见是我们前行的动力' }) {  
67 -  
68 - }  
69 - 67 + TextInput({ placeholder: '您的宝贵意见是我们前行的动力' })
70 GridRow({ 68 GridRow({
71 gutter: { x: 2, y: 2 } 69 gutter: { x: 2, y: 2 }
72 }) { 70 }) {
@@ -97,12 +95,10 @@ export struct FeedBackActivity { @@ -97,12 +95,10 @@ export struct FeedBackActivity {
97 .fontSize($r('app.float.font_size_14')) 95 .fontSize($r('app.float.font_size_14'))
98 .fontWeight(FontWeight.Bold) 96 .fontWeight(FontWeight.Bold)
99 .margin({ left: $r('app.float.vp_12') }) 97 .margin({ left: $r('app.float.vp_12') })
100 - TextInput({ placeholder: '请输入电话或者邮箱' }) {  
101 -  
102 - } 98 + TextInput({ placeholder: '请输入电话或者邮箱' })
103 } 99 }
104 .height(44) 100 .height(44)
105 - .margin({ left: $r('app.float.vp_16'), top: $r('app.float.vp_12'), top: $r('app.float.margin_16') }) 101 + .margin({ left: $r('app.float.vp_16'), right: $r('app.float.vp_12'), top: $r('app.float.margin_16') })
106 .backgroundColor($r('app.color.color_F5F5F5')) 102 .backgroundColor($r('app.color.color_F5F5F5'))
107 .borderRadius(4) 103 .borderRadius(4)
108 } 104 }
@@ -112,7 +108,7 @@ export struct FeedBackActivity { @@ -112,7 +108,7 @@ export struct FeedBackActivity {
112 .height(44) 108 .height(44)
113 .fontColor($r('app.color.color_9E9E9E_40')) 109 .fontColor($r('app.color.color_9E9E9E_40'))
114 .fontSize($r('app.float.font_size_18')) 110 .fontSize($r('app.float.font_size_18'))
115 - .margin({ left: $r('app.float.vp_16'), top: $r('app.float.vp_16'), top: $r('app.float.vp_15') }) 111 + .margin({ left: $r('app.float.vp_16'), right: $r('app.float.vp_16'), top: $r('app.float.vp_15') })
116 .backgroundColor($r('app.color.color_ED2800_99')) 112 .backgroundColor($r('app.color.color_ED2800_99'))
117 .borderRadius(4) 113 .borderRadius(4)
118 } 114 }
1 import MinePageMoreFunctionModel from '../../viewmodel/MinePageMoreFunctionModel' 1 import MinePageMoreFunctionModel from '../../viewmodel/MinePageMoreFunctionModel'
2 -import { WDRouterRule, WDRouterPage } from 'wdRouter' 2 +import { WDRouterRule, WDRouterPage, ProcessUtils } from 'wdRouter'
3 import { Params } from 'wdBean'; 3 import { Params } from 'wdBean';
4 import { ToastUtils } from 'wdKit/Index'; 4 import { ToastUtils } from 'wdKit/Index';
5 5
@@ -77,7 +77,7 @@ export default struct MinePageMoreFunctionUI { @@ -77,7 +77,7 @@ export default struct MinePageMoreFunctionUI {
77 }else if (item.msg == "关于") { // 关于 77 }else if (item.msg == "关于") { // 关于
78 WDRouterRule.jumpWithPage(WDRouterPage.aboutPage) 78 WDRouterRule.jumpWithPage(WDRouterPage.aboutPage)
79 }else if (item.msg == "意见反馈") { // 关于 79 }else if (item.msg == "意见反馈") { // 关于
80 - ToastUtils.shortToast("待开发") 80 + ProcessUtils.gotoFeedBackActivity()
81 } 81 }
82 }) 82 })
83 .height('117lpx') 83 .height('117lpx')