common.js 1.41 KB
import http from "../request/http";

module.exports = {
  search (data) {
    return http.post({
      method: "scrm.api.carlife.weapp.homeSearch.search",
      pageSize: 10,
      ...data,
    });
  },
  // 查询接待素材
  findSoureList () {
    return http.post({
      method: "dj.api.smartcarlife.recepiton.soure.findSoureList",
      projectName: "boutique",
    });
  },
  // 查询门店支付配置
  findPayInfo (data) {
    return http.post({
      method:
        "dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId",
      projectName: "boutique",
      ...data,
    });
  },
  // 查询门店支付配置
  saveRecCustomer (data) {
    return http.post({
      method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer",
      projectName: "boutique",
      ...data,
    });
  },
  getToken (data) {
    return http.post(
      {
        method: "dj.api.smartcarlife.recepiton.customer.oss.getToken",
        projectName: "boutique",
      },
      false,
      "test"
    );
  },
  /** 查询接待素材详情 */
  getFindSoureDetail (data) {
    return http.post({
      method: 'dj.api.smartcarlife.recepiton.soure.findSoureDetailList',
      projectName: 'boutique',
      ...data
    });
  },
  // 历史订单列表
  getQuotationList(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
      projectName: 'boutique',
      ...data
    })
  }
};