liukangdong
2024-07-18 5b219a9694c8d69db42e746a654c779cc6a61bf6
wechat_staff/api/index.js
@@ -2,10 +2,24 @@
import { baseUrl } from '../utils/config'
export const uploadUrl = baseUrl + '/public/upload'
// 小程序登录
// 小程序 默认登录
export const wxLoginCustomer = (data) => {
  return request({
    url: '/web/customer/wxLoginCustomer',
    url: '/web/personnel/loginByWx',
    data
  })
}
// 验证码登录
export const loginByPhone = (data) => {
  return request({
    url: '/web/personnel/loginByPhone',
    data
  })
}
// 发送验证码
export const sendSms = (data) => {
  return request({
    url: '/web/personnel/sendSms',
    data
  })
}
@@ -36,7 +50,53 @@
// 获取会员信息
export const getMemberInfo = () => {
  return request({
    url: '/web/customer/getMemberInfo',
    url: '/web/personnel/getUserDetail',
  })
}
// 首页 每日上新
export const getDailyUpdates = (data) => {
  return request({
    url: '/web/customer/getDailyUpdates',
    data
  })
}
// 首页  推广咨询分页
export const newsPage = (data) => {
  return request({
    url: '/web/customer/newsPage',
    data,
    method: "POST"
  })
}
// 首页 志说装修
export const getZSZXCatalogs = () => {
  return request({
    url: '/web/customer/getZSZXCatalogs',
    method: "POST"
  })
}
// 志说装修 标签
export const getCataLogTagList = (data) => {
  return request({
    url: '/web/customer/getCataLogTagList',
    method: "POST",
    data
  })
}
// 中泰 分类数据
export const getCatalogList = (data) => {
  return request({
    url: '/web/customer/getCatalogList',
    method: "POST",
    data
  })
}
// 志说装修 内容
export const pageZSZXContentList = (data) => {
  return request({
    url: '/web/customer/pageContentList',
    method: "POST",
    data
  })
}
// 获取门店列表