Browse Source

完成 提交成功 功能

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
4ce260fc82
3 changed files with 9 additions and 15 deletions
  1. 2
      src/router/index.js
  2. 16
      src/view/put-money-success.vue
  3. 6
      src/view/put-money.vue

2
src/router/index.js

@ -27,7 +27,7 @@ let router = new Router({
component: putMoney
},
{
path: '/put-money-success',
path: '/put-money-success/:num',
name: '提现成功',
component: putMoneySuccess,
},

16
src/view/put-money-success.vue

@ -13,7 +13,7 @@
<span>1-3个工作日</span>
</div>
<div class="money-news">
<p>提现金额 <span>{{amount}}</span></p>
<p>提现金额 <span>{{num}}</span></p>
</div>
</div>
<button class="goHome">返回首页</button>
@ -26,11 +26,11 @@
export default{
data () {
return {
amount: 0
num: 0
}
},
created(){
this.getParams()
// this.getParams()
},
methods:{
//
@ -39,13 +39,13 @@
},
getParams () {
//
this.amount = this.$route.params.amount
console.log(this.$route.params)
console.log(this.amount)
this.num = this.$route.params.num
console.log(this.num)
}
},
mounted() {
console.log(this.$route)
mounted() {
this.getParams()
// console.log(this.$route)
},
watch: {
// ,

6
src/view/put-money.vue

@ -78,12 +78,6 @@ export default {
submit() {
if (this.isActive) {
this.$router.push({
name: "提现成功",
params: { amount: this.inputVal }
});
return;
//
var ua = navigator.userAgent.toLowerCase();
if (!ua.match(/MicroMessenger/i) == "micromessenger") {

Loading…
Cancel
Save