                     if errorCode == 0{
                         SVProgressHUD.showSuccessMessage(SuccessMessage: "支付成功", ForDuration: 1
                             , completion: {
-                                
-                                self.performSegue(withIdentifier: "PushTolist", sender: nil)
-
-        
-                        })
+                                self.performSegue(withIdentifier: "PushTolist", sender: nil)})
                         return
                     }
         

        btn.addTarget(self, action: #selector(rechargeList), for: UIControlEvents.touchUpInside)
        let str : String =  String.init(format:  "%.2f", (UserModel.share().getCurrentUser()?.balance)!)
        self.moneyText.text  = str + "元"
        
        let format = NumberFormatter()
        format.numberStyle = .currency
        let account : String = format.string(from: NSNumber(value: (UserModel.share().getCurrentUser()?.balance)!))!
        let index = account.index(account.startIndex, offsetBy: 1)
        self.moneyText.text = account.substring(from: index) + "元"
        let barItem :UIBarButtonItem = UIBarButtonItem.init(customView: btn as UIView)
        self.navigationItem.rightBarButtonItem = barItem
        NotificationCenter.default.addObserver(self, selector: #selector(paysuccess(_:)), name: Notification.Name(rawValue:AppConst.WechatPay.WechatKeyErrorCode), object: nil)

    }
    //MARK: -tableView dataSource
    override   func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int{
        if section==0 {
            return 2
        }
