zhb 1 miesiąc temu
rodzic
commit
05ef409f2e
2 zmienionych plików z 44 dodań i 3 usunięć
  1. 22 1
      pages/customer/transfer.vue
  2. 22 2
      pages/ib/agent-transfer.vue

+ 22 - 1
pages/customer/transfer.vue

@@ -102,6 +102,7 @@
             <!-- 等待弹窗 -->
             <!-- 等待弹窗 -->
             <cwg-wait-popup v-model:visible="dialogCheckWait" type="center" :mask-click="false" :showFooters="false" />
             <cwg-wait-popup v-model:visible="dialogCheckWait" type="center" :mask-click="false" :showFooters="false" />
         </view>
         </view>
+        <cwg-confirm-popup />
     </cwg-page-wrapper>
     </cwg-page-wrapper>
 </template>
 </template>
 
 
@@ -121,7 +122,8 @@ const customInfo = computed(() => {
     return userStore?.userInfo?.customInfo || {}
     return userStore?.userInfo?.customInfo || {}
 })
 })
 import Config from '@/config/index'
 import Config from '@/config/index'
-
+import { useConfirm } from '@/hooks/useConfirm'
+const confirm = useConfirm()
 const { Code } = Config
 const { Code } = Config
 const { t } = useI18n()
 const { t } = useI18n()
 
 
@@ -465,6 +467,24 @@ function handleRouteParams() {
 
 
     updateToOptions()
     updateToOptions()
 }
 }
+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"),
+        })
+    }
+}
 onMounted(() => {
 onMounted(() => {
     getDateList()
     getDateList()
     getAmount()
     getAmount()
@@ -490,6 +510,7 @@ watch(loginValue, (newVal) => {
         form.depositLogin = null
         form.depositLogin = null
         form.amount = ''
         form.amount = ''
         amountErrorMessage.value = ''
         amountErrorMessage.value = ''
+        showCentAccountTransferTip(newVal)
         toOptions.value = []
         toOptions.value = []
         if (transferType.value === 'internal') {
         if (transferType.value === 'internal') {
             // 内部转账逻辑
             // 内部转账逻辑

+ 22 - 2
pages/ib/agent-transfer.vue

@@ -159,6 +159,7 @@
             <BonusAgreementPopup v-model:visible="dialogClauseNewList" :title="tableDataNewList.title"
             <BonusAgreementPopup v-model:visible="dialogClauseNewList" :title="tableDataNewList.title"
                 :content="tableDataNewList.content" type="newList" />
                 :content="tableDataNewList.content" type="newList" />
         </view>
         </view>
+        <cwg-confirm-popup />
     </cwg-page-wrapper>
     </cwg-page-wrapper>
 </template>
 </template>
 
 
@@ -173,7 +174,8 @@ import { financialApi } from '@/service/financial'
 import Config from '@/config/index'
 import Config from '@/config/index'
 import useUserStore from '@/stores/use-user-store'
 import useUserStore from '@/stores/use-user-store'
 import BonusAgreementPopup from './components/BonusAgreementPopup.vue'
 import BonusAgreementPopup from './components/BonusAgreementPopup.vue'
-
+import { useConfirm } from '@/hooks/useConfirm'
+const confirm = useConfirm()
 const userStore = useUserStore()
 const userStore = useUserStore()
 const ibInfo = computed(() => {
 const ibInfo = computed(() => {
     return userStore?.userInfo?.ibInfo || {}
     return userStore?.userInfo?.ibInfo || {}
@@ -559,12 +561,30 @@ async function getActivityExtensionGiveLoginJoin() {
         giveLoginJoin.value = ''
         giveLoginJoin.value = ''
     }
     }
 }
 }
-
+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"),
+        })
+    }
+}
 // 监听 loginValue 变化
 // 监听 loginValue 变化
 watch(loginValue, (newVal) => {
 watch(loginValue, (newVal) => {
     if (newVal != null) {
     if (newVal != null) {
         step2.value = true
         step2.value = true
         form.withdrawLogin = Number(newVal)
         form.withdrawLogin = Number(newVal)
+        showCentAccountTransferTip(newVal)
         form.depositLogin = null
         form.depositLogin = null
         form.depositLogin1 = null
         form.depositLogin1 = null
         form.amount = ''
         form.amount = ''