xbx #126

Merged
theluyuan merged 9 commits from xbx into master 2020-11-12 02:40:09 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit dcf70059fa - Show all commits

View File

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

View File

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