| | |
| | | |
| | | if status{ |
| | | let isStudent = weakSelf.students.filter({$0.isStudent == 0}).count > 0 ? true:false |
| | | //零元购 |
| | | if price == 0 && coin == 0 && course == 0{ |
| | | weakSelf.payment(type: .coin,paymentId: 0) |
| | | return |
| | | } |
| | | |
| | | PaymentView.show(money: (ali:price,wx:price,coin:coin,course:course,integral:nil),hasNotStudent: isStudent) { [weak self] type in |
| | | guard let weakSelf = self else { return } |
| | | if type == .courseNum{ |
| | |
| | | let course = weakSelf.activityDetailModel.classPrice * weakSelf.students.count |
| | | |
| | | if status{ |
| | | //零元购 |
| | | if price == 0 && coin == 0 && course == 0{ |
| | | weakSelf.payment(type: .coin,paymentId: 0) |
| | | return |
| | | } |
| | | |
| | | let isStudent = weakSelf.students.filter({$0.isStudent == 0}).count > 0 ? true:false |
| | | PaymentView.show(money: (ali:price,wx:price,coin:coin,course:course,integral:nil),hasNotStudent: isStudent) { [weak self] type in |
| | | guard let weakSelf = self else { return } |