|
|
@@ -681,7 +681,8 @@ import useRouter from '@/hooks/useRouter'
|
|
|
const router = useRouter()
|
|
|
import useUserStore from '@/stores/use-user-store'
|
|
|
const userStore = useUserStore()
|
|
|
-
|
|
|
+import { useConfirm } from '@/hooks/useConfirm'
|
|
|
+const confirm = useConfirm()
|
|
|
const isZh = computed(() => ['cn', 'zhHant'].includes(locale.value))
|
|
|
// 获取组件实例,用于访问全局挂载的属性和方法(替代 this)
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
@@ -2067,6 +2068,24 @@ function formatChannels(data) {
|
|
|
}
|
|
|
return result
|
|
|
}
|
|
|
+const showCentAccountTransferTip = (login) => {
|
|
|
+ const selectedAccount = loginOptions.value.find(
|
|
|
+ (item) => item.login == login,
|
|
|
+ );
|
|
|
+ if (!selectedAccount) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ const isCentAccount =
|
|
|
+ selectedAccount.type == "8" || selectedAccount.currency === "USC";
|
|
|
+ if (isCentAccount) {
|
|
|
+ confirm({
|
|
|
+ title: t("Msg.SystemPrompt"),
|
|
|
+ content: t("vu.item14") + t("vu.item15") + t("vu.item16"),
|
|
|
+ confirmText: t("Btn.Confirm"),
|
|
|
+ cancelText: t("Btn.Cancel"),
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
// -------------------- lifecycle --------------------
|
|
|
onMounted(() => {
|
|
|
if (channelList.value) {
|
|
|
@@ -2097,6 +2116,7 @@ watch(loginValue, (newVal) => {
|
|
|
// loginValueDoc.value = found.label
|
|
|
const found = loginOptions.value.find(opt => opt.login === Number(loginValue.value))
|
|
|
loginAmount.value = found.balance ? Number(found.balance) : 0
|
|
|
+ showCentAccountTransferTip(Number(newVal))
|
|
|
showTable();
|
|
|
}
|
|
|
});
|