|
|
|
@ -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: { |
|
|
|
// 监测路由变化,只要变化了就调用获取路由参数方法将数据存储本组件即可 |
|
|
|
|