li.shaoyi 1 年之前
父節點
當前提交
b627cd5bd7

+ 1 - 1
src/hooks/datatable/index.ts

@@ -109,7 +109,7 @@ export function useDataFilter<T>() {
     // 获取查询参数,支持多条件查询
     const getQueryParams = (callback: (params: T) => void, clear = false) => {
         clear && clearAll()
-        const params: T = Object.create(null)
+        const params: T = Object.create({})
 
         filterOptons.selectList.forEach((e) => {
             if (e.selectedValue !== undefined) {

+ 1 - 0
src/packages/pc/assets/themes/default/default.less

@@ -472,6 +472,7 @@
 }
 
 .g-fieldset {
+    min-width: auto;
     border: 1px solid #162534;
     padding: 20px;
 

+ 9 - 5
src/packages/sbyj/views/account/certification/Index.vue

@@ -133,11 +133,15 @@ const onCheckCardNum = () => {
                 cardnum: formData.cardnum
             }
         }).then(() => {
-            formSubmit().then(() => {
-                hideLoading()
-                dialog('提交请求成功,请耐心等待审核!').then(() => {
-                    router.back()
-                })
+            formSubmit().then((res) => {
+                if (res.code.toString() !== '0') {
+                    showFailToast(res.message)
+                } else {
+                    hideLoading()
+                    dialog('提交请求成功,请耐心等待审核!').then(() => {
+                        router.back()
+                    })
+                }
             }).catch((err) => {
                 formData.cardnum = ''
                 hideLoading(err, 'fail')

+ 16 - 2
src/packages/sbyj/views/home/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="home g-flex">
+  <div ref="homeRef" class="home g-flex">
     <router-view v-slot="{ Component }">
       <RouterTransition :css="cssTransition">
         <!-- 缓存所有组件 -->
@@ -14,16 +14,18 @@
 </template>
 
 <script lang="ts" setup>
-import { shallowRef, nextTick, watch, onMounted ,computed} from 'vue'
+import { shallowRef, nextTick, watch, onMounted, computed } from 'vue'
 import { Tabbar } from '@mobile/components/base/tabbar/types'
 import { useNavigation } from '@mobile/router/navigation'
 import { useLoginStore } from '@/stores'
 import AppTabbar from '@mobile/components/base/tabbar/index.vue'
 import AppUpdater from '@mobile/components/base/updater/index.vue'
 import RouterTransition from '@mobile/components/base/router-transition/index.vue'
+import eventBus from '@/services/bus'
 
 const { route, routerTo } = useNavigation()
 const loginStore = useLoginStore()
+const homeRef = shallowRef<HTMLDivElement>()
 const cssTransition = shallowRef(true) // 是否使用css动画
 const currentTab = shallowRef(0)
 
@@ -65,6 +67,18 @@ const onTabClick = (index: number) => {
   }
 }
 
+// 接收行情服务连接状态通知
+eventBus.$on('QuoteServerStatusNotify', (status) => {
+  const el = homeRef.value?.querySelector('.app-tabbar__item--home-market .app-iconfont__label') as HTMLSpanElement
+  if (el) {
+    if (status) {
+      el.style.removeProperty('text-decoration')
+    } else {
+      el.style.setProperty('text-decoration', 'underline')
+    }
+  }
+})
+
 watch(() => route.name, () => {
   if (tabIndex.value > -1) {
     cssTransition.value = false

+ 6 - 0
src/packages/sbyj/views/market/list/index.less

@@ -41,6 +41,12 @@
         }
 
         td {
+
+            &:nth-child(2),
+            &:nth-child(3) {
+                width: 22%;
+            }
+
             font-size: 16px;
             border-top: 1px solid #eee;
             padding: 6px;