jump-default-browser.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view style="background: rgb(255, 255, 255);height: 100vh;">
  3. <view class="top-bg">
  4. <view class="top-bg-icon display-row align-center">
  5. <span>点击右上角</span>
  6. <view class="icon-bg"></view>
  7. <span>可以继续浏览本站哦</span>
  8. </view>
  9. </view>
  10. <view class="center-bg display-column align-center justify-center">
  11. <view class="center-bg-icon"></view>
  12. </view>
  13. <view class="tip display-column align-center">
  14. <span>您也可以复制本站网址,到默认浏览器中打开</span>
  15. <button class="tip-btn" @tap="copy">点此复制</button>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import {
  21. isWechat
  22. } from '@/util/squ.js'
  23. export default {
  24. data() {
  25. return {
  26. }
  27. },
  28. created () {
  29. // #ifdef H5
  30. if(!isWechat()) {
  31. window.location.href = this.$squni.getCurQuery('_originHref')
  32. }
  33. // #endif
  34. },
  35. methods: {
  36. copy() {
  37. this.$squni.copy(this.$squni.getCurQuery('_originHref'))
  38. }
  39. }
  40. }
  41. </script>
  42. <style>
  43. .top-bg {
  44. width: 100%;
  45. background-image: url(https://cdn7.aezo.cn/common/others/guide-browser-1.png);
  46. background-size: 100% 100%;
  47. height: 102px;
  48. position: relative;
  49. }
  50. .top-bg .top-bg-icon {
  51. position: absolute;
  52. top: 22px;
  53. left: 22px;
  54. font-size: 13px;
  55. font-weight: 600;
  56. color: #fff;
  57. }
  58. .top-bg .top-bg-icon .icon-bg {
  59. width: 22px;
  60. height: 22px;
  61. margin: 0 11px;
  62. background-image: url(https://cdn7.aezo.cn/common/others/guide-browser-3.png);
  63. background-position: 0% 0%;
  64. background-size: 100% 100%;
  65. background-repeat: no-repeat;
  66. }
  67. .center-bg {
  68. width: 100%;
  69. }
  70. .center-bg .center-bg-icon {
  71. width: 342px;
  72. height: 50vh;
  73. background-image: url(https://cdn7.aezo.cn/common/others/guide-browser-2.png);
  74. background-position: 0% 0%;
  75. background-size: 100% 100%;
  76. background-repeat: no-repeat;
  77. }
  78. .tip {
  79. margin-top: 80rpx;
  80. }
  81. .tip .tip-btn {
  82. width: 171px;
  83. height: 39px;
  84. border-radius: 57px;
  85. background-color: #3082ff;
  86. font-size: 14px;
  87. font-weight: 600;
  88. color: #fff;
  89. text-align: center;
  90. line-height: 39px;
  91. margin-top: 30rpx;
  92. }
  93. .align-center {
  94. align-items: center;
  95. }
  96. .display-row {
  97. display: flex;
  98. flex-direction: row;
  99. }
  100. .display-column {
  101. display: flex;
  102. flex-direction: column;
  103. }
  104. </style>