chore(图片缓存配置文件): 更新文件存放路径,以及对应的引入

This commit is contained in:
hzj 2026-03-05 14:38:33 +08:00
parent ff1f2abb16
commit c2c07694fa
62 changed files with 100 additions and 98 deletions

View File

@ -1,5 +1,5 @@
// src/directives/smartImage.js
import { imageCacheManager } from '@/utils/imageCacheManager'
import { imageCacheManager } from '@/utils/image/imageCacheManager'
import { nextTick } from 'vue'
export const smartImage = {

View File

@ -1,5 +1,5 @@
// src/utils/imagePreloader.js
import { imageCacheManager } from '@/utils/imageCacheManager'
import { imageCacheManager } from '@/utils/image/imageCacheManager'
export const preloadImages = async (sources) => {
let urls = []

View File

@ -1,7 +1,7 @@
// src/utils/versionChecker.js
// 版本检查工具
import { imageCacheManager } from '@/utils/imageCacheManager'
import { imageCacheManager } from '@/utils/image/imageCacheManager'
const PERSISTENT_KEYS = [
'preferred-language', // 语言设置

View File

@ -94,9 +94,9 @@ import { setDocumentDirection } from '@/locales/i18n'
import { viewUserInfo } from '@/utils/appBridge.js'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
import { apiGetLoginRewards, apiGetTodayLoginStatus, postReceiveLoginReward } from '@/api/task.js'

View File

@ -62,7 +62,7 @@
<script setup>
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
const { locale, t } = useI18n()

View File

@ -108,7 +108,7 @@
</template>
<script setup>
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { computed } from 'vue'
const props = defineProps({

View File

@ -1908,11 +1908,11 @@ import { setDocumentDirection } from '@/locales/i18n'
import { viewUserInfo } from '@/utils/appBridge.js'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { setUserInfo } from '@/utils/userStore.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
import { useThrottle } from '@/utils/useDebounce'
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'

View File

@ -131,8 +131,8 @@
import { ref, onMounted } from 'vue'
import { connectToApp } from '@/utils/appConnector.js'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { getMemberProfile, getTotalRecharge } from '@/api/wallet'

View File

@ -192,9 +192,9 @@ import { setDocumentDirection } from '@/locales/i18n'
import { viewUserInfo } from '@/utils/appBridge.js'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
import { useSpringFestival } from '@/stores/springFestival'
import { storeToRefs } from 'pinia'

View File

@ -70,9 +70,9 @@ import { setDocumentDirection } from '@/locales/i18n'
import { viewUserInfo } from '@/utils/appBridge.js'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
import { useSpringFestival } from '@/stores/springFestival'
import { storeToRefs } from 'pinia'

View File

@ -210,9 +210,9 @@ import { setDocumentDirection } from '@/locales/i18n'
import { viewUserInfo } from '@/utils/appBridge.js'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
import { useSpringFestival } from '@/stores/springFestival'
import { storeToRefs } from 'pinia'

View File

@ -662,9 +662,9 @@ import { setDocumentDirection } from '@/locales/i18n'
import { viewUserInfo } from '@/utils/appBridge.js'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
import { useSpringFestival } from '@/stores/springFestival'

View File

@ -116,7 +116,7 @@
</template>
<script setup>
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { computed } from 'vue'
const props = defineProps({

View File

@ -643,10 +643,10 @@ import { getPngUrl, getWebpUrl } from '@/config/imagePaths.js'
import { getUserId, setUserInfo } from '@/utils/userStore.js'
import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useSpringFestival } from '@/stores/springFestival'
import { storeToRefs } from 'pinia'
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'

View File

@ -365,7 +365,7 @@
import { computed, onMounted, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import {
apiGetTeamOverview, //BD

View File

@ -367,7 +367,7 @@
import { computed, onMounted, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import {
apiGetTeamOverview, //BD

View File

@ -362,7 +362,7 @@
import { computed, onMounted, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import {
apiGetTeamOverview, //BD

View File

@ -425,7 +425,7 @@ import { setDocumentDirection } from '@/locales/i18n'
import { gotoAppPage } from '@/utils/appBridge.js'
import { getUserId } from '@/utils/userStore.js'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { useIdentityStore } from '@/stores/identity.js'
import { showError } from '@/utils/toast.js'

View File

@ -38,7 +38,7 @@ import { computed, onMounted, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import GeneralHeader from '@/components/GeneralHeader.vue'

View File

@ -60,7 +60,7 @@ import { reactive } from 'vue'
import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import GeneralHeader from '@/components/GeneralHeader.vue'

View File

@ -105,7 +105,7 @@ import { useI18n } from 'vue-i18n'
import { getTeamId } from '@/utils/userStore.js'
import { showError, showSuccess, showWarning } from '@/utils/toast.js'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { getApplyRecord } from '@/api/teamBill.js'
import { processUserApply } from '@/api/wallet.js'
@ -174,7 +174,7 @@ const handleAgree = async (message) => {
showSuccess(
t('approved_application', {
name: message.name,
})
}),
)
//
const index = messages.value.findIndex((m) => m.id === message.id)
@ -202,7 +202,7 @@ const handleRefuse = async (message) => {
showWarning(
t('rejected_application', {
name: message.name,
})
}),
)
//
const index = messages.value.findIndex((m) => m.id === message.id)

View File

@ -231,7 +231,7 @@ import { useLangStore } from '@/stores/lang'
import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { getTeamId } from '@/utils/userStore.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { getTeamReleasePolicy } from '@/api/teamBill.js'

View File

@ -339,7 +339,7 @@ import { setDocumentDirection } from '@/locales/i18n'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { getTeamId, getUserId } from '@/utils/userStore.js'
import { clearSelectedPayee } from '@/utils/payeeStore.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { getTeamMemberCount, getTeamBill, getTeamMemberWork } from '@/api/teamBill.js'
import { getUserIdentity } from '@/api/wallet.js'

View File

@ -262,7 +262,7 @@ import { showError, showWarning, showInfo, showSuccess } from '@/utils/toast.js'
import { ApiError } from '@/utils/http.js'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import {
sendTeamApplyJoin,
@ -329,7 +329,7 @@ const handleCancelApply = async (record) => {
default:
showError(
error.errorMsg || error.message || 'Cancellation failed, please try again',
'Cancellation failed'
'Cancellation failed',
)
}
} else {

View File

@ -44,8 +44,8 @@
record.status === 'Under review'
? 'linear-gradient(248deg, #FFE675 5.66%, #FFC53D 42.49%)'
: record.status === 'Approved'
? 'linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)'
: 'linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)',
? 'linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)'
: 'linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)',
}"
>
{{ getStatusText(record.status) }}
@ -142,7 +142,7 @@
import { useI18n } from 'vue-i18n'
import { ref, onMounted } from 'vue'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { apiGetWithdrawRecords } from '@/api/wallet'

View File

@ -544,7 +544,7 @@ import { isInApp } from '@/utils/appBridge.js'
import { clearSelectedPayee } from '@/utils/payeeStore.js'
import { setDocumentDirection } from '@/locales/i18n'
import { useIdentityStore } from '@/stores/identity.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { getBdMemberBillList, getBdHistory, getBdHistoryMore } from '@/api/bdCenter.js'
import { apiGetBankBalance } from '@/api/wallet.js'

View File

@ -955,7 +955,7 @@ import { isInApp } from '@/utils/appBridge.js'
import { clearSelectedPayee } from '@/utils/payeeStore.js'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { useIdentityStore } from '@/stores/identity.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { getBdMemberBillList, getBdHistory, getBdHistoryMore } from '@/api/bdCenter.js'
import { getBdLeaderHistory, getBdLeaderHistoryMore } from '@/api/bdLeaderCenter'

View File

@ -155,7 +155,7 @@ import { useLangStore } from '@/stores/lang'
import { useI18n } from 'vue-i18n'
import { getPngUrl } from '@/config/imagePaths.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { getUserId } from '@/utils/userStore.js'
import { showError, showWarning, showSuccess } from '@/utils/toast.js'

View File

@ -103,7 +103,7 @@ import { useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { getTeamId } from '@/utils/userStore.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { getMyAgency, leaveAgency } from '@/api/host'

View File

@ -525,8 +525,8 @@ import { showError, showWarning, showSuccess } from '@/utils/toast.js'
import { useClipboard } from '@vueuse/core'
import { connectToApp } from '@/utils/appConnector.js'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { handleRewardImageError } from '@/utils/imageHandler.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { handleRewardImageError } from '@/utils/image/imageHandler.js'
import {
getMyInviteCode, //

View File

@ -222,7 +222,7 @@ import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { showError, showSuccess } from '@/utils/toast.js'
import { useDebounce } from '@/utils/useDebounce'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { searchUser } from '@/api/userInfo'
import { invitedList, inviteToBeAgency, cancelInvite } from '@/api/bdCenter.js'
@ -298,7 +298,7 @@ const debouncedSearch = useDebounce(
}
},
500,
true
true,
)
//

View File

@ -222,7 +222,7 @@ import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { showError, showSuccess } from '@/utils/toast.js'
import { useDebounce } from '@/utils/useDebounce'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { searchUser } from '@/api/userInfo'
import {
@ -302,7 +302,7 @@ const debouncedSearch = useDebounce(
}
},
500,
true
true,
)
//

View File

@ -221,7 +221,7 @@ import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { showError, showSuccess } from '@/utils/toast.js'
import { useDebounce } from '@/utils/useDebounce'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { searchUser } from '@/api/userInfo'
import {
@ -301,7 +301,7 @@ const debouncedSearch = useDebounce(
}
},
500,
true
true,
)
//

View File

@ -1084,8 +1084,8 @@ import { showError, showWarning, showSuccess } from '@/utils/toast.js'
import { useClipboard } from '@vueuse/core'
import { connectToApp } from '@/utils/appConnector.js'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import {
getRankingListAndMyRanking, //

View File

@ -201,7 +201,7 @@ import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { useDebounce } from '@/utils/useDebounce'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import GeneralHeader from '@/components/GeneralHeader.vue'
@ -281,7 +281,7 @@ const debouncedSearch = useDebounce(
}
},
500,
true
true,
)
//

View File

@ -124,10 +124,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
import { getUserId, setUserInfo } from '@/utils/userStore.js'
import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useCoupleStore } from '@/stores/couple'
import { storeToRefs } from 'pinia'

View File

@ -72,10 +72,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
import { getUserId, setUserInfo } from '@/utils/userStore.js'
import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useCoupleStore } from '@/stores/couple'
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'

View File

@ -210,10 +210,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
import { getUserId, setUserInfo } from '@/utils/userStore.js'
import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useCoupleStore } from '@/stores/couple'
import { storeToRefs } from 'pinia'

View File

@ -71,10 +71,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
import { setUserInfo } from '@/utils/userStore.js'
import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useCoupleStore } from '@/stores/couple'
import { storeToRefs } from 'pinia'

View File

@ -124,7 +124,7 @@
<script setup>
import { computed, onMounted, onUnmounted, ref } from 'vue'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { useRoute, useRouter } from 'vue-router'
import { useLangStore } from '@/stores/lang'
import { useI18n } from 'vue-i18n'

View File

@ -264,10 +264,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
import { setUserInfo } from '@/utils/userStore.js'
import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useCoupleStore } from '@/stores/couple'
import { useThrottle } from '@/utils/useDebounce.js'
import { storeToRefs } from 'pinia'

View File

@ -109,7 +109,7 @@
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { getPngUrl } from '@/config/imagePaths.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
const { locale, t } = useI18n()

View File

@ -299,10 +299,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
import { setUserInfo } from '@/utils/userStore.js'
import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useThrottle } from '@/utils/useDebounce.js'
import { useCoupleStore } from '@/stores/couple'
import { storeToRefs } from 'pinia'

View File

@ -1311,10 +1311,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
import { getUserId, setUserInfo } from '@/utils/userStore.js'
import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useCoupleStore } from '@/stores/couple'
import { storeToRefs } from 'pinia'
import { useThrottle, useDebounce } from '@/utils/useDebounce.js'

View File

@ -91,7 +91,7 @@
<script setup>
import { computed } from 'vue'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
const props = defineProps({
//

View File

@ -751,8 +751,8 @@ import { viewUserInfo } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { useLangStore } from '@/stores/lang'
import { getPngUrl, getWebpUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { useGamesKingStore } from '@/stores/gamesKing'
import { storeToRefs } from 'pinia'

View File

@ -786,8 +786,8 @@ import { useLangStore } from '@/stores/lang'
import { useThrottle } from '@/utils/useDebounce'
import { connectToApp } from '@/utils/appConnector.js'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import {
getWeekTopList,

View File

@ -393,9 +393,9 @@ import { useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n'
import { isInApp, closePage, viewUserInfo, gotoRoom } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader'
import { preloadImages } from '@/utils/image/imagePreloader'
import { getPngUrl } from '@/config/imagePaths.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { useThrottle } from '@/utils/useDebounce'
import { getWealthRanking, getCharmRanking, getRoomRanking, getMyRanking } from '@/api/ranking'

View File

@ -106,7 +106,7 @@
<script setup>
import { computed, watch } from 'vue'
import { getPngUrl } from '@/config/imagePaths.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
// OSSURL
const coinNumBgUrl = getPngUrl('Ranking/Overall/', 'coinNumBg')

View File

@ -856,8 +856,8 @@ import { connectToApp } from '@/utils/appConnector.js'
import { useThrottle } from '@/utils/useDebounce'
import { showWarning } from '@/utils/toast.js'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
import { getMemberProfile } from '@/api/wallet'
import {

View File

@ -74,7 +74,7 @@
</template>
<script setup>
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
const props = defineProps({
isTopOne: {

View File

@ -15,7 +15,7 @@ import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
const router = useRouter()
// OSSURL

View File

@ -104,7 +104,9 @@
padding: 4px;
border-radius: 4px;
background: #7726ff;
box-shadow: 0 1px 18px 2px #f2d9ff inset, 0 1px 4px 2px #f2d9ff inset;
box-shadow:
0 1px 18px 2px #f2d9ff inset,
0 1px 4px 2px #f2d9ff inset;
display: flex;
justify-content: center;
@ -193,8 +195,8 @@ import { useRouter, useRoute } from 'vue-router'
import { connectToApp } from '@/utils/appConnector.js'
import { goAirwallex } from '@/utils/payment'
import { showWarning } from '@/utils/toast.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { preloadImages } from '@/utils/image/imagePreloader.js'
import { storeToRefs } from 'pinia'
import { useCountryStore } from '@/stores/country'
@ -288,8 +290,8 @@ const getPayAplicationAndCommodity = async () => {
type: userInfo.value.isSuperFreightAgent
? 'FREIGHT_GOLD_SUPER'
: userInfo.value.isFreightAgent
? 'FREIGHT_GOLD'
: 'GOLD',
? 'FREIGHT_GOLD'
: 'GOLD',
}
const appCommodityCard = await getAppCommodityCard(appCommodityCardParams)
commodityList.value = appCommodityCard.body.commodity
@ -308,8 +310,8 @@ const getUserInfoAndCountry = async () => {
type: userInfo.value.isSuperFreightAgent
? 'FREIGHT_GOLD_SUPER'
: userInfo.value.isFreightAgent
? 'FREIGHT_GOLD'
: 'GOLD',
? 'FREIGHT_GOLD'
: 'GOLD',
}
const countryAndRegionInfo = await searchPayRechargeUser(params)

View File

@ -342,7 +342,7 @@ import {
isAppConnected,
getAppHeaderInfo,
} from '@/utils/appConnectionManager.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { getFreightAgencys } from '@/api/userInfo.js'
import { follow } from '@/api/recruit.js'

View File

@ -140,7 +140,7 @@ import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import { setSelectedUser } from '@/utils/coinSellerStore.js'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { searchFreightUser } from '@/api/wallet.js'

View File

@ -260,7 +260,7 @@ import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { getUserId } from '@/utils/userStore.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { useDebounce, useThrottle } from '@/utils/useDebounce'
import { getFreightWaterFlow } from '@/api/wallet.js'
@ -419,7 +419,7 @@ const debouncedSearch = useDebounce(
}
},
500,
true
true,
)
const throttleFetch = useThrottle((fetchFn) => {

View File

@ -326,7 +326,7 @@ import { setDocumentDirection } from '@/locales/i18n'
import { getSelectedUser } from '@/utils/coinSellerStore.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import {
checkFreightDealer,

View File

@ -253,7 +253,7 @@ import { useI18n } from 'vue-i18n'
import { setSelectedPayee } from '@/utils/payeeStore.js'
import { showError } from '@/utils/toast.js'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { userBankSearchUserProfile } from '@/api/wallet.js'
@ -373,7 +373,7 @@ watch(
if (hasSearched.value) {
hasSearched.value = false
}
}
},
)
//

View File

@ -211,7 +211,7 @@ import { getBankBalance, userBankTransfer } from '@/api/wallet.js'
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
import { showError, showSuccess } from '@/utils/toast.js'
import { setDocumentDirection } from '@/locales/i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
const { t, locale } = useI18n()
const router = useRouter()

View File

@ -762,7 +762,7 @@ import { showError, showSuccess } from '@/utils/toast.js'
import { useI18n } from 'vue-i18n'
import { setDocumentDirection } from '@/locales/i18n'
import { useIdentityStore } from '@/stores/identity.js'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import {
apiGetBankBalance, //