更新验证码选择区号
This commit is contained in:
@@ -226,6 +226,11 @@ class BodyDeviceController extends GetControllerEx<BodyDeviceModel> {
|
||||
if (res.code == HttpStatusCodes.ok) {
|
||||
// bindDeviceNum.value = res.total!;
|
||||
deviceList.value = res.data!;
|
||||
deviceList.value.sort((a, b) {
|
||||
final int at = a['create_time'] ?? 0;
|
||||
final int bt = b['create_time'] ?? 0;
|
||||
return bt.compareTo(at);
|
||||
});
|
||||
updateAll();
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -164,8 +164,10 @@ class LoginController extends GetControllerEx<LoginModel> {
|
||||
queryUrl += "?lang=$language";
|
||||
}
|
||||
}
|
||||
UserInfoController userInfoController = Get.find();
|
||||
var data = {
|
||||
"userName": model.phone,
|
||||
"ccode":userInfoController.select_country_code.value,
|
||||
};
|
||||
if (AppConstants().ent_type == APPPackageType.HUANSHUI.code) {
|
||||
data['code'] = "hzhskj";
|
||||
@@ -232,9 +234,11 @@ class LoginController extends GetControllerEx<LoginModel> {
|
||||
queryUrl += "?lang=$language";
|
||||
}
|
||||
}
|
||||
UserInfoController userInfoController = Get.find();
|
||||
var data = {
|
||||
"userName": model.updatePhone,
|
||||
"type": 5,
|
||||
"ccode":userInfoController.select_country_code.value,
|
||||
};
|
||||
if (AppConstants().ent_type == APPPackageType.HUANSHUI.code) {
|
||||
data['code'] = "hzhskj";
|
||||
|
||||
@@ -74,6 +74,20 @@ class UserInfoController extends GetControllerEx<UserInfoModel> {
|
||||
FluwxCancelable? fluwxCancelable;
|
||||
final Fluwx fluwx = Fluwx();
|
||||
|
||||
List<Map<String, String>> country_code = [
|
||||
{
|
||||
"name": "中国",
|
||||
"id": "+86",
|
||||
},
|
||||
{
|
||||
"name": "香港",
|
||||
"id": "+852",
|
||||
},
|
||||
];
|
||||
|
||||
RxString select_country_code = "+86".obs;
|
||||
RxInt select_login_method = 1.obs;//1手机 2邮箱
|
||||
|
||||
Future<ApiResponse> uploadImg() async {
|
||||
EasyDartModule.logger.info("请求上传图片");
|
||||
DailyLogUtils.writeLog("请求上传图片");
|
||||
|
||||
Reference in New Issue
Block a user