- 创建代码忽略文件列表 (.gitignore) - 设置代码格式化规则 (.prettierrc)- 添加各种样式文件,包括背景、边框、按钮、卡片等组件样式 - 创建暗黑主题样式文件 - 添加表单和代码样式文件
23 lines
434 B
JavaScript
23 lines
434 B
JavaScript
import request from '@/sheep/request';
|
|
|
|
const CommentApi = {
|
|
// 获得商品评价分页
|
|
getCommentPage: (spuId, pageNo, pageSize, type) => {
|
|
return request({
|
|
url: '/product/comment/page',
|
|
method: 'GET',
|
|
params: {
|
|
spuId,
|
|
pageNo,
|
|
pageSize,
|
|
type,
|
|
},
|
|
custom: {
|
|
showLoading: false,
|
|
showError: false,
|
|
},
|
|
});
|
|
},
|
|
};
|
|
export default CommentApi;
|