1

parent bba65676
...@@ -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,
});
}
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment