skip.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div>
  3. <div class="skip-wrap">
  4. <div class="skip-theme">
  5. <div class="skip-theme-iamge">logo</div>
  6. <div class="skip-theme-txt">小程序</div>
  7. </div>
  8. <div class="skip-btn">
  9. <p @click="showWechat()">打开微信</p>
  10. </div>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {};
  18. },
  19. methods: {
  20. showWechat() {
  21. window.location.href = "weixin://";
  22. },
  23. },
  24. components: {},
  25. mounted() {},
  26. destroyed() {},
  27. };
  28. </script>
  29. <style lang="scss">
  30. .skip-wrap {
  31. height: 100vh;
  32. width: 100%;
  33. position: relative;
  34. }
  35. .skip-theme {
  36. display: flex;
  37. align-items: center;
  38. flex-direction: column;
  39. padding: 200px 0 0;
  40. }
  41. .skip-theme-iamge {
  42. width: 60px;
  43. height: 60px;
  44. line-height: 60px;
  45. text-align: center;
  46. color: #fff;
  47. background-color: #e96737;
  48. border-radius: 50%;
  49. margin-bottom: 10px;
  50. }
  51. .skip-theme-txt {
  52. color: rgb(194, 184, 184);
  53. text-align: center;
  54. }
  55. .skip-btn {
  56. position: absolute;
  57. bottom: 50px;
  58. width: 100%;
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. }
  63. .skip-btn p {
  64. height: 30px;
  65. width: 200px;
  66. background-color: rgb(7, 192, 88);
  67. border-radius: 8px;
  68. line-height: 30px;
  69. color: #fff;
  70. text-align: center;
  71. }
  72. </style>