更新
This commit is contained in:
@@ -10,6 +10,7 @@ import 'package:get_storage/get_storage.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
||||
import 'package:vbvs_app/common/color/app_uri_status.dart';
|
||||
import 'package:vbvs_app/common/util/CommonVariables.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/common/util/requestWithLog.dart';
|
||||
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
|
||||
@@ -231,6 +232,21 @@ class LoginController extends GetControllerEx<LoginModel> {
|
||||
return apiResponse;
|
||||
}
|
||||
|
||||
Future<void> openWeChatCustomerService(BuildContext context) async {
|
||||
bool isWeChatInstalled = await fluwx.isWeChatInstalled;
|
||||
if (!isWeChatInstalled) {
|
||||
TopSlideNotification.show(context,
|
||||
text: "微信客服提示".tr,
|
||||
textColor: themeController.currentColor.sc9);
|
||||
return;
|
||||
}
|
||||
TopSlideNotification.show(context,
|
||||
text: "打开微信客服提示".tr, textColor: themeController.currentColor.sc1);
|
||||
await fluwx.open(
|
||||
target: CustomerServiceChat(
|
||||
corpId: CommonVariables.wxCorpId, url: CommonVariables.wxKfUrl));
|
||||
}
|
||||
|
||||
//退出登录
|
||||
// Future<void> logout() async {
|
||||
// await repository.logout();
|
||||
|
||||
Reference in New Issue
Block a user