You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
725 B

  1. import request from '@/utils/request'
  2. // 获取价格配置
  3. export function getPriceConfig() {
  4. return request({
  5. url: '/system/appletConfig/list',
  6. method: 'get',
  7. params: {
  8. paramCode: 'price_config'
  9. }
  10. })
  11. }
  12. // 保存价格配置
  13. export function savePriceConfig(data) {
  14. return request({
  15. url: '/system/appletConfig',
  16. method: 'post',
  17. data: data
  18. })
  19. }
  20. // 更新价格配置
  21. export function updatePriceConfig(data) {
  22. return request({
  23. url: '/system/appletConfig',
  24. method: 'put',
  25. data: data
  26. })
  27. }
  28. // 计算订单价格
  29. export function calculateOrderPrice(orderData) {
  30. return request({
  31. url: '/system/order/calculatePrice',
  32. method: 'post',
  33. data: orderData
  34. })
  35. }