Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
a76059c7
提交
a76059c7
authored
8月 27, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(mobile/routes): 调整:移动端路由位置等
上级
d03656fe
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
102 行增加
和
57 行删除
+102
-57
index.js
src/api/index.js
+1
-1
index.js
src/api/mobile/cp_activity/examine/index.js
+0
-0
index.js
src/router/index.js
+2
-55
index.vue
src/views/mobile/index.vue
+2
-1
index.js
src/views/mobile/router/index.js
+56
-0
inspectionTask.vue
...ctivity/sales_point_inspection/examine/inspectionTask.vue
+10
-0
newTerminal.vue
...t_activity/sales_point_inspection/examine/newTerminal.vue
+10
-0
storeList.vue
...dit_activity/sales_point_inspection/examine/storeList.vue
+11
-0
taskList.vue
...udit_activity/sales_point_inspection/examine/taskList.vue
+10
-0
index.vue
src/views/mobile/views/cp_activity/examine/index.vue
+0
-0
index.vue
...activity/promotion/plan/components/PickerBelong/index.vue
+0
-0
index.vue
.../mobile/views/cp_activity/promotion/plan/detail/index.vue
+0
-0
taskList.vue
...bile/views/cp_activity/promotion/plan/detail/taskList.vue
+0
-0
index.vue
...mobile/views/cp_activity/promotion/plan/editing/index.vue
+0
-0
index.vue
...s/mobile/views/cp_activity/promotion/plan/index/index.vue
+0
-0
planSearch.vue
...ile/views/cp_activity/promotion/plan/index/planSearch.vue
+0
-0
没有找到文件。
src/api/index.js
浏览文件 @
a76059c7
...
...
@@ -3,7 +3,6 @@ export * from './common/menu'
export
*
from
'./common/openQuery'
export
*
from
'./common/region'
export
*
from
'./common/upload'
export
*
from
'./examine/index'
export
*
from
'./bi/competitor'
export
*
from
'./bi/finance'
export
*
from
'./bi/livecate'
...
...
@@ -16,6 +15,7 @@ export * from './jimu/design'
export
*
from
'./jimu/ext'
export
*
from
'./jimu/list'
export
*
from
'./jimu/manager'
export
*
from
'./mobile/cp_activity/examine/index'
export
*
from
'./other/logistics'
export
*
from
'./other/version'
export
*
from
'./monitor/cache'
...
...
src/api/examine/index.js
→
src/api/
mobile/cp_activity/
examine/index.js
浏览文件 @
a76059c7
File moved
src/router/index.js
浏览文件 @
a76059c7
...
...
@@ -2,6 +2,7 @@ import { createWebHashHistory, createRouter, createWebHistory } from 'vue-router
/* Layout */
import
Layout
from
'@/layout'
import
{
isMobile
}
from
'@/utils'
import
{
constantMobileRoutes
}
from
'@/views/mobile/router/index.js'
/**
* Note: 路由配置项
...
...
@@ -175,61 +176,7 @@ export const dynamicRoutes = [
]
}
]
// 移动端 静态路由
export
const
constantMobileRoutes
=
[
{
path
:
'/login'
,
component
:
()
=>
import
(
'@/views/login'
),
hidden
:
true
},
{
path
:
'/'
,
redirect
:
'/m'
},
{
path
:
'/m'
,
redirect
:
'/m/menu'
,
component
:
()
=>
import
(
'@/views/mobile/index'
),
hidden
:
true
,
children
:
[
// 菜单页
{
path
:
'menu'
,
component
:
()
=>
import
(
'@/views/mobile/views/menu'
),
name
:
'm_menu'
,
},
// 促销计划
{
path
:
'promotion_plan'
,
// 列表
component
:
()
=>
import
(
'@/views/mobile/views/promotion/plan/index'
),
name
:
'm_promotion_plan'
,
meta
:
{
keepAlive
:
true
}
// 标记该路由需要缓存
},
{
path
:
'promotion_plan_detail/:planId'
,
// 详情
component
:
()
=>
import
(
'@/views/mobile/views/promotion/plan/detail'
),
name
:
'm_promotion_detail'
,
},
{
path
:
'promotion_plan_editing/:planId?'
,
// 增改
component
:
()
=>
import
(
'@/views/mobile/views/promotion/plan/editing'
),
name
:
'm_promotion_editing'
,
},
// 稽查
{
path
:
'examine/:examineId'
,
component
:
()
=>
import
(
'@/views/mobile/views/examine'
),
name
:
'm_promotion_examine'
,
}
]
},
// 物流信息页面
{
path
:
'/logistics'
,
component
:
()
=>
import
(
'@/views/mobile/views/other/logistics'
),
name
:
'logistics'
}
]
const
router
=
createRouter
({
// 路由模式:createWebHashHistory,createWebHistory
...
...
src/views/mobile/index.vue
浏览文件 @
a76059c7
...
...
@@ -7,7 +7,8 @@
</
template
>
<
script
setup
>
import
{
constantMobileRoutes
}
from
'@/router'
import
{
constantMobileRoutes
}
from
'@/views/mobile/router'
// 递归判断有 children 往里走找到所有路由对象 meta 的 keepAlive 是 true 的然后返回 meta 同级的 name 名字的值,组成一个数组
const
cachedViews
=
[]
function
getKeepAliveName
(
routes
)
{
...
...
src/views/mobile/router/index.js
0 → 100644
浏览文件 @
a76059c7
// 移动端 静态路由
export
const
constantMobileRoutes
=
[
{
path
:
'/login'
,
component
:
()
=>
import
(
'@/views/login'
),
hidden
:
true
},
{
path
:
'/'
,
redirect
:
'/m'
},
{
path
:
'/m'
,
redirect
:
'/m/menu'
,
component
:
()
=>
import
(
'@/views/mobile/index'
),
hidden
:
true
,
children
:
[
// 菜单页
{
path
:
'menu'
,
component
:
()
=>
import
(
'@/views/mobile/views/menu'
),
name
:
'm_menu'
,
},
// 促销计划
{
path
:
'promotion_plan'
,
// 列表
component
:
()
=>
import
(
'@/views/mobile/views/cp_activity/promotion/plan/index'
),
name
:
'm_promotion_plan'
,
meta
:
{
keepAlive
:
true
}
// 标记该路由需要缓存
},
{
path
:
'promotion_plan_detail/:planId'
,
// 详情
component
:
()
=>
import
(
'@/views/mobile/views/cp_activity/promotion/plan/detail'
),
name
:
'm_promotion_detail'
,
},
{
path
:
'promotion_plan_editing/:planId?'
,
// 增改
component
:
()
=>
import
(
'@/views/mobile/views/cp_activity/promotion/plan/editing'
),
name
:
'm_promotion_editing'
,
},
// 稽查
{
path
:
'examine/:examineId'
,
component
:
()
=>
import
(
'@/views/mobile/views/cp_activity/examine'
),
name
:
'm_promotion_examine'
,
}
]
},
// 物流信息页面
{
path
:
'/logistics'
,
component
:
()
=>
import
(
'@/views/mobile/views/other/logistics'
),
name
:
'logistics'
}
]
\ No newline at end of file
src/views/mobile/views/audit_activity/sales_point_inspection/examine/inspectionTask.vue
0 → 100644
浏览文件 @
a76059c7
<
template
>
<!-- 稽查任务 -->
</
template
>
<
script
setup
>
</
script
>
<
style
scoped
></
style
>
\ No newline at end of file
src/views/mobile/views/audit_activity/sales_point_inspection/examine/newTerminal.vue
0 → 100644
浏览文件 @
a76059c7
<
template
>
<!-- 新建终端 -->
</
template
>
<
script
setup
>
</
script
>
<
style
scoped
></
style
>
\ No newline at end of file
src/views/mobile/views/audit_activity/sales_point_inspection/examine/storeList.vue
0 → 100644
浏览文件 @
a76059c7
<
template
>
<!-- 门店列表 -->
</
template
>
<
script
setup
>
</
script
>
<
style
scoped
></
style
>
\ No newline at end of file
src/views/mobile/views/audit_activity/sales_point_inspection/examine/taskList.vue
0 → 100644
浏览文件 @
a76059c7
<
template
>
<!-- 任务列表 -->
</
template
>
<
script
setup
>
</
script
>
<
style
scoped
></
style
>
\ No newline at end of file
src/views/mobile/views/examine/index.vue
→
src/views/mobile/views/
cp_activity/
examine/index.vue
浏览文件 @
a76059c7
File moved
src/views/mobile/views/promotion/plan/components/PickerBelong/index.vue
→
src/views/mobile/views/
cp_activity/
promotion/plan/components/PickerBelong/index.vue
浏览文件 @
a76059c7
File moved
src/views/mobile/views/promotion/plan/detail/index.vue
→
src/views/mobile/views/
cp_activity/
promotion/plan/detail/index.vue
浏览文件 @
a76059c7
File moved
src/views/mobile/views/promotion/plan/detail/taskList.vue
→
src/views/mobile/views/
cp_activity/
promotion/plan/detail/taskList.vue
浏览文件 @
a76059c7
File moved
src/views/mobile/views/promotion/plan/editing/index.vue
→
src/views/mobile/views/
cp_activity/
promotion/plan/editing/index.vue
浏览文件 @
a76059c7
File moved
src/views/mobile/views/promotion/plan/index/index.vue
→
src/views/mobile/views/
cp_activity/
promotion/plan/index/index.vue
浏览文件 @
a76059c7
File moved
src/views/mobile/views/promotion/plan/index/planSearch.vue
→
src/views/mobile/views/
cp_activity/
promotion/plan/index/planSearch.vue
浏览文件 @
a76059c7
File moved
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论