|
...
|
...
|
@@ -16,8 +16,16 @@ import 'package:one_key/models/checkbind_phone_model.dart'; |
|
|
|
import 'package:one_key/models/store_info.dart';
|
|
|
|
import 'package:one_key/net/dio_util.dart';
|
|
|
|
import 'package:one_key/net/http_url.dart';
|
|
|
|
import 'package:one_key/provider/coupon_provider.dart';
|
|
|
|
import 'package:one_key/provider/create_store_model.dart';
|
|
|
|
import 'package:one_key/provider/customer_making_provider.dart';
|
|
|
|
import 'package:one_key/provider/message_dialog_model.dart';
|
|
|
|
import 'package:one_key/provider/message_model.dart';
|
|
|
|
import 'package:one_key/provider/notebook_detail_model.dart';
|
|
|
|
import 'package:one_key/provider/order_food_provider.dart';
|
|
|
|
import 'package:one_key/provider/other_login_provider.dart';
|
|
|
|
import 'package:one_key/provider/remark_manager_model.dart';
|
|
|
|
import 'package:one_key/provider/upload_img_provider.dart';
|
|
|
|
import 'package:one_key/provider/user_model.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/route/navigate_service.dart';
|
|
...
|
...
|
@@ -67,8 +75,6 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
// TODO: implement initState
|
|
|
|
super.initState();
|
|
|
|
|
|
|
|
_initFluwx();
|
|
|
|
|
|
|
|
// _initFluwx();
|
|
|
|
isLogin();
|
|
|
|
|
|
...
|
...
|
@@ -167,18 +173,15 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
NavigatorUtil.goHomePage(context);
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
_getWxCode();
|
|
|
|
_checkWechat();
|
|
|
|
_getWxCode();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
///微信登陆
|
|
|
|
|
|
|
|
_wxLogin() async {
|
|
|
|
await initializeDateFormatting();
|
|
|
|
sendWeChatAuth(scope: "snsapi_userinfo");
|
|
|
|
await AmapService.instance.init(
|
|
|
|
iosKey: 'e373581528f8fd901c01dfbda236159e',
|
|
|
|
androidKey: 'dbced781d0acd36184d5b4b54da7188d');
|
|
|
|
}
|
|
|
|
|
|
|
|
///获取微信登录code
|
|
...
|
...
|
@@ -264,16 +267,6 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
initDio() {
|
|
|
|
_checkWechat();
|
|
|
|
DioUtil.openDebug();
|
|
|
|
BaseOptions options = DioUtil.getDefOptions();
|
|
|
|
options.baseUrl = HttpUrl.server_address;
|
|
|
|
HttpConfig config = new HttpConfig(
|
|
|
|
options: options, status: "ret", code: "ret", msg: "msg", data: "data");
|
|
|
|
DioUtil().setConfig(config);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
苹果登录获取用户信息
|
|
|
|
*/
|
|
...
|
...
|
@@ -420,510 +413,510 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
final double prefixIconWidth = ScreenUtil().setWidth(24);
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: MyColours.color_ffffff,
|
|
|
|
body: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _scrollController,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
// VEmptyView(218 - App.statusBarHeight),
|
|
|
|
VEmptyView(80 + App.statusBarHeight),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
"assets/logo.png",
|
|
|
|
width: ScreenUtil().setWidth(40 * 2),
|
|
|
|
height: ScreenUtil().setWidth(40 * 2),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(120),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('login_bg'),
|
|
|
|
),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// padding: EdgeInsets.only(left: ScreenUtil().setWidth(20)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// border: Border.all(
|
|
|
|
// color: MyColours.color_bff6f7,
|
|
|
|
// width: ScreenUtil().setWidth(2)),
|
|
|
|
// borderRadius:
|
|
|
|
// BorderRadius.circular(ScreenUtil().setWidth(8))),
|
|
|
|
// child: Row(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/icon_sellercode.png",
|
|
|
|
// width: prefixIconWidth,
|
|
|
|
// ),
|
|
|
|
// HEmptyView(26),
|
|
|
|
// Center(
|
|
|
|
// child: Text(
|
|
|
|
// "商户编号",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// )),
|
|
|
|
// Expanded(
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20),
|
|
|
|
// right: ScreenUtil().setWidth(20),
|
|
|
|
// top: ScreenUtil().setWidth(8)),
|
|
|
|
// child: TextField(
|
|
|
|
// controller: _sellerCodeController,
|
|
|
|
// focusNode: _sellerCodeFocusNode,
|
|
|
|
// // autofocus: _sellerCodeController.text.isEmpty,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// textBaseline: TextBaseline.alphabetic),
|
|
|
|
// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "请输入6位商户编码",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_c1c1c1,
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// ),
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// onChanged: (_) {
|
|
|
|
// setActivate();
|
|
|
|
// },
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
// )),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// padding: EdgeInsets.only(left: ScreenUtil().setWidth(20)),
|
|
|
|
// margin: EdgeInsets.only(top: ScreenUtil().setHeight(8)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// border: Border.all(
|
|
|
|
// color: MyColours.color_bff6f7,
|
|
|
|
// width: ScreenUtil().setWidth(2)),
|
|
|
|
// borderRadius:
|
|
|
|
// BorderRadius.circular(ScreenUtil().setWidth(8))),
|
|
|
|
// child: Row(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/icon_account.png",
|
|
|
|
// width: prefixIconWidth,
|
|
|
|
// ),
|
|
|
|
// HEmptyView(26),
|
|
|
|
// Text(
|
|
|
|
// "工 号",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// ),
|
|
|
|
// Expanded(
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20),
|
|
|
|
// right: ScreenUtil().setWidth(20),
|
|
|
|
// top: ScreenUtil().setWidth(8)),
|
|
|
|
// child: TextField(
|
|
|
|
// controller: _accountController,
|
|
|
|
// focusNode: _accountFocusNode,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "请输入4位工号",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_c1c1c1,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// onChanged: (_) {
|
|
|
|
// setActivate();
|
|
|
|
// },
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
// ),
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20),
|
|
|
|
// right: ScreenUtil().setWidth(27)),
|
|
|
|
// margin: EdgeInsets.only(top: ScreenUtil().setHeight(8)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// border: Border.all(
|
|
|
|
// color: MyColours.color_bff6f7,
|
|
|
|
// width: ScreenUtil().setWidth(2)),
|
|
|
|
// borderRadius:
|
|
|
|
// BorderRadius.circular(ScreenUtil().setWidth(8))),
|
|
|
|
// child: Row(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/icon_pwd.png",
|
|
|
|
// width: prefixIconWidth,
|
|
|
|
// ),
|
|
|
|
// HEmptyView(26),
|
|
|
|
// Text(
|
|
|
|
// "密 码",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// ),
|
|
|
|
// Expanded(
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20),
|
|
|
|
// right: ScreenUtil().setWidth(20),
|
|
|
|
// top: ScreenUtil().setWidth(8)),
|
|
|
|
// child: TextField(
|
|
|
|
// controller: _pwdController,
|
|
|
|
// focusNode: _pwdFocusNode,
|
|
|
|
// // autofocus: _sellerCodeController.text.isNotEmpty &&
|
|
|
|
// // _accountController.text.isNotEmpty &&
|
|
|
|
// // _pwdController.text.isEmpty,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "请输入密码",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_c1c1c1,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// onChanged: (_) {
|
|
|
|
// setActivate();
|
|
|
|
// },
|
|
|
|
// obscureText: obscureText,
|
|
|
|
// keyboardType: TextInputType.text,
|
|
|
|
// )),
|
|
|
|
// ),
|
|
|
|
// GestureDetector(
|
|
|
|
// child: Padding(
|
|
|
|
// padding: EdgeInsets.all(ScreenUtil().setWidth(10)),
|
|
|
|
// child: Image.asset(
|
|
|
|
// obscureText
|
|
|
|
// ? "assets/icon_pwd_show.png"
|
|
|
|
// : "assets/icon_pwd_hide.png",
|
|
|
|
// width: ScreenUtil().setWidth(35),
|
|
|
|
// height: ScreenUtil().setHeight(24),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// onTap: () {
|
|
|
|
// setState(() {
|
|
|
|
// obscureText = !obscureText;
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// margin: EdgeInsets.only(top: ScreenUtil().setHeight(16)),
|
|
|
|
// alignment: Alignment.centerLeft,
|
|
|
|
// child: Text(
|
|
|
|
// errorText,
|
|
|
|
// // 'hfhfhf',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_d93535,
|
|
|
|
// fontSize: ScreenUtil().setSp(16)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
VEmptyView(60),
|
|
|
|
// Consumer<UserModel>(
|
|
|
|
// builder:
|
|
|
|
// (BuildContext context, UserModel value, Widget child) {
|
|
|
|
// return GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// if (!isActivate) return;
|
|
|
|
// if (!_check) {
|
|
|
|
// Utils.showToast('请先仔细阅读并同意协议');
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// if (App.sp.containsKey('unionid')) {
|
|
|
|
// //微信登陆的时候,退出清空数据
|
|
|
|
// App.sp.remove('openid');
|
|
|
|
// App.sp.remove("unionid");
|
|
|
|
// }
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// "seller_code": "${_sellerCodeController.text}",
|
|
|
|
// "alias": "ssahdahgdafgahjkhakjgh",
|
|
|
|
// "account": "${_accountController.text}",
|
|
|
|
// "password": "${_pwdController.text}"
|
|
|
|
// };
|
|
|
|
// value.login(context, params).then((value) {
|
|
|
|
// setState(() {
|
|
|
|
// errorText = value ?? "";
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setWidth(84),
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// color: isActivate
|
|
|
|
// ? MyColours.color_2bb5b7
|
|
|
|
// : MyColours.color_2bb5b7,
|
|
|
|
// boxShadow: [
|
|
|
|
// BoxShadow(
|
|
|
|
// color: MyColours.color_26000000,
|
|
|
|
// offset: Offset(0, ScreenUtil().setWidth(4)),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
// Radius.circular(ScreenUtil().setWidth(8)))),
|
|
|
|
// child: Text(
|
|
|
|
// "登录",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(34)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
backgroundColor: MyColours.color_ffffff,
|
|
|
|
body: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _scrollController,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
_check = !_check;
|
|
|
|
});
|
|
|
|
if (_check) {
|
|
|
|
initDio();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
// color: Colors.red,
|
|
|
|
height: ScreenUtil().setWidth(110),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
right: ScreenUtil().setWidth(30),
|
|
|
|
left: ScreenUtil().setWidth(102),
|
|
|
|
bottom: ScreenUtil().setWidth(10)),
|
|
|
|
child: Image.asset(
|
|
|
|
_check
|
|
|
|
? "assets/mine_radio_sel.png"
|
|
|
|
: "assets/mine_radio_nor.png",
|
|
|
|
width: ScreenUtil().setWidth(26),
|
|
|
|
height: ScreenUtil().setWidth(26)),
|
|
|
|
)),
|
|
|
|
// HEmptyView(30),
|
|
|
|
// VEmptyView(218 - App.statusBarHeight),
|
|
|
|
VEmptyView(80 + App.statusBarHeight),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(top: ScreenUtil().setWidth(2)),
|
|
|
|
child: Text(
|
|
|
|
'已阅读并同意',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_999999),
|
|
|
|
),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
"assets/logo.png",
|
|
|
|
width: ScreenUtil().setWidth(40 * 2),
|
|
|
|
height: ScreenUtil().setWidth(40 * 2),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(120),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('login_bg'),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goWebPage(context, '软件服务协议', "xy");
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// padding: EdgeInsets.only(left: ScreenUtil().setWidth(20)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// border: Border.all(
|
|
|
|
// color: MyColours.color_bff6f7,
|
|
|
|
// width: ScreenUtil().setWidth(2)),
|
|
|
|
// borderRadius:
|
|
|
|
// BorderRadius.circular(ScreenUtil().setWidth(8))),
|
|
|
|
// child: Row(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/icon_sellercode.png",
|
|
|
|
// width: prefixIconWidth,
|
|
|
|
// ),
|
|
|
|
// HEmptyView(26),
|
|
|
|
// Center(
|
|
|
|
// child: Text(
|
|
|
|
// "商户编号",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// )),
|
|
|
|
// Expanded(
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20),
|
|
|
|
// right: ScreenUtil().setWidth(20),
|
|
|
|
// top: ScreenUtil().setWidth(8)),
|
|
|
|
// child: TextField(
|
|
|
|
// controller: _sellerCodeController,
|
|
|
|
// focusNode: _sellerCodeFocusNode,
|
|
|
|
// // autofocus: _sellerCodeController.text.isEmpty,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// textBaseline: TextBaseline.alphabetic),
|
|
|
|
// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "请输入6位商户编码",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_c1c1c1,
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// ),
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// onChanged: (_) {
|
|
|
|
// setActivate();
|
|
|
|
// },
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
// )),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// padding: EdgeInsets.only(left: ScreenUtil().setWidth(20)),
|
|
|
|
// margin: EdgeInsets.only(top: ScreenUtil().setHeight(8)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// border: Border.all(
|
|
|
|
// color: MyColours.color_bff6f7,
|
|
|
|
// width: ScreenUtil().setWidth(2)),
|
|
|
|
// borderRadius:
|
|
|
|
// BorderRadius.circular(ScreenUtil().setWidth(8))),
|
|
|
|
// child: Row(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/icon_account.png",
|
|
|
|
// width: prefixIconWidth,
|
|
|
|
// ),
|
|
|
|
// HEmptyView(26),
|
|
|
|
// Text(
|
|
|
|
// "工 号",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// ),
|
|
|
|
// Expanded(
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20),
|
|
|
|
// right: ScreenUtil().setWidth(20),
|
|
|
|
// top: ScreenUtil().setWidth(8)),
|
|
|
|
// child: TextField(
|
|
|
|
// controller: _accountController,
|
|
|
|
// focusNode: _accountFocusNode,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "请输入4位工号",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_c1c1c1,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// onChanged: (_) {
|
|
|
|
// setActivate();
|
|
|
|
// },
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
// ),
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20),
|
|
|
|
// right: ScreenUtil().setWidth(27)),
|
|
|
|
// margin: EdgeInsets.only(top: ScreenUtil().setHeight(8)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// border: Border.all(
|
|
|
|
// color: MyColours.color_bff6f7,
|
|
|
|
// width: ScreenUtil().setWidth(2)),
|
|
|
|
// borderRadius:
|
|
|
|
// BorderRadius.circular(ScreenUtil().setWidth(8))),
|
|
|
|
// child: Row(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/icon_pwd.png",
|
|
|
|
// width: prefixIconWidth,
|
|
|
|
// ),
|
|
|
|
// HEmptyView(26),
|
|
|
|
// Text(
|
|
|
|
// "密 码",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// ),
|
|
|
|
// Expanded(
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setHeight(84),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20),
|
|
|
|
// right: ScreenUtil().setWidth(20),
|
|
|
|
// top: ScreenUtil().setWidth(8)),
|
|
|
|
// child: TextField(
|
|
|
|
// controller: _pwdController,
|
|
|
|
// focusNode: _pwdFocusNode,
|
|
|
|
// // autofocus: _sellerCodeController.text.isNotEmpty &&
|
|
|
|
// // _accountController.text.isNotEmpty &&
|
|
|
|
// // _pwdController.text.isEmpty,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_353535,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "请输入密码",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_c1c1c1,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// onChanged: (_) {
|
|
|
|
// setActivate();
|
|
|
|
// },
|
|
|
|
// obscureText: obscureText,
|
|
|
|
// keyboardType: TextInputType.text,
|
|
|
|
// )),
|
|
|
|
// ),
|
|
|
|
// GestureDetector(
|
|
|
|
// child: Padding(
|
|
|
|
// padding: EdgeInsets.all(ScreenUtil().setWidth(10)),
|
|
|
|
// child: Image.asset(
|
|
|
|
// obscureText
|
|
|
|
// ? "assets/icon_pwd_show.png"
|
|
|
|
// : "assets/icon_pwd_hide.png",
|
|
|
|
// width: ScreenUtil().setWidth(35),
|
|
|
|
// height: ScreenUtil().setHeight(24),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// onTap: () {
|
|
|
|
// setState(() {
|
|
|
|
// obscureText = !obscureText;
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// margin: EdgeInsets.only(top: ScreenUtil().setHeight(16)),
|
|
|
|
// alignment: Alignment.centerLeft,
|
|
|
|
// child: Text(
|
|
|
|
// errorText,
|
|
|
|
// // 'hfhfhf',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_d93535,
|
|
|
|
// fontSize: ScreenUtil().setSp(16)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
VEmptyView(60),
|
|
|
|
// Consumer<UserModel>(
|
|
|
|
// builder:
|
|
|
|
// (BuildContext context, UserModel value, Widget child) {
|
|
|
|
// return GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// if (!isActivate) return;
|
|
|
|
// if (!_check) {
|
|
|
|
// Utils.showToast('请先仔细阅读并同意协议');
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// if (App.sp.containsKey('unionid')) {
|
|
|
|
// //微信登陆的时候,退出清空数据
|
|
|
|
// App.sp.remove('openid');
|
|
|
|
// App.sp.remove("unionid");
|
|
|
|
// }
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// "seller_code": "${_sellerCodeController.text}",
|
|
|
|
// "alias": "ssahdahgdafgahjkhakjgh",
|
|
|
|
// "account": "${_accountController.text}",
|
|
|
|
// "password": "${_pwdController.text}"
|
|
|
|
// };
|
|
|
|
// value.login(context, params).then((value) {
|
|
|
|
// setState(() {
|
|
|
|
// errorText = value ?? "";
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setWidth(84),
|
|
|
|
// width: ScreenUtil().setWidth(611),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// color: isActivate
|
|
|
|
// ? MyColours.color_2bb5b7
|
|
|
|
// : MyColours.color_2bb5b7,
|
|
|
|
// boxShadow: [
|
|
|
|
// BoxShadow(
|
|
|
|
// color: MyColours.color_26000000,
|
|
|
|
// offset: Offset(0, ScreenUtil().setWidth(4)),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
// Radius.circular(ScreenUtil().setWidth(8)))),
|
|
|
|
// child: Text(
|
|
|
|
// "登录",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(34)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
_check = !_check;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
// color: Colors.red,
|
|
|
|
height: ScreenUtil().setWidth(110),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
right: ScreenUtil().setWidth(30),
|
|
|
|
left: ScreenUtil().setWidth(102),
|
|
|
|
bottom: ScreenUtil().setWidth(10)),
|
|
|
|
child: Image.asset(
|
|
|
|
_check
|
|
|
|
? "assets/mine_radio_sel.png"
|
|
|
|
: "assets/mine_radio_nor.png",
|
|
|
|
width: ScreenUtil().setWidth(26),
|
|
|
|
height: ScreenUtil().setWidth(26)),
|
|
|
|
)),
|
|
|
|
// HEmptyView(30),
|
|
|
|
Padding(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(top: ScreenUtil().setWidth(2)),
|
|
|
|
child: Text(
|
|
|
|
'《软件服务协议》',
|
|
|
|
'已阅读并同意',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
)),
|
|
|
|
color: MyColours.color_999999),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goWebPage(context, '软件服务协议', "xy");
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(2)),
|
|
|
|
child: Text(
|
|
|
|
'《软件服务协议》',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(top: ScreenUtil().setWidth(2)),
|
|
|
|
child: Text('及',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_999999))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goWebPage(context, '隐私政策', "zc");
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(2)),
|
|
|
|
child: Text('《隐私政策》',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333))),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(top: ScreenUtil().setWidth(2)),
|
|
|
|
child: Text('及',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_999999))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goWebPage(context, '隐私政策', "zc");
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(top: ScreenUtil().setWidth(2)),
|
|
|
|
child: Text('《隐私政策》',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333))),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
//微信登录
|
|
|
|
Offstage(
|
|
|
|
offstage: !App.isInstallWx,
|
|
|
|
child: InkWell(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(90),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(30),
|
|
|
|
right: ScreenUtil().setWidth(80),
|
|
|
|
left: ScreenUtil().setWidth(80)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_55AA67,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(8))),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Image.asset(Utils.getImgPath('icon_wechat_login'),
|
|
|
|
width: ScreenUtil().setWidth(46)),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text('微信登录',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
onTap: () {
|
|
|
|
if (!_check) {
|
|
|
|
DialogUtil.openAlertDialogLogin(context, 500,
|
|
|
|
onTap: () {
|
|
|
|
initDio();
|
|
|
|
Navigator.pop(context);
|
|
|
|
//微信登录
|
|
|
|
Offstage(
|
|
|
|
offstage: !App.isInstallWx,
|
|
|
|
child: InkWell(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(90),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(30),
|
|
|
|
right: ScreenUtil().setWidth(80),
|
|
|
|
left: ScreenUtil().setWidth(80)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_55AA67,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(8))),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('icon_wechat_login'),
|
|
|
|
width: ScreenUtil().setWidth(46)),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text('微信登录',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
onTap: () {
|
|
|
|
if (!_check) {
|
|
|
|
DialogUtil.openAlertDialogLogin(context, 500,
|
|
|
|
onTap: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
_wxLogin();
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_wxLogin();
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_wxLogin();
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
//账号登录
|
|
|
|
Consumer<UserModel>(builder:
|
|
|
|
(BuildContext context, UserModel value, Widget child) {
|
|
|
|
return InkWell(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(90),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(30),
|
|
|
|
right: ScreenUtil().setWidth(80),
|
|
|
|
left: ScreenUtil().setWidth(80)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_41444B,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(8))),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text('一键订账号登录',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
onTap: () {
|
|
|
|
if (!_check) {
|
|
|
|
DialogUtil.openAlertDialogLogin(context, 500,
|
|
|
|
onTap: () {
|
|
|
|
initDio();
|
|
|
|
Navigator.pop(context);
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
//账号登录
|
|
|
|
Consumer<UserModel>(builder:
|
|
|
|
(BuildContext context, UserModel value, Widget child) {
|
|
|
|
return InkWell(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(90),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(30),
|
|
|
|
right: ScreenUtil().setWidth(80),
|
|
|
|
left: ScreenUtil().setWidth(80)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_41444B,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(8))),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text('一键订账号登录',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
onTap: () {
|
|
|
|
if (!_check) {
|
|
|
|
DialogUtil.openAlertDialogLogin(context, 500,
|
|
|
|
onTap: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
NavigatorUtil.goAccountLoginPage(context);
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
NavigatorUtil.goAccountLoginPage(context);
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
NavigatorUtil.goAccountLoginPage(context);
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
// ios登录
|
|
|
|
Platform.isAndroid
|
|
|
|
? Text('')
|
|
|
|
: Consumer<UserModel>(builder:
|
|
|
|
(BuildContext context, UserModel value, Widget child) {
|
|
|
|
return InkWell(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(90),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(30),
|
|
|
|
right: ScreenUtil().setWidth(80),
|
|
|
|
left: ScreenUtil().setWidth(80)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_E4E4E4,
|
|
|
|
width: ScreenUtil().setWidth(2)),
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(8))),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('icon_apple_login'),
|
|
|
|
width: ScreenUtil().setWidth(46)),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text('通过 Apple 登录',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_41444B,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
onTap: () {
|
|
|
|
if (!_check) {
|
|
|
|
DialogUtil.openAlertDialogLogin(context, 500,
|
|
|
|
onTap: () {
|
|
|
|
initDio();
|
|
|
|
Navigator.pop(context);
|
|
|
|
}),
|
|
|
|
// ios登录
|
|
|
|
Platform.isAndroid
|
|
|
|
? Text('')
|
|
|
|
: Consumer<UserModel>(builder: (BuildContext context,
|
|
|
|
UserModel value, Widget child) {
|
|
|
|
return InkWell(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(90),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(30),
|
|
|
|
right: ScreenUtil().setWidth(80),
|
|
|
|
left: ScreenUtil().setWidth(80)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_E4E4E4,
|
|
|
|
width: ScreenUtil().setWidth(2)),
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(8))),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'icon_apple_login'),
|
|
|
|
width: ScreenUtil().setWidth(46)),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text('通过 Apple 登录',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_41444B,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
onTap: () {
|
|
|
|
if (!_check) {
|
|
|
|
DialogUtil.openAlertDialogLogin(
|
|
|
|
context, 500, onTap: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
_iosLogin(value);
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_iosLogin(value);
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_iosLogin(value);
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
Utils.goPhone("400-000-9690");
|
|
|
|
},
|
|
|
|
child: Text('联系客服',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
decoration: TextDecoration.underline))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
}),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
Utils.goPhone("400-000-9690");
|
|
|
|
},
|
|
|
|
child: Text('联系客服',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
decoration: TextDecoration.underline))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|