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.

63 lines
2.7 KiB

2 years ago
const http = uni.$u.http
//用户信息
export const UserInfo = (params, config = {}) => http.post('/user/getinfo', params, config);
//上传base64
2 years ago
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);
2 years ago
//获取首页轮播图
2 years ago
export const getBanner = (params, config = {}) => http.post('/wx_adv/index', params, config);
2 years ago
//协议
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);
//首页菜单导航
2 years ago
export const indexNav = (params, config = {}) => http.post('/wx_menu/index', params, config);
2 years ago
// APP下载地址
export const downloadApp = (params, config = {}) => http.post('/app_url/index', params, config);
//上传图片
export const uploadPic = (params, config = {}) => http.post('/index/upload', params, config);
//列表数据
2 years ago
export const listData = (params, config = {}) => http.post('/wx_category/index', params, config);
2 years ago
//文章详情
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);
//退出登录
2 years ago
export const logout = (params, config = {custom: { auth: true }}) => http.post('/user/logout', params, config);
2 years ago
//文章列表
2 years ago
export const articalList = (params, config = {}) => http.post('/wx_article/index', params, config);
1 year ago
//获取菜单下栏目
export const getNavList = (params, config = {}) => http.get('/wx_menu/nav', {params}, config);
2 years ago
2 years ago
//修改用户信息
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);