1 Star 0 Fork 1.1K

夏之记忆/萤火商城V2.0-uniapp端

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
comment.js 566 Bytes
一键复制 编辑 原始数据 按行查看 历史
萤火科技 提交于 2024-02-06 22:51 . v2.1.0
import request from '@/utils/request'
// api地址
const api = {
list: 'comment/list',
listRows: 'comment/listRows',
total: 'comment/total'
}
// 商品评价列表
export const list = (goodsId, param, option) => {
return request.get(api.list, { ...param, goodsId }, option)
}
// 商品评价列表 (限制数量, 用于商品详情页展示)
export const listRows = (goodsId, limit = 5) => {
return request.get(api.listRows, { goodsId, limit })
}
// 商品评分总数
export const total = (goodsId) => {
return request.get(api.total, { goodsId })
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/memories-of-xia/yoshop2.0-uniapp.git
git@gitee.com:memories-of-xia/yoshop2.0-uniapp.git
memories-of-xia
yoshop2.0-uniapp
萤火商城V2.0-uniapp端
master

搜索帮助