Parcourir la source

fix: request withdraw subscribe on confirm

root il y a 16 heures
Parent
commit
8f62a4805d
2 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 3 1
      packageUser/pages/user/cash/cash.js
  2. 3 1
      packageUser/pages/user/fund/fund.js

+ 3 - 1
packageUser/pages/user/cash/cash.js

@@ -199,7 +199,9 @@ Page({
       var that = this
       console.log('that.data.has_bank',that.data.has_bank)
   //  if (that.data.has_bank) {
-        that.withdrawClick()
+        that.requestTakeCashSubscribe(function () {
+          that.withdrawClick()
+        })
   //  } else {
   //    that.setData({
   //      confirmDialog: false,

+ 3 - 1
packageUser/pages/user/fund/fund.js

@@ -215,7 +215,9 @@ Page({
     var that = this
     console.log('that.data.has_bank',that.data.has_bank)
 //  if (that.data.has_bank) {
-      that.withdrawClick()
+      that.requestTakeCashSubscribe(function () {
+        that.withdrawClick()
+      })
 //  } else {
 //    that.setData({
 //      confirmDialog: false,