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 11cd21ff
authored
Sep 13, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交案例视频
1 parent
eb673129
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
pages/boutique/case.vue
pages/boutique/case.vue
View file @
11cd21f
...
@@ -182,7 +182,8 @@ export default {
...
@@ -182,7 +182,8 @@ export default {
this
.
name
=
e
.
detail
.
value
this
.
name
=
e
.
detail
.
value
if
(
this
.
name
==
''
)
if
(
this
.
name
==
''
)
this
.
isSearch
=
false
this
.
isSearch
=
false
this
.
list
=
this
.
searchList
.
filter
(
i
=>
i
.
name
.
includes
(
this
.
name
))
// this.list = this.searchList.filter(i => i.name.includes(this.name))
this
.
getCaseList
(
this
.
selectIndex
==
'全部'
?
''
:
this
.
selectIndex
,
this
.
name
)
},
},
selectType
()
{
selectType
()
{
this
.
isSelect
=
!
this
.
isSelect
this
.
isSelect
=
!
this
.
isSelect
...
@@ -191,12 +192,12 @@ export default {
...
@@ -191,12 +192,12 @@ export default {
console
.
log
(
val
)
console
.
log
(
val
)
this
.
selectIndex
=
val
.
value
this
.
selectIndex
=
val
.
value
this
.
isSelect
=
false
this
.
isSelect
=
false
this
.
getCaseList
(
this
.
selectIndex
==
'全部'
?
''
:
this
.
selectIndex
)
this
.
getCaseList
(
this
.
selectIndex
==
'全部'
?
''
:
this
.
selectIndex
,
this
.
name
)
},
},
async
getCaseList
(
category
=
''
)
{
async
getCaseList
(
category
=
''
,
name
=
''
)
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
{
shopMerchantId
}
=
userInfo
;
// 44217687
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getCaseList
({
merchantId
:
44217687
,
category
})
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getCaseList
({
merchantId
:
shopMerchantId
,
category
,
name
})
console
.
log
(
res
)
console
.
log
(
res
)
this
.
list
=
res
.
list
this
.
list
=
res
.
list
this
.
searchList
=
res
.
list
this
.
searchList
=
res
.
list
...
@@ -204,7 +205,7 @@ export default {
...
@@ -204,7 +205,7 @@ export default {
async
getCategory
()
{
async
getCategory
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
{
shopMerchantId
}
=
userInfo
;
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getCategory
({
merchantId
:
44217687
})
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getCategory
({
merchantId
:
shopMerchantId
})
console
.
log
(
res
)
console
.
log
(
res
)
const
_list
=
res
.
map
(
item
=>
{
const
_list
=
res
.
map
(
item
=>
{
return
{
return
{
...
...
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