chore(图片缓存配置文件): 更新文件存放路径,以及对应的引入
This commit is contained in:
parent
ff1f2abb16
commit
c2c07694fa
@ -1,5 +1,5 @@
|
|||||||
// src/directives/smartImage.js
|
// src/directives/smartImage.js
|
||||||
import { imageCacheManager } from '@/utils/imageCacheManager'
|
import { imageCacheManager } from '@/utils/image/imageCacheManager'
|
||||||
import { nextTick } from 'vue'
|
import { nextTick } from 'vue'
|
||||||
|
|
||||||
export const smartImage = {
|
export const smartImage = {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// src/utils/imagePreloader.js
|
// src/utils/imagePreloader.js
|
||||||
import { imageCacheManager } from '@/utils/imageCacheManager'
|
import { imageCacheManager } from '@/utils/image/imageCacheManager'
|
||||||
|
|
||||||
export const preloadImages = async (sources) => {
|
export const preloadImages = async (sources) => {
|
||||||
let urls = []
|
let urls = []
|
||||||
@ -1,7 +1,7 @@
|
|||||||
// src/utils/versionChecker.js
|
// src/utils/versionChecker.js
|
||||||
// 版本检查工具
|
// 版本检查工具
|
||||||
|
|
||||||
import { imageCacheManager } from '@/utils/imageCacheManager'
|
import { imageCacheManager } from '@/utils/image/imageCacheManager'
|
||||||
|
|
||||||
const PERSISTENT_KEYS = [
|
const PERSISTENT_KEYS = [
|
||||||
'preferred-language', // 语言设置
|
'preferred-language', // 语言设置
|
||||||
|
|||||||
@ -94,9 +94,9 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
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 { 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 { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
||||||
|
|
||||||
import { apiGetLoginRewards, apiGetTodayLoginStatus, postReceiveLoginReward } from '@/api/task.js'
|
import { apiGetLoginRewards, apiGetTodayLoginStatus, postReceiveLoginReward } from '@/api/task.js'
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
|
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
const { locale, t } = useI18n()
|
const { locale, t } = useI18n()
|
||||||
|
|
||||||
|
|||||||
@ -108,7 +108,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@ -1908,11 +1908,11 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
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 { setUserInfo } from '@/utils/userStore.js'
|
||||||
import { formatUTCCustom } from '@/utils/utcFormat.js'
|
import { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
|
||||||
import { useThrottle } from '@/utils/useDebounce'
|
import { useThrottle } from '@/utils/useDebounce'
|
||||||
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
||||||
|
|||||||
@ -131,8 +131,8 @@
|
|||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { connectToApp } from '@/utils/appConnector.js'
|
import { connectToApp } from '@/utils/appConnector.js'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { preloadImages } from '@/utils/imagePreloader.js'
|
import { preloadImages } from '@/utils/image/imagePreloader.js'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { getMemberProfile, getTotalRecharge } from '@/api/wallet'
|
import { getMemberProfile, getTotalRecharge } from '@/api/wallet'
|
||||||
|
|
||||||
|
|||||||
@ -192,9 +192,9 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
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 { 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 { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
||||||
import { useSpringFestival } from '@/stores/springFestival'
|
import { useSpringFestival } from '@/stores/springFestival'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|||||||
@ -70,9 +70,9 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
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 { 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 { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
||||||
import { useSpringFestival } from '@/stores/springFestival'
|
import { useSpringFestival } from '@/stores/springFestival'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|||||||
@ -210,9 +210,9 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
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 { 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 { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
||||||
import { useSpringFestival } from '@/stores/springFestival'
|
import { useSpringFestival } from '@/stores/springFestival'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|||||||
@ -662,9 +662,9 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
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 { 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 { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
||||||
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
|
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
|
||||||
import { useSpringFestival } from '@/stores/springFestival'
|
import { useSpringFestival } from '@/stores/springFestival'
|
||||||
|
|||||||
@ -116,7 +116,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@ -643,10 +643,10 @@ import { getPngUrl, getWebpUrl } from '@/config/imagePaths.js'
|
|||||||
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { useSpringFestival } from '@/stores/springFestival'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
|
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
|
||||||
|
|||||||
@ -365,7 +365,7 @@
|
|||||||
import { computed, onMounted, ref } from 'vue'
|
import { computed, onMounted, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
apiGetTeamOverview, //查询BD团队概览
|
apiGetTeamOverview, //查询BD团队概览
|
||||||
|
|||||||
@ -367,7 +367,7 @@
|
|||||||
import { computed, onMounted, ref } from 'vue'
|
import { computed, onMounted, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
apiGetTeamOverview, //查询BD团队概览
|
apiGetTeamOverview, //查询BD团队概览
|
||||||
|
|||||||
@ -362,7 +362,7 @@
|
|||||||
import { computed, onMounted, ref } from 'vue'
|
import { computed, onMounted, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
apiGetTeamOverview, //查询BD团队概览
|
apiGetTeamOverview, //查询BD团队概览
|
||||||
|
|||||||
@ -425,7 +425,7 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { gotoAppPage } from '@/utils/appBridge.js'
|
import { gotoAppPage } from '@/utils/appBridge.js'
|
||||||
import { getUserId } from '@/utils/userStore.js'
|
import { getUserId } from '@/utils/userStore.js'
|
||||||
import { usePageInitializationWithConfig } from '@/utils/pageConfig.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 { useIdentityStore } from '@/stores/identity.js'
|
||||||
import { showError } from '@/utils/toast.js'
|
import { showError } from '@/utils/toast.js'
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ import { computed, onMounted, ref } from 'vue'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
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'
|
import GeneralHeader from '@/components/GeneralHeader.vue'
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,7 @@ import { reactive } from 'vue'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
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'
|
import GeneralHeader from '@/components/GeneralHeader.vue'
|
||||||
|
|
||||||
|
|||||||
@ -105,7 +105,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { getTeamId } from '@/utils/userStore.js'
|
import { getTeamId } from '@/utils/userStore.js'
|
||||||
import { showError, showSuccess, showWarning } from '@/utils/toast.js'
|
import { showError, showSuccess, showWarning } from '@/utils/toast.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
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 { getApplyRecord } from '@/api/teamBill.js'
|
||||||
import { processUserApply } from '@/api/wallet.js'
|
import { processUserApply } from '@/api/wallet.js'
|
||||||
@ -174,7 +174,7 @@ const handleAgree = async (message) => {
|
|||||||
showSuccess(
|
showSuccess(
|
||||||
t('approved_application', {
|
t('approved_application', {
|
||||||
name: message.name,
|
name: message.name,
|
||||||
})
|
}),
|
||||||
)
|
)
|
||||||
// 从列表中移除
|
// 从列表中移除
|
||||||
const index = messages.value.findIndex((m) => m.id === message.id)
|
const index = messages.value.findIndex((m) => m.id === message.id)
|
||||||
@ -202,7 +202,7 @@ const handleRefuse = async (message) => {
|
|||||||
showWarning(
|
showWarning(
|
||||||
t('rejected_application', {
|
t('rejected_application', {
|
||||||
name: message.name,
|
name: message.name,
|
||||||
})
|
}),
|
||||||
)
|
)
|
||||||
// 从列表中移除
|
// 从列表中移除
|
||||||
const index = messages.value.findIndex((m) => m.id === message.id)
|
const index = messages.value.findIndex((m) => m.id === message.id)
|
||||||
|
|||||||
@ -231,7 +231,7 @@ import { useLangStore } from '@/stores/lang'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { getTeamId } from '@/utils/userStore.js'
|
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'
|
import { getTeamReleasePolicy } from '@/api/teamBill.js'
|
||||||
|
|
||||||
|
|||||||
@ -339,7 +339,7 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
||||||
import { getTeamId, getUserId } from '@/utils/userStore.js'
|
import { getTeamId, getUserId } from '@/utils/userStore.js'
|
||||||
import { clearSelectedPayee } from '@/utils/payeeStore.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 { getTeamMemberCount, getTeamBill, getTeamMemberWork } from '@/api/teamBill.js'
|
||||||
import { getUserIdentity } from '@/api/wallet.js'
|
import { getUserIdentity } from '@/api/wallet.js'
|
||||||
|
|||||||
@ -262,7 +262,7 @@ import { showError, showWarning, showInfo, showSuccess } from '@/utils/toast.js'
|
|||||||
import { ApiError } from '@/utils/http.js'
|
import { ApiError } from '@/utils/http.js'
|
||||||
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
sendTeamApplyJoin,
|
sendTeamApplyJoin,
|
||||||
@ -329,7 +329,7 @@ const handleCancelApply = async (record) => {
|
|||||||
default:
|
default:
|
||||||
showError(
|
showError(
|
||||||
error.errorMsg || error.message || 'Cancellation failed, please try again',
|
error.errorMsg || error.message || 'Cancellation failed, please try again',
|
||||||
'Cancellation failed'
|
'Cancellation failed',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
record.status === 'Under review'
|
record.status === 'Under review'
|
||||||
? 'linear-gradient(248deg, #FFE675 5.66%, #FFC53D 42.49%)'
|
? 'linear-gradient(248deg, #FFE675 5.66%, #FFC53D 42.49%)'
|
||||||
: record.status === 'Approved'
|
: record.status === 'Approved'
|
||||||
? 'linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)'
|
? 'linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)'
|
||||||
: 'linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)',
|
: 'linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ getStatusText(record.status) }}
|
{{ getStatusText(record.status) }}
|
||||||
@ -142,7 +142,7 @@
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { apiGetWithdrawRecords } from '@/api/wallet'
|
import { apiGetWithdrawRecords } from '@/api/wallet'
|
||||||
|
|
||||||
|
|||||||
@ -544,7 +544,7 @@ import { isInApp } from '@/utils/appBridge.js'
|
|||||||
import { clearSelectedPayee } from '@/utils/payeeStore.js'
|
import { clearSelectedPayee } from '@/utils/payeeStore.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { useIdentityStore } from '@/stores/identity.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 { getBdMemberBillList, getBdHistory, getBdHistoryMore } from '@/api/bdCenter.js'
|
||||||
import { apiGetBankBalance } from '@/api/wallet.js'
|
import { apiGetBankBalance } from '@/api/wallet.js'
|
||||||
|
|||||||
@ -955,7 +955,7 @@ import { isInApp } from '@/utils/appBridge.js'
|
|||||||
import { clearSelectedPayee } from '@/utils/payeeStore.js'
|
import { clearSelectedPayee } from '@/utils/payeeStore.js'
|
||||||
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
||||||
import { useIdentityStore } from '@/stores/identity.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 { getBdMemberBillList, getBdHistory, getBdHistoryMore } from '@/api/bdCenter.js'
|
||||||
import { getBdLeaderHistory, getBdLeaderHistoryMore } from '@/api/bdLeaderCenter'
|
import { getBdLeaderHistory, getBdLeaderHistoryMore } from '@/api/bdLeaderCenter'
|
||||||
|
|||||||
@ -155,7 +155,7 @@ import { useLangStore } from '@/stores/lang'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { getUserId } from '@/utils/userStore.js'
|
||||||
import { showError, showWarning, showSuccess } from '@/utils/toast.js'
|
import { showError, showWarning, showSuccess } from '@/utils/toast.js'
|
||||||
|
|
||||||
|
|||||||
@ -103,7 +103,7 @@ import { useRouter } from 'vue-router'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { getTeamId } from '@/utils/userStore.js'
|
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'
|
import { getMyAgency, leaveAgency } from '@/api/host'
|
||||||
|
|
||||||
|
|||||||
@ -525,8 +525,8 @@ import { showError, showWarning, showSuccess } from '@/utils/toast.js'
|
|||||||
import { useClipboard } from '@vueuse/core'
|
import { useClipboard } from '@vueuse/core'
|
||||||
import { connectToApp } from '@/utils/appConnector.js'
|
import { connectToApp } from '@/utils/appConnector.js'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { preloadImages } from '@/utils/imagePreloader.js'
|
import { preloadImages } from '@/utils/image/imagePreloader.js'
|
||||||
import { handleRewardImageError } from '@/utils/imageHandler.js'
|
import { handleRewardImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getMyInviteCode, // 获取我的邀请码
|
getMyInviteCode, // 获取我的邀请码
|
||||||
|
|||||||
@ -222,7 +222,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { showError, showSuccess } from '@/utils/toast.js'
|
import { showError, showSuccess } from '@/utils/toast.js'
|
||||||
import { useDebounce } from '@/utils/useDebounce'
|
import { useDebounce } from '@/utils/useDebounce'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { searchUser } from '@/api/userInfo'
|
import { searchUser } from '@/api/userInfo'
|
||||||
import { invitedList, inviteToBeAgency, cancelInvite } from '@/api/bdCenter.js'
|
import { invitedList, inviteToBeAgency, cancelInvite } from '@/api/bdCenter.js'
|
||||||
@ -298,7 +298,7 @@ const debouncedSearch = useDebounce(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
500,
|
500,
|
||||||
true
|
true,
|
||||||
)
|
)
|
||||||
|
|
||||||
// 选择用户
|
// 选择用户
|
||||||
|
|||||||
@ -222,7 +222,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { showError, showSuccess } from '@/utils/toast.js'
|
import { showError, showSuccess } from '@/utils/toast.js'
|
||||||
import { useDebounce } from '@/utils/useDebounce'
|
import { useDebounce } from '@/utils/useDebounce'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { searchUser } from '@/api/userInfo'
|
import { searchUser } from '@/api/userInfo'
|
||||||
import {
|
import {
|
||||||
@ -302,7 +302,7 @@ const debouncedSearch = useDebounce(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
500,
|
500,
|
||||||
true
|
true,
|
||||||
)
|
)
|
||||||
|
|
||||||
// 选择用户
|
// 选择用户
|
||||||
|
|||||||
@ -221,7 +221,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { showError, showSuccess } from '@/utils/toast.js'
|
import { showError, showSuccess } from '@/utils/toast.js'
|
||||||
import { useDebounce } from '@/utils/useDebounce'
|
import { useDebounce } from '@/utils/useDebounce'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { searchUser } from '@/api/userInfo'
|
import { searchUser } from '@/api/userInfo'
|
||||||
import {
|
import {
|
||||||
@ -301,7 +301,7 @@ const debouncedSearch = useDebounce(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
500,
|
500,
|
||||||
true
|
true,
|
||||||
)
|
)
|
||||||
|
|
||||||
// 选择用户
|
// 选择用户
|
||||||
|
|||||||
@ -1084,8 +1084,8 @@ import { showError, showWarning, showSuccess } from '@/utils/toast.js'
|
|||||||
import { useClipboard } from '@vueuse/core'
|
import { useClipboard } from '@vueuse/core'
|
||||||
import { connectToApp } from '@/utils/appConnector.js'
|
import { connectToApp } from '@/utils/appConnector.js'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { preloadImages } from '@/utils/imagePreloader.js'
|
import { preloadImages } from '@/utils/image/imagePreloader.js'
|
||||||
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getRankingListAndMyRanking, // 获取排行榜和当前用户排名
|
getRankingListAndMyRanking, // 获取排行榜和当前用户排名
|
||||||
|
|||||||
@ -201,7 +201,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { useDebounce } from '@/utils/useDebounce'
|
import { useDebounce } from '@/utils/useDebounce'
|
||||||
import { showError, showSuccess } from '@/utils/toast.js'
|
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'
|
import GeneralHeader from '@/components/GeneralHeader.vue'
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ const debouncedSearch = useDebounce(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
500,
|
500,
|
||||||
true
|
true,
|
||||||
)
|
)
|
||||||
|
|
||||||
// 选择用户
|
// 选择用户
|
||||||
|
|||||||
@ -124,10 +124,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
|
|||||||
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { useCoupleStore } from '@/stores/couple'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|
||||||
|
|||||||
@ -72,10 +72,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
|
|||||||
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { useCoupleStore } from '@/stores/couple'
|
||||||
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
import { formatRewardDisplay } from '@/utils/rewardFormatter.js'
|
||||||
|
|
||||||
|
|||||||
@ -210,10 +210,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
|
|||||||
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { useCoupleStore } from '@/stores/couple'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|
||||||
|
|||||||
@ -71,10 +71,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
|
|||||||
import { setUserInfo } from '@/utils/userStore.js'
|
import { setUserInfo } from '@/utils/userStore.js'
|
||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { useCoupleStore } from '@/stores/couple'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|
||||||
|
|||||||
@ -124,7 +124,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
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 { useRoute, useRouter } from 'vue-router'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|||||||
@ -264,10 +264,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
|
|||||||
import { setUserInfo } from '@/utils/userStore.js'
|
import { setUserInfo } from '@/utils/userStore.js'
|
||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { useCoupleStore } from '@/stores/couple'
|
||||||
import { useThrottle } from '@/utils/useDebounce.js'
|
import { useThrottle } from '@/utils/useDebounce.js'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|||||||
@ -109,7 +109,7 @@
|
|||||||
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
|
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
const { locale, t } = useI18n()
|
const { locale, t } = useI18n()
|
||||||
|
|
||||||
|
|||||||
@ -299,10 +299,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
|
|||||||
import { setUserInfo } from '@/utils/userStore.js'
|
import { setUserInfo } from '@/utils/userStore.js'
|
||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { useThrottle } from '@/utils/useDebounce.js'
|
||||||
import { useCoupleStore } from '@/stores/couple'
|
import { useCoupleStore } from '@/stores/couple'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|||||||
@ -1311,10 +1311,10 @@ import { getPngUrl } from '@/config/imagePaths.js'
|
|||||||
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
import { getUserId, setUserInfo } from '@/utils/userStore.js'
|
||||||
import { viewUserInfo } from '@/utils/appBridge.js'
|
import { viewUserInfo } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.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 { useCoupleStore } from '@/stores/couple'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { useThrottle, useDebounce } from '@/utils/useDebounce.js'
|
import { useThrottle, useDebounce } from '@/utils/useDebounce.js'
|
||||||
|
|||||||
@ -91,7 +91,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
// 排名
|
// 排名
|
||||||
|
|||||||
@ -751,8 +751,8 @@ import { viewUserInfo } from '@/utils/appBridge.js'
|
|||||||
import { connectToApp } from '@/utils/appConnector.js'
|
import { connectToApp } from '@/utils/appConnector.js'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl, getWebpUrl } from '@/config/imagePaths.js'
|
import { getPngUrl, getWebpUrl } from '@/config/imagePaths.js'
|
||||||
import { preloadImages } from '@/utils/imagePreloader.js'
|
import { preloadImages } from '@/utils/image/imagePreloader.js'
|
||||||
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
|
||||||
import { useGamesKingStore } from '@/stores/gamesKing'
|
import { useGamesKingStore } from '@/stores/gamesKing'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
|
||||||
|
|||||||
@ -786,8 +786,8 @@ import { useLangStore } from '@/stores/lang'
|
|||||||
import { useThrottle } from '@/utils/useDebounce'
|
import { useThrottle } from '@/utils/useDebounce'
|
||||||
import { connectToApp } from '@/utils/appConnector.js'
|
import { connectToApp } from '@/utils/appConnector.js'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { preloadImages } from '@/utils/imagePreloader.js'
|
import { preloadImages } from '@/utils/image/imagePreloader.js'
|
||||||
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getWeekTopList,
|
getWeekTopList,
|
||||||
|
|||||||
@ -393,9 +393,9 @@ import { useRoute } from 'vue-router'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { isInApp, closePage, viewUserInfo, gotoRoom } from '@/utils/appBridge.js'
|
import { isInApp, closePage, viewUserInfo, gotoRoom } from '@/utils/appBridge.js'
|
||||||
import { connectToApp } from '@/utils/appConnector.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 { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
import { useThrottle } from '@/utils/useDebounce'
|
import { useThrottle } from '@/utils/useDebounce'
|
||||||
|
|
||||||
import { getWealthRanking, getCharmRanking, getRoomRanking, getMyRanking } from '@/api/ranking'
|
import { getWealthRanking, getCharmRanking, getRoomRanking, getMyRanking } from '@/api/ranking'
|
||||||
|
|||||||
@ -106,7 +106,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { computed, watch } from 'vue'
|
import { computed, watch } from 'vue'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
// 获取OSS图片URL的函数
|
// 获取OSS图片URL的函数
|
||||||
const coinNumBgUrl = getPngUrl('Ranking/Overall/', 'coinNumBg')
|
const coinNumBgUrl = getPngUrl('Ranking/Overall/', 'coinNumBg')
|
||||||
|
|||||||
@ -856,8 +856,8 @@ import { connectToApp } from '@/utils/appConnector.js'
|
|||||||
import { useThrottle } from '@/utils/useDebounce'
|
import { useThrottle } from '@/utils/useDebounce'
|
||||||
import { showWarning } from '@/utils/toast.js'
|
import { showWarning } from '@/utils/toast.js'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { preloadImages } from '@/utils/imagePreloader.js'
|
import { preloadImages } from '@/utils/image/imagePreloader.js'
|
||||||
import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { getMemberProfile } from '@/api/wallet'
|
import { getMemberProfile } from '@/api/wallet'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -74,7 +74,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
isTopOne: {
|
isTopOne: {
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useLangStore } from '@/stores/lang'
|
import { useLangStore } from '@/stores/lang'
|
||||||
import { getPngUrl } from '@/config/imagePaths.js'
|
import { getPngUrl } from '@/config/imagePaths.js'
|
||||||
import { preloadImages } from '@/utils/imagePreloader.js'
|
import { preloadImages } from '@/utils/image/imagePreloader.js'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
// 获取OSS图片URL的函数
|
// 获取OSS图片URL的函数
|
||||||
|
|||||||
@ -104,7 +104,9 @@
|
|||||||
padding: 4px;
|
padding: 4px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: #7726ff;
|
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;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -193,8 +195,8 @@ import { useRouter, useRoute } from 'vue-router'
|
|||||||
import { connectToApp } from '@/utils/appConnector.js'
|
import { connectToApp } from '@/utils/appConnector.js'
|
||||||
import { goAirwallex } from '@/utils/payment'
|
import { goAirwallex } from '@/utils/payment'
|
||||||
import { showWarning } from '@/utils/toast.js'
|
import { showWarning } from '@/utils/toast.js'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
import { preloadImages } from '@/utils/imagePreloader.js'
|
import { preloadImages } from '@/utils/image/imagePreloader.js'
|
||||||
|
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { useCountryStore } from '@/stores/country'
|
import { useCountryStore } from '@/stores/country'
|
||||||
@ -288,8 +290,8 @@ const getPayAplicationAndCommodity = async () => {
|
|||||||
type: userInfo.value.isSuperFreightAgent
|
type: userInfo.value.isSuperFreightAgent
|
||||||
? 'FREIGHT_GOLD_SUPER'
|
? 'FREIGHT_GOLD_SUPER'
|
||||||
: userInfo.value.isFreightAgent
|
: userInfo.value.isFreightAgent
|
||||||
? 'FREIGHT_GOLD'
|
? 'FREIGHT_GOLD'
|
||||||
: 'GOLD',
|
: 'GOLD',
|
||||||
}
|
}
|
||||||
const appCommodityCard = await getAppCommodityCard(appCommodityCardParams)
|
const appCommodityCard = await getAppCommodityCard(appCommodityCardParams)
|
||||||
commodityList.value = appCommodityCard.body.commodity
|
commodityList.value = appCommodityCard.body.commodity
|
||||||
@ -308,8 +310,8 @@ const getUserInfoAndCountry = async () => {
|
|||||||
type: userInfo.value.isSuperFreightAgent
|
type: userInfo.value.isSuperFreightAgent
|
||||||
? 'FREIGHT_GOLD_SUPER'
|
? 'FREIGHT_GOLD_SUPER'
|
||||||
: userInfo.value.isFreightAgent
|
: userInfo.value.isFreightAgent
|
||||||
? 'FREIGHT_GOLD'
|
? 'FREIGHT_GOLD'
|
||||||
: 'GOLD',
|
: 'GOLD',
|
||||||
}
|
}
|
||||||
const countryAndRegionInfo = await searchPayRechargeUser(params)
|
const countryAndRegionInfo = await searchPayRechargeUser(params)
|
||||||
|
|
||||||
|
|||||||
@ -342,7 +342,7 @@ import {
|
|||||||
isAppConnected,
|
isAppConnected,
|
||||||
getAppHeaderInfo,
|
getAppHeaderInfo,
|
||||||
} from '@/utils/appConnectionManager.js'
|
} from '@/utils/appConnectionManager.js'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { getFreightAgencys } from '@/api/userInfo.js'
|
import { getFreightAgencys } from '@/api/userInfo.js'
|
||||||
import { follow } from '@/api/recruit.js'
|
import { follow } from '@/api/recruit.js'
|
||||||
|
|||||||
@ -140,7 +140,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { setSelectedUser } from '@/utils/coinSellerStore.js'
|
import { setSelectedUser } from '@/utils/coinSellerStore.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { searchFreightUser } from '@/api/wallet.js'
|
import { searchFreightUser } from '@/api/wallet.js'
|
||||||
|
|
||||||
|
|||||||
@ -260,7 +260,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { formatUTCCustom } from '@/utils/utcFormat.js'
|
import { formatUTCCustom } from '@/utils/utcFormat.js'
|
||||||
import { getUserId } from '@/utils/userStore.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 { useDebounce, useThrottle } from '@/utils/useDebounce'
|
||||||
|
|
||||||
import { getFreightWaterFlow } from '@/api/wallet.js'
|
import { getFreightWaterFlow } from '@/api/wallet.js'
|
||||||
@ -419,7 +419,7 @@ const debouncedSearch = useDebounce(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
500,
|
500,
|
||||||
true
|
true,
|
||||||
)
|
)
|
||||||
|
|
||||||
const throttleFetch = useThrottle((fetchFn) => {
|
const throttleFetch = useThrottle((fetchFn) => {
|
||||||
|
|||||||
@ -326,7 +326,7 @@ import { setDocumentDirection } from '@/locales/i18n'
|
|||||||
import { getSelectedUser } from '@/utils/coinSellerStore.js'
|
import { getSelectedUser } from '@/utils/coinSellerStore.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.js'
|
import { showError, showSuccess } from '@/utils/toast.js'
|
||||||
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
checkFreightDealer,
|
checkFreightDealer,
|
||||||
|
|||||||
@ -253,7 +253,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { setSelectedPayee } from '@/utils/payeeStore.js'
|
import { setSelectedPayee } from '@/utils/payeeStore.js'
|
||||||
import { showError } from '@/utils/toast.js'
|
import { showError } from '@/utils/toast.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import { userBankSearchUserProfile } from '@/api/wallet.js'
|
import { userBankSearchUserProfile } from '@/api/wallet.js'
|
||||||
|
|
||||||
@ -373,7 +373,7 @@ watch(
|
|||||||
if (hasSearched.value) {
|
if (hasSearched.value) {
|
||||||
hasSearched.value = false
|
hasSearched.value = false
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
// 页面加载时检查用户角色
|
// 页面加载时检查用户角色
|
||||||
|
|||||||
@ -211,7 +211,7 @@ import { getBankBalance, userBankTransfer } from '@/api/wallet.js'
|
|||||||
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
|
import { getSelectedPayee, clearSelectedPayee } from '@/utils/payeeStore.js'
|
||||||
import { showError, showSuccess } from '@/utils/toast.js'
|
import { showError, showSuccess } from '@/utils/toast.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
const { t, locale } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|||||||
@ -762,7 +762,7 @@ import { showError, showSuccess } from '@/utils/toast.js'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
import { useIdentityStore } from '@/stores/identity.js'
|
import { useIdentityStore } from '@/stores/identity.js'
|
||||||
import { handleAvatarImageError } from '@/utils/imageHandler.js'
|
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
apiGetBankBalance, //获取当前余额
|
apiGetBankBalance, //获取当前余额
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user