|
|
@@ -93,22 +93,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleChange () {
|
|
|
- if (this.form.toUserName.trim() != userInfo.userName()){
|
|
|
- this.loading = true
|
|
|
- network.getData('user/full-info', {userName: this.form.toUserName}).then(response => {
|
|
|
- console.log(userInfo.userName())
|
|
|
- this.form.toRealName = response.REAL_NAME
|
|
|
- this.loading = false
|
|
|
- }).catch(response => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.form.toUserName = ''
|
|
|
- this.$message({
|
|
|
- message: 'Not allowed to transfer to yourself',
|
|
|
- type: 'error'
|
|
|
- })
|
|
|
- }
|
|
|
+ this.loading = true
|
|
|
+ network.getData('user/full-info', {userName: this.form.toUserName}).then(response => {
|
|
|
+ console.log(userInfo.userName())
|
|
|
+ this.form.toRealName = response.REAL_NAME
|
|
|
+ this.loading = false
|
|
|
+ }).catch(response => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
},
|
|
|
chkReal () {
|
|
|
this.realAmount = tool.formatPrice(this.form.amount * (100 - this.fee) * 0.01)
|