diff --git a/.gitignore b/.gitignore index 4ab3641..f0b6d1d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .history unpackage/dist +node_modules \ No newline at end of file diff --git a/App.vue b/App.vue index de47cc9..8c2876b 100644 --- a/App.vue +++ b/App.vue @@ -6,7 +6,7 @@ import appUpdate from "@/components/appUpdate/appUpdate.js"; export default { onLaunch: function () { console.log("%c%s", "color:red", "onLaunch---"); - // uni.showLoading({ title: "等待参数传入" }); + uni.showLoading({ title: "加载中" }); // uni.setStorageSync("token", ""); window.initFn = this.initFn; // this.initFn(); @@ -63,6 +63,7 @@ export default { onHide: function () {}, methods: { initFn(data) { + uni.hideLoading(); // 关闭 Loading if (!data) { return uni.showToast({ title: "未传入参数 initFn", icon: "none" }); } diff --git a/api/apiList.js b/api/apiList.js index bb3f035..2c075e2 100644 --- a/api/apiList.js +++ b/api/apiList.js @@ -47,5 +47,12 @@ export const ReportingNFCDanger = (data) => export const UploadFiles = (fileList, params) => request.upload("/api/App/UploadFiles", fileList, params); + // 获取待上传区域 + export const GetAwaitUploadAreaApi = (data) => + request.get("/api/App/GetAwaitUploadArea", data); // 修改上传接口定义 export const UploadArea = (data) => request.post("/api/App/UploadArea", data); + +// 登录 +export const loginApi = (data) => + request.post("/api/Login/Login", data); \ No newline at end of file diff --git a/pages.json b/pages.json index c29a4b4..30ddd67 100644 --- a/pages.json +++ b/pages.json @@ -10,6 +10,12 @@ "navigationBarTitleText": "" } }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "调试登陆" + } + }, { "path": "pages/index/index", "style": { diff --git a/pages/index/cleanPlan.vue b/pages/index/cleanPlan.vue index 87515d0..4bd78b1 100644 --- a/pages/index/cleanPlan.vue +++ b/pages/index/cleanPlan.vue @@ -78,8 +78,8 @@ - - + + @@ -111,7 +111,7 @@ /> - NFC卡异常或丢失,可尝试重新刷卡或提交卡片异常信息 + {{errorMsg}} 暂不 @@ -124,7 +124,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({ diff --git a/utils/request.js b/utils/request.js index 98b9ca0..119986c 100644 --- a/utils/request.js +++ b/utils/request.js @@ -61,7 +61,7 @@ const baseRequest = async (url, method, data = {}, loading = true) => { if (isAndroid && AndroidJs) { console.log("%c%s", "color:red", "安卓--调用返回方法"); const reqRow = { - name: "back-android", + name: "logout", data: "", }; AndroidJs.func(JSON.stringify(reqRow)); // 给安卓传参