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.
137 lines
6.4 KiB
137 lines
6.4 KiB
import http from './http'
|
|
|
|
/**
|
|
* 首页相关
|
|
* */
|
|
//轮播图
|
|
export const getbanner = (data) => { return http('', data, { token: false, loading: false }) }
|
|
//导航列表
|
|
export const getitem = (data) => { return http('', data, { token: false, loading: false }) }
|
|
//产品&业务描述
|
|
export const getcpdesc= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//分类
|
|
export const getcategory= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//产品列表
|
|
export const getgoodlist= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//登录接口
|
|
export const login= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//注册接口
|
|
export const register= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//修改地址接口
|
|
export const editaddress= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//收藏接口
|
|
export const addcollection= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//收藏列表
|
|
export const collectionlist= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//加入浏览记录
|
|
export const add_read_record= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//浏览历史记录列表
|
|
export const getread_recordlsit= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//清空浏览记录
|
|
export const cleanrecord= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//提交订单
|
|
export const postorder= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//支付
|
|
export const wxpay= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//订单列表
|
|
export const orderlist= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//订单列表2
|
|
export const orderlist2= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//订单详细
|
|
export const orderdetail= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//取消订单
|
|
export const cancelOrder= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//详细文章
|
|
export const detaildesc= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//申请退款
|
|
export const sqtuik= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//申请退货
|
|
export const sqtuih= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//小区列表
|
|
export const getarealist= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//申请入驻
|
|
export const sqruzhu= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//检查入驻状态
|
|
export const checkruzhu= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//产品详细
|
|
export const gooddetail= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//根据邀请码获取数据
|
|
export const checkyqcode= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//获取公告
|
|
export const notice= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//检查入驻按钮,审核作用
|
|
export const baseset= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//获取注册地址列表
|
|
export const getaddress= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//获取基础信息接口
|
|
export const baseinfo= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//获取用户信息
|
|
export const userinfo= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//充值支付
|
|
export const czwxpay= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//申请提现
|
|
export const sqtixian= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//提现记录
|
|
export const tixlist= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//发送验证码
|
|
export const sendcode= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//修改密码
|
|
export const updatepsw= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//积分管理
|
|
export const jifenlist= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//查看物流
|
|
export const kdiinfo= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//检查已加购的商品库存是否有效
|
|
export const checkkc= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//优惠券列表
|
|
export const couponlist= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//用户优惠券
|
|
export const mycouponlist= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//领取优惠券
|
|
export const getcoupon= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//自动选择优惠券
|
|
export const autochooseyhq= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//检查登录
|
|
export const checkrg= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//订单信息
|
|
export const orderinfo= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//提交验收数
|
|
export const postyans= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//获取截单时间
|
|
export const endtime= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//获取订单日期
|
|
export const getdhrq= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//提交订单页面选择日期之后检查价格
|
|
export const checkorder= (data) => { return http('', data, { token: false, loading: false }) }
|
|
|
|
//导出订单excel表
|
|
export const daochu= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//客户加单页面提交订单
|
|
export const postorderjiad= (data) => { return http('', data, { token: false, loading: false }) }
|
|
//客户加单页面提交订单
|
|
export const orderjiad= (data) => { return http('', data, { token: false, loading: false }) }
|
|
/*
|
|
//请求方法
|
|
http(接口地址='', 请求参数={}, 额外配置={})
|
|
//默认配置
|
|
{
|
|
token: true, //携带令牌
|
|
loading: true, //显示加载
|
|
mock: false, //模拟数据
|
|
}
|
|
//调用示例1
|
|
async () => {
|
|
const data = await this.$api.login({
|
|
code: this.code
|
|
})
|
|
//doSomething...
|
|
}
|
|
//调用示例2
|
|
this.$api.login({
|
|
code: this.code
|
|
}).then(res => {
|
|
//doSomething...
|
|
}).catch(err => {
|
|
//doSomething...
|
|
})
|
|
*/
|