timelinePopup.vue 3.3 KB

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