timelinePopup.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="">
  3. <view class="modal" :class="timelineShow ? 'show' : ''" @click="timelineShow = false">
  4. <image class="img" src="/static/poster/arrow.png"></image>
  5. <view class="view text-white">
  6. <view class="flex align-center text-bold margin-bottom" style="font-size: 36upx;">
  7. <view class="bg-base flex justify-center align-center margin-right"
  8. style="width: 50upx;height: 50upx;border-radius: 16upx;">1</view>
  9. <view class="flex align-center">
  10. <view>点击右上角</view>
  11. <image class="margin-lr-sm" src="/static/poster/point.png" style="width: 60upx;height: 38upx;">
  12. </image>
  13. <view>按钮</view>
  14. </view>
  15. </view>
  16. <view class="flex align-center text-bold" style="font-size: 36upx;">
  17. <view class="bg-base flex justify-center align-center margin-right"
  18. style="width: 50upx;height: 50upx;border-radius: 16upx;">2</view>
  19. <view class="flex align-center">
  20. <view>选择</view>
  21. <image class="margin-lr-sm" src="/static/poster/pyq.png" style="width: 48upx;height: 48upx;">
  22. </image>
  23. <view>分享到朋友圈</view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. name: '',
  33. data() {
  34. return {
  35. timelineShow: false
  36. };
  37. },
  38. methods: {
  39. show() {
  40. this.timelineShow = true
  41. }
  42. }
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. .modal {
  47. position: fixed;
  48. top: 0;
  49. right: 0;
  50. bottom: 0;
  51. left: 0;
  52. z-index: 1110;
  53. opacity: 0;
  54. outline: 0;
  55. -ms-transform: scale(1.185);
  56. transform: scale(1.185);
  57. backface-visibility: hidden;
  58. perspective: 2000upx;
  59. background: rgba(0, 0, 0, 0.6);
  60. transition: all 0.3s ease-in-out 0s;
  61. pointer-events: none;
  62. }
  63. .modal::before {
  64. content: "\200B";
  65. display: inline-block;
  66. height: 100%;
  67. }
  68. .modal.show {
  69. opacity: 1;
  70. transition-duration: 0.3s;
  71. -ms-transform: scale(1);
  72. transform: scale(1);
  73. overflow-x: hidden;
  74. overflow-y: auto;
  75. pointer-events: auto;
  76. }
  77. .img {
  78. position: fixed;
  79. top: 120px;
  80. right: 60px;
  81. width: 127px;
  82. height: 184px;
  83. }
  84. .view {
  85. position: fixed;
  86. top: 340px;
  87. right: 50upx;
  88. text-align: center;
  89. width: 550upx;
  90. height: 480upx;
  91. }
  92. </style>