Przeglądaj źródła

fix:修改将消息中心修改成通知。

“HeShaoZe” 5 miesięcy temu
rodzic
commit
4bd6612173

+ 1 - 0
assets/string/base/string.xml

@@ -189,6 +189,7 @@
     </string>
 
     <string name="news_title">消息中心</string>
+    <string name="news_note">通知</string>
     <string name="news_request_title">新的好友</string>
     <string name="news_request_desc">您有新的好友申请,请及时查看</string>
     <string name="news_request_agree">已同意</string>

+ 1 - 1
lib/module/news/news_page.dart

@@ -115,7 +115,7 @@ class NewsPage extends BasePage<NewsController> {
         SizedBox(height: 18.w),
         Padding(
           padding: EdgeInsets.only(left: 12.w),
-          child: Text(StringName.newsTitle,
+          child: Text(Platform.isIOS ? StringName.newsNote : StringName.newsTitle,
               style: TextStyle(
                   fontSize: 16.sp,
                   color: ColorName.black90,

+ 5 - 6
lib/resource/string.gen.dart

@@ -154,6 +154,7 @@ class StringName {
   static String get gotIt => 'got_it'.tr; // 知道了
   static String get trackNoData => 'track_no_data'.tr; // 该时段内未查询到历史轨迹记录\n\n1.可能是该用户未登录本软件\n2.可能是该用户未运行我们的软件\n3.可能是对方未开启定位和网络连接等原因
   static String get newsTitle => 'news_title'.tr; // 消息中心
+  static String get newsNote => 'news_note'.tr; // 通知
   static String get newsRequestTitle => 'news_request_title'.tr; // 新的好友
   static String get newsRequestDesc => 'news_request_desc'.tr; // 您有新的好友申请,请及时查看
   static String get newsRequestAgree => 'news_request_agree'.tr; // 已同意
@@ -314,12 +315,9 @@ class StringName {
   static String get locationPermissionRefuseDesc => 'location_permission_refuse_desc'.tr; // 我们需要您的定位权限,以提供更准确的位置服务,如果未开启,可能会影响功能使用(如实时定位、轨迹记录等)。
   static String get oneLoginError => 'one_login_error'.tr; // 一键登录失败,请尝试验证码登录
   static String get oneLoginTxt => 'one_login_txt'.tr; // 一键登录
-  static String get trackStayLongestPlace =>
-      'track_stay_longest_place'.tr; // 停留最长地点
-  static String get trackStayShareLogoDesc =>
-      'track_stay_share_logo_desc'.tr; // 为你重要的朋友保驾护航
-  static String get trackStayShareAnalysis =>
-      'track_stay_share_analysis'.tr; // loca分析中,请稍等..
+  static String get trackStayLongestPlace => 'track_stay_longest_place'.tr; // 停留最长地点
+  static String get trackStayShareLogoDesc => 'track_stay_share_logo_desc'.tr; // 为你重要的朋友保驾护航
+  static String get trackStayShareAnalysis => 'track_stay_share_analysis'.tr; // loca分析中,请稍等..
 }
 class StringMultiSource {
   StringMultiSource._();
@@ -477,6 +475,7 @@ class StringMultiSource {
       'got_it': '知道了',
       'track_no_data': '该时段内未查询到历史轨迹记录\n\n1.可能是该用户未登录本软件\n2.可能是该用户未运行我们的软件\n3.可能是对方未开启定位和网络连接等原因',
       'news_title': '消息中心',
+      'news_note': '通知',
       'news_request_title': '新的好友',
       'news_request_desc': '您有新的好友申请,请及时查看',
       'news_request_agree': '已同意',