From 9cacf33268aa30da780cca339b717beb1eb83d5d Mon Sep 17 00:00:00 2001 From: xyc <3422692813@qq.com> Date: Mon, 7 Jul 2025 15:53:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/login.js | 85 +++++++++++++++++++-------------- components/commonTimeSelect.vue | 83 ++++++++++++++++++++++++++++++++ components/order-list.vue | 4 +- 3 files changed, 133 insertions(+), 39 deletions(-) create mode 100644 components/commonTimeSelect.vue diff --git a/api/login.js b/api/login.js index af67455..93c3eac 100644 --- a/api/login.js +++ b/api/login.js @@ -2,57 +2,68 @@ import request from '@/utils/request' // 登录方法 export function login(username, password, code, uuid) { - const data = { - username, - password, - code, - uuid - } - return request({ - 'url': '/login', - headers: { - isToken: false - }, - 'method': 'post', - 'data': data - }) + const data = { + username, + password, + code, + uuid + } + return request({ + 'url': '/login', + headers: { + isToken: false + }, + 'method': 'post', + 'data': data + }) } // 获取用户详细信息 export function getInfo() { - return request({ - 'url': '/getInfo', - 'method': 'get' - }) + return request({ + 'url': '/getInfo', + 'method': 'get' + }) } // 退出方法 export function logout() { - return request({ - 'url': '/rescue/logout', - 'method': 'post' - }) + return request({ + 'url': '/rescue/logout', + 'method': 'post' + }) } // 获取验证码 export function getCodeImg() { - return request({ - 'url': '/captchaImage', - headers: { - isToken: false - }, - method: 'get', - timeout: 20000 - }) + return request({ + 'url': '/captchaImage', + headers: { + isToken: false + }, + method: 'get', + timeout: 20000 + }) } // 使用租户域名(标识),获得租户编号 export function getTenantIdByWebsite(website) { - return request({ - url: '/system/tenant/get-by-website', - method: 'get', - params: { - website - } - }) + return request({ + url: '/system/tenant/get-by-website', + method: 'get', + params: { + website + } + }) +} + +// 使用手机号查询所在的租户获得租户编号 +export function getTenantIdByPhone(phone) { + return request({ + url: '/system/auth/getListByPhone', + method: 'get', + params: { + phone + } + }) } \ No newline at end of file diff --git a/components/commonTimeSelect.vue b/components/commonTimeSelect.vue new file mode 100644 index 0000000..8062eec --- /dev/null +++ b/components/commonTimeSelect.vue @@ -0,0 +1,83 @@ + + + + + \ No newline at end of file diff --git a/components/order-list.vue b/components/order-list.vue index 2bc8052..4a2732a 100644 --- a/components/order-list.vue +++ b/components/order-list.vue @@ -7,8 +7,8 @@ - 检测项目: - {{ orderData.projectName }} + 检测类型: + {{ orderData.skuName }}