weigh.vue 475 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="weight-window">
  3. <web-view src="http://localhost:9090/#/monitor/weigh" @message="message"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. props: {
  9. hardInfo: {},
  10. },
  11. data() {
  12. return {
  13. connection: null,
  14. weigh: 0,
  15. meter: 0,
  16. isConnection: false,
  17. }
  18. },
  19. mounted() {
  20. },
  21. destroyed() {
  22. },
  23. methods: {
  24. message(event){
  25. console.log(event);
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="less" scoped>
  31. </style>