更新在线客服

This commit is contained in:
wyf
2025-07-21 17:17:06 +08:00
parent 210617c6ff
commit a005fb7714
9 changed files with 177 additions and 98 deletions

View File

@@ -91,8 +91,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
textColor: themeController.currentColor.sc9);
return;
}
String msg = await controller.loginByWechatCode(code);
if (msg.isEmpty) {
int rescode = await controller.loginByWechatCode(code);
if (rescode == 1) {
// TODO 操作全部跳转页面前成功以后移除监听,防止重复监听,其他方式登录成功也需要移出监听
controller.fluwxCancelable?.cancel();
// 登录成功移出网络检查监听
@@ -1785,25 +1785,29 @@ class MHTLoginPage extends GetView<MHTLoginController> {
borderRadius: 999.rpx,
padding: EdgeInsets.zero,
onTap: () async {
//loginController.model.isIos == true &&
// if (loginController
// .model.register_agree ==
// null ||
// loginController
// .model.register_agree !=
// true) {
// TopSlideNotification.show(
// context,
// text: "登录页.未同意协议".tr,
// textColor:
// themeController.currentColor.sc9,
// );
// return;
// }
// await loginController
// .wxLoginSendAuth(context);
TopSlideNotification.show(context,
text: "测试阶段,暂不支持".tr);
// loginController.model.isIos == true &&
MHTRegisterController
registerController = Get.find();
if (registerController
.model.register_agree ==
null ||
registerController
.model.register_agree !=
true) {
TopSlideNotification.show(
context,
text: "登录页.未同意协议".tr,
textColor:
themeController.currentColor.sc9,
);
return;
}
MHTLoginController loginController =
Get.find();
await loginController
.wxLoginSendAuth();
// TopSlideNotification.show(context,
// text: "测试阶段,暂不支持".tr);
},
child: Container(
width: 90.rpx,