Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
56028c0f
提交
56028c0f
authored
3月 26, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(mobile_view/promotion): 增加计划列表卡片效果
同上
上级
09432c78
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
60 行增加
和
2 行删除
+60
-2
index.vue
src/mobile_views/promotion/index.vue
+60
-2
没有找到文件。
src/mobile_views/promotion/index.vue
浏览文件 @
56028c0f
<
template
>
<
template
>
<div>
<div
class=
"mobile-container"
>
<van-nav-bar
title=
"活动计划"
<van-nav-bar
title=
"活动计划"
right-text=
"搜索"
right-text=
"搜索"
@
click-right=
"showSearch = true"
/>
@
click-right=
"showSearch = true"
/>
<!-- 计划列表 -->
<van-list
v-model:loading=
"loading"
:finished=
"finished"
:immediate-check=
"false"
finished-text=
"没有更多了"
@
load=
"onLoad"
>
<van-cell-group
inset
>
<van-cell
v-for=
"item in planList"
:key=
"item.id"
:title=
"item.employeeName"
:value=
"item.pattern"
:label=
"item.storeName"
@
click=
"detailFn"
/>
</van-cell-group>
</van-list>
<van-popup
v-model:show=
"showSearch"
<van-popup
v-model:show=
"showSearch"
position=
"right"
position=
"right"
:style=
"
{ height: '100vh' }">
:style=
"
{ height: '100vh' }">
...
@@ -101,7 +117,7 @@
...
@@ -101,7 +117,7 @@
<
script
setup
>
<
script
setup
>
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
useDatePickerOptions
}
from
'@/hooks'
import
{
useDatePickerOptions
}
from
'@/hooks'
import
{
getChargeListAPI
}
from
'@/api'
import
{
getChargeListAPI
,
getPlanListAPI
}
from
'@/api'
const
{
recentPickerOptions
:
pickerOptions
,
thisYearDate
}
=
useDatePickerOptions
(
0
)
const
{
recentPickerOptions
:
pickerOptions
,
thisYearDate
}
=
useDatePickerOptions
(
0
)
...
@@ -205,11 +221,53 @@ const onEmployeeConfirm = (val) => {
...
@@ -205,11 +221,53 @@ const onEmployeeConfirm = (val) => {
employeeIdStr
.
value
=
val
.
selectedValues
employeeIdStr
.
value
=
val
.
selectedValues
employeeIdShowPicker
.
value
=
false
employeeIdShowPicker
.
value
=
false
}
}
// 计划列表
const
planQueryParams
=
reactive
({
pageNum
:
1
,
pageSize
:
10
})
const
planList
=
ref
([])
const
loading
=
ref
(
false
)
const
finished
=
ref
(
false
)
const
getPlanList
=
async
()
=>
{
loading
.
value
=
true
const
res
=
await
getPlanListAPI
(
planQueryParams
)
planList
.
value
=
[...
planList
.
value
,
...
res
.
data
.
records
]
finished
.
value
=
res
.
data
.
records
.
length
===
0
loading
.
value
=
false
}
getPlanList
()
const
onLoad
=
()
=>
{
planQueryParams
.
pageNum
++
getPlanList
()
}
const
detailFn
=
()
=>
{
}
</
script
>
</
script
>
<
style
scoped
<
style
scoped
lang=
"scss"
>
lang=
"scss"
>
.mobile-container
{
background
:
#f5f5f5
;
.van-cell-group
{
background
:
#f5f5f5
;
}
.van-cell
{
margin-top
:
10px
;
::v-deep
(
.van-cell__label
)
{
/* 强制一行显示 */
white-space
:
nowrap
;
}
}
}
::v-deep
(
.van-field
)
:first-of-type
{
::v-deep
(
.van-field
)
:first-of-type
{
.van-button
{
margin
:
0
5px
;
padding
:
0
5px
;
}
.van-cell__right-icon
:first-of-type
{
.van-cell__right-icon
:first-of-type
{
display
:
none
;
display
:
none
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论