index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view @click="close">
  3. <view class="tui-alert-mask" :class="[show ? 'tui-alert-mask-show' : '']">
  4. <view
  5. :style="{ width: width ? width : '100%' }"
  6. style="position: absolute; top: 0; right: 0"
  7. >
  8. <view>
  9. <image
  10. src="./static/point_bg.png"
  11. style="width: 100%"
  12. mode="widthFix"
  13. />
  14. </view>
  15. <view style="text-align: center">
  16. <image
  17. src="./static/point_btn.png"
  18. style="width: 60%"
  19. mode="widthFix"
  20. />
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. name: "pointShare",
  29. props: {
  30. show: {
  31. type: Boolean,
  32. default: false,
  33. },
  34. width: {
  35. type: String,
  36. default: "100%",
  37. },
  38. },
  39. methods: {
  40. close() {
  41. this.$emit("close", {});
  42. },
  43. btnPay() {
  44. this.$emit("payment", { type: this.payType });
  45. },
  46. payTypeChange(e) {
  47. this.payType = e.detail.value;
  48. },
  49. },
  50. };
  51. </script>
  52. <style scoped>
  53. .tui-alert-mask1 {
  54. position: fixed;
  55. width: 100%;
  56. height: 100%;
  57. top: 0;
  58. left: 0;
  59. right: 0;
  60. bottom: 0;
  61. background-color: rgba(0, 0, 0, 0.8);
  62. z-index: 99996;
  63. transition: all 0.3s ease-in-out;
  64. opacity: 0;
  65. visibility: hidden;
  66. }
  67. .tui-alert-mask {
  68. position: fixed;
  69. top: 0;
  70. right: 0;
  71. bottom: 0;
  72. left: 0;
  73. z-index: 1110;
  74. opacity: 0;
  75. outline: 0;
  76. text-align: center;
  77. -ms-transform: scale(1.185);
  78. transform: scale(1.185);
  79. backface-visibility: hidden;
  80. perspective: 2000upx;
  81. background: rgba(0, 0, 0, 0.6);
  82. transition: all 0.3s ease-in-out 0s;
  83. pointer-events: none;
  84. }
  85. .tui-alert-mask-show {
  86. opacity: 1;
  87. transition-duration: 0.3s;
  88. -ms-transform: scale(1);
  89. transform: scale(1);
  90. overflow-x: hidden;
  91. overflow-y: auto;
  92. pointer-events: auto;
  93. }
  94. .tui-alert-mask-show1 {
  95. visibility: visible;
  96. opacity: 1;
  97. }
  98. </style>