index.vue 581 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <view class="">
  3. <web-view :src="'http://localhost:8081/vuefiv/#/?siteId='+siteId" allow></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. siteId:"",
  11. deviceData:[],
  12. modalName: null,
  13. };
  14. },
  15. onLoad:function(option){
  16. // console.log(111)
  17. // console.log(option)
  18. this.siteId = option.siteId
  19. },
  20. mounted () {
  21. },
  22. methods: {
  23. }
  24. }
  25. </script>
  26. <style lang="scss">
  27. .cu-list.menu-avatar>.cu-item .content>uni-view:first-child {
  28. font-size: 32rpx;
  29. }
  30. .num {
  31. font-size: 30rpx;
  32. color: #666;
  33. }
  34. </style>