修正了绑定手机的code

This commit is contained in:
luyuan 2020-11-12 10:38:56 +08:00
parent aaf8655db8
commit dcf70059fa
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 3 additions and 3 deletions

View File

@ -852,8 +852,8 @@ export async function cancellive(id: number, status: number){
/** /**
* *
*/ */
export async function changetel(e: string) { export async function changetel(code: string,e: string) {
const res = await put(`member/${store.state.userinfo.memberid}`,{mobile:e}); const res = await put(`member/${store.state.userinfo.memberid}`,{code: code, mobile:e});
console.log(res) console.log(res)
if(res.code == 0){ if(res.code == 0){
message.success("修改成功") message.success("修改成功")

View File

@ -739,7 +739,7 @@ export default defineComponent({
); );
console.log(res, "xiugai"); console.log(res, "xiugai");
if (res) { if (res) {
const res1 = await changetel(mynewtel.value); const res1 = await changetel(myquhao.value, mynewtel.value);
if (res1) { if (res1) {
store.dispatch("setUserInfo"); store.dispatch("setUserInfo");
updatePhoneVisible.value = false; updatePhoneVisible.value = false;