时空网前端
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

  1. <template>
  2. <view class="wrap">
  3. <web-view :src="'http://192.168.3.14:8080/?token='+userInfoToken+'&name='+name+'&balance='+balance+'&head='+head"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. userInfoToken: '',
  11. name: '',
  12. balance: '',
  13. head: ''
  14. }
  15. },
  16. methods: {
  17. },
  18. onLoad(e) {
  19. let userInfo = uni.getStorageSync('userinfo') || {};
  20. this.userInfoToken = userInfo.token
  21. this.name = userInfo.nickname
  22. this.balance = 25
  23. this.head = userInfo.avatar
  24. console.log(this.userInfoToken)
  25. }
  26. }
  27. </script>
  28. <style>
  29. page{
  30. background-color: #F5F5F5;
  31. }
  32. </style>
  33. <style scoped>
  34. .wrap {
  35. height: 100%;
  36. width: 100%;
  37. background-color: #F5F5F5;
  38. }
  39. .unit{
  40. display: flex;
  41. height: 100rpx;
  42. align-items: flex-end;
  43. box-sizing: border-box;
  44. padding-bottom: 10rpx;
  45. }
  46. </style>