1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
| <template>
| <view class="popRule" :class="isShow?'show':''">
| <view class="popRule_box">
| <image class="popRule_img" src="https://ossacmall.bluedeer.com.cn/app/static/images/lottery_rule.png">
| </image>
| <view class="popRule_close" @click="hide()"> </view>
| </view>
|
| </view>
|
| </template>
|
| <script>
| export default {
| name: "popRule",
| props: {
| },
| data() {
| return {
| isShow: false,
| };
| },
| methods: {
| show() {
| this.isShow = true;
| },
| hide() {
| this.isShow = false;
| },
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .popRule {
| position: fixed;
| left: 0;
| top: 0;
| width: 100%;
| height: 100%;
| z-index: 11111;
| background-color: rgba(0, 0, 0, .7);
| display: none;
| &.show {
| display: block;
| }
| }
|
| .popRule_box {
| padding-bottom: 100rpx;
| position: absolute;
| left: 50%;
| top: 50%;
| transform: translate(-50%, -50%);
|
| .popRule_img {
| width: 565rpx;
| height: 609rpx;
| }
| .popRule_close {
| position: absolute;
| left: 50%;
| margin-left: -45rpx;
| bottom: 0;
| width: 90rpx;
| height: 90rpx;
| background: url("https://ossacmall.bluedeer.com.cn/app/static/images/pop_close2.png") center center/78rpx auto no-repeat;
|
| }
| }
| </style>
|
|