guide.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <view>
  3. <u-image :src="src" mode="widthFix"></u-image>
  4. <view class="modal" :class="show ? 'show' : ''" @click="show = false">
  5. <image class="img" src="/static/index/arrow.png"></image>
  6. <view class="view text-white">
  7. <view class="flex align-center text-bold margin-bottom" style="font-size: 36upx;">
  8. <view class="theme-bg-color flex justify-center align-center margin-right" style="width: 60upx;height: 60upx;border-radius: 16upx;">1</view>
  9. <view class="flex align-center">
  10. <view>点击右上角</view>
  11. <image class="margin-lr-sm" src="/static/index/point.png" style="width: 60upx;height: 38upx;"></image>
  12. <view>按钮</view>
  13. </view>
  14. </view>
  15. <view class="flex align-center text-bold" style="font-size: 36upx;">
  16. <view class="theme-bg-color flex justify-center align-center margin-right" style="width: 60upx;height: 60upx;border-radius: 16upx;">2</view>
  17. <view class="flex align-center">
  18. <view>选择</view>
  19. <image class="margin-lr-sm" src="/static/index/browser.png" style="width: 48upx;height: 48upx;"></image>
  20. <view>在浏览器打开</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view style="height: 120upx;"></view>
  26. <view class="footer-fixed padding" style="background-color: #ffffff;">
  27. <button class="cu-btn round theme-bg-color text-white text-bold" style="width: 100%;height: 100upx;font-size: 36upx;" @click="tips">参与打榜活动</button>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. show: false,
  36. src: 'https://music.nanyue6688.com/obsfile/445668112f384a8cb2c405dc5d514a79-poster.png'
  37. }
  38. },
  39. methods: {
  40. tips() {
  41. if (this.$isWxBrowser()) {
  42. this.show = true;
  43. } else {
  44. uni.reLaunch({
  45. url: "/pages/activityList/index"
  46. })
  47. }
  48. },
  49. }
  50. }
  51. </script>
  52. <style>
  53. .modal {
  54. position: fixed;
  55. top: 0;
  56. right: 0;
  57. bottom: 0;
  58. left: 0;
  59. z-index: 1110;
  60. opacity: 0;
  61. outline: 0;
  62. -ms-transform: scale(1.185);
  63. transform: scale(1.185);
  64. backface-visibility: hidden;
  65. perspective: 2000upx;
  66. background: rgba(0, 0, 0, 0.6);
  67. transition: all 0.3s ease-in-out 0s;
  68. pointer-events: none;
  69. }
  70. .modal::before {
  71. content: "\200B";
  72. display: inline-block;
  73. height: 100%;
  74. }
  75. .modal.show {
  76. opacity: 1;
  77. transition-duration: 0.3s;
  78. -ms-transform: scale(1);
  79. transform: scale(1);
  80. overflow-x: hidden;
  81. overflow-y: auto;
  82. pointer-events: auto;
  83. }
  84. .img {
  85. position: fixed;
  86. top: 20px;
  87. right: 10px;
  88. width: 127px;
  89. height: 184px;
  90. }
  91. .view {
  92. position: fixed;
  93. top: 230px;
  94. right: 50upx;
  95. text-align: center;
  96. width: 550upx;
  97. height: 480upx;
  98. }
  99. </style>