From 6b1413d3375b2db6096bd10e5516a47d5b43f8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BD=AA?= Date: Mon, 14 Apr 2025 09:07:59 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E8=B0=83=E8=AF=95=E5=88=B7=E5=8D=A1?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/apiList.js | 4 ++++ api/env.js | 6 +++-- pages/index/cleanPlan.vue | 47 ++++++++++++++++++++++++++++++++++----- 3 files changed, 50 insertions(+), 7 deletions(-) diff --git a/api/apiList.js b/api/apiList.js index 43764ab..5479d62 100644 --- a/api/apiList.js +++ b/api/apiList.js @@ -51,3 +51,7 @@ export const UploadFiles = (formData) => // 上传 export const UploadArea = (data) => request.post("/api/App/UploadArea", data); + + // 获取待上传区域 + export const GetAwaitUploadAreaApi = (data) => + request.get("/api/App/GetAwaitUploadArea", data); \ No newline at end of file diff --git a/api/env.js b/api/env.js index e37f13e..5baa9a0 100644 --- a/api/env.js +++ b/api/env.js @@ -2,10 +2,12 @@ let BASE_URL //开发环境中 if (process.env.NODE_ENV === 'development') { // 开发环境 - BASE_URL = 'http://10.30.2.228:8556' //开发环境请求地址 + // BASE_URL = 'http://10.30.2.228:8556' //开发环境请求地址 + BASE_URL = 'http://sl.vrgon.com:8005' //开发环境请求地址 } else { // 生产环境 - BASE_URL = 'http://10.30.2.228:8556' //生成环境请求地址 + // BASE_URL = 'http://10.30.2.228:8556' //生成环境请求地址 + BASE_URL = 'http://sl.vrgon.com:8005' //生成环境请求地址 } export default BASE_URL \ No newline at end of file diff --git a/pages/index/cleanPlan.vue b/pages/index/cleanPlan.vue index 2e8ca1a..12f2ac9 100644 --- a/pages/index/cleanPlan.vue +++ b/pages/index/cleanPlan.vue @@ -67,8 +67,8 @@ - - + + @@ -100,7 +100,7 @@ /> - NFC卡异常或丢失,可尝试重新刷卡或提交卡片异常信息 + {{errorMsg}} 暂不 @@ -113,7 +113,7 @@ + diff --git a/pages/user/index.vue b/pages/user/index.vue index 477a410..b720f9e 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -3,7 +3,7 @@ - {{ baseInfo.name }} + {{ baseInfo.name }} @@ -84,7 +84,7 @@ export default { time: "2025/4/2-2026/4/2", personType: "保洁员", }, - + clickCount: 0, // 用于记录点击次数 version: "", cellList: [ @@ -133,6 +133,15 @@ export default { }, methods: { + handleClick() { + this.clickCount++; // 每次点击增加点击次数 + if (this.clickCount === 6) { + this.clickCount = 0; // 执行完函数后重置点击次数 + uni.navigateTo({ + url: "/pages/login/login" + }); + } + }, upload_avatar() { const _this = this; uni.chooseImage({