From 1128114e73b51b7f11b65c8475a873f0d3c72244 Mon Sep 17 00:00:00 2001 From: fengerli <528575642@qq.com> Date: Mon, 7 Jul 2025 11:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E8=AF=B7=E6=B1=82=EF=BC=8C?= =?UTF-8?q?=E5=B0=81=E8=A3=85=E7=AE=80=E5=8C=96=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/login.js | 21 +++++++++++++++ pages/common/login/index.vue | 1 + utils/mqtt.js | 51 +++++++++--------------------------- utils/request.js | 10 ++++--- 4 files changed, 41 insertions(+), 42 deletions(-) create mode 100644 api/login.js diff --git a/api/login.js b/api/login.js new file mode 100644 index 0000000..0d46c35 --- /dev/null +++ b/api/login.js @@ -0,0 +1,21 @@ +import request from '../utils/request' +// 登录方法 +export function login(data) { + return request({ + url: '/auth/app/login', // 假设登录接口是 /login + method: 'POST', + data: data + }) +} +// 注册发送验证码 +export function sendRegisterSms(data) { + return request({ + url: '/api/appUser/sendRegisterSms', //发送验证码注册 + method: 'POST', + data: data + }) +} + + + + diff --git a/pages/common/login/index.vue b/pages/common/login/index.vue index 9fba04c..6e786d3 100644 --- a/pages/common/login/index.vue +++ b/pages/common/login/index.vue @@ -53,6 +53,7 @@