|
|
@@ -202,67 +202,76 @@ class _LoginPageState extends State<LoginPage> {
|
|
|
: MyColors.cD7D7D7,
|
|
|
margin: EdgeInsets.only(top: 8, bottom: 39),
|
|
|
),
|
|
|
- GestureDetector(
|
|
|
- onTap: () {
|
|
|
- if (_phoneNum.text.isEmpty ||
|
|
|
- _phoneNum.text.length != 11) {
|
|
|
- showToast('请填写正确的手机号');
|
|
|
- return;
|
|
|
- }
|
|
|
- if (_pw.text.isEmpty) {
|
|
|
- showToast('请填写密码');
|
|
|
- return;
|
|
|
- }
|
|
|
- login();
|
|
|
- },
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
- child: Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- borderRadius: BorderRadius.all(
|
|
|
- Radius.circular(20),
|
|
|
- ),
|
|
|
- gradient: LinearGradient(
|
|
|
- colors: MyColors.lg,
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Expanded(
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ if (_phoneNum.text.isEmpty ||
|
|
|
+ _phoneNum.text.length != 11) {
|
|
|
+ showToast('请填写正确的手机号');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (_pw.text.isEmpty) {
|
|
|
+ showToast('请填写密码');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ login();
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.all(
|
|
|
+ Radius.circular(22),
|
|
|
+ ),
|
|
|
+ gradient: LinearGradient(
|
|
|
+ colors: MyColors.lg,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ height: 44,
|
|
|
+ child: Text(
|
|
|
+ '登 录',
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white, fontSize: 17),
|
|
|
+ ),
|
|
|
+ alignment: Alignment.center,
|
|
|
+ padding: EdgeInsets.only(bottom: 2),
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
- height: 44,
|
|
|
- child: Text(
|
|
|
- '登 录',
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.white, fontSize: 17),
|
|
|
- ),
|
|
|
- alignment: Alignment.center,
|
|
|
- padding: EdgeInsets.only(bottom: 2),
|
|
|
- ),
|
|
|
- ),
|
|
|
- Visibility(
|
|
|
- visible: showBrowse,
|
|
|
- child: GestureDetector(
|
|
|
- onTap: () {
|
|
|
- guestLogin();
|
|
|
- },
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
- child: Container(
|
|
|
- margin: EdgeInsets.only(top: 35),
|
|
|
- decoration: BoxDecoration(
|
|
|
- borderRadius: BorderRadius.all(
|
|
|
- Radius.circular(20),
|
|
|
- ),
|
|
|
- gradient: LinearGradient(
|
|
|
- colors: MyColors.lg,
|
|
|
+ Visibility(child: Container(width: 20,),visible: showBrowse,),
|
|
|
+ Visibility(
|
|
|
+ visible: showBrowse,
|
|
|
+ child: Expanded(
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ guestLogin();
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.all(
|
|
|
+ Radius.circular(22),
|
|
|
+ ),
|
|
|
+ gradient: LinearGradient(
|
|
|
+ colors: MyColors.lg,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ height: 44,
|
|
|
+ child: Text(
|
|
|
+ '游客登录',
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white, fontSize: 17),
|
|
|
+ ),
|
|
|
+ alignment: Alignment.center,
|
|
|
+ padding: EdgeInsets.only(bottom: 2),
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
- height: 44,
|
|
|
- child: Text(
|
|
|
- '游客登录',
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.white, fontSize: 17),
|
|
|
- ),
|
|
|
- alignment: Alignment.center,
|
|
|
- padding: EdgeInsets.only(bottom: 2),
|
|
|
),
|
|
|
- ),
|
|
|
+ ],
|
|
|
),
|
|
|
+
|
|
|
// Container(
|
|
|
// alignment: Alignment.centerRight,
|
|
|
// child: GestureDetector(
|
|
|
@@ -372,7 +381,9 @@ class _LoginPageState extends State<LoginPage> {
|
|
|
}
|
|
|
|
|
|
void checkAuditStatus() {
|
|
|
- MyDio().post('/model/appStoreReview', {}, (response, hasError) {
|
|
|
+ MyDio().post('/model/appStoreReview', {
|
|
|
+ 'version':MyCookie().packageInfo.version
|
|
|
+ }, (response, hasError) {
|
|
|
if(!hasError){
|
|
|
AppStoreReviewBeanEntity e = AppStoreReviewBeanEntity().fromJson(json.decode(response.data.toString()));
|
|
|
print(e.data);
|