소스 검색

学生解绑手机号接口更换请求方式

dengshaobo 4 주 전
부모
커밋
773762a6b1
2개의 변경된 파일과 3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/http/api/user.js
  2. 1 1
      src/views/userInfo/personInfo.vue

+ 2 - 2
src/http/api/user.js

@@ -38,9 +38,9 @@ const user = {
   },
 
   // 解绑手机号
-  unBindUserPhone(data)
+  unBindUserPhone()
   {
-    return post(base.prefix + '/api/v1/student_user/un_bind_phone',data)
+    return get(base.prefix + '/api/v1/student_user/un_bind_phone')
   },
 
   // 获取微信登录二维码

+ 1 - 1
src/views/userInfo/personInfo.vue

@@ -476,7 +476,7 @@ export default {
         customClass: "page_dialog",
       }).then(() => {
         //解绑手机号
-        this.$api.user.unBindUserPhone({id:this.userInfo.id}).then(res=>{
+        this.$api.user.unBindUserPhone().then(res=>{
             if(res.code==200)
             {
               this.$message.success("解绑成功!")