Browse Source

增加升级红娘,对接支付查询

ios
王子贤 4 months ago
parent
commit
ef9b7defbd
4 changed files with 10 additions and 5 deletions
  1. 2
      lib/controller/mine/mine_controller.dart
  2. 2
      lib/controller/mine/rose_controller.dart
  3. 8
      lib/pages/mine/mine_page.dart
  4. 3
      lib/pages/mine/rose_history_page.dart

2
lib/controller/mine/mine_controller.dart

@ -23,7 +23,7 @@ class MineController extends GetxController {
{"icon": Assets.imagesRose, "title": "我的玫瑰", "subTitle": "新人限时福利", "path": () => RosePage()},
{"icon": Assets.imagesWallet, "title": "我的钱包", "subTitle": "提现无门槛", "path": () => MyWalletPage()},
{"icon": Assets.imagesShop, "title": "商城中心", "subTitle": "不定期更新商品", "path": () => Null},
{"icon": Assets.imagesCert, "title": "认证中心", "subTitle": "未认证", "path": () => AuthCenterPage()},
{"icon": Assets.imagesCert, "title": "认证中心", "subTitle": GlobalData().userData?.identityCard == null || GlobalData().userData?.profilePhoto == null ? "认证" : "认证", "path": () => AuthCenterPage()},
{"icon": Assets.imagesMatchmaker, "title": "红娘等级", "subTitle": "实习红娘", "path": () => MatchmakerUpdatePage()},
].obs;

2
lib/controller/mine/rose_controller.dart

@ -94,7 +94,7 @@ class RoseController extends GetxController with WidgetsBindingObserver {
SmartDialog.showToast('支付成功');
launchWX.value = false;
count.value = 0;
Get.back();
getRoseNum();
} else {
count.value += 1;
if(count.value < 3){

8
lib/pages/mine/mine_page.dart

@ -211,7 +211,7 @@ class _MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin{
runSpacing: 8.w,
children: [
...controller.blockList.map((e){
return BlockItem(item: e, showWaring: e["title"] == "认证中心", path: e["path"],);
return BlockItem(item: e, showWaring: e["title"] == "认证中心" && (GlobalData().userData?.identityCard == null || GlobalData().userData?.profilePhoto == null), path: e["path"],);
}),
],
),
@ -291,7 +291,11 @@ class _BlockItemState extends State<BlockItem> {
return InkWell(
onTap: (){
// context.pushNamed(widget.path);
Get.to(widget.path);
Get.to(widget.path)?.then((e){
setState(() {
});
});
// RouteGuardService.to.toWithAuth(widget.path, null);
},
child: Container(

3
lib/pages/mine/rose_history_page.dart

@ -188,6 +188,7 @@ class _SendItemState extends State<SendItem> {
Text(
widget.item.tradeType == 201 ? "聊天花费" :
widget.item.tradeType == 202 ? "赠送礼物" :
widget.item.tradeType == 203 ? "连麦" :
widget.item.tradeType == 101 ? "充值" : "",
style: TextStyle(
fontSize: 13.w,
@ -207,7 +208,7 @@ class _SendItemState extends State<SendItem> {
],
),
Text(
"${widget.item.tradeType == 101 ? "+" : "-"}${widget.item.tradeBalance}",
"${widget.item.tradeBalance}",
style: TextStyle(
fontSize: 13.w,
color: const Color.fromRGBO(227, 84, 84, 1)

Loading…
Cancel
Save