11
This commit is contained in:
		
							parent
							
								
									8c39f40a65
								
							
						
					
					
						commit
						781a3b5372
					
				
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -235,10 +235,10 @@ | ||||||
| 				clearInterval(this.timer) | 				clearInterval(this.timer) | ||||||
| 				this.timer = null; | 				this.timer = null; | ||||||
| 			} | 			} | ||||||
| 			xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | 			// xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | ||||||
| 			wx.closeBLEConnection({ | 			// wx.closeBLEConnection({ | ||||||
| 			  deviceId: this.deviceId, | 			//   deviceId: this.deviceId, | ||||||
| 			}) | 			// }) | ||||||
| 		}, | 		}, | ||||||
| 		onHide() { | 		onHide() { | ||||||
| 			xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | 			xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | ||||||
|  | @ -904,7 +904,7 @@ | ||||||
| 								xBlufi.notifyInitBleEsp32({ | 								xBlufi.notifyInitBleEsp32({ | ||||||
| 									deviceId: this.deviceId | 									deviceId: this.deviceId | ||||||
| 								}); | 								}); | ||||||
| 								xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvents); | 								// xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvents); | ||||||
| 								this.deviceIds = options.data.deviceId | 								this.deviceIds = options.data.deviceId | ||||||
| 								this.name = this.name | 								this.name = this.name | ||||||
| 							} | 							} | ||||||
|  |  | ||||||
|  | @ -204,54 +204,62 @@ | ||||||
| 				}) | 				}) | ||||||
| 			}, | 			}, | ||||||
| 			sub() { | 			sub() { | ||||||
| 				if (this.userinfo.isReal == true) { | 				if (this.userinfo.limitWithdraw == true) { | ||||||
| 					if (this.money > this.userinfo.balance) { | 					uni.showToast({ | ||||||
| 						uni.showToast({ | 						title: this.userinfo.limitWithdrawReason, | ||||||
| 							title: '提现金额不能大于余额', | 						icon: 'none', | ||||||
| 							icon: 'none', | 						duration: 2000 | ||||||
| 							duration: 2000 | 					}) | ||||||
| 						}); | 				}else{ | ||||||
| 					} else if (this.currentindex == -1) { | 					if (this.userinfo.isReal == true) { | ||||||
| 						uni.showToast({ | 						if (this.money > this.userinfo.balance) { | ||||||
| 							title: '请选择提现方式', | 							uni.showToast({ | ||||||
| 							icon: 'none', | 								title: '提现金额不能大于余额', | ||||||
| 							duration: 2000 | 								icon: 'none', | ||||||
| 						}) | 								duration: 2000 | ||||||
| 					} else { | 							}); | ||||||
| 						this.btnmsk = true | 						} else if (this.currentindex == -1) { | ||||||
| 						let data = { | 							uni.showToast({ | ||||||
| 							money: this.money, | 								title: '请选择提现方式', | ||||||
| 							arrivalAmount: this.roundToTwoDecimalsTraditional(Number(this.money) - Number(this | 								icon: 'none', | ||||||
| 								.roundToTwoDecimalsTraditional(this.serviceRates))), | 								duration: 2000 | ||||||
| 							serviceCharge: this.roundToTwoDecimalsTraditional(this.serviceRates), | 							}) | ||||||
| 							channelId: this.channelId, | 						} else { | ||||||
| 							serviceRate: this.serviceRate, //服务费 | 							this.btnmsk = true | ||||||
| 							serviceType: this.serviceType //服务费收取方式 | 							let data = { | ||||||
| 						} | 								money: this.money, | ||||||
| 						this.$u.post('/app/bill/withdraw', data).then((res) => { | 								arrivalAmount: this.roundToTwoDecimalsTraditional(Number(this.money) - Number(this | ||||||
| 							if (res.code == 200) { | 									.roundToTwoDecimalsTraditional(this.serviceRates))), | ||||||
| 								this.getuserinfo() | 								serviceCharge: this.roundToTwoDecimalsTraditional(this.serviceRates), | ||||||
| 								uni.showToast({ | 								channelId: this.channelId, | ||||||
| 									title: '申请提现成功', | 								serviceRate: this.serviceRate, //服务费 | ||||||
| 									icon: 'success', | 								serviceType: this.serviceType //服务费收取方式 | ||||||
| 									duration: 2000 |  | ||||||
| 								}) |  | ||||||
| 								this.serviceRates = 0 |  | ||||||
| 								this.btnmsk = false |  | ||||||
| 							} else { |  | ||||||
| 								uni.showToast({ |  | ||||||
| 									title: res.msg, |  | ||||||
| 									icon: 'none', |  | ||||||
| 									duration: 2000 |  | ||||||
| 								}) |  | ||||||
| 								this.btnmsk = false |  | ||||||
| 							} | 							} | ||||||
|  | 							this.$u.post('/app/bill/withdraw', data).then((res) => { | ||||||
|  | 								if (res.code == 200) { | ||||||
|  | 									this.getuserinfo() | ||||||
|  | 									uni.showToast({ | ||||||
|  | 										title: '申请提现成功', | ||||||
|  | 										icon: 'success', | ||||||
|  | 										duration: 2000 | ||||||
|  | 									}) | ||||||
|  | 									this.serviceRates = 0 | ||||||
|  | 									this.btnmsk = false | ||||||
|  | 								} else { | ||||||
|  | 									uni.showToast({ | ||||||
|  | 										title: res.msg, | ||||||
|  | 										icon: 'none', | ||||||
|  | 										duration: 2000 | ||||||
|  | 									}) | ||||||
|  | 									this.btnmsk = false | ||||||
|  | 								} | ||||||
|  | 							}) | ||||||
|  | 						} | ||||||
|  | 					} else { | ||||||
|  | 						uni.navigateTo({ | ||||||
|  | 							url: '/page_components/shiming' | ||||||
| 						}) | 						}) | ||||||
| 					} | 					} | ||||||
| 				} else { |  | ||||||
| 					uni.navigateTo({ |  | ||||||
| 						url: '/page_components/shiming' |  | ||||||
| 					}) |  | ||||||
| 				} | 				} | ||||||
| 			}, | 			}, | ||||||
| 			getuserinfo() { | 			getuserinfo() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user