Browse Source

no message

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
ea8743ef6b
1 changed files with 5 additions and 2 deletions
  1. 7
      src/view/put-money.vue

7
src/view/put-money.vue

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