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.
 
 
 
 
 
xueshan/api/user.js

34 lines
870 B

import request from '@/utils/request'
// api地址
const api = {
userInfo: 'user/info',
assets: 'user/assets',
bindMobile: 'user/bindMobile',
artical:'article/detail'
}
// 当前登录的用户信息
export const info = (param, option) => {
const options = {
isPrompt: true, //(默认 true 说明:本接口抛出的错误是否提示)
load: true, //(默认 true 说明:本接口是否提示加载动画)
...option
}
return request.get(api.userInfo, param, options)
}
// 账户资产
export const assets = (param, option) => {
return request.get(api.assets, param, option)
}
// 绑定手机号
export const bindMobile = (data, option) => {
return request.post(api.bindMobile, data, option)
}
//获取用户协议和隐私政策
export const getArticle = (data, option) => {
return request.get(api.artical, data, option)
}