index.nvue 1.21 KB
<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>