修正了绑定手机的code
This commit is contained in:
parent
aaf8655db8
commit
dcf70059fa
@ -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("修改成功")
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user