Browse Source

Merge branch 'dev-2.0' of http://git.qniao.cn/dating-agency/dating_touchme_app into dev-2.0

dev-2.0
王子贤 1 month ago
parent
commit
5ce3864c84
2 changed files with 5 additions and 3 deletions
  1. 6
      lib/controller/mine/mine_controller.dart
  2. 2
      lib/pages/setting/match_task_page.dart

6
lib/controller/mine/mine_controller.dart

@ -8,6 +8,7 @@ import 'package:dating_touchme_app/pages/mine/my_wallet_page.dart';
import 'package:dating_touchme_app/pages/mine/real_name_page.dart'; import 'package:dating_touchme_app/pages/mine/real_name_page.dart';
import 'package:dating_touchme_app/pages/mine/rose_page.dart'; import 'package:dating_touchme_app/pages/mine/rose_page.dart';
import 'package:dating_touchme_app/pages/mine/user_help_center_page.dart'; import 'package:dating_touchme_app/pages/mine/user_help_center_page.dart';
import 'package:dating_touchme_app/pages/setting/match_league_page.dart';
import 'package:dating_touchme_app/pages/setting/match_spread_page.dart'; import 'package:dating_touchme_app/pages/setting/match_spread_page.dart';
import 'package:dating_touchme_app/pages/setting/match_task_page.dart'; import 'package:dating_touchme_app/pages/setting/match_task_page.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -37,7 +38,7 @@ class MineController extends GetxController {
} }
void registerMatch(int type) async { void registerMatch(int type) async {
if (GlobalData().userData!.auditProfilePhoto != null) {
if (!matchmakerFlag.value && GlobalData().userData!.auditProfilePhoto != null) {
showGeneralDialog( showGeneralDialog(
context: Get.context!, context: Get.context!,
pageBuilder: (BuildContext buildContext, Animation<double> animation, pageBuilder: (BuildContext buildContext, Animation<double> animation,
@ -61,7 +62,8 @@ class MineController extends GetxController {
return; return;
} }
if(type == 1){ if(type == 1){
await Get.to(() => MatchSpreadPage());
// await Get.to(() => MatchSpreadPage());
Get.to(() => MatchLeaguePage());
} else if(type == 2){ } else if(type == 2){
Get.to(() => MatchTaskPage()); Get.to(() => MatchTaskPage());
} }

2
lib/pages/setting/match_task_page.dart

@ -150,7 +150,7 @@ class TaskItem extends StatelessWidget {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
TDText(item.subTaskName, style: TextStyle(color: Color(0xFF333333), fontSize: 16.w)),
TDText(item.subTaskDesc, style: TextStyle(color: Color(0xFF333333), fontSize: 16.w)),
SizedBox(height: 4.w), SizedBox(height: 4.w),
TDProgress( TDProgress(
type: TDProgressType.linear, type: TDProgressType.linear,

Loading…
Cancel
Save