reel_rule.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="cu-modal" :class="{'show': visible}">
  3. <view class="rule-mask" @click="close"></view>
  4. <view class="cu-dialog" style="background-color: transparent; width:100%">
  5. <view class="relative wrapper">
  6. <image :src="resource.weal_reel_rule" webp class="rule" mode="widthFix"/>
  7. </view>
  8. <view class="paddingT30 flex-align-center">
  9. <image :src="resource.close" class="x" @click="close" />
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import resource from '@/utils/resource'
  16. export default {
  17. props: {
  18. luckKing: Object
  19. },
  20. data() {
  21. return {
  22. resource,
  23. visible: false
  24. }
  25. },
  26. methods: {
  27. show() {
  28. this.visible = true
  29. this.$parent.$parent.$parent.lock = true
  30. },
  31. close() {
  32. this.visible = false
  33. this.$parent.$parent.$parent.lock = false
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .rule-mask {
  40. position: absolute;
  41. left: 0;
  42. right: 0;
  43. top: 0;
  44. bottom: 0;
  45. }
  46. .wrapper {
  47. z-index: 1001;
  48. width: 640rpx;
  49. height: 700rpx;
  50. margin: 0 auto;
  51. position: relative;
  52. .rule {
  53. width: 640rpx;
  54. height: 0
  55. }
  56. }
  57. .x {
  58. width: 60rpx;
  59. height: 60rpx;
  60. }
  61. </style>