Handy_Cao 2 سال پیش
والد
کامیت
cec1b42d40

+ 1 - 1
src/business/login/index.ts

@@ -1,7 +1,7 @@
 import { shallowRef, reactive } from 'vue'
 import { v4 } from 'uuid'
 import { timerTask } from '@/utils/timer'
-import { wsLogin, httpLogin, logout, queryLoginId } from '@/services/api/account'
+import { wsLogin, httpLogin, queryLoginId } from '@/services/api/account'
 import { useGlobalStore, useLoginStore, useEnumStore, useErrorInfoStore, useUserStore, useFuturesStore, useAccountStore, useNoticeStore } from '@/stores'
 import service from '@/services'
 import quoteSocket from '@/services/websocket/quote'

+ 1 - 1
src/packages/mobile/views/bank/sign/Index.vue

@@ -35,7 +35,7 @@
 </template>
 
 <script lang="ts" setup>
-import { onActivated, defineAsyncComponent, ref } from 'vue'
+import { defineAsyncComponent, ref } from 'vue'
 import { CellGroup, Cell, Button, Empty, showFailToast } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
 import { useComponent } from '@/hooks/component'

+ 1 - 1
src/packages/mobile/views/bank/wallet/Index.vue

@@ -1,7 +1,7 @@
 <template>
     <app-view>
         <template #header>
-            <app-navbar title="入金出金" >
+            <app-navbar title="入金" >
                 <template #right>
                     <div class="button-more" @click="openComponent('inoutapply')">
                         <span>申请记录</span>

+ 1 - 1
src/packages/mobile/views/bank/wallet/components/deposit/Index.vue

@@ -22,7 +22,7 @@
         <div class="g-form__bank" v-if="cusBank.caninamount === 0">
             <span style="color: #666; font-size: 0.25rem;" v-html="msg" />
         </div>
-        <div class="g-form__time" style="padding: 0.15rem 0.3rem;" v-if="cusBank.caninamount === 1">
+        <div class="g-form__time" style="padding: 0rem 0.1rem 0.1rem 0.3rem;" v-if="cusBank.caninamount === 1">
             <span style="color: #666; font-size: 0.25rem;" v-html="msg" />
         </div>
         <div class="g-form__bank" v-if="false">

+ 2 - 1
src/packages/mobile/views/bank/wallet/components/deposit/index.less

@@ -2,6 +2,7 @@
     .g-form__time {
         color: #999;
         padding-left: 15px;
+        padding-top: 0.2rem;
     }
 
     .g-form__bank {
@@ -27,7 +28,7 @@
                 button {
                     background-color: #e1e1e1;
                     border-radius: .1rem;
-                    padding: .04rem .2rem;
+                    padding: .02rem .2rem;
                 }
             }
         }

+ 9 - 9
src/packages/mobile/views/home/main/Index.vue

@@ -69,25 +69,25 @@ import { formatDate } from "@/filters";
 import { useNavigation } from '@mobile/router/navigation';
 import { queryImageConfigs } from "@/services/api/common";
 import { queryNewTitles } from "@/services/api/news";
-import { useLoginStore, useGlobalStore } from '@/stores'
+import { useGlobalStore } from '@/stores'
 import Banner from '@mobile/components/base/banner/index.vue'
 import Iconfont from '@/components/base/iconfont/index.vue'
 
 const globalStore = useGlobalStore()
-const loginStore = useLoginStore();
+// const loginStore = useLoginStore();
 const { routerTo } = useNavigation();
 const refreshing = shallowRef(false); // 是否处于加载中状态
 const topBanners = shallowRef<string[]>([]); // 轮播图列表
 const newsList = shallowRef<Model.NewTitlesRsp[]>([]); // 资讯列表
 
 // 跳转导航页面
-const switchTab = (routeName: string) => {
-  if (loginStore.token) {
-    routerTo(routeName, true)
-  } else {
-    routerTo('user-login')
-  }
-}
+// const switchTab = (routeName: string) => {
+//   if (loginStore.token) {
+//     routerTo(routeName, true)
+//   } else {
+//     routerTo('user-login')
+//   }
+// }
 
 // 下拉刷新
 const onRefresh = () => {

+ 24 - 24
src/packages/mobile/views/news/detail/Index.vue

@@ -38,8 +38,8 @@
 </template>
 
 <script lang="ts" setup>
-import { CellGroup, Cell, Divider, showFailToast, showToast, Icon } from 'vant'
-import { formatDate, getFileUrl, getNewsShareUrl, formatHtmlString } from '@/filters'
+import { CellGroup, Cell, Divider } from 'vant'
+import { formatDate, getFileUrl, formatHtmlString } from '@/filters'
 import { useNavigation } from '@mobile/router/navigation'
 import { useRequest } from '@/hooks/request'
 import { queryNewTitles, queryNewContents } from '@/services/api/news'
@@ -82,29 +82,29 @@ const openUrl = (url?: string) => {
 }
 
 // 分享消息
-const sendShareMessage = () => {
-    if (data.value) {
-        plus.systemShare({
-            title: data.value.title,
-            href: getNewsShareUrl(newsId),
-        }).catch((err) => {
-            showFailToast(err)
-        })
-    } else {
-        showFailToast('文章不存在,分享失败')
-    }
-}
+// const sendShareMessage = () => {
+//     if (data.value) {
+//         plus.systemShare({
+//             title: data.value.title,
+//             href: getNewsShareUrl(newsId),
+//         }).catch((err) => {
+//             showFailToast(err)
+//         })
+//     } else {
+//         showFailToast('文章不存在,分享失败')
+//     }
+// }
 
-const onCopy = (status: boolean) => {
-    if (status) {
-        showToast({
-            message: '已复制,快去粘贴吧~',
-            position: 'bottom',
-        })
-    } else {
-        showFailToast('复制失败')
-    }
-}
+// const onCopy = (status: boolean) => {
+//     if (status) {
+//         showToast({
+//             message: '已复制,快去粘贴吧~',
+//             position: 'bottom',
+//         })
+//     } else {
+//         showFailToast('复制失败')
+//     }
+// }
 </script>
 
 <style lang="less">

+ 0 - 1
src/services/http/index.ts

@@ -135,7 +135,6 @@ export default new (class {
         const baseUrl = service.getConfig('goCommonSearchUrl')
         config.url = baseUrl + config.url
         const res = await this.request<CommonResult<T>>(config, errMsg)
-        console.log(useLoginStore().token)
         switch (res.code) {
             case ResultCode.InvalidToken: {
                 return Promise.reject('令牌无效')

+ 15 - 15
src/stores/modules/menu.ts

@@ -1,5 +1,5 @@
 import { shallowRef } from 'vue'
-import { AuthType } from '@/constants/menu'
+// import { AuthType } from '@/constants/menu'
 import { queryAccountMenu } from '@/services/api/account'
 import { defineStore } from '../store'
 import { sessionData } from '../storage'
@@ -20,20 +20,20 @@ export const useMenuStore = defineStore(() => {
     }
 
     // 过滤菜单
-    const filterMenu = (data: Model.UserRoutes[], parentPath = '') => {
-        const result: Model.UserRoutes[] = []
-        data.forEach((e) => {
-            if (!e.hidden && e.authType === AuthType.Menu) {
-                const routePath = (parentPath ? parentPath + '/' : '') + e.url
-                result.push({
-                    ...e,
-                    url: routePath,
-                    children: e.children ? filterMenu(e.children, routePath) : [],
-                })
-            }
-        })
-        return result
-    }
+    // const filterMenu = (data: Model.UserRoutes[], parentPath = '') => {
+    //     const result: Model.UserRoutes[] = []
+    //     data.forEach((e) => {
+    //         if (!e.hidden && e.authType === AuthType.Menu) {
+    //             const routePath = (parentPath ? parentPath + '/' : '') + e.url
+    //             result.push({
+    //                 ...e,
+    //                 url: routePath,
+    //                 children: e.children ? filterMenu(e.children, routePath) : [],
+    //             })
+    //         }
+    //     })
+    //     return result
+    // }
 
     return {
         loading,