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
c1fe0f25
Commit
c1fe0f25
authored
Aug 15, 2024
by
周俊涛(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决评论列表测试数据问题
parent
39d21d4a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
RouteDetails.vue
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
+2
-2
index.vue
src/pages/assistingAgriculture/album/index.vue
+4
-7
index.vue
src/pages/assistingAgriculture/commentList/index.vue
+5
-3
No files found.
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
View file @
c1fe0f25
...
...
@@ -591,14 +591,14 @@ function back() {
function
toCommentDetail
()
{
// TODO: 跳转到评论详情页
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/commentList/index'
,
url
:
`/pages/assistingAgriculture/commentList/index?shopId=
${
shopIds
.
value
}
&prodId=
${
prodIds
.
value
}
`
,
});
}
// 跳转用户相册
function
toAlbum
()
{
// TODO: 跳转到评论详情页
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/album/index'
,
url
:
`/pages/assistingAgriculture/album/index?shopId=
${
shopIds
.
value
}
&prodId=
${
prodIds
.
value
}
`
,
});
}
</
script
>
...
...
src/pages/assistingAgriculture/album/index.vue
View file @
c1fe0f25
...
...
@@ -60,12 +60,9 @@ const filterList = [
},
];
const
photoData
=
ref
([]);
const
params
=
{
prodId
:
'43828'
,
shopId
:
'1818876196597334017'
,
};
onLoad
(()
=>
{
getPhotoFn
();
onLoad
(({
prodId
,
shopId
})
=>
{
getPhotoFn
({
prodId
,
shopId
});
});
// const scrolltolower = () => {
// console.log('触底加载触底加载触底加载');
...
...
@@ -76,7 +73,7 @@ onLoad(() => {
// }
// show.value = true;
// };
const
getPhotoFn
=
()
=>
{
const
getPhotoFn
=
(
params
)
=>
{
getPhoto
(
params
).
then
((
res
)
=>
{
res
.
data
.
forEach
((
v
)
=>
{
if
(
v
.
images
)
{
...
...
src/pages/assistingAgriculture/commentList/index.vue
View file @
c1fe0f25
...
...
@@ -89,8 +89,8 @@ const imgUrl = import.meta.env.VITE_APP_IMG_URL;
const
tagList
=
ref
([]);
const
commentData
=
ref
([]);
const
commentParameters
=
{
shopId
:
'
1818876196597334017
'
,
prodId
:
'
43828
'
,
shopId
:
''
,
prodId
:
''
,
current
:
1
,
size
:
10
,
};
...
...
@@ -99,7 +99,9 @@ let total;
const
select
=
ref
(
-
1
);
const
topData
=
ref
({});
onLoad
((
options
)
=>
{
onLoad
(({
prodId
,
shopId
})
=>
{
commentParameters
.
prodId
=
prodId
;
commentParameters
.
shopId
=
shopId
;
getEvalStatisFn
();
getCommentListFn
();
});
...
...
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