ljc 3 godzin temu
rodzic
commit
c3630f0972

+ 4 - 0
pages/customer/deposit-select.vue

@@ -1727,6 +1727,10 @@ const getDateList = async () => {
             ...item,
           disable: item.closeFunctions.includes('1')
         }))
+      // 默认选中第一个
+        nextTick(()=>{
+          loginValue.value = loginOptions.value?.[0].login
+        })
         const pages = getCurrentPages()
         const route = pages[pages.length - 1].$page?.options || {}
         if (route.login) {

+ 8 - 1
pages/customer/transfer.vue

@@ -15,7 +15,8 @@
                                         <uni-forms-item>
                                             <cwg-combox v-model:value="loginValue" :clearable="false"
                                                 :options="withdrawDisplayList"
-                                                :placeholder="t('placeholder.choose')" /></uni-forms-item>
+                                                :placeholder="t('placeholder.choose')" />
+                                        </uni-forms-item>
                                     </view>
                                     <view class="col-lg-6">
                                         <h5 class="mb-3" v-t="'Custom.Transfer.Title2'"></h5>
@@ -378,6 +379,10 @@ const getDateList = async () => {
     let res = await customApi.CustomDropdown({ platform: '' })
     if (res.code == Code.StatusOK) {
         loginOptions.value = res.data
+      // 默认选中第一个
+      nextTick(()=>{
+        loginValue.value = loginOptions.value?.[0].login
+      })
         nextTick(() => {
             handleRouteParams()
         })
@@ -439,10 +444,12 @@ function updateToOptions() {
 // 处理路由参数
 function handleRouteParams() {
     nextTick(() => {
+      if (pageQuery.value.login){
         const loginNum = pageQuery.value.login ? Number(pageQuery.value.login) : null
         form.withdrawLogin = loginNum
         step2.value = loginNum ? true : false
         loginValue.value = loginNum
+      }
     })
 
     updateToOptions()

+ 4 - 0
pages/customer/withdrawal-select.vue

@@ -1593,6 +1593,10 @@ async function getDateList() {
       // 关闭的功能
       disable: item.closeFunctions.includes('2')
     }))
+    // 默认选中第一个
+    nextTick(()=>{
+      loginValue.value = loginOptions.value?.[0].login
+    })
     const route = getCurrentPages().pop().$page.options
     if (route.login) {
       const found = loginOptions.value.find(opt => opt.login === Number(route.login))

+ 4 - 0
pages/ib/agent-transfer.vue

@@ -460,6 +460,10 @@ async function getDateList() {
     const res = await ibApi.CustomDropdown({ platform: '' })
     if (res.code == Code.StatusOK) {
         loginOptions.value = res.data
+      // 默认选中第一个
+      nextTick(()=>{
+        loginValue.value = loginOptions.value?.[0].login
+      })
     } else {
         uni.showToast({ title: res.msg, icon: 'none' })
     }