skip.vue 1.4 KB

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