Browse Source

上传用户信息提交

newdev_shunjiawei
liwei1dao 10 months ago
parent
commit
afb7f78cf2
  1. 1
      lib/core/translations/language/en_us.dart
  2. 3
      lib/core/translations/language/zh_cn.dart
  3. 13
      lib/modules/goods/views/goodsvip_view.dart

1
lib/core/translations/language/en_us.dart

@ -716,6 +716,7 @@ const Map<String, String> enUS = {
"firstBindRewardDesc": "You've received binding rewards.",
"vipLevelLabel": "VIP Level:",
"expiryLabel": "Expiration:",
"notActivated": "Not activated",
"aiChatCreditsLabel": "AI Chat Credits:",
"translationCreditsLabel": "Translation Credits:",
"meetingCreditsLabel": "Meeting Credits:",

3
lib/core/translations/language/zh_cn.dart

@ -698,7 +698,8 @@ const Map<String, String> zhCN = {
"firstBindRewardTitle": "Welcome Reward",
"firstBindRewardDesc": "You've received binding rewards.",
"vipLevelLabel": "VIP Level:",
"expiryLabel": "Expiration:",
"expiryLabel": "到期时间:",
"notActivated": "未激活",
"aiChatCreditsLabel": "AI Chat Credits:",
"translationCreditsLabel": "Translation Credits:",
"meetingCreditsLabel": "Meeting Credits:",

13
lib/modules/goods/views/goodsvip_view.dart

@ -34,6 +34,7 @@ class GoodsvipView extends GetView<GoodsvipController> {
centerTitle: true,
),
body: Obx(() {
final userTick = User.refreshTick.value;
Widget content;
if (controller.loading.value) {
content = const Center(child: CircularProgressIndicator());
@ -44,12 +45,7 @@ class GoodsvipView extends GetView<GoodsvipController> {
for (final g in controller.items) {
grouped.putIfAbsent(g.usagetype, () => []).add(g);
}
final order = [
UsageType.Vip,
UsageType.Translation,
UsageType.Meet,
UsageType.AI,
];
final order = [UsageType.Vip, UsageType.Translation, UsageType.Meet];
final children = <Widget>[];
children.add(_buildFeaturesSection(isDarkMode));
children.add(SizedBox(height: 16.h));
@ -70,6 +66,7 @@ class GoodsvipView extends GetView<GoodsvipController> {
children.add(_buildFooterSection(isDarkMode));
content = ListView(
key: ValueKey(userTick),
padding: EdgeInsets.all(16.w),
children: children,
);
@ -282,7 +279,9 @@ class GoodsvipView extends GetView<GoodsvipController> {
: DateTime.fromMillisecondsSinceEpoch(vipexptime * 1000);
}
// titleStr = 'Vip $viplv';
vipSubtitle = expiry != null ? _fmtDate(expiry) : '未激活';
vipSubtitle = expiry != null
? '${'expiryLabel'.tr}${_fmtDate(expiry)}'
: 'notActivated'.tr;
}
return Container(
padding: EdgeInsets.all(16.w),

Loading…
Cancel
Save