|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<view class="wrap"> |
|
|
|
<web-view :src="'http://192.168.3.14:8080/?token='+userInfoToken"></web-view> |
|
|
|
<web-view :src="'http://192.168.3.14:8080/?token='+userInfoToken+'&name='+name+'&balance='+balance+'&head='+head"></web-view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -8,7 +8,10 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
userInfoToken: '' |
|
|
|
userInfoToken: '', |
|
|
|
name: '', |
|
|
|
balance: '', |
|
|
|
head: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -17,6 +20,9 @@ |
|
|
|
onLoad(e) { |
|
|
|
let userInfo = uni.getStorageSync('userinfo') || {}; |
|
|
|
this.userInfoToken = userInfo.token |
|
|
|
this.name = userInfo.nickname |
|
|
|
this.balance = 25 |
|
|
|
this.head = userInfo.avatar |
|
|
|
console.log(this.userInfoToken) |
|
|
|
} |
|
|
|
} |
|
|
|
|