|
|
@@ -21,7 +21,7 @@
|
|
|
<h5 class="mb-3" v-t="'Custom.Transfer.IntoAccount'"></h5>
|
|
|
<uni-forms-item name="login">
|
|
|
<cwg-combox v-model:value="form.login" :clearable="false"
|
|
|
- :options="toOptionsDisplay" :placeholder="t('placeholder.choose')" />
|
|
|
+ :options="toOptionsDisplay" :placeholder="t('placeholder.choose')" @change="showCentAccountTransferTip"/>
|
|
|
</uni-forms-item>
|
|
|
</view>
|
|
|
<view class="col-lg-6 mb-3">
|
|
|
@@ -54,16 +54,18 @@
|
|
|
<cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" />
|
|
|
<!-- 等待弹窗 -->
|
|
|
<cwg-wait-popup v-model:visible="dialogCheckWait" type="center" :mask-click="false" :showFooters="false" />
|
|
|
+ <cwg-confirm-popup />
|
|
|
</cwg-page-wrapper>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { ref, reactive, computed, onMounted } from 'vue'
|
|
|
+import { ref, reactive, computed, onMounted,watch } from 'vue'
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
import { customApi } from '@/service/custom'
|
|
|
import { drawApi } from '@/service/draw'
|
|
|
import Config from '@/config/index'
|
|
|
-
|
|
|
+import { useConfirm } from '@/hooks/useConfirm'
|
|
|
+const confirm = useConfirm()
|
|
|
const { Code } = Config
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
@@ -228,6 +230,24 @@ const getWalletList = async () => {
|
|
|
console.log(e)
|
|
|
}
|
|
|
}
|
|
|
+const showCentAccountTransferTip = (login) => {
|
|
|
+ const selectedAccount = toOptions.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(() => {
|
|
|
getToDateList()
|