默认提交
Showing
5 changed files
with
228 additions
and
3 deletions
src/components/modal2-comp/modal2-comp.js
0 → 100644
1 | |||
2 | export default { | ||
3 | props: { | ||
4 | // 是否显示组件 | ||
5 | visible: { | ||
6 | type: Boolean, | ||
7 | default: true, | ||
8 | }, | ||
9 | // 标题名称 需要再 assets/images/common/ 目录下添加图标 | ||
10 | icon: { | ||
11 | type: String, | ||
12 | default: "succ", | ||
13 | }, | ||
14 | // 文案 | ||
15 | content: { | ||
16 | type: String, | ||
17 | default: "", | ||
18 | }, | ||
19 | // 取消按钮回调方法 | ||
20 | close: { | ||
21 | type: Function, | ||
22 | default: null | ||
23 | }, | ||
24 | // 点击蒙层回调方法 | ||
25 | overlay: { | ||
26 | type: Function, | ||
27 | default: null | ||
28 | } | ||
29 | }, | ||
30 | data() { | ||
31 | return { | ||
32 | key: 'value' | ||
33 | } | ||
34 | }, | ||
35 | components: {}, | ||
36 | computed: { | ||
37 | locale() { | ||
38 | return this.$i18n.locale || 'tc'; | ||
39 | }, | ||
40 | }, | ||
41 | methods: { | ||
42 | // 点击关闭 | ||
43 | onCloseHandler() { | ||
44 | if (this.close) { | ||
45 | this.close(); | ||
46 | } | ||
47 | }, | ||
48 | // 点击蒙层 | ||
49 | onOverLayHandler() { | ||
50 | if (this.overlay) { | ||
51 | this.overlay(); | ||
52 | } | ||
53 | }, | ||
54 | initData() {} | ||
55 | }, | ||
56 | mounted() {}, | ||
57 | created() {} | ||
58 | } |
src/components/modal2-comp/modal2-comp.scss
0 → 100644
1 | @import '@/styles/_support'; | ||
2 | |||
3 | |||
4 | .comp { | ||
5 | position: fixed; | ||
6 | top: 0; | ||
7 | left: 0; | ||
8 | z-index: 5000; | ||
9 | width: 100%; | ||
10 | height: 100%; | ||
11 | @extend .fcc; | ||
12 | text-align: center; | ||
13 | font-size: 28px; | ||
14 | } | ||
15 | |||
16 | .hide { | ||
17 | display: none; | ||
18 | } | ||
19 | |||
20 | .overlay { | ||
21 | position: absolute; | ||
22 | top: 0; | ||
23 | left: 0; | ||
24 | width: 100%; | ||
25 | height: 100%; | ||
26 | background: rgba($color: #000000, $alpha: 0.7); | ||
27 | } | ||
28 | |||
29 | .border { | ||
30 | position: relative; | ||
31 | @extend .bb; | ||
32 | @extend .fcc; | ||
33 | padding: 2px; | ||
34 | background-image: linear-gradient(to right, #ffb31d, #f15907); | ||
35 | border-radius: 20px; | ||
36 | } | ||
37 | |||
38 | .modal { | ||
39 | position: relative; | ||
40 | @extend .bb; | ||
41 | width: 1000px; | ||
42 | border-radius: 20px; | ||
43 | background-color: #ffffff; | ||
44 | |||
45 | .content { | ||
46 | display: flex; | ||
47 | justify-content: flex-start; | ||
48 | align-items: center; | ||
49 | padding: 162px 100px; | ||
50 | max-height: 534px; | ||
51 | |||
52 | .info-icon { | ||
53 | width: 210px; | ||
54 | min-width: 210px; | ||
55 | |||
56 | img { | ||
57 | width: 100%; | ||
58 | } | ||
59 | } | ||
60 | |||
61 | .message { | ||
62 | margin-left: 48px; | ||
63 | font-weight: bold; | ||
64 | color: $cOrange2; | ||
65 | display: inline-block; | ||
66 | height: 100%; | ||
67 | min-width: 100px; | ||
68 | text-align: justify; | ||
69 | text-align-last: left; | ||
70 | |||
71 | span { | ||
72 | cursor: pointer; | ||
73 | text-decoration: underline; | ||
74 | } | ||
75 | } | ||
76 | |||
77 | .lsp { | ||
78 | line-height: 1.4; | ||
79 | letter-spacing: 0.7px; | ||
80 | } | ||
81 | } | ||
82 | |||
83 | |||
84 | } | ||
85 | |||
86 | .close { | ||
87 | position: absolute; | ||
88 | right: -55px; | ||
89 | top: -15px; | ||
90 | cursor: pointer; | ||
91 | |||
92 | img { | ||
93 | position: relative; | ||
94 | width: 30px; | ||
95 | height: 30px; | ||
96 | } | ||
97 | } | ||
98 | |||
99 | @media (max-width: 1150px) { | ||
100 | .close { | ||
101 | right: -15px; | ||
102 | top: -55px; | ||
103 | } | ||
104 | } | ||
105 | |||
106 | @media (max-width: 1000px) { | ||
107 | .border { | ||
108 | width: 90%; | ||
109 | } | ||
110 | } | ||
111 | |||
112 | @media (max-width: 768px) { | ||
113 | .border { | ||
114 | width: 80%; | ||
115 | |||
116 | .modal { | ||
117 | .content { | ||
118 | flex-wrap: wrap; | ||
119 | padding: 32px 16px; | ||
120 | |||
121 | .info-icon { | ||
122 | margin: 0 auto; | ||
123 | width: 32%; | ||
124 | min-width: auto; | ||
125 | } | ||
126 | |||
127 | .message { | ||
128 | margin: 16px auto 0; | ||
129 | font-size: 20px; | ||
130 | } | ||
131 | } | ||
132 | } | ||
133 | |||
134 | } | ||
135 | } |
src/components/modal2-comp/modal2-comp.vue
0 → 100644
1 | |||
2 | <template> | ||
3 | <div class="comp" :class="{'hide' : !visible }"> | ||
4 | <div @click="onOverLayHandler()" class="overlay"></div> | ||
5 | <div class="border"> | ||
6 | <div class="close" @click="onCloseHandler()"><img src="@/assets/images/clarms/close.png"></div> | ||
7 | <div class="modal"> | ||
8 | <div class="content"> | ||
9 | <div class="info-icon"> | ||
10 | <img src="@/assets/images/clarms/info.png"> | ||
11 | </div> | ||
12 | <div class="message" :class="{'lsp':locale != 'en'}"> | ||
13 | {{content}} | ||
14 | </div> | ||
15 | </div> | ||
16 | </div> | ||
17 | </div> | ||
18 | </div> | ||
19 | </template> | ||
20 | |||
21 | <script src="./modal2-comp.js"></script> | ||
22 | <style lang="scss" scoped> | ||
23 | @import "./modal2-comp.scss"; | ||
24 | </style> |
... | @@ -14,6 +14,9 @@ import ClarmsModalOne from '@/components/clarms/clarms-plugins-modal1.vue'; | ... | @@ -14,6 +14,9 @@ import ClarmsModalOne from '@/components/clarms/clarms-plugins-modal1.vue'; |
14 | import ClarmsModalTwo from '@/components/clarms/clarms-plugins-modal2.vue'; | 14 | import ClarmsModalTwo from '@/components/clarms/clarms-plugins-modal2.vue'; |
15 | import ClarmsVerifyForm from '@/components/clarms/clarms-plugins-verifyform.vue'; | 15 | import ClarmsVerifyForm from '@/components/clarms/clarms-plugins-verifyform.vue'; |
16 | import ClarmsMaterial from '@/components/clarms/clarms-plugins-material.vue'; | 16 | import ClarmsMaterial from '@/components/clarms/clarms-plugins-material.vue'; |
17 | import Modal2Comp from '@/components/modal2-comp/modal2-comp.vue'; | ||
18 | import ModalComp from '@/components/modal-comp/modal-comp.vue'; | ||
19 | |||
17 | 20 | ||
18 | // 用户没有登录 | 21 | // 用户没有登录 |
19 | // 校验成功 | 22 | // 校验成功 |
... | @@ -35,14 +38,17 @@ export default { | ... | @@ -35,14 +38,17 @@ export default { |
35 | cid: "", | 38 | cid: "", |
36 | // 可以理赔的客户信息 | 39 | // 可以理赔的客户信息 |
37 | customerList: [], | 40 | customerList: [], |
38 | modelType: "1" | 41 | modelType: "1", |
42 | modalVisiable: true | ||
39 | } | 43 | } |
40 | }, | 44 | }, |
41 | components: { | 45 | components: { |
42 | ClarmsVerifyForm, | 46 | ClarmsVerifyForm, |
43 | ClarmsMaterial, | 47 | ClarmsMaterial, |
44 | ClarmsModalOne, | 48 | ClarmsModalOne, |
45 | ClarmsModalTwo | 49 | ClarmsModalTwo, |
50 | ModalComp, | ||
51 | Modal2Comp | ||
46 | }, | 52 | }, |
47 | computed: { | 53 | computed: { |
48 | ...mapState({ | 54 | ...mapState({ |
... | @@ -167,5 +173,5 @@ export default { | ... | @@ -167,5 +173,5 @@ export default { |
167 | this.initData(); | 173 | this.initData(); |
168 | 174 | ||
169 | }, | 175 | }, |
170 | created() { } | 176 | created() {} |
171 | } | 177 | } | ... | ... |
-
Please register or sign in to post a comment