Browse Source

优化

master
王子贤 2 months ago
parent
commit
13c22b09c1
2 changed files with 19 additions and 22 deletions
  1. 3
      lib/pages/mine/auth_center_page.dart
  2. 38
      lib/pages/mine/phone_page.dart

3
lib/pages/mine/auth_center_page.dart

@ -104,9 +104,6 @@ class AuthCenterPage extends StatelessWidget {
), ),
).onTap(() async{ ).onTap(() async{
if(item.index == 1) { if(item.index == 1) {
if(item.authed){
return;
}
await Get.to(() => PhonePage()); await Get.to(() => PhonePage());
} else if(item.index == 2){ } else if(item.index == 2){
await Get.to(() => EditInfoPage()); await Get.to(() => EditInfoPage());

38
lib/pages/mine/phone_page.dart

@ -29,25 +29,25 @@ class PhonePage extends StatelessWidget {
const SizedBox(height: 12), const SizedBox(height: 12),
Text(_encryptPhone(controller.phone.value), style: TextStyle(fontSize: 40, fontWeight: FontWeight.bold)), Text(_encryptPhone(controller.phone.value), style: TextStyle(fontSize: 40, fontWeight: FontWeight.bold)),
SizedBox(height: 64), SizedBox(height: 64),
TDButton(
text: '更换手机号码',
width: MediaQuery.of(context).size.width - 50,
size: TDButtonSize.large,
type: TDButtonType.fill,
shape: TDButtonShape.round,
style: TDButtonStyle(
textColor: Colors.white,
backgroundColor: Color(0xFF7562F9),
),
activeStyle: TDButtonStyle(
textColor: Colors.white,
backgroundColor: Color(0xC37562F9),
),
onTap: (){
controller.tabIndex.value = 1;
},
),
SizedBox(height: 200),
// TDButton(
// text: '更换手机号码',
// width: MediaQuery.of(context).size.width - 50,
// size: TDButtonSize.large,
// type: TDButtonType.fill,
// shape: TDButtonShape.round,
// style: TDButtonStyle(
// textColor: Colors.white,
// backgroundColor: Color(0xFF7562F9),
// ),
// activeStyle: TDButtonStyle(
// textColor: Colors.white,
// backgroundColor: Color(0xC37562F9),
// ),
// onTap: (){
// controller.tabIndex.value = 1;
// },
// ),
// SizedBox(height: 200),
], ],
), ),
), ),

Loading…
Cancel
Save