index.vue 3.0 KB

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