upload.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. // 提交审核
  3. export function set_apply(data, id) {
  4. return request({
  5. url: '/api/user_product/set_apply/' + id,
  6. method: 'post',
  7. data
  8. });
  9. }
  10. //我的商品列表
  11. export function get_list(data) {
  12. return request({
  13. url: '/api/user_product/get_list',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. //新增修改商品
  19. export function save(data, id) {
  20. return request({
  21. url: '/api/user_product/save/' + id,
  22. method: 'post',
  23. data
  24. });
  25. }
  26. // 生成规格列表
  27. export function is_format_attr(data) {
  28. return request({
  29. url: '/api/user_product/is_format_attr/0',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 获取运费模板
  35. export function temp_list(data) {
  36. return request({
  37. url: '/api/user_product/temp_list',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. // 获取商品详情
  43. export function get_product_info(data, id) {
  44. return request({
  45. url: '/api/user_product/get_product_info/' + id,
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 获取规格列表
  51. export function get_rule(data) {
  52. return request({
  53. url: '/api/user_product/get_rule',
  54. method: 'get',
  55. data
  56. });
  57. }