gemercheung 1 vuosi sitten
vanhempi
commit
031e95a3e6
7 muutettua tiedostoa jossa 25 lisäystä ja 5 poistoa
  1. 2 1
      .env
  2. 2 1
      .env.development
  3. 2 1
      .env.eur
  4. 1 0
      .env.eur.prod
  5. 1 0
      .env.home
  6. 1 0
      .env.home.prod
  7. 16 2
      src/views/statistic/tab/tab3.vue

+ 2 - 1
.env

@@ -2,4 +2,5 @@ VITE_BASE_API_URL=https://test.4dkankan.com
 VITE_MAIN_URL=https://test.4dkankan.com
 VITE_LIVE_STEAM_URL=https://test4dkankan.com/livestream
 VITE_SHOW_CONSOLE=0
-VITE_IS_MINIAPP=1
+VITE_IS_MINIAPP=1
+VITE_IS_INTERNATIONAL=0

+ 2 - 1
.env.development

@@ -2,4 +2,5 @@ VITE_BASE_API_URL=https://v4-test.4dkankan.com
 VITE_MAIN_URL=https://test.4dkankan.com
 VITE_LIVE_STEAM_URL=https://test.4dkankan.com/livestream
 VITE_SHOW_CONSOLE=1
-VITE_IS_MINIAPP=1
+VITE_IS_MINIAPP=1
+VITE_IS_INTERNATIONAL=0

+ 2 - 1
.env.eur

@@ -2,4 +2,5 @@ VITE_BASE_API_URL=https://testeur.4dkankan.com
 VITE_MAIN_URL=https://testeur.4dkankan.com
 VITE_LIVE_STEAM_URL=https://testeur.4dkankan.com/livestream
 VITE_SHOW_CONSOLE=1
-VITE_IS_MINIAPP=0
+VITE_IS_MINIAPP=0
+VITE_IS_INTERNATIONAL=1

+ 1 - 0
.env.eur.prod

@@ -3,3 +3,4 @@ VITE_MAIN_URL=https://eur.4dkankan.com
 VITE_LIVE_STEAM_URL=https://eur.4dkankan.com/livestream
 VITE_SHOW_CONSOLE=0
 VITE_IS_MINIAPP=0
+VITE_IS_INTERNATIONAL=1

+ 1 - 0
.env.home

@@ -3,3 +3,4 @@ VITE_MAIN_URL=https://test.4dkankan.com
 VITE_LIVE_STEAM_URL=https://test.4dkankan.com/livestream
 VITE_SHOW_CONSOLE=0
 VITE_IS_MINIAPP=1
+VITE_IS_INTERNATIONAL=0

+ 1 - 0
.env.home.prod

@@ -3,3 +3,4 @@ VITE_MAIN_URL=https://www.4dkankan.com
 VITE_LIVE_STEAM_URL=https://www.4dkankan.com/livestream
 VITE_SHOW_CONSOLE=0
 VITE_IS_MINIAPP=1
+VITE_IS_INTERNATIONAL=0

+ 16 - 2
src/views/statistic/tab/tab3.vue

@@ -79,12 +79,22 @@
 </template>
 
 <script lang="ts" setup>
-import { computed, onMounted, UnwrapRef, watch, unref, reactive } from 'vue'
+import {
+  computed,
+  onMounted,
+  UnwrapRef,
+  watch,
+  ref,
+  unref,
+  reactive
+} from 'vue'
 import { TableColumnProps, TablePaginationConfig } from 'ant-design-vue'
 import { useStatisticStore } from '@/store/modules/statistic'
 import dayjs from 'dayjs'
 import { useI18n } from '@/hook/useI18n'
 
+const isInternational = ref(import.meta.env.VITE_IS_INTERNATIONAL)
+
 const { t } = useI18n()
 const statisticStore = useStatisticStore()
 
@@ -113,7 +123,8 @@ const columns: TableColumnProps[] = [
     title: t('room.form.phoneNumber'),
     // className: 'column-money',
     dataIndex: 'phoneNumber',
-    width: 120
+    width: isInternational ? 0 : 120
+    // className: isInternational ? "column-hidden" : ''
   },
   {
     title: t('room.roomTitle'),
@@ -236,4 +247,7 @@ const handleTableChange = (pagination: any, filters: any, sorter: any) => {
   margin-bottom: 25px;
   min-width: 875px;
 }
+.ant-table-cell.column-hidden {
+  display: none;
+}
 </style>