Browse Source

上传用户信息提交

weicu
liwei1dao 11 months ago
parent
commit
a6b54e96ce
  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.", "firstBindRewardDesc": "You've received binding rewards.",
"vipLevelLabel": "VIP Level:", "vipLevelLabel": "VIP Level:",
"expiryLabel": "Expiration:", "expiryLabel": "Expiration:",
"notActivated": "Not activated",
"aiChatCreditsLabel": "AI Chat Credits:", "aiChatCreditsLabel": "AI Chat Credits:",
"translationCreditsLabel": "Translation Credits:", "translationCreditsLabel": "Translation Credits:",
"meetingCreditsLabel": "Meeting Credits:", "meetingCreditsLabel": "Meeting Credits:",

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

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

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

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

Loading…
Cancel
Save