更新验证码选择区号

This commit is contained in:
wyf
2025-12-10 15:22:17 +08:00
parent 793dddfba8
commit fb5a17830b
19 changed files with 671 additions and 438 deletions

View File

@@ -10,6 +10,7 @@ import 'package:vbvs_app/common/util/DailyLogUtils.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';
import 'package:vbvs_app/controller/user_info_controller.dart';
import 'package:vbvs_app/model/api_response.dart';
import 'package:vbvs_app/model/user_data.dart';
@@ -112,9 +113,11 @@ class AuthBindTelController extends GetControllerEx<AuthBindTelModel> {
String serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.send_code;
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
UserInfoController userInfoController = Get.find();
var data = {
"userName": model.phone!,
'type': 5,
"ccode":userInfoController.select_country_code.value,
};
if (img != null) {
if (img!['code'] != null) {

View File

@@ -143,8 +143,8 @@ class BindTelWidget extends GetView<AuthBindTelController> {
),
),
Padding(
padding:
EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
padding: EdgeInsetsDirectional.fromSTEB(
0, 16.rpx, 0, 0),
child: Container(
width: bodysize!.maxWidth,
height: bodysize!.maxHeight * 0.06,
@@ -469,8 +469,10 @@ class BindTelWidget extends GetView<AuthBindTelController> {
text: message);
return;
}
if (authBindTelController.model.code == null ||
authBindTelController.model.code!.isEmpty) {
if (authBindTelController.model.code ==
null ||
authBindTelController
.model.code!.isEmpty) {
message = "请输入验证码".tr;
TopSlideNotification.show(context,
text: message);