更新默认本地语言
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:vbvs_app/component/tool/ClickableContainer.dart';
|
||||
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
|
||||
import 'package:vbvs_app/controller/main_bottom/global_controller.dart';
|
||||
import 'package:vbvs_app/controller/user_info_controller.dart';
|
||||
import 'package:vbvs_app/enum/LoginStatus.dart';
|
||||
|
||||
class EPage extends StatefulWidget {
|
||||
const EPage({super.key});
|
||||
@@ -69,7 +70,17 @@ class _EPageState extends State<EPage> {
|
||||
highlightColor: Colors.transparent,
|
||||
padding: EdgeInsets.all(0.rpx),
|
||||
onTap: () {
|
||||
TopSlideNotification.show(context, text: "待开发功能".tr);
|
||||
UserInfoController userInfoController = Get.find();
|
||||
bool isLoggedIn =
|
||||
userInfoController.model.login == LoginStatus.LOGIN.code;
|
||||
if (!isLoggedIn) {
|
||||
TopSlideNotification.show(context,
|
||||
text: "必须登录提示".tr,
|
||||
textColor: themeController.currentColor.sc9);
|
||||
Get.toNamed("/otherLoginPage");
|
||||
} else {
|
||||
TopSlideNotification.show(context, text: "待开发功能".tr);
|
||||
}
|
||||
},
|
||||
child: Container(
|
||||
// child: widget.webView,
|
||||
|
||||
Reference in New Issue
Block a user