adata-ui 2.0.74 → 2.0.76
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.
|
@@ -11,6 +11,7 @@ const { commonAuth } = useAppConfig()
|
|
|
11
11
|
const accessToken = useCookie('accessToken')
|
|
12
12
|
|
|
13
13
|
const {
|
|
14
|
+
rateId,
|
|
14
15
|
topUpSidePanel,
|
|
15
16
|
methodSidePanel,
|
|
16
17
|
kaspiQRSidePanel,
|
|
@@ -64,6 +65,7 @@ async function directionsBanks(bank: 'kaspi' | 'other', sum: number) {
|
|
|
64
65
|
params: {
|
|
65
66
|
amount: sum,
|
|
66
67
|
initial: 1,
|
|
68
|
+
rate_id: rateId.value ?? undefined,
|
|
67
69
|
},
|
|
68
70
|
})
|
|
69
71
|
requestId.value = data.request_id
|
|
@@ -30,6 +30,7 @@ import MapPinRect from '#adata-ui/icons/map/map-pin-rect.vue'
|
|
|
30
30
|
import ChartBar from '#adata-ui/icons/chart-bar.vue'
|
|
31
31
|
import Bank from '#adata-ui/icons/bank.vue'
|
|
32
32
|
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
33
|
+
import MapPaper from '#adata-ui/icons/map-paper.vue'
|
|
33
34
|
type Emits = {
|
|
34
35
|
(e: 'pushMain'): void
|
|
35
36
|
}
|
|
@@ -244,6 +245,11 @@ const sideLinks = <any>{
|
|
|
244
245
|
label: 'header.products.fea.items.importerMap.t',
|
|
245
246
|
icon: MapPinRect,
|
|
246
247
|
link: `${urls.tnved}${PAGES.fea.importerMap}`
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
label: 'header.products.fea.items.containers.t',
|
|
251
|
+
icon: MapPaper,
|
|
252
|
+
link: `${urls.tnved}${PAGES.fea.containers}`
|
|
247
253
|
}
|
|
248
254
|
],
|
|
249
255
|
compliance: [
|
|
@@ -268,15 +274,15 @@ watch(tab, (e) => {
|
|
|
268
274
|
<a-modal v-model="isOpen" :title="t('modals.mobile_navigation.type_main')">
|
|
269
275
|
<div class="flex flex-col gap-5">
|
|
270
276
|
<div class="h-[1px] w-full bg-deepblue-900/5"/>
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
277
|
+
<div>
|
|
278
|
+
<a-pill-tabs v-model="tab" :options="tabOptions" view="gray"/>
|
|
279
|
+
</div>
|
|
274
280
|
<div class="h-[40vh] sm:h-[300px] overflow-auto no-scrollbar">
|
|
275
281
|
<nuxt-link
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
282
|
+
v-for="item in currentLinks"
|
|
283
|
+
:key="item.label"
|
|
284
|
+
:to="item.link"
|
|
285
|
+
class="flex items-center gap-4 px-4 py-3 bg-gray-50 dark:bg-gray-800 mb-2 rounded"
|
|
280
286
|
>
|
|
281
287
|
<div class="bg-gradient-blue p-1 rounded-lg">
|
|
282
288
|
<component
|
|
@@ -30,14 +30,14 @@ const { locale } = useI18n()
|
|
|
30
30
|
|
|
31
31
|
const items = useHeaderMenuLinks()
|
|
32
32
|
|
|
33
|
-
const { topUpSidePanel } = usePayment()
|
|
33
|
+
const { topUpSidePanel, rateId } = usePayment()
|
|
34
34
|
|
|
35
35
|
const onReplenish = () => {
|
|
36
36
|
// if (myLayer.authMode === 'locale') {
|
|
37
37
|
// topUpSidePanel.value = true
|
|
38
38
|
// return
|
|
39
39
|
// }
|
|
40
|
-
|
|
40
|
+
rateId.value = ''
|
|
41
41
|
topUpSidePanel.value = true
|
|
42
42
|
}
|
|
43
43
|
</script>
|
|
@@ -5,6 +5,7 @@ export function usePayment() {
|
|
|
5
5
|
const methodSidePanel = useState('method-side-panel', () => false)
|
|
6
6
|
const kaspiQRSidePanel = useState('kaspi-qr-side-panel', () => false)
|
|
7
7
|
const kaspiRedirectSidePanel = useState('kaspi-redirect-side-panel', () => false)
|
|
8
|
+
const rateId = useState<string>('use-rate-id')
|
|
8
9
|
|
|
9
10
|
async function payByCard(sum: number, rate?: any) {
|
|
10
11
|
const { $toast, $i18n } = useNuxtApp()
|
|
@@ -63,6 +64,7 @@ export function usePayment() {
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
return {
|
|
67
|
+
rateId,
|
|
66
68
|
topUpSidePanel,
|
|
67
69
|
methodSidePanel,
|
|
68
70
|
kaspiQRSidePanel,
|