|
|
|
|
@ -7,7 +7,7 @@ import {
|
|
|
|
|
|
|
|
|
|
export function setUserAccountAction(data, then, error = () => {}) {
|
|
|
|
|
$post({
|
|
|
|
|
url: $api('设置账号'),
|
|
|
|
|
url: '设置账号',
|
|
|
|
|
data,
|
|
|
|
|
then: (response) => {
|
|
|
|
|
$res({
|
|
|
|
|
@ -25,7 +25,7 @@ export function setUserAccountAction(data, then, error = () => {}) {
|
|
|
|
|
}
|
|
|
|
|
export function bindUserPhoneAction(data, then, error = () => {}) {
|
|
|
|
|
$post({
|
|
|
|
|
url: $api('设置手机号'),
|
|
|
|
|
url: '设置手机号',
|
|
|
|
|
data,
|
|
|
|
|
then: (response) => {
|
|
|
|
|
$res({
|
|
|
|
|
@ -43,7 +43,7 @@ export function bindUserPhoneAction(data, then, error = () => {}) {
|
|
|
|
|
}
|
|
|
|
|
export function editUserNicknameAction(nickname, then, error = () => {}) {
|
|
|
|
|
$post({
|
|
|
|
|
url: $api('修改昵称'),
|
|
|
|
|
url: '修改昵称',
|
|
|
|
|
data: {
|
|
|
|
|
nickname
|
|
|
|
|
},
|
|
|
|
|
@ -63,7 +63,7 @@ export function editUserNicknameAction(nickname, then, error = () => {}) {
|
|
|
|
|
}
|
|
|
|
|
export function uploadUserAvatarAction(avatar, then, error = () => {}) {
|
|
|
|
|
$post({
|
|
|
|
|
url: $api('上传头像'),
|
|
|
|
|
url: '上传头像',
|
|
|
|
|
data: {
|
|
|
|
|
avatar
|
|
|
|
|
},
|
|
|
|
|
@ -83,7 +83,7 @@ export function uploadUserAvatarAction(avatar, then, error = () => {}) {
|
|
|
|
|
}
|
|
|
|
|
export function getConfigAction(config_arr, then) {
|
|
|
|
|
$post({
|
|
|
|
|
url: $api('基础参数'),
|
|
|
|
|
url: '基础参数',
|
|
|
|
|
data: {
|
|
|
|
|
config_arr
|
|
|
|
|
},
|
|
|
|
|
@ -102,7 +102,7 @@ export function getConfigAction(config_arr, then) {
|
|
|
|
|
}
|
|
|
|
|
export function userLoginAction(code, then, error = () => {}) {
|
|
|
|
|
$post({
|
|
|
|
|
url: $api('微信登录'),
|
|
|
|
|
url: '微信登录',
|
|
|
|
|
data: {
|
|
|
|
|
code
|
|
|
|
|
},
|
|
|
|
|
@ -122,7 +122,7 @@ export function userLoginAction(code, then, error = () => {}) {
|
|
|
|
|
}
|
|
|
|
|
export function getUserInfoAction(then, msg = true) {
|
|
|
|
|
$post({
|
|
|
|
|
url: $api('用户信息'),
|
|
|
|
|
url: '用户信息',
|
|
|
|
|
then: (response) => {
|
|
|
|
|
$res({
|
|
|
|
|
response,
|
|
|
|
|
@ -139,7 +139,7 @@ export function getUserInfoAction(then, msg = true) {
|
|
|
|
|
}
|
|
|
|
|
export function yo(then) {
|
|
|
|
|
$post({
|
|
|
|
|
url: $api('YO'),
|
|
|
|
|
url: 'YO',
|
|
|
|
|
then: (response) => {
|
|
|
|
|
$res({
|
|
|
|
|
response,
|
|
|
|
|
|