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
2b11bf80
Commit
2b11bf80
authored
Aug 12, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bba65676
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
packageDetail.js
src/api/packageDetail.js
+9
-0
index.vue
src/pages/assistingAgriculture/commentList/index.vue
+14
-0
No files found.
src/api/packageDetail.js
View file @
2b11bf80
...
@@ -64,3 +64,12 @@ export function getCommentList(data) {
...
@@ -64,3 +64,12 @@ export function getCommentList(data) {
data
,
data
,
});
});
}
}
// 评论列表数量统计和相同好评最多的评语
export
function
getEvalStatis
(
data
)
{
return
request
({
url
:
`/sgyrdd/evaluation/getEvalStatis`
,
method
:
'GET'
,
data
,
});
}
src/pages/assistingAgriculture/commentList/index.vue
View file @
2b11bf80
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
card
from
'./card.vue'
;
import
card
from
'./card.vue'
;
import
{
getCommentList
}
from
'../../../api/packageDetail'
;
const
commentTypeList
=
[
const
commentTypeList
=
[
{
{
text
:
'图/视频'
,
text
:
'图/视频'
,
...
@@ -114,7 +115,20 @@ const tagList = [
...
@@ -114,7 +115,20 @@ const tagList = [
value
:
514
,
value
:
514
,
},
},
];
];
const
commentParameters
=
{
shopId
:
'1818876196597334017'
,
current
:
1
,
size
:
10
,
};
onLoad
((
options
)
=>
{
getCommentListFn
();
});
const
showMoreTag
=
ref
(
false
);
const
showMoreTag
=
ref
(
false
);
const
getCommentListFn
=
()
=>
{
getCommentList
(
commentParameters
).
then
((
res
)
=>
{
console
.
log
(
'打印评论'
,
res
);
});
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
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