const http = uni.$u.http //获取首页轮播图 export const getBanner = (params, config = {}) => http.post('/wx_adv/index', params, config); //协议 export const getRichText = (params, config = {}) => http.post('/shopro_richtext/view', params, config); //获取验证码 export const getsmsCode = (params, config = {}) => http.post('/sms/send', params, config); //手机验证码登录 export const mobileLogin = (params, config = {}) => http.post('/user/mobilelogin', params, config); //首页菜单导航 export const indexNav = (params, config = {}) => http.post('/wx_menu/index', params, config); // APP下载地址 export const downloadApp = (params, config = {}) => http.post('/app_url/index', params, config); //上传图片 export const uploadPic = (params, config = {}) => http.post('/index/upload', params, config); //列表数据 export const listData = (params, config = {}) => http.post('/wx_category/index', params, config); //文章详情 export const articleDetails = (params, config = {}) => http.post('/wx_article/view', params, config); //收藏记录 export const collectRecord = (params, config = {}) => http.post('/wx_article_collect/index', params, config); //分享记录 export const shareRecord = (params, config = {}) => http.post('/wx_article_share/index', params, config); //浏览记录 export const lookRecord = (params, config = {}) => http.post('/wx_article_view/index', params, config); //添加收藏 // export const addCollect = (params, config = {}) => http.post('/wx_article_collect/add', params, config); //添加分享 export const addShare = (params, config = {}) => http.post('/wx_article_share/add', params, config); //退出登录 export const logout = (params, config = {}) => http.post('/user/logout', params, config); //文章列表 export const articalList = (params, config = {}) => http.post('/wx_article/index', params, config); //修改用户信息 export const modifyInfo = (params, config = {}) => http.post('/user/mobilelogin', params, config); //第三方登录 export const wxLoginHandle = (params, config = {header:{'Content-Type':'multipart/form-data'}}) => http.post('/user/wxlogin', params, config);