学员端小程序
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.

45 lines
1.3 KiB

1 year ago
  1. <template>
  2. <view>
  3. <topNavbar title="学员报名"></topNavbar>
  4. <!-- <web-view :webview-styles="webviewStyles" src="http://192.168.1.44:92/question/?uniItem=%7B%22phone%22%3A%2218267103167%22%2C%22cityCode%22%3A%223311%22%2C%22isUni%22%3A1%7D"></web-view> -->
  5. <web-view :webview-styles="webviewStyles" class="custom-webview" :src="link" :update-title="true"></web-view>
  6. <!-- <iframe src="https://your-h5-url.com" frameborder="0"></iframe> -->
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. webviewStyles: {
  14. progress: {
  15. color: '#FF3333'
  16. },
  17. width: '100vw', // 设置 WebView 宽度为100%,占满整个屏幕宽度
  18. height: '100vh', // 设置 WebView 高度为100vh,占满整个屏幕高度
  19. },
  20. link: ''
  21. }
  22. },
  23. onLoad() {
  24. this.link = this.$store.state.webViewUrl
  25. console.log('噜噜哇'+ this.$store.state.webViewUrl)
  26. // http://192.168.1.44:92/question/?uniItem=%7B%22phone%22%3A%2218267103167%22%2C%22cityCode%22%3A%223311%22%2C%22isUni%22%3A1%7D
  27. // uni.hideNavigationBarLoading()
  28. },
  29. // onReady() {
  30. // uni.hideNavigationBarLoading();
  31. // }
  32. }
  33. </script>
  34. <style>
  35. .custom-webview::after {
  36. content: none !important; /* 隐藏返回按钮 */
  37. }
  38. .iframe {
  39. display: block;
  40. width: 100vw;
  41. height: 100vh;
  42. }
  43. </style>