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

43 lines
1.2 KiB

1 year ago
12 months ago
1 year ago
12 months ago
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: '#3877ff'
  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. }
  30. </script>
  31. <style>
  32. .custom-webview::after {
  33. content: none !important; /* 隐藏返回按钮 */
  34. }
  35. .iframe {
  36. display: block;
  37. width: 100vw;
  38. height: 100vh;
  39. }
  40. </style>