|
|
|
@ -81,10 +81,10 @@ |
|
|
|
).then(res => { |
|
|
|
if (res.code == 0){ |
|
|
|
this.$router.push({path:'/put-money-success'}); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
this.$vux.toast.text(res.msg,'middle') |
|
|
|
} |
|
|
|
this.$vux.toast.text(res) |
|
|
|
// this.$vux.toast.text(res) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -96,6 +96,8 @@ |
|
|
|
getParam(name) { |
|
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
|
|
|
var r = window.location.search.substr(1).match(reg); |
|
|
|
// var r = '?currentAmount=100' |
|
|
|
// r = r.substr(1).match(reg) |
|
|
|
if (r != null) return unescape(r[2]); |
|
|
|
return null; |
|
|
|
} |
|
|
|
@ -103,6 +105,7 @@ |
|
|
|
mounted() { |
|
|
|
//获取余额值 |
|
|
|
this.currentAmount = this.getParam("currentAmount") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |