index.vue 896 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="content">
  3. <web-view :src="src" ></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. src: 'http://star.mstardance.com/app/starmini/index.html',
  11. }
  12. },
  13. onBackPress(options) {
  14. if (options.from === 'navigateBack') {
  15. // 当前页面不允许返回
  16. return true; // 返回true阻止默认行为,即不执行返回操作
  17. }
  18. // 允许返回操作
  19. return false;
  20. },
  21. onLoad() {
  22. },
  23. methods: {
  24. }
  25. }
  26. </script>
  27. <style>
  28. .content {
  29. display: flex;
  30. flex-direction: column;
  31. align-items: center;
  32. justify-content: center;
  33. }
  34. .logo {
  35. height: 200rpx;
  36. width: 200rpx;
  37. margin-top: 200rpx;
  38. margin-left: auto;
  39. margin-right: auto;
  40. margin-bottom: 50rpx;
  41. }
  42. .text-area {
  43. display: flex;
  44. justify-content: center;
  45. }
  46. .title {
  47. font-size: 36rpx;
  48. color: #8f8f94;
  49. }
  50. </style>