From 8eb3784de30ad5660efb3940569d88639f101d7d Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Fri, 21 Oct 2022 15:59:50 +0800 Subject: [PATCH] =?UTF-8?q?vip=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= =?UTF-8?q?=EF=BC=8C=20=E4=BC=98=E6=83=A0=E5=88=B8=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E6=98=AF0=E5=B0=B1=E4=B8=8D=E6=98=BE=E7=A4=BA;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/vip/vip_view/vip_top.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vip/vip_view/vip_top.dart b/lib/vip/vip_view/vip_top.dart index 0aa0fc90..4c8f0f8a 100644 --- a/lib/vip/vip_view/vip_top.dart +++ b/lib/vip/vip_view/vip_top.dart @@ -20,9 +20,9 @@ import 'package:tobias/tobias.dart' as tobias; class VipTop extends StatefulWidget { final VipCardHome vipCardHome; - final Function onRefresh; + final Function queryVipHome; - VipTop(this.vipCardHome, this.onRefresh); + VipTop(this.vipCardHome, this.queryVipHome); @override State createState() { @@ -42,7 +42,7 @@ class _VipTop extends State { payListen = weChatResponseEventHandler.listen((event) async { print("payCallback: ${event.errCode}"); if (event.errCode == 0) { - widget.onRefresh(); + widget.queryVipHome(); SmartDialog.showToast("支付成功", alignment: Alignment.center); } else { SmartDialog.showToast("支付失败", alignment: Alignment.center); @@ -96,7 +96,7 @@ class _VipTop extends State { tobias.aliPay(baseData.data["body"]).then((payRes) { if (payRes['resultStatus'] == 9000 || payRes['resultStatus'] == '9000') { - widget.onRefresh(); + widget.queryVipHome(); SmartDialog.showToast("支付成功", alignment: Alignment.center); } else {