Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
07979aaa
Commit
07979aaa
authored
Aug 06, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下拉刷新
parent
e9e29550
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
foodClassification.vue
src/pages/index/foodClassification.vue
+15
-16
No files found.
src/pages/index/foodClassification.vue
View file @
07979aaa
...
...
@@ -223,7 +223,9 @@ function refresh() {
}
onPullDownRefresh
(()
=>
{
refresh
().
then
(()
=>
{
getMerchantList
();
getMerchantList
().
then
(()
=>
{
xma
.
stopPullDownRefresh
();
});
});
});
// 根据父级分类id查询子分类列表
...
...
@@ -242,13 +244,15 @@ function jumpProductDetails(prodId) {
}
const
prodSpecialFn
=
()
=>
{
prodSpecial
({
categoryId
:
categoryId
.
value
}).
then
((
res
)
=>
{
res
.
data
.
data
=
res
.
data
.
data
.
map
((
el
)
=>
{
if
(
el
.
labels
&&
el
.
labels
!==
''
)
{
el
.
labels
=
el
.
labels
.
split
(
','
);
}
return
el
;
});
topDiscountedProducts
.
value
=
res
.
data
.
data
;
if
(
res
.
data
.
data
)
{
res
.
data
.
data
=
res
.
data
.
data
.
map
((
el
)
=>
{
if
(
el
.
labels
&&
el
.
labels
!==
''
)
{
el
.
labels
=
el
.
labels
.
split
(
','
);
}
return
el
;
});
topDiscountedProducts
.
value
=
res
.
data
.
data
;
}
});
};
const
choice
=
(
index
)
=>
{
...
...
@@ -300,14 +304,9 @@ const getMerchantList = () => {
item
.
labels
=
item
.
labels
.
split
(
','
);
}
});
return
new
Promise
((
resolve
)
=>
{
cardData
.
value
=
cardData
.
value
.
concat
(
res
.
data
.
content
);
xma
.
hideLoading
();
xma
.
stopPullDownRefresh
();
setTimeout
(()
=>
{
resolve
();
},
500
);
});
cardData
.
value
=
cardData
.
value
.
concat
(
res
.
data
.
content
);
xma
.
hideLoading
();
setTimeout
(()
=>
{},
500
);
});
};
function
getLocationFn
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment