examinationDialog.vue
3.72 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<template>
<div>
<el-dialog
v-model="visible"
:close-on-press-escape="false"
align-top
class="membership-dialog"
title="温馨提示"
width="500px"
>
<div class="dialog-content">
<!-- 图标区域 -->
<div class="icon-wrapper">
<el-icon :size="48" color="#67C23A">
<CircleCheck />
</el-icon>
</div>
<!-- 标题 -->
<h2 class="dialog-title">申请成为考点</h2>
<!-- 描述文本 -->
<div class="dialog-message">
恭喜您成为中国跆拳道协会单位会员!<br>
根据协会考点管理办法,需成为考点单位才能进行考级业务的办理,是否现在申请成为考点。
</div>
<!-- 按钮组 -->
<div class="button-group">
<el-button class="btn-cancel" round @click="handleCancel">取消</el-button>
<el-button class="btn-confirm" round type="primary" @click="handleSubmit">去申请</el-button>
</div>
<!-- 不再显示 -->
<div class="no-display-wrapper">
<el-button class="no-display-btn" link @click="handleHint">不再显示</el-button>
</div>
</div>
</el-dialog>
<kaoDianShenQingXuZhi ref="kaoDianShenQingXuZhiRef" @close="visible=false" />
</div>
</template>
<script setup>
import { noDisplay } from '@/api/system/user'
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import kaoDianShenQingXuZhi from '@/views/groupMember/components/kaoDianShenQingXuZhi.vue'
import useUserStore from '@/store/modules/user'
const visible = ref(false)
const router = useRouter()
const kaoDianShenQingXuZhiRef = ref(null)
const userStore = useUserStore()
async function handleHint() {
await noDisplay()
await userStore.getInfo()
await userStore.getMemInfo()
visible.value = false
}
function open() {
visible.value = true
}
function handleCancel() {
visible.value = false
}
function handleSubmit() {
// router.push({
// path: '/user/profile',
// query: { type: '2' }
// })
// visible.value = false
// kaoDianShenQingXuZhiRef.value.open()
visible.value = false
router.push({
path: '/group/examination',
query: {
type: '1'
}
})
}
defineExpose({
open
})
</script>
<style lang="scss" scoped>
.membership-dialog :deep(.el-dialog) {
border-radius: 16px;
background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
}
.membership-dialog :deep(.el-dialog__header) {
display: none;
}
.membership-dialog :deep(.el-dialog__body) {
padding: 32px 28px 28px;
}
.dialog-content {
text-align: center;
}
.icon-wrapper {
margin-bottom: 20px;
}
.dialog-title {
font-size: 22px;
font-weight: 600;
color: #303133;
margin: 0 0 12px 0;
letter-spacing: 0.5px;
}
.dialog-message {
font-size: 15px;
color: #606266;
line-height: 1.6;
margin-bottom: 32px;
padding: 0 8px;
text-align: left;
}
.button-group {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 24px;
}
.btn-cancel,
.btn-confirm {
width: 130px;
font-size: 15px;
font-weight: 500;
transition: all 0.2s ease;
}
.btn-cancel {
border-color: #dcdfe6;
color: #606266;
}
.btn-cancel:hover {
background-color: #f5f7fa;
border-color: #c0c4cc;
color: #303133;
}
.btn-confirm {
//background: linear-gradient(135deg, #409eff, #66b1ff);
border: none;
box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}
.btn-confirm:hover {
//background: linear-gradient(135deg, #66b1ff, #79bbff);
box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4);
transform: translateY(-1px);
}
.no-display-wrapper {
text-align: right;
}
.no-display-btn {
font-size: 12px;
color: #909399;
padding: 4px 8px;
}
.no-display-btn:hover {
color: #409eff;
}
</style>