zhb 2 veckor sedan
förälder
incheckning
8af3ebbe10

+ 2 - 1
pages/activities/index.vue

@@ -1244,7 +1244,8 @@ const getDateList = async () => {
         // loginOptions1.value = res.data
         loginOptions1.value = res.data.map(item => ({
             ...item,
-            label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`
+            label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`,
+            disable: item.closeFunctions.includes('1')
         }))
     } else {
         uni.showToast({ title: res.msg, icon: "none" })

+ 2 - 1
pages/customer/dashboard.vue

@@ -345,7 +345,8 @@
     if (res.code == Code.StatusOK) {
       loginDataOptions.value = res.data.map(item => ({
         ...item,
-        label: `${item.login}`
+        label: `${item.login}`,
+        disable: item.closeFunctions.includes('1')
       }))
       const found = loginDataOptions.value?.[0]
       loginValue.value = found?.login||null

+ 2 - 1
pages/customer/deposit.vue

@@ -1644,7 +1644,8 @@ const getDateList = async () => {
     if (res.code == Code.StatusOK) {
         loginOptions.value = res.data.map(item => ({
             ...item,
-            label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`
+            label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`,
+            disable: item.closeFunctions.includes('1')
         }))
         const pages = getCurrentPages()
         const route = pages[pages.length - 1].$page?.options || {}

+ 2 - 1
pages/customer/withdrawal.vue

@@ -1837,7 +1837,8 @@ async function getDateList() {
   if (res.code == Code.StatusOK) {
     loginOptions.value = res.data.map(item => ({
       ...item,
-      label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`
+      label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`,
+      disable: item.closeFunctions.includes('2')
     }))
     const route = getCurrentPages().pop().$page.options
     if (route.login) {