catch_rule.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="cu-modal" :class="{ show: visible }">
  3. <view class="rule-mask" @click="close"></view>
  4. <view class="cu-dialog relative" style="background-color: transparent; width: 100%">
  5. <view class="relative wrapper">
  6. <image :src="ossurl.welfare.toys.ruleImg" class="rule" mode="widthFix" />
  7. </view>
  8. <view class="paddingT30 flex-align-center">
  9. <view class="close cuIcon-close" @click="close"></view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import ossurl from '@/utils/ossurl'
  16. export default {
  17. props: {
  18. luckKing: Object
  19. },
  20. data() {
  21. return {
  22. ossurl,
  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: 594rpx;
  49. height: 720rpx;
  50. margin: 0 auto;
  51. position: relative;
  52. .rule {
  53. width: 594rpx;
  54. height: 0
  55. }
  56. }
  57. .close {
  58. width: 64rpx;
  59. height: 64rpx;
  60. background: #d8d8d8;
  61. font-size: 32rpx;
  62. text-align: center;
  63. line-height: 64rpx;
  64. color: #444;
  65. border-radius: 50%;
  66. }
  67. </style>