import { request } from '../utils/request'
|
import { baseUrl } from '../utils/config'
|
|
export const uploadUrl = baseUrl + '/public/upload'
|
// 小程序登录
|
export const wxLoginCustomer = (data) => {
|
return request({
|
url: '/web/customer/wxLoginCustomer',
|
data
|
})
|
}
|
// 获取手机号
|
export const getWxMiniPhone = (data) => {
|
return request({
|
url: '/web/customer/getWxMiniPhone',
|
method: "POST",
|
data
|
})
|
}
|
// 绑定手机号
|
export const binDingPhone = (data) => {
|
return request({
|
url: '/web/customer/binDingPhone',
|
method: "POST",
|
data
|
})
|
}
|
// 获取字典值
|
export const getDictData = (data) => {
|
return request({
|
url: '/public/getDictData',
|
data,
|
loading: '0'
|
})
|
}
|
// 获取会员信息
|
export const getMemberInfo = (data) => {
|
return request({
|
url: '/web/customer/getMemberInfo',
|
data
|
})
|
}
|
// 首页 志说装修
|
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 getProductInfo = (data) => {
|
return request({
|
url: '/web/customer/getProductInfo',
|
data
|
})
|
}
|
// 志说装修 内容
|
export const pageZSZXContentList = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiZbDecoPage',
|
method: "POST",
|
data
|
})
|
}
|
// 首页 定制服务 列表
|
export const getCustomizedNewsList = (data) => {
|
return request({
|
url: '/web/customer/getCustomizedNewsList',
|
data
|
})
|
}
|
// 定制服务 详情
|
export const getCustomizedNewsDetail = (data) => {
|
return request({
|
url: '/web/customer/getCustomizedNewsDetail',
|
data
|
})
|
}
|
// 获取门店列表
|
export const getShopPage = (data) => {
|
return request({
|
url: '/web/customer/shopPage',
|
method: 'POST',
|
data
|
})
|
}
|
// 获取门店详情
|
export const getShopDetail = (data) => {
|
return request({
|
url: '/web/customer/shopDetail',
|
data
|
})
|
}
|
// 获取 导购列表
|
export const myUserPage = (data) => {
|
return request({
|
url: '/web/customer/myUserPage',
|
method: "POST",
|
data
|
})
|
}
|
// 获取 导购详情
|
export const usersDetailByIamId = (data) => {
|
return request({
|
url: '/web/customer/usersDetailByIamId',
|
data
|
})
|
}
|
// 首页 轮播 列表
|
export const getHomeBanner = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiCarouselImage',
|
method: 'POST',
|
data
|
})
|
}
|
// 首页 轮播 详情
|
export const getHomeBannerDetail = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiCarouselImageDetail',
|
method: 'POST',
|
data
|
})
|
}
|
// 分类产品 分页列表 中台
|
export const getZhongTaiProductPage = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiProductPage',
|
method: 'POST',
|
data
|
})
|
}
|
// 分类案例 分页列表 中台
|
export const getZhongTaiWholecasePage = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiWholecasePage',
|
method: 'POST',
|
data
|
})
|
}
|
// 分类案例 详情
|
export const getWholecaseInfo = (data) => {
|
return request({
|
url: '/web/customer/getWholecaseInfo',
|
data
|
})
|
}
|
// 分类实景 分页列表 中台
|
export const getZhongTaiRealcasePage = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiRealcasePage',
|
method: 'POST',
|
data
|
})
|
}
|
// 分类实景 详情
|
export const getRealcaseInfo = (data) => {
|
return request({
|
url: '/web/customer/getRealcaseInfo',
|
data
|
})
|
}
|
// 我的家 分页列表 中台
|
export const getZhongTaiVideoPage = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiVideoPage',
|
method: 'POST',
|
data
|
})
|
}
|
// 产品资讯 分页列表 中台
|
export const getZhongTaiProductNewsPage = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiProductNewsPage',
|
method: 'POST',
|
data
|
})
|
}
|
// 产品资讯 详情
|
export const getProductNewsInfo = (data) => {
|
return request({
|
url: '/web/customer/getProductNewsInfo',
|
method: 'GET',
|
data
|
})
|
}
|
// 操作 行为内容
|
export const actionDo = (data) => {
|
return request({
|
url: '/web/customer/actionDo',
|
data,
|
loading: data.actionType == 'view' ? '0' : '1'
|
})
|
}
|
// 我的 预约列表
|
export const customerLogPage = (data) => {
|
return request({
|
url: '/web/customer/customerLogPage',
|
method: 'POST',
|
data
|
})
|
}
|
// 我的 收藏/喜欢列表
|
export const collectLikePage = (data) => {
|
return request({
|
url: '/web/customer/collectLikePage',
|
method: 'POST',
|
data
|
})
|
}
|
// 内容 喜欢
|
export const likeContent = (data) => {
|
return request({
|
url: '/web/customer/likeContent',
|
method: 'GET',
|
data
|
})
|
}
|
// 内容 收藏
|
export const collectContent = (data) => {
|
return request({
|
url: '/web/customer/collectContent',
|
method: 'GET',
|
data
|
})
|
}
|
// 我的 喜欢列表
|
export const getZhongTaiCusFavorite = (data) => {
|
return request({
|
url: '/web/customer/getZhongTaiCusFavorite',
|
method: 'POST',
|
data
|
})
|
}
|
|
// 更新会员信息
|
export const editMember = (data) => {
|
return request({
|
url: '/web/customer/editMember',
|
method: 'POST',
|
data
|
})
|
}
|
|
// 0元定制信息
|
export const saveFreeCustomizationApply = (data) => {
|
return request({
|
url: '/web/customer/saveFreeCustomizationApply',
|
method: 'POST',
|
data
|
})
|
}
|
// 获取计算器配置
|
export const getBjParamConfig = (data) => {
|
return request({
|
url: '/web/customer/getBjParamConfig',
|
data
|
})
|
}
|
// 保存计算器配置
|
export const saveRenovationCalculator = (data) => {
|
return request({
|
url: '/web/customer/saveRenovationCalculator',
|
method: 'POST',
|
data
|
})
|
}
|
// 获取省市区
|
export const getArea = (data) => {
|
return request({
|
url: '/web/common/getAreaTree',
|
data,
|
method: "POST"
|
})
|
}
|
// 小程序注销
|
export const wxLogOff = (data) => {
|
return request({
|
url: '/web/customer/logOff',
|
data
|
})
|
}
|