refactor(app): 优化代码结构和依赖
- 移除了未使用的 countUp 相关代码- 清理了无用的引用和变量 - 调整了拍卖数据的展示方式- 删除了未使用的 postcss-mobile-forever 依赖
This commit is contained in:
parent
7b56c8543a
commit
6cb7a282f6
@ -33,8 +33,8 @@ const startCountdown = () => {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
const countdown = ref(0);
|
const countdown = ref(0);
|
||||||
const phoneNum = ref('17630920520')
|
const phoneNum = ref('')
|
||||||
const code = ref('123789')
|
const code = ref('')
|
||||||
const pane = ref(0)
|
const pane = ref(0)
|
||||||
const showKeyboard = ref(false);
|
const showKeyboard = ref(false);
|
||||||
const getFingerprint = async () => {
|
const getFingerprint = async () => {
|
||||||
|
@ -40,7 +40,7 @@ const headItem=(statusCode)=>{
|
|||||||
<div class="text-#939393 text-14px">{{ $t('live_room.next_lot') }}</div>
|
<div class="text-#939393 text-14px">{{ $t('live_room.next_lot') }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="auctionData.auctionPriceList?.buys?.length>0">
|
<template v-else-if="auctionData.auctionPriceList?.buys?.length>0">
|
||||||
<div v-for="(item, index) in auctionData.auctionPriceList?.buys" :key="index" class="flex flex-shrink-0 h-25px">
|
<div v-for="(item, index) in auctionData.auctionPriceList?.buys" :key="index" class="flex flex-shrink-0">
|
||||||
<div class="text-start shrink-0 w-60px" :style="`color: ${headItem(item.statusCode).color}`" >{{ headItem(item.statusCode).label }}</div>
|
<div class="text-start shrink-0 w-60px" :style="`color: ${headItem(item.statusCode).color}`" >{{ headItem(item.statusCode).label }}</div>
|
||||||
<div class="text-start shrink-0 w-80px">{{ item.auctionType==='local'? $t('live_room.spot'):$t('live_room.network') }}</div>
|
<div class="text-start shrink-0 w-80px">{{ item.auctionType==='local'? $t('live_room.spot'):$t('live_room.network') }}</div>
|
||||||
<div class="text-start shrink-0 w-80px">{{ item.createdAt }}</div>
|
<div class="text-start shrink-0 w-80px">{{ item.createdAt }}</div>
|
||||||
|
@ -13,10 +13,7 @@ import {message} from "~/components/x-message/useMessage.js"
|
|||||||
import {showConfirmDialog} from 'vant';
|
import {showConfirmDialog} from 'vant';
|
||||||
import {artworkBuy} from "@/api/goods/index.js"
|
import {artworkBuy} from "@/api/goods/index.js"
|
||||||
import {useI18n} from 'vue-i18n'
|
import {useI18n} from 'vue-i18n'
|
||||||
import {CountUp} from 'countup.js'
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const countUpRef = ref(null)
|
|
||||||
const nextPriceRef = ref(null)
|
|
||||||
const { auctionDetail} = goodStore();
|
const { auctionDetail} = goodStore();
|
||||||
const player = ref(null)
|
const player = ref(null)
|
||||||
const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink, fullLive} = liveStore()
|
const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink, fullLive} = liveStore()
|
||||||
|
@ -3,6 +3,5 @@ import VConsole from 'vconsole'
|
|||||||
export default defineNuxtPlugin(() => {
|
export default defineNuxtPlugin(() => {
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
const vConsole = new VConsole()
|
const vConsole = new VConsole()
|
||||||
console.log('VConsole is enabled')
|
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -23,7 +23,6 @@
|
|||||||
"@vueuse/core": "^12.4.0",
|
"@vueuse/core": "^12.4.0",
|
||||||
"aliyun-aliplayer": "^2.28.5",
|
"aliyun-aliplayer": "^2.28.5",
|
||||||
"axios": "^1.7.9",
|
"axios": "^1.7.9",
|
||||||
"countup.js": "^2.8.0",
|
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.4.7",
|
||||||
@ -48,7 +47,6 @@
|
|||||||
"bumpp": "^9.9.2",
|
"bumpp": "^9.9.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"ipx": "^3.0.1",
|
"ipx": "^3.0.1",
|
||||||
"postcss-mobile-forever": "^4.3.1",
|
|
||||||
"postcss-px-to-viewport": "^1.1.1",
|
"postcss-px-to-viewport": "^1.1.1",
|
||||||
"sass": "^1.83.1",
|
"sass": "^1.83.1",
|
||||||
"sass-loader": "^16.0.4",
|
"sass-loader": "^16.0.4",
|
||||||
|
@ -29,9 +29,6 @@ importers:
|
|||||||
axios:
|
axios:
|
||||||
specifier: ^1.7.9
|
specifier: ^1.7.9
|
||||||
version: 1.7.9
|
version: 1.7.9
|
||||||
countup.js:
|
|
||||||
specifier: ^2.8.0
|
|
||||||
version: 2.8.0
|
|
||||||
crypto-js:
|
crypto-js:
|
||||||
specifier: ^4.2.0
|
specifier: ^4.2.0
|
||||||
version: 4.2.0
|
version: 4.2.0
|
||||||
@ -99,9 +96,6 @@ importers:
|
|||||||
ipx:
|
ipx:
|
||||||
specifier: ^3.0.1
|
specifier: ^3.0.1
|
||||||
version: 3.0.1(db0@0.2.4)(ioredis@5.5.0)
|
version: 3.0.1(db0@0.2.4)(ioredis@5.5.0)
|
||||||
postcss-mobile-forever:
|
|
||||||
specifier: ^4.3.1
|
|
||||||
version: 4.3.2(postcss@8.5.2)
|
|
||||||
postcss-px-to-viewport:
|
postcss-px-to-viewport:
|
||||||
specifier: ^1.1.1
|
specifier: ^1.1.1
|
||||||
version: 1.1.1
|
version: 1.1.1
|
||||||
@ -2102,9 +2096,6 @@ packages:
|
|||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
countup.js@2.8.0:
|
|
||||||
resolution: {integrity: sha512-f7xEhX0awl4NOElHulrl4XRfKoNH3rB+qfNSZZyjSZhaAoUk6elvhH+MNxMmlmuUJ2/QNTWPSA7U4mNtIAKljQ==}
|
|
||||||
|
|
||||||
crc-32@1.2.2:
|
crc-32@1.2.2:
|
||||||
resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==}
|
resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==}
|
||||||
engines: {node: '>=0.8'}
|
engines: {node: '>=0.8'}
|
||||||
@ -3613,11 +3604,6 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
postcss: ^8.4.31
|
postcss: ^8.4.31
|
||||||
|
|
||||||
postcss-mobile-forever@4.3.2:
|
|
||||||
resolution: {integrity: sha512-l1YuvxouJ7wt2awKtomuTDKXkNlFcUvC62sVUD9+Gr2AdyZRTtP81izo/IHfS2fbbFCY5JzvuTGmAJ2SyEqv+w==}
|
|
||||||
peerDependencies:
|
|
||||||
postcss: ^8.0.0
|
|
||||||
|
|
||||||
postcss-normalize-charset@7.0.0:
|
postcss-normalize-charset@7.0.0:
|
||||||
resolution: {integrity: sha512-ABisNUXMeZeDNzCQxPxBCkXexvBrUHV+p7/BXOY+ulxkcjUZO0cp8ekGBwvIh2LbCwnWbyMPNJVtBSdyhM2zYQ==}
|
resolution: {integrity: sha512-ABisNUXMeZeDNzCQxPxBCkXexvBrUHV+p7/BXOY+ulxkcjUZO0cp8ekGBwvIh2LbCwnWbyMPNJVtBSdyhM2zYQ==}
|
||||||
engines: {node: ^18.12.0 || ^20.9.0 || >=22.0}
|
engines: {node: ^18.12.0 || ^20.9.0 || >=22.0}
|
||||||
@ -7023,8 +7009,6 @@ snapshots:
|
|||||||
typescript: 5.7.3
|
typescript: 5.7.3
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
countup.js@2.8.0: {}
|
|
||||||
|
|
||||||
crc-32@1.2.2: {}
|
crc-32@1.2.2: {}
|
||||||
|
|
||||||
crc32-stream@6.0.0:
|
crc32-stream@6.0.0:
|
||||||
@ -8763,10 +8747,6 @@ snapshots:
|
|||||||
postcss: 8.5.2
|
postcss: 8.5.2
|
||||||
postcss-selector-parser: 6.1.2
|
postcss-selector-parser: 6.1.2
|
||||||
|
|
||||||
postcss-mobile-forever@4.3.2(postcss@8.5.2):
|
|
||||||
dependencies:
|
|
||||||
postcss: 8.5.2
|
|
||||||
|
|
||||||
postcss-normalize-charset@7.0.0(postcss@8.5.2):
|
postcss-normalize-charset@7.0.0(postcss@8.5.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
postcss: 8.5.2
|
postcss: 8.5.2
|
||||||
|
Loading…
Reference in New Issue
Block a user