修改报错

This commit is contained in:
asd
2020-10-22 11:13:54 +08:00
parent 9a16a98f39
commit ed00c1d3f4
3 changed files with 75 additions and 16 deletions

View File

@@ -565,7 +565,7 @@ export async function addcomment(data?:any):Promise<void> {
code: number;
msg: string;
}
export async function checkuser(data?:any){
export async function checkuser(data?: any) {
const newdata={number:""}
newdata.number=data.phone
const res = await get<CheckuserRule>('checkUser',newdata);
@@ -592,6 +592,36 @@ export async function getquhaolist() {
return res.data
}
/**
* 获取时区列表
*/
export async function getzonelist():Promise<any>{
const res=await get("timezones")
// console.log(res)
return res.data
}
/**
* 修改时区 货币 语言
*/
export async function editsystemsetting(e?: any): Promise<boolean> {
let newdata={}
newdata=e
const res = await put(`member/${store.state.userinfo.memberid}`,newdata);
console.log(res)
if(res.code == 0){
message.success("修改成功")
return true;
}else{
message.error(res.msg);
return false;
}
}
/**
* 货币列表
*/
/**
* 发送验证码