提价更改

master
王亚玲 2 years ago
parent f79196bbf1
commit 04f197d912

@ -52,8 +52,8 @@ class UserProvider extends ChangeNotifier {
_isLogin = true;
//app
await updateUserInfo();
await updateConSms();
await updateRefSms();
updateConSms();
updateRefSms();
}
Future logout() async {

@ -133,17 +133,19 @@ class _LoginPageState extends State<LoginPage> {
BotToast.showText(text: "过快");
return ;
}
_lastTap = DateTime.now();
var base = await apiClient.request(API.app.login,
data: {'phone': _phoneController.text, 'code': _smsCodeController.text});
if (base.code == 0) {
print("123123${base.data['token']}");
await UserTool.userProvider.setToken(base.data['token']);
Get.offAll(const TabNavigator());
}
else {
}
_lastTap = DateTime.now();
var base = await apiClient.request(API.app.login,
data: {'phone': _phoneController.text, 'code': _smsCodeController.text});
if (base.code == 0) {
print("123123${base.data['token']}");
var a= await UserTool.userProvider.setToken(base.data['token']);
print(a);
print("4567899");
Get.offAll(const TabNavigator());
}
else {
CloudToast.show(base.msg);
}
}
},
@ -220,7 +222,12 @@ class _LoginPageState extends State<LoginPage> {
await apiClient.request(API.app.captcha, data: {
'phone': _phoneController.text,
});
_beginCountDown();
if((_phoneController.text).isEmpty ){
BotToast.showText(text: "手机号不能为空");
}else{
_beginCountDown();
}
if (_cantSelected) return;
_cantSelected = true;
Future.delayed(const Duration(seconds: 1), () {

@ -16,7 +16,7 @@ class PrivacyRightsPage extends StatefulWidget {
@override
_PrivacyRightsPageState createState() => _PrivacyRightsPageState();
}
final Uri _url = Uri.parse('https://www.dxbs.vip/explain.html');
final Uri _url = Uri.parse('https://www.dxbs.vip//explain.html');
// final Telephony telephony = Telephony.instance;
// late final bool permissionsGranted;
// String body = "";

Loading…
Cancel
Save