PopupA.vue
2.3 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<template>
<u-popup :show="show" mode="center" bgColor="transparent">
<view class="PopupA">
<view class="PopupA-1">
<image class="PopupA-1-bg" src="@/static/images/xh_icon10.png"></image>
<view class="PopupA-1-content">
<view class="PopupA-1-content-icon">
<image src="@/static/images/xh_icon11.png" mode=""></image>
</view>
<view class="PopupA-1-content-title">
<image class="PopupA-1-content-title-icon" src="@/static/images/xh_icon12.png" ></image>
<text class="PopupA-1-content-title-text">{{ title }}</text>
<image class="PopupA-1-content-title-icon" src="@/static/images/xh_icon12.png" ></image>
</view>
<view class="PopupA-1-content-details">
“恭喜你获得中志教育荣誉勋章凭截图可到学生服务中心领取奖品一份”
</view>
</view>
</view>
<view class="PopupA-2">
<u-icon name="close-circle" color="#fff" size="32" @click.native="close"></u-icon>
</view>
</view>
</u-popup>
</template>
<script>
export default {
name: 'PopupA',
data() {
return {
show: false,
title: ''
}
},
methods: {
open({title} = e) {
this.title = title
this.show = true
},
close() {
this.show = false
this.$emit('close')
}
}
}
</script>
<style lang="scss" scoped>
.PopupA{
.PopupA-1{
position: relative;
padding: 140rpx 35rpx 100rpx 35rpx;
height: 830rpx;
width: 640rpx;
.PopupA-1-bg{
position: absolute;
height: 830rpx;
width: 640rpx;
top: 0;
left: 0;
}
.PopupA-1-content{
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.PopupA-1-content-icon{
height: 370rpx;
width: 370rpx;
}
.PopupA-1-content-title{
display: flex;
align-items: center;
.PopupA-1-content-title-text{
font-size: 32rpx;
color: #422511;
margin: 0 25rpx;
font-weight: bold;
}
.PopupA-1-content-title-icon{
height: 38rpx;
width: 38rpx;
}
}
.PopupA-1-content-details{
text-align: center;
color: #72482A;
font-size: 26rpx;
margin-top: 26rpx;
padding: 0 20rpx;
}
}
}
.PopupA-2{
display: flex;
justify-content: center;
margin-top: 37rpx;
}
}
</style>