index.nvue
1.21 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
<template>
<!-- #ifdef MP-WEIXIN -->
<CustomNavBar :title="t('PreMenu.remoteShopInspection')" :is-tab="true" />
<!-- #endif -->
<!-- #ifndef MP-WEIXIN -->
<StatusBarVue bgColor="#3277FB" />
<!-- #endif -->
<TabCards :cards="cards" :top="top" :text-size="textSize" />
</template>
<script setup>
import {
onMounted,
ref
} from 'vue'
import {
onLoad
} from '@dcloudio/uni-app'
import CustomNavBar from '@/components/CustomNav.nvue'
import TabCards from '@/components/TabCards.nvue'
import StatusBarVue from '../../components/StatusBar.vue';
import PageOptionsVue from '../../components/PageOptions.vue';
import {
t
} from '@/plugins/index.js'
onLoad(()=>{
})
const top = ref(uni.getSystemInfoSync().statusBarHeight || 0)
// #ifdef MP-WEIXIN
top.value += 44
// #endif
const textSize = ref('32rpx')
// #ifdef MP-WEIXIN
textSize.value = '28rpx'
// #endif
const cards = [{
name: 'title.storeList',
component: 'StoreList'
}, {
name: 'VideoShopTour.group',
component: 'Organization'
}, {
name: 'app.menu.filterStoreByTag',
component: 'TagStoreVue'
}, {
name: 'VideoShopTour.favoriteStores',
component: 'MarkStore'
}]
</script>