Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b4ed7840
authored
Nov 01, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 本店方案开关
1 parent
122ffcee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
12 deletions
components/HomeFrame/components/CustomerFile.vue
components/HomeFrame/components/CustomerFile.vue
View file @
b4ed784
...
...
@@ -61,10 +61,26 @@
>
{{
i
.
text
}}
</view>
</
template
>
</view>
<view
class=
"search-btn flex"
@
click=
"$refs.customerTagstVisible.open()"
>
标签筛选
</view>
<view
class=
"btn-list flex"
>
<view
class=
"merchant-btn flex"
@
click=
"allMerchantSwitch"
>
<view
:class=
"['check-box flex',{'checked':!allMerchantStatus}]"
>
<uni-icons
type=
"checkmarkempty"
:size=
"12"
color=
"#fff"
></uni-icons>
</view>
仅展示本店方案
</view>
<view
class=
"search-btn flex"
@
click=
"$refs.customerTagstVisible.open()"
>
标签筛选
</view>
</view>
</view>
<scroll-view
...
...
@@ -275,6 +291,7 @@ export default {
status
:
1
,
showChannel
:
2
,
}
,
allMerchantStatus
:
true
}
}
,
...
...
@@ -463,7 +480,7 @@ export default {
mask
:
true
}
)
let
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
),
{
pageSize
,
pageNum
,
caseParams
,
tagsList
}
=
this
,
{
pageSize
,
pageNum
,
caseParams
,
tagsList
,
allMerchantStatus
}
=
this
,
customerLabelList
=
[]
tagsList
.
map
(
e
=>
customerLabelList
.
push
({
labelId
:
e
.
labelId
...
...
@@ -472,9 +489,9 @@ export default {
currentPage
:
pageNum
,
pageSize
,
customerLabelList
,
merchantId
:
shopMerchantId
,
...
caseParams
}
if
(
!
allMerchantStatus
)
params
.
merchantId
=
shopMerchantId
const
{
list
,
total
}
=
await
uni
.
$api
.
customerApi
.
getMaterialResponsePage
(
params
)
uni
.
hideLoading
()
list
.
map
(
e
=>
{
...
...
@@ -502,6 +519,10 @@ export default {
handleSelect
(
list
)
{
this
.
tagsList
=
list
this
.
refresh
()
}
,
allMerchantSwitch
()
{
this
.
allMerchantStatus
=
!
this
.
allMerchantStatus
this
.
refresh
()
}
}
}
...
...
@@ -834,15 +855,37 @@ export default {
background
:
#
2
d66f71a
;
}
}
.
search
-
btn
{
.
btn
-
list
{
margin
-
left
:
auto
;
&
::
after
{
content
:
''
;
border
:
12
rpx
solid
transparent
;
border
-
left
-
color
:
#
000
;
margin
-
left
:
12
rpx
;
gap
:
0
48
rpx
;
line
-
height
:
48
rpx
;
.
search
-
btn
{
&
::
after
{
content
:
''
;
border
:
12
rpx
solid
transparent
;
border
-
left
-
color
:
#
000
;
margin
-
left
:
12
rpx
;
transform
:
translateY
(
-
2
rpx
);
}
}
.
check
-
box
{
width
:
32
rpx
;
height
:
32
rpx
;
background
:
#
ffffff
;
border
:
1.5
px
solid
#
999
;
border
-
radius
:
6
rpx
;
box
-
sizing
:
border
-
box
;
margin
-
right
:
16
rpx
;
justify
-
content
:
center
;
overflow
:
hidden
;
transition
:
all
0.25
s
;
flex
-
shrink
:
0
;
transform
:
translateY
(
-
2
rpx
);
}
.
checked
{
background
:
#
2
c66f7
;
border
-
color
:
#
2
c66f7
;
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment