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.
 
 
 
 
 
lxwx_front/common/api.js

60 lines
2.6 KiB

const http = uni.$u.http
//用户信息
export const UserInfo = (params, config = {}) => http.post('/user/getinfo', params, config);
//上传base64
export const uploadBase64 = (params, config = {custom: { auth: true }}) => http.post('/index/uploads', params, config);
//微信登录
export const wxapplogin= (params, config = {}) => http.post('/user/wxapplogin', params, config);
//修改用户信息
export const profileUser= (params, config = {}) => http.post('/user/profile', params, config);
//获取首页轮播图
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 = {custom: { auth: true }}) => 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);