sellerEvaluate.js 668 B

12345678910111213141516171819202122232425262728
  1. import { requestApi } from '../util/network'
  2. // 获取评价列表
  3. export const getEvaluateList =
  4. (params, goods_name, member_name) =>
  5. requestApi(
  6. '/Sellerevaluate/evaluate_list',
  7. 'POST',
  8. {
  9. 'goods_name': goods_name,
  10. 'member_name': member_name,
  11. 'page': params.page,
  12. 'per_page': params.per_page
  13. },
  14. 'seller'
  15. )
  16. // 解释评论
  17. export const addExplain =
  18. (gevalId, gevalExplain) =>
  19. requestApi(
  20. '/Sellerevaluate/explain_save',
  21. 'POST',
  22. {
  23. 'geval_id': gevalId,
  24. 'geval_explain': gevalExplain
  25. },
  26. 'seller'
  27. )