You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
852 B
49 lines
852 B
<template>
|
|
<view class="wrap">
|
|
<web-view :src="'http://192.168.3.14:8080/?token='+userInfoToken+'&name='+name+'&balance='+balance+'&head='+head"></web-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
userInfoToken: '',
|
|
name: '',
|
|
balance: '',
|
|
head: ''
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
},
|
|
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)
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
page{
|
|
background-color: #F5F5F5;
|
|
}
|
|
</style>
|
|
<style scoped>
|
|
.wrap {
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: #F5F5F5;
|
|
}
|
|
.unit{
|
|
display: flex;
|
|
height: 100rpx;
|
|
align-items: flex-end;
|
|
box-sizing: border-box;
|
|
padding-bottom: 10rpx;
|
|
}
|
|
</style>
|