Procházet zdrojové kódy

修改注册查询手机号问题

hurx před 16 hodinami
rodič
revize
95c061940a

+ 6 - 2
src/api/breg/index.ts

@@ -67,10 +67,14 @@ export const registerSupplier = (params: any) => {
  * 根据手机号查询用户(注册前校验)
  * @param phonenumber 手机号
  */
-export const selectByPhone = (phonenumber: string) => {
+export const selectByPhone = (phonenumber: string, type: string) => {
   return request({
-    url: '/system/psSysUser/selectByPhone/' + phonenumber,
+    url: '/system/psSysUser/selectByPhone',
     method: 'get',
+    params: {
+      phonenumber: phonenumber,
+      type: type
+    },
     timeout: 20000
   });
 };

+ 1 - 1
src/views/breg/index.vue

@@ -190,7 +190,7 @@ const sendSmsCode = () => {
   }
 
   // 2. 【新增】先调用接口查询用户是否存在
-  selectByPhone(phone)
+  selectByPhone(phone, '3')
     .then((res: any) => {
       // --- 后端返回 200 ---
       // 根据你的后端逻辑:返回 200 代表 "用户不存在" (R.ok),允许注册

+ 1 - 1
src/views/order/orderManage/auditDetail.vue

@@ -69,7 +69,7 @@ const currentStep = ref(1);
 const loading = ref(false);
 
 const progressSteps = ref<{ title: string; icon: any; desc: string; time: string; reviewStatus?: number }[]>([
-  { title: '提交订单', icon: Document, desc: '订单已提交', time: '', reviewStatus: 2 },
+  { title: '提交订单', icon: Document, desc: '订单已提交', time: '', reviewStatus: 2 }
   // { title: '完成', icon: CircleCheck, desc: '交易完成', time: '', reviewStatus: 0 }
 ]);
 

+ 1 - 1
src/views/reg/index.vue

@@ -160,7 +160,7 @@ const sendSmsCode = () => {
   }
 
   // 2. 【新增】先调用接口查询用户是否存在
-  selectByPhone(phone)
+  selectByPhone(phone, '1')
     .then((res: any) => {
       // --- 后端返回 200 ---
       // 根据你的后端逻辑:返回 200 代表 "用户不存在" (R.ok),允许注册