chendeben 1 год назад
Родитель
Сommit
990945b511
1 измененных файлов с 8 добавлено и 3 удалено
  1. 8 3
      entry/src/main/ets/pages/UserCenter.ets

+ 8 - 3
entry/src/main/ets/pages/UserCenter.ets

@@ -130,6 +130,7 @@ export struct UserCenter {
   @State payType: number = 0; // 0: 微信, 1: 支付宝
   @StorageProp('themeColor') themeColor: string = '#FF4081';
   @State isDarkMode: boolean = false
+  @State webUrl: string = CommonConstants.NEW_DUTY
   @StorageProp('currentColorMode') @Watch('onColorModeChange') currentMode: number =
     ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT;
   onColorModeChange() {
@@ -305,7 +306,7 @@ export struct UserCenter {
             if (this.hasActiveSubscription) {
               Text(this.subscriptionName)
                 .fontSize(13)
-                .fontColor(Color.Red)
+                .fontColor("#CA5010")
                 .textAlign(TextAlign.Start)
               Text('到期:' + this.subscriptionEndDate)
                 .fontSize(11)
@@ -642,7 +643,7 @@ export struct UserCenter {
               Text(plan.name)
                 .fontSize(15)
                 .fontWeight(FontWeight.Bold)
-                .fontColor('#B8860B')
+                .fontColor('#191919')
                 .margin({ top: 18, bottom: 8 })
                 .textAlign(TextAlign.Center)
 
@@ -740,7 +741,11 @@ export struct UserCenter {
           .fontSize(12)
           .fontColor('#B8860B')
           .onClick(() => {
-            router.pushUrl({ url: 'pages/PrivacyAgreement' });
+            router.pushUrl({
+              url: 'pages/WebIndex',
+              params: { titleName: '会员协议', webUrl: this.webUrl }
+            });
+            // router.pushUrl({ url: this.webUrl });
           });
       }
       .justifyContent(FlexAlign.Center)