RiskInformedBox.vue
1.28 KB
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
72
73
74
75
76
77
78
<template>
<uni-popup
ref="riskInformed"
type="center"
:is-mask-click="false"
animation
class="risk-popup"
>
<view class="box">
<view
class="icon-close-box flex"
@click="close"
>
<uni-icons
class="icon-close"
type="closeempty"
:size="16"
color="#fff"
></uni-icons>
</view>
<image
class="img"
:src="popupImg"
/>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'RiskInformedBox',
props: {
popupImg: String
},
data () {
return {
}
},
mounted () {
},
methods: {
open () {
this.$refs.riskInformed.open();
},
close () {
this.$refs.riskInformed.close();
},
}
}
</script>
<style scoped lang='scss'>
.risk-popup {
z-index: 99 !important;
}
.box {
width: toRpx(1862);
height: toRpx(1176);
background: #ffffff;
border-radius: toRpx(48);
position: relative;
.icon-close-box {
position: absolute;
top: toRpx(32);
right: toRpx(48);
width: toRpx(48);
height: toRpx(48);
justify-content: center;
border-radius: 100%;
background: rgb(121, 123, 127);
z-index: 2;
}
.img {
width: 100%;
height: 100%;
}
}
</style>