adata-ui 0.3.73 → 0.3.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/babel.config.js +5 -5
- package/package.json +76 -76
- package/public/index.html +17 -17
- package/public/logo.svg +4 -4
- package/src/App.vue +25 -25
- package/src/assets/_text_field.scss +224 -224
- package/src/assets/facebook.svg +4 -4
- package/src/assets/instagram.svg +6 -6
- package/src/assets/logo-desktop-main.svg +8 -8
- package/src/assets/logo-desktop.svg +9 -9
- package/src/assets/logo-mobile-main.svg +4 -4
- package/src/assets/logo-mobile.svg +9 -9
- package/src/assets/logo-white-desktop.svg +8 -8
- package/src/assets/style.scss +1 -1
- package/src/assets/telegram.svg +4 -4
- package/src/assets/tiktok.svg +4 -4
- package/src/assets/up-down.svg +3 -3
- package/src/assets/youtube.svg +5 -5
- package/src/components/Alert/Alert.stories.js +17 -17
- package/src/components/Alert/Alert.vue +63 -63
- package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +160 -160
- package/src/components/BottomNavigationBar/BottomNavigationBar.stories.js +24 -24
- package/src/components/Button/AButton.vue +231 -231
- package/src/components/Button/Button.stories.js +23 -23
- package/src/components/Checkbox/ACheckbox.vue +114 -114
- package/src/components/Checkbox/Checkbox.stories.js +15 -15
- package/src/components/CheckboxMenu/CheckboxMenu.stories.js +23 -23
- package/src/components/CheckboxMenu/CheckboxMenu.vue +108 -108
- package/src/components/ErrorPages/BadGateway.vue +224 -224
- package/src/components/ErrorPages/Forbidden.vue +468 -468
- package/src/components/ErrorPages/InternalServerError.vue +275 -275
- package/src/components/ErrorPages/NotFound.vue +995 -995
- package/src/components/ErrorPages/Unavailable.vue +3705 -3705
- package/src/components/Footer/Footer.stories.js +20 -20
- package/src/components/Footer/Footer.vue +292 -292
- package/src/components/Header/ChildLinks.vue +141 -122
- package/src/components/Header/Header.stories.js +56 -56
- package/src/components/Header/Header.vue +1289 -1289
- package/src/components/Header/InfoHeader.vue +319 -319
- package/src/components/Header/Profile.vue +670 -670
- package/src/components/Header/ProfileMenu.vue +291 -276
- package/src/components/Header/ProfileMobile.vue +308 -308
- package/src/components/Header/ProfileOld.vue +781 -781
- package/src/components/InternalServerError/InternalServerError.stories.js +16 -16
- package/src/components/InternalServerError/InternalServerError.vue +262 -262
- package/src/components/Introduction.stories.mdx +7 -7
- package/src/components/Loader/Loader.stories.js +24 -24
- package/src/components/Loader/Loader.vue +325 -325
- package/src/components/MailTo/MailTo.stories.js +14 -14
- package/src/components/MailTo/MailTo.vue +258 -258
- package/src/components/NavIcon/ANavIcon.vue +49 -49
- package/src/components/NavIcon/NavIcon.stories.js +14 -14
- package/src/components/PasswordField/PasswordField.stories.js +16 -16
- package/src/components/PasswordField/PasswordField.vue +77 -77
- package/src/components/SearchTextField/SearchTextField.stories.js +77 -77
- package/src/components/SearchTextField/SearchTextField.vue +230 -230
- package/src/components/ServiceSlider/AServiceSlider.vue +782 -782
- package/src/components/ServiceSlider/ServiceSlider.stories.js +20 -20
- package/src/components/Table/ATable.vue +117 -117
- package/src/components/Table/Table.stories.js +15 -15
- package/src/components/TextArea/TextArea.stories.js +17 -17
- package/src/components/TextArea/TextArea.vue +116 -116
- package/src/components/TextError/TextError.stories.js +15 -15
- package/src/components/TextError/TextError.vue +57 -57
- package/src/components/TextField/TextField.stories.js +17 -17
- package/src/components/TextField/TextField.vue +107 -107
- package/src/components/index.js +54 -54
- package/src/components/newComponents/FooterNew/FooterBottom.vue +153 -153
- package/src/components/newComponents/FooterNew/FooterItem.vue +113 -113
- package/src/components/newComponents/FooterNew/FooterNew.stories.js +20 -20
- package/src/components/newComponents/FooterNew/FooterNew.vue +39 -39
- package/src/components/newComponents/FooterNew/FooterTop.vue +321 -321
- package/src/components/transitions/SlideToggle.vue +55 -55
- package/src/components/transitions/VerticalMobileToggle.vue +75 -75
- package/src/configs/icons.js +112 -112
- package/src/configs/profileDropDown.js +134 -134
- package/src/main.js +12 -12
- package/dist/adata-ui.common.js +0 -12969
- package/dist/adata-ui.common.js.map +0 -1
- package/dist/adata-ui.css +0 -1
- package/dist/adata-ui.umd.js +0 -12979
- package/dist/adata-ui.umd.js.map +0 -1
- package/dist/adata-ui.umd.min.js +0 -7
- package/dist/adata-ui.umd.min.js.map +0 -1
- package/dist/demo.html +0 -10
- package/dist/img/facebook.797d820f.svg +0 -4
- package/dist/img/instagram.8a77381c.svg +0 -6
- package/dist/img/logo-desktop-main.4d169395.svg +0 -8
- package/dist/img/logo-mobile-main.397bce24.svg +0 -4
- package/dist/img/logo-white-desktop.7d0e3481.svg +0 -8
- package/dist/img/telegram.be0d1008.svg +0 -4
- package/dist/img/tiktok.eaeb39cb.svg +0 -4
- package/dist/img/up-down.e2b28f72.svg +0 -3
- package/dist/img/youtube.125aace6.svg +0 -5
- package/package-lock.json +0 -26218
|
@@ -1,308 +1,308 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="menu_mobile">
|
|
3
|
-
<div @click="$emit('changeValue')" class="empty-space"></div>
|
|
4
|
-
<div class="menu-wrapper">
|
|
5
|
-
<div class="mobile-table-head">
|
|
6
|
-
<div class="mobile-table-head-left" @click.stop="$emit('close')">
|
|
7
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
-
<path d="M9.9996 8.00317L5.9996 12.0097L9.99958 16.0032" stroke="#007AFF" stroke-width="1.2"
|
|
9
|
-
stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
-
<path d="M6 12L18 12" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round"
|
|
11
|
-
stroke-linejoin="round"/>
|
|
12
|
-
</svg>
|
|
13
|
-
<span>{{ email }}</span>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="mobile-table-body">
|
|
17
|
-
<p>Тариф {{ rate }}</p>
|
|
18
|
-
<p>Суточный лимит запросов: <span>{{ +limitRemaining }}</span></p>
|
|
19
|
-
<p>Остаток дней по тарифу: <span>{{ daysLeft }}</span></p>
|
|
20
|
-
<a :href="profileDropDown[0][mode] || '/'" class="button">Увеличить лимит запросов</a>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="mobile-table-item">
|
|
23
|
-
<p class="mobile-table-item__title">
|
|
24
|
-
Платежи
|
|
25
|
-
</p>
|
|
26
|
-
<div class="mobile-table-item__text">
|
|
27
|
-
<p>Текущий баланс: <span>{{ balance + " ₸" }}</span></p>
|
|
28
|
-
<a
|
|
29
|
-
:href="profileDropDown[1][mode]"
|
|
30
|
-
onclick="return false"
|
|
31
|
-
@click="showModal(profileDropDown[1][mode])"
|
|
32
|
-
class="button"
|
|
33
|
-
>
|
|
34
|
-
Пополнить
|
|
35
|
-
</a>
|
|
36
|
-
</div>
|
|
37
|
-
<a :href="profileDropDown[2][mode]" class="p">История платежей</a>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="mobile-table-item">
|
|
40
|
-
<p class="mobile-table-item__title">
|
|
41
|
-
Профиль пользователя
|
|
42
|
-
</p>
|
|
43
|
-
<div
|
|
44
|
-
v-for="(item, id) in profileDropDown.filter(el => el.children)"
|
|
45
|
-
:key="'child' + id"
|
|
46
|
-
class="mobile-table-item__text wrapped"
|
|
47
|
-
>
|
|
48
|
-
<div @click="openOneCloseOthers(id)" class="wrapped__text" :class="{'active': item.opened}">
|
|
49
|
-
<p>{{ item.name }}</p>
|
|
50
|
-
<div class="svg-wrapper" :class="{'rotated': item.opened}">
|
|
51
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
52
|
-
<path d="M4.5 9L12 15L19.5 9" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
|
|
53
|
-
</svg>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<SlideToggle>
|
|
57
|
-
<div v-show="item.opened" class="mobile-table-item__children">
|
|
58
|
-
<a
|
|
59
|
-
v-for="(elem, id) in item.children" :key="'elem' + id"
|
|
60
|
-
:href="elem[mode]"
|
|
61
|
-
:target="elem.name === 'Избранные' ? '_blank' : '_self'"
|
|
62
|
-
>
|
|
63
|
-
{{ elem.name }}
|
|
64
|
-
</a>
|
|
65
|
-
</div>
|
|
66
|
-
</SlideToggle>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="mobile-table-item">
|
|
70
|
-
<p class="mobile-table-item__title">
|
|
71
|
-
Общие настройки
|
|
72
|
-
</p>
|
|
73
|
-
<a :href="profileDropDown[3][mode]" class="p">Личная информация</a>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="menu_mobile-footer">
|
|
76
|
-
<button class="sign" @click="$emit('logout')">
|
|
77
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
78
|
-
<path d="M16.5 15L19.5 12L16.5 9" stroke="white" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
79
|
-
<path d="M15 16.875L15 19.5L4.5 19.5L4.5 4.5L15 4.5L15 6.5625" stroke="white" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
80
|
-
<path d="M19 12H8" stroke="white" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
81
|
-
</svg>
|
|
82
|
-
<span>Выход</span>
|
|
83
|
-
</button>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</template>
|
|
88
|
-
|
|
89
|
-
<script>
|
|
90
|
-
import {profileDropDown} from "../../configs/profileDropDown";
|
|
91
|
-
import SlideToggle from "../transitions/SlideToggle";
|
|
92
|
-
|
|
93
|
-
export default {
|
|
94
|
-
name: "ProfileMobile",
|
|
95
|
-
props: {
|
|
96
|
-
email: {
|
|
97
|
-
type: String,
|
|
98
|
-
required: true
|
|
99
|
-
},
|
|
100
|
-
balance: {
|
|
101
|
-
type: [Number, String],
|
|
102
|
-
default: ""
|
|
103
|
-
},
|
|
104
|
-
rate: {
|
|
105
|
-
type: String,
|
|
106
|
-
default: 'Базовый'
|
|
107
|
-
},
|
|
108
|
-
limitRemaining: {
|
|
109
|
-
type: Number,
|
|
110
|
-
default: 0
|
|
111
|
-
},
|
|
112
|
-
daysLeft: {
|
|
113
|
-
type: [Number, String],
|
|
114
|
-
default: 0
|
|
115
|
-
},
|
|
116
|
-
mode: {
|
|
117
|
-
type: String,
|
|
118
|
-
required: true
|
|
119
|
-
},
|
|
120
|
-
activeTabKey: {
|
|
121
|
-
type: String,
|
|
122
|
-
default: ""
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
components: {
|
|
126
|
-
SlideToggle
|
|
127
|
-
},
|
|
128
|
-
data() {
|
|
129
|
-
return {
|
|
130
|
-
profileDropDown
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
mounted() {
|
|
134
|
-
const item = this.activeTabKey ? this.profileDropDown.find(el => el.key && el.key.includes(this.activeTabKey)) : null;
|
|
135
|
-
if(item) this.$set(item, 'opened', true);
|
|
136
|
-
},
|
|
137
|
-
methods: {
|
|
138
|
-
openOneCloseOthers(id) {
|
|
139
|
-
const array = this.profileDropDown.filter(el => el.children);
|
|
140
|
-
array.forEach((el, idx) => {
|
|
141
|
-
if(id === idx) this.$set(el, 'opened', !el.opened);
|
|
142
|
-
else this.$set(el, 'opened', false);
|
|
143
|
-
})
|
|
144
|
-
},
|
|
145
|
-
async showModal(url) {
|
|
146
|
-
if (window.location.href.includes(url)) {
|
|
147
|
-
this.$emit("setIsReplenishModal", true);
|
|
148
|
-
this.setShowModal(true);
|
|
149
|
-
} else {
|
|
150
|
-
await window.open(url + "&modal=show", "_blank");
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
</script>
|
|
156
|
-
|
|
157
|
-
<style lang="scss" scoped>
|
|
158
|
-
.rotated {
|
|
159
|
-
svg {
|
|
160
|
-
transform: rotate(180deg);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.empty-space {
|
|
165
|
-
background: none!important;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.mobile-table-head-left {
|
|
169
|
-
display: flex;
|
|
170
|
-
align-items: center;
|
|
171
|
-
gap: 8px;
|
|
172
|
-
svg {
|
|
173
|
-
background: rgba(0, 122, 255, 0.12);
|
|
174
|
-
border-radius: 50%;
|
|
175
|
-
width: 24px;
|
|
176
|
-
height: 24px;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.mobile-table {
|
|
181
|
-
&-body {
|
|
182
|
-
background: rgba(236, 239, 241, 0.6);
|
|
183
|
-
border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
|
|
184
|
-
padding: 12px 20px;
|
|
185
|
-
p, a.p {
|
|
186
|
-
display: flex;
|
|
187
|
-
justify-content: space-between;
|
|
188
|
-
align-items: center;
|
|
189
|
-
color: #2C3E50;
|
|
190
|
-
font-size: 12px;
|
|
191
|
-
margin-bottom: 8px;
|
|
192
|
-
&:first-child {
|
|
193
|
-
font-weight: 600;
|
|
194
|
-
font-size: 14px;
|
|
195
|
-
}
|
|
196
|
-
span {
|
|
197
|
-
background: #007AFF;
|
|
198
|
-
color: #fff;
|
|
199
|
-
padding: 2px 8px;
|
|
200
|
-
border-radius: 100px;
|
|
201
|
-
line-height: 20px;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
a.button {
|
|
205
|
-
border: none;
|
|
206
|
-
background: transparent;
|
|
207
|
-
display: flex;
|
|
208
|
-
justify-content: center;
|
|
209
|
-
align-items: center;
|
|
210
|
-
color: #007AFF;
|
|
211
|
-
font-size: 14px;
|
|
212
|
-
font-weight: 600;
|
|
213
|
-
margin: 20px auto 0;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
&-item {
|
|
217
|
-
padding: 12px 20px;
|
|
218
|
-
border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
|
|
219
|
-
p, a.p {
|
|
220
|
-
&.mobile-table-item__title {
|
|
221
|
-
color: #71757A;
|
|
222
|
-
font-size: 12px;
|
|
223
|
-
font-weight: 400;
|
|
224
|
-
margin-bottom: 12px;
|
|
225
|
-
}
|
|
226
|
-
&:not(.mobile-table-item__title) {
|
|
227
|
-
font-size: 14px;
|
|
228
|
-
font-weight: 400;
|
|
229
|
-
color: #2C3E50;
|
|
230
|
-
span {
|
|
231
|
-
color: #698096;
|
|
232
|
-
font-weight: 500;
|
|
233
|
-
background: #ECEFF1;
|
|
234
|
-
border-radius: 100px;
|
|
235
|
-
padding: 2px 8px;
|
|
236
|
-
line-height: 20px;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
&__text {
|
|
241
|
-
display: flex;
|
|
242
|
-
justify-content: space-between;
|
|
243
|
-
font-size: 14px;
|
|
244
|
-
font-weight: 400;
|
|
245
|
-
margin-bottom: 12px;
|
|
246
|
-
flex-wrap: wrap;
|
|
247
|
-
align-items: center;
|
|
248
|
-
color: #2C3E50;
|
|
249
|
-
row-gap: 12px;
|
|
250
|
-
a.button {
|
|
251
|
-
background: transparent;
|
|
252
|
-
border: none;
|
|
253
|
-
color: #007AFF;
|
|
254
|
-
font-size: 14px;
|
|
255
|
-
font-weight: 600;
|
|
256
|
-
}
|
|
257
|
-
&.wrapped {
|
|
258
|
-
flex-wrap: wrap;
|
|
259
|
-
align-items: center;
|
|
260
|
-
margin-bottom: 0;
|
|
261
|
-
.wrapped__text {
|
|
262
|
-
display: flex;
|
|
263
|
-
justify-content: space-between;
|
|
264
|
-
align-items: center;
|
|
265
|
-
padding: 10px 20px;
|
|
266
|
-
width: 100%;
|
|
267
|
-
&.active {
|
|
268
|
-
background: #E5E5E5;
|
|
269
|
-
border-left: 3px solid #007aff;
|
|
270
|
-
margin-top: 12px;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
.mobile-table-item__children {
|
|
274
|
-
padding: 0 20px 0 36px;
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-direction: column;
|
|
277
|
-
width: 100%;
|
|
278
|
-
gap: 16px;
|
|
279
|
-
margin-bottom: 12px;
|
|
280
|
-
a {
|
|
281
|
-
font-size: 14px;
|
|
282
|
-
color: #2C3E50;
|
|
283
|
-
font-weight: 400;
|
|
284
|
-
text-decoration: none;
|
|
285
|
-
&:visited, &:active {
|
|
286
|
-
color: #2C3E50;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
&:last-child {
|
|
292
|
-
margin-bottom: 0;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
&:nth-child(4) {
|
|
296
|
-
padding: 12px 0;
|
|
297
|
-
.mobile-table-item__title {
|
|
298
|
-
padding: 0 20px;
|
|
299
|
-
margin-bottom: 0;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
&:nth-child(5) {
|
|
303
|
-
padding-bottom: 36px;
|
|
304
|
-
border-bottom: none;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="menu_mobile">
|
|
3
|
+
<div @click="$emit('changeValue')" class="empty-space"></div>
|
|
4
|
+
<div class="menu-wrapper">
|
|
5
|
+
<div class="mobile-table-head">
|
|
6
|
+
<div class="mobile-table-head-left" @click.stop="$emit('close')">
|
|
7
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M9.9996 8.00317L5.9996 12.0097L9.99958 16.0032" stroke="#007AFF" stroke-width="1.2"
|
|
9
|
+
stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
<path d="M6 12L18 12" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"/>
|
|
12
|
+
</svg>
|
|
13
|
+
<span>{{ email }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="mobile-table-body">
|
|
17
|
+
<p>Тариф {{ rate }}</p>
|
|
18
|
+
<p>Суточный лимит запросов: <span>{{ +limitRemaining }}</span></p>
|
|
19
|
+
<p>Остаток дней по тарифу: <span>{{ daysLeft }}</span></p>
|
|
20
|
+
<a :href="profileDropDown[0][mode] || '/'" class="button">Увеличить лимит запросов</a>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="mobile-table-item">
|
|
23
|
+
<p class="mobile-table-item__title">
|
|
24
|
+
Платежи
|
|
25
|
+
</p>
|
|
26
|
+
<div class="mobile-table-item__text">
|
|
27
|
+
<p>Текущий баланс: <span>{{ balance + " ₸" }}</span></p>
|
|
28
|
+
<a
|
|
29
|
+
:href="profileDropDown[1][mode]"
|
|
30
|
+
onclick="return false"
|
|
31
|
+
@click="showModal(profileDropDown[1][mode])"
|
|
32
|
+
class="button"
|
|
33
|
+
>
|
|
34
|
+
Пополнить
|
|
35
|
+
</a>
|
|
36
|
+
</div>
|
|
37
|
+
<a :href="profileDropDown[2][mode]" class="p">История платежей</a>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="mobile-table-item">
|
|
40
|
+
<p class="mobile-table-item__title">
|
|
41
|
+
Профиль пользователя
|
|
42
|
+
</p>
|
|
43
|
+
<div
|
|
44
|
+
v-for="(item, id) in profileDropDown.filter(el => el.children)"
|
|
45
|
+
:key="'child' + id"
|
|
46
|
+
class="mobile-table-item__text wrapped"
|
|
47
|
+
>
|
|
48
|
+
<div @click="openOneCloseOthers(id)" class="wrapped__text" :class="{'active': item.opened}">
|
|
49
|
+
<p>{{ item.name }}</p>
|
|
50
|
+
<div class="svg-wrapper" :class="{'rotated': item.opened}">
|
|
51
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
52
|
+
<path d="M4.5 9L12 15L19.5 9" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
|
|
53
|
+
</svg>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<SlideToggle>
|
|
57
|
+
<div v-show="item.opened" class="mobile-table-item__children">
|
|
58
|
+
<a
|
|
59
|
+
v-for="(elem, id) in item.children" :key="'elem' + id"
|
|
60
|
+
:href="elem[mode]"
|
|
61
|
+
:target="elem.name === 'Избранные' ? '_blank' : '_self'"
|
|
62
|
+
>
|
|
63
|
+
{{ elem.name }}
|
|
64
|
+
</a>
|
|
65
|
+
</div>
|
|
66
|
+
</SlideToggle>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="mobile-table-item">
|
|
70
|
+
<p class="mobile-table-item__title">
|
|
71
|
+
Общие настройки
|
|
72
|
+
</p>
|
|
73
|
+
<a :href="profileDropDown[3][mode]" class="p">Личная информация</a>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="menu_mobile-footer">
|
|
76
|
+
<button class="sign" @click="$emit('logout')">
|
|
77
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
78
|
+
<path d="M16.5 15L19.5 12L16.5 9" stroke="white" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
79
|
+
<path d="M15 16.875L15 19.5L4.5 19.5L4.5 4.5L15 4.5L15 6.5625" stroke="white" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
80
|
+
<path d="M19 12H8" stroke="white" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
81
|
+
</svg>
|
|
82
|
+
<span>Выход</span>
|
|
83
|
+
</button>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</template>
|
|
88
|
+
|
|
89
|
+
<script>
|
|
90
|
+
import {profileDropDown} from "../../configs/profileDropDown";
|
|
91
|
+
import SlideToggle from "../transitions/SlideToggle";
|
|
92
|
+
|
|
93
|
+
export default {
|
|
94
|
+
name: "ProfileMobile",
|
|
95
|
+
props: {
|
|
96
|
+
email: {
|
|
97
|
+
type: String,
|
|
98
|
+
required: true
|
|
99
|
+
},
|
|
100
|
+
balance: {
|
|
101
|
+
type: [Number, String],
|
|
102
|
+
default: ""
|
|
103
|
+
},
|
|
104
|
+
rate: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: 'Базовый'
|
|
107
|
+
},
|
|
108
|
+
limitRemaining: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: 0
|
|
111
|
+
},
|
|
112
|
+
daysLeft: {
|
|
113
|
+
type: [Number, String],
|
|
114
|
+
default: 0
|
|
115
|
+
},
|
|
116
|
+
mode: {
|
|
117
|
+
type: String,
|
|
118
|
+
required: true
|
|
119
|
+
},
|
|
120
|
+
activeTabKey: {
|
|
121
|
+
type: String,
|
|
122
|
+
default: ""
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
components: {
|
|
126
|
+
SlideToggle
|
|
127
|
+
},
|
|
128
|
+
data() {
|
|
129
|
+
return {
|
|
130
|
+
profileDropDown
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
mounted() {
|
|
134
|
+
const item = this.activeTabKey ? this.profileDropDown.find(el => el.key && el.key.includes(this.activeTabKey)) : null;
|
|
135
|
+
if(item) this.$set(item, 'opened', true);
|
|
136
|
+
},
|
|
137
|
+
methods: {
|
|
138
|
+
openOneCloseOthers(id) {
|
|
139
|
+
const array = this.profileDropDown.filter(el => el.children);
|
|
140
|
+
array.forEach((el, idx) => {
|
|
141
|
+
if(id === idx) this.$set(el, 'opened', !el.opened);
|
|
142
|
+
else this.$set(el, 'opened', false);
|
|
143
|
+
})
|
|
144
|
+
},
|
|
145
|
+
async showModal(url) {
|
|
146
|
+
if (window.location.href.includes(url)) {
|
|
147
|
+
this.$emit("setIsReplenishModal", true);
|
|
148
|
+
this.setShowModal(true);
|
|
149
|
+
} else {
|
|
150
|
+
await window.open(url + "&modal=show", "_blank");
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
</script>
|
|
156
|
+
|
|
157
|
+
<style lang="scss" scoped>
|
|
158
|
+
.rotated {
|
|
159
|
+
svg {
|
|
160
|
+
transform: rotate(180deg);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.empty-space {
|
|
165
|
+
background: none!important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.mobile-table-head-left {
|
|
169
|
+
display: flex;
|
|
170
|
+
align-items: center;
|
|
171
|
+
gap: 8px;
|
|
172
|
+
svg {
|
|
173
|
+
background: rgba(0, 122, 255, 0.12);
|
|
174
|
+
border-radius: 50%;
|
|
175
|
+
width: 24px;
|
|
176
|
+
height: 24px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.mobile-table {
|
|
181
|
+
&-body {
|
|
182
|
+
background: rgba(236, 239, 241, 0.6);
|
|
183
|
+
border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
|
|
184
|
+
padding: 12px 20px;
|
|
185
|
+
p, a.p {
|
|
186
|
+
display: flex;
|
|
187
|
+
justify-content: space-between;
|
|
188
|
+
align-items: center;
|
|
189
|
+
color: #2C3E50;
|
|
190
|
+
font-size: 12px;
|
|
191
|
+
margin-bottom: 8px;
|
|
192
|
+
&:first-child {
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
font-size: 14px;
|
|
195
|
+
}
|
|
196
|
+
span {
|
|
197
|
+
background: #007AFF;
|
|
198
|
+
color: #fff;
|
|
199
|
+
padding: 2px 8px;
|
|
200
|
+
border-radius: 100px;
|
|
201
|
+
line-height: 20px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
a.button {
|
|
205
|
+
border: none;
|
|
206
|
+
background: transparent;
|
|
207
|
+
display: flex;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
align-items: center;
|
|
210
|
+
color: #007AFF;
|
|
211
|
+
font-size: 14px;
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
margin: 20px auto 0;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
&-item {
|
|
217
|
+
padding: 12px 20px;
|
|
218
|
+
border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
|
|
219
|
+
p, a.p {
|
|
220
|
+
&.mobile-table-item__title {
|
|
221
|
+
color: #71757A;
|
|
222
|
+
font-size: 12px;
|
|
223
|
+
font-weight: 400;
|
|
224
|
+
margin-bottom: 12px;
|
|
225
|
+
}
|
|
226
|
+
&:not(.mobile-table-item__title) {
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
font-weight: 400;
|
|
229
|
+
color: #2C3E50;
|
|
230
|
+
span {
|
|
231
|
+
color: #698096;
|
|
232
|
+
font-weight: 500;
|
|
233
|
+
background: #ECEFF1;
|
|
234
|
+
border-radius: 100px;
|
|
235
|
+
padding: 2px 8px;
|
|
236
|
+
line-height: 20px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
&__text {
|
|
241
|
+
display: flex;
|
|
242
|
+
justify-content: space-between;
|
|
243
|
+
font-size: 14px;
|
|
244
|
+
font-weight: 400;
|
|
245
|
+
margin-bottom: 12px;
|
|
246
|
+
flex-wrap: wrap;
|
|
247
|
+
align-items: center;
|
|
248
|
+
color: #2C3E50;
|
|
249
|
+
row-gap: 12px;
|
|
250
|
+
a.button {
|
|
251
|
+
background: transparent;
|
|
252
|
+
border: none;
|
|
253
|
+
color: #007AFF;
|
|
254
|
+
font-size: 14px;
|
|
255
|
+
font-weight: 600;
|
|
256
|
+
}
|
|
257
|
+
&.wrapped {
|
|
258
|
+
flex-wrap: wrap;
|
|
259
|
+
align-items: center;
|
|
260
|
+
margin-bottom: 0;
|
|
261
|
+
.wrapped__text {
|
|
262
|
+
display: flex;
|
|
263
|
+
justify-content: space-between;
|
|
264
|
+
align-items: center;
|
|
265
|
+
padding: 10px 20px;
|
|
266
|
+
width: 100%;
|
|
267
|
+
&.active {
|
|
268
|
+
background: #E5E5E5;
|
|
269
|
+
border-left: 3px solid #007aff;
|
|
270
|
+
margin-top: 12px;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
.mobile-table-item__children {
|
|
274
|
+
padding: 0 20px 0 36px;
|
|
275
|
+
display: flex;
|
|
276
|
+
flex-direction: column;
|
|
277
|
+
width: 100%;
|
|
278
|
+
gap: 16px;
|
|
279
|
+
margin-bottom: 12px;
|
|
280
|
+
a {
|
|
281
|
+
font-size: 14px;
|
|
282
|
+
color: #2C3E50;
|
|
283
|
+
font-weight: 400;
|
|
284
|
+
text-decoration: none;
|
|
285
|
+
&:visited, &:active {
|
|
286
|
+
color: #2C3E50;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
&:last-child {
|
|
292
|
+
margin-bottom: 0;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
&:nth-child(4) {
|
|
296
|
+
padding: 12px 0;
|
|
297
|
+
.mobile-table-item__title {
|
|
298
|
+
padding: 0 20px;
|
|
299
|
+
margin-bottom: 0;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
&:nth-child(5) {
|
|
303
|
+
padding-bottom: 36px;
|
|
304
|
+
border-bottom: none;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
</style>
|