ssoLogin.vue 785 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!--登录页面-->
  2. <template>
  3. <view id="ssoLogin">
  4. <web-view @message="handleMessage"
  5. src="http://192.168.1.10:80/#/miniProgramAuthentication?token=41cd8b02-f612-4dd5-abbd-efb5c45d69ad">
  6. <!-- src="https://labcontrol.nwafu.edu.cn/stream/#/miniProgramAuthentication"> -->
  7. </web-view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: "ssoLogin",
  13. data() {
  14. return {
  15. }
  16. },
  17. onLoad(option) {
  18. },
  19. mounted() {
  20. },
  21. methods: {
  22. handleMessage(e) {
  23. // console.log('e>>>>>', e);
  24. const receivedData = e.detail.data; // 接收到的数据
  25. // console.log('收到H5消息:', receivedData);
  26. // 处理数据逻辑...
  27. }
  28. },
  29. }
  30. </script>
  31. <style lang="stylus" scoped>
  32. #ssoLogin {
  33. width:100%;
  34. height:100%;
  35. overflow:scroll;
  36. }
  37. </style>