zhb před 1 měsícem
rodič
revize
316dfa26d7
3 změnil soubory, kde provedl 65 přidání a 17 odebrání
  1. 32 10
      pages/customer/transfer.vue
  2. 26 5
      pages/ib/agent-transfer.vue
  3. 7 2
      pages/ib/transfer.vue

+ 32 - 10
pages/customer/transfer.vue

@@ -1,7 +1,8 @@
 <template>
     <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
         <cwg-header :title="t('Home.page_customer.item5')" />
-        <view id="custom_Transfer" class="transfer-page">
+        <uni-loading v-if="loading" />
+        <view id="custom_Transfer" class="transfer-page" v-else>
             <view class="main-content">
                 <!-- 步骤1:选择转出账户 -->
                 <view class="box box-step1">
@@ -385,7 +386,9 @@ function isDepositDisabled(item) {
     if (transferType.value === 'system' && closeFunc.indexOf('7') !== -1) return true
     return false
 }
+const loading = ref(false)
 const getDateList = async () => {
+    loading.value = true
     let res = await customApi.CustomDropdown({ platform: '' })
     if (res.code == Code.StatusOK) {
         loginOptions.value = res.data
@@ -395,6 +398,7 @@ const getDateList = async () => {
     } else {
         $pigeon?.MessageError(res.msg)
     }
+    loading.value = false
 }
 
 // 获取代理列表
@@ -565,17 +569,35 @@ watch(transferType, (newVal) => {
                         margin-bottom: px2rpx(0) !important;
                     }
 
-                    .tit {
-                        font-size: px2rpx(16);
-                        margin-bottom: px2rpx(12) !important;
-                        font-weight: 600;
+                .tit {
+                    font-size: px2rpx(16);
+                    font-weight: 600;
+                    margin-bottom: px2rpx(16);
+                    display: flex;
+                    align-items: center;
+                    color: var(--color-navy-900);
+                    position: relative;
+                    padding-left: 20px;
+
+                    &:after {
+                        content: '';
+                        position: absolute;
+                        left: 0;
+                        top: 50%;
+                        transform: translateY(-50%);
+                        width: 0;
+                        height: 0;
+                        border-top: 6px solid transparent;
+                        border-bottom: 6px solid transparent;
+                        border-left: 8px solid currentColor;
+                    }
 
-                        .iconfont {
-                            font-size: px2rpx(18);
-                            margin-right: px2rpx(8);
-                            color: #409eff;
-                        }
+                    .iconfont {
+                        margin-right: px2rpx(8);
+                        color: var(--color-primary);
+                        font-size: px2rpx(18);
                     }
+                }
 
                     .title-wrapper {
                         display: flex;

+ 26 - 5
pages/ib/agent-transfer.vue

@@ -1,7 +1,8 @@
 <template>
     <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
         <cwg-header :title="t('Home.page_ib.item9')" />
-        <view id="custom_IbTransfer" class="transfer-page">
+        <uni-loading v-if="loading" />
+        <view id="custom_IbTransfer" class="transfer-page" v-else>
             <view class="main-content">
                 <!-- 步骤1:选择转出账户 -->
                 <view class="box box-step1">
@@ -470,15 +471,17 @@ async function getDateList() {
         $pigeon?.MessageError(res.msg)
     }
 }
-
+const loading = ref(false)
 // 获取转入账户信息
 async function getToDateList() {
+    loading.value = true
     const res = await ibApi.accountCustomList({})
     if (res.code == Code.StatusOK) {
         toOptions.value = res.data
     } else {
         $pigeon?.MessageError(res.msg)
     }
+    loading.value = false
 }
 
 // 获取内转数额区间
@@ -689,13 +692,31 @@ onLoad((options) => {
 
                     .tit {
                         font-size: px2rpx(16);
-                        margin-bottom: px2rpx(12);
                         font-weight: 600;
+                        margin-bottom: px2rpx(16);
+                        display: flex;
+                        align-items: center;
+                        color: var(--color-navy-900);
+                        position: relative;
+                        padding-left: 20px;
+
+                        &:after {
+                            content: '';
+                            position: absolute;
+                            left: 0;
+                            top: 50%;
+                            transform: translateY(-50%);
+                            width: 0;
+                            height: 0;
+                            border-top: 6px solid transparent;
+                            border-bottom: 6px solid transparent;
+                            border-left: 8px solid currentColor;
+                        }
 
                         .iconfont {
-                            font-size: px2rpx(18);
                             margin-right: px2rpx(8);
-                            color: #409eff;
+                            color: var(--color-primary);
+                            font-size: px2rpx(18);
                         }
                     }
 

+ 7 - 2
pages/ib/transfer.vue

@@ -1,7 +1,8 @@
 <template>
     <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
         <cwg-header :title="title" />
-        <view id="custom_IbTransfer" class="transfer-page">
+        <uni-loading v-if="loading" />
+        <view id="custom_IbTransfer" class="transfer-page" v-else>
             <view class="main-content">
                 <!-- 步骤1:选择转出账户 -->
                 <cwg-asset-tabs v-model="activeTab" :tabs="tabsConfig" />
@@ -294,8 +295,11 @@ const depositDisplayList = computed(() => {
 const fromInfo = ref('')
 const toInfo = ref([])
 const agentInfo = ref([])
+const loading = ref(false)
+
 //转出账户信息
 const ransferInfo = async function () {
+    loading.value = true
     let res = await ibApi.agentBalanceTransferFrom({});
     if (res.code == Code.StatusOK) {
         fromInfo.value =
@@ -307,6 +311,7 @@ const ransferInfo = async function () {
     } else {
         $pigeon.MessageError(res.msg);
     }
+    loading.value = false
 }
 //转入账户信息
 const ransferToInfo = async function () {
@@ -592,7 +597,7 @@ onLoad((options) => {
         form.withdrawLogin = options.login
     }
     if (options?.tab) {
-      activeTab.value = options?.tab
+        activeTab.value = options?.tab
     }
 })
 </script>