|
|
@ -2,14 +2,14 @@ const http = uni.$u.http |
|
|
|
//用户信息
|
|
|
|
//用户信息
|
|
|
|
export const UserInfo = (params, config = {}) => http.post('/user/getinfo', params, config); |
|
|
|
export const UserInfo = (params, config = {}) => http.post('/user/getinfo', params, config); |
|
|
|
//上传base64
|
|
|
|
//上传base64
|
|
|
|
export const uploadBase64 = (params, config = {}) => http.post('/index/uploads', params, config); |
|
|
|
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 wxapplogin= (params, config = {}) => http.post('/user/wxapplogin', params, config); |
|
|
|
//修改用户信息
|
|
|
|
//修改用户信息
|
|
|
|
export const profileUser= (params, config = {}) => http.post('/user/profile', 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 getBanner = (params, config = {custom: { auth: true }}) => http.post('/wx_adv/index', params, config); |
|
|
|
//协议
|
|
|
|
//协议
|
|
|
|
export const getRichText = (params, config = {}) => http.post('/shopro_richtext/view', params, config); |
|
|
|
export const getRichText = (params, config = {}) => http.post('/shopro_richtext/view', params, config); |
|
|
|
//获取验证码
|
|
|
|
//获取验证码
|
|
|
@ -17,13 +17,13 @@ export const getsmsCode = (params, config = {}) => http.post('/sms/send', params |
|
|
|
//手机验证码登录
|
|
|
|
//手机验证码登录
|
|
|
|
export const mobileLogin = (params, config = {}) => http.post('/user/mobilelogin', 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); |
|
|
|
export const indexNav = (params, config = {custom: { auth: true }}) => http.post('/wx_menu/index', params, config); |
|
|
|
// APP下载地址
|
|
|
|
// APP下载地址
|
|
|
|
export const downloadApp = (params, config = {}) => http.post('/app_url/index', params, config); |
|
|
|
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 uploadPic = (params, config = {}) => http.post('/index/upload', params, config); |
|
|
|
//列表数据
|
|
|
|
//列表数据
|
|
|
|
export const listData = (params, config = {}) => http.post('/wx_category/index', params, config); |
|
|
|
export const listData = (params, config = {custom: { auth: true }}) => http.post('/wx_category/index', params, config); |
|
|
|
//文章详情
|
|
|
|
//文章详情
|
|
|
|
export const articleDetails = (params, config = {}) => http.post('/wx_article/view', params, config); |
|
|
|
export const articleDetails = (params, config = {}) => http.post('/wx_article/view', params, config); |
|
|
|
//收藏记录
|
|
|
|
//收藏记录
|
|
|
@ -37,9 +37,9 @@ export const lookRecord = (params, config = {}) => http.post('/wx_article_view/i |
|
|
|
//添加分享
|
|
|
|
//添加分享
|
|
|
|
export const addShare = (params, config = {}) => http.post('/wx_article_share/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 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 articalList = (params, config = {custom: { auth: true }}) => http.post('/wx_article/index', params, config); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|