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) | ||||
| 				this.timer = null; | ||||
| 			} | ||||
| 			xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | ||||
| 			wx.closeBLEConnection({ | ||||
| 			  deviceId: this.deviceId, | ||||
| 			}) | ||||
| 			// xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | ||||
| 			// wx.closeBLEConnection({ | ||||
| 			//   deviceId: this.deviceId, | ||||
| 			// }) | ||||
| 		}, | ||||
| 		onHide() { | ||||
| 			xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | ||||
|  | @ -904,7 +904,7 @@ | |||
| 								xBlufi.notifyInitBleEsp32({ | ||||
| 									deviceId: this.deviceId | ||||
| 								}); | ||||
| 								xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvents); | ||||
| 								// xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvents); | ||||
| 								this.deviceIds = options.data.deviceId | ||||
| 								this.name = this.name | ||||
| 							} | ||||
|  |  | |||
|  | @ -204,54 +204,62 @@ | |||
| 				}) | ||||
| 			}, | ||||
| 			sub() { | ||||
| 				if (this.userinfo.isReal == true) { | ||||
| 					if (this.money > this.userinfo.balance) { | ||||
| 						uni.showToast({ | ||||
| 							title: '提现金额不能大于余额', | ||||
| 							icon: 'none', | ||||
| 							duration: 2000 | ||||
| 						}); | ||||
| 					} else if (this.currentindex == -1) { | ||||
| 						uni.showToast({ | ||||
| 							title: '请选择提现方式', | ||||
| 							icon: 'none', | ||||
| 							duration: 2000 | ||||
| 						}) | ||||
| 					} else { | ||||
| 						this.btnmsk = true | ||||
| 						let data = { | ||||
| 							money: this.money, | ||||
| 							arrivalAmount: this.roundToTwoDecimalsTraditional(Number(this.money) - Number(this | ||||
| 								.roundToTwoDecimalsTraditional(this.serviceRates))), | ||||
| 							serviceCharge: this.roundToTwoDecimalsTraditional(this.serviceRates), | ||||
| 							channelId: this.channelId, | ||||
| 							serviceRate: this.serviceRate, //服务费 | ||||
| 							serviceType: this.serviceType //服务费收取方式 | ||||
| 						} | ||||
| 						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 | ||||
| 				if (this.userinfo.limitWithdraw == true) { | ||||
| 					uni.showToast({ | ||||
| 						title: this.userinfo.limitWithdrawReason, | ||||
| 						icon: 'none', | ||||
| 						duration: 2000 | ||||
| 					}) | ||||
| 				}else{ | ||||
| 					if (this.userinfo.isReal == true) { | ||||
| 						if (this.money > this.userinfo.balance) { | ||||
| 							uni.showToast({ | ||||
| 								title: '提现金额不能大于余额', | ||||
| 								icon: 'none', | ||||
| 								duration: 2000 | ||||
| 							}); | ||||
| 						} else if (this.currentindex == -1) { | ||||
| 							uni.showToast({ | ||||
| 								title: '请选择提现方式', | ||||
| 								icon: 'none', | ||||
| 								duration: 2000 | ||||
| 							}) | ||||
| 						} else { | ||||
| 							this.btnmsk = true | ||||
| 							let data = { | ||||
| 								money: this.money, | ||||
| 								arrivalAmount: this.roundToTwoDecimalsTraditional(Number(this.money) - Number(this | ||||
| 									.roundToTwoDecimalsTraditional(this.serviceRates))), | ||||
| 								serviceCharge: this.roundToTwoDecimalsTraditional(this.serviceRates), | ||||
| 								channelId: this.channelId, | ||||
| 								serviceRate: this.serviceRate, //服务费 | ||||
| 								serviceType: this.serviceType //服务费收取方式 | ||||
| 							} | ||||
| 							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() { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user