From 5d8f61920d91b176b2abd397d61270881cc01804 Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Thu, 21 Dec 2023 10:08:51 +0800 Subject: [PATCH] fix --- .hbuilderx/launch.json | 16 ++++++ api/index.js | 28 ++++++++++ api/interface.js | 2 +- components/mumu-getQrcode/mumu-getQrcode.vue | 40 +++++++------- main.js | 3 +- pages/check/index.vue | 5 +- pages/login/index.vue | 56 +++++++++++++------- pages/persomInfo/index.vue | 15 ++++++ pages/scan/index.vue | 16 ++++-- 9 files changed, 135 insertions(+), 46 deletions(-) create mode 100644 .hbuilderx/launch.json create mode 100644 api/index.js diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json new file mode 100644 index 0000000..5e2090f --- /dev/null +++ b/.hbuilderx/launch.json @@ -0,0 +1,16 @@ +{ + "version" : "1.0", + "configurations" : [ + { + "playground" : "standard", + "type" : "uni-app:app-android" + }, + { + "app-plus" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" + } + ] +} diff --git a/api/index.js b/api/index.js new file mode 100644 index 0000000..8d9a65c --- /dev/null +++ b/api/index.js @@ -0,0 +1,28 @@ +import http from "./interface"; + +const sendCode = (data) => { + return http.request({ + url: "/api/staff/send", + method: "POST", + data, + }); +}; +const login = (data) => { + return http.request({ + url: "/api/staff/login", + method: "POST", + data, + }); +}; +const qrCodeInfo = (data) => { + return http.request({ + url: "/api/smart/appointment/get/ticket/info", + method: "POST", + data, + }); +}; +export default { + sendCode, + login, + qrCodeInfo, +}; diff --git a/api/interface.js b/api/interface.js index f0e0e7f..19df17f 100644 --- a/api/interface.js +++ b/api/interface.js @@ -4,7 +4,7 @@ */ export default { config: { - baseUrl: "https://warehouse.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//'https://warehouse.szjixun.cn' + baseUrl: "https://warehouse.szjixun.cn/ticket", //"http://172.16.100.93:9051", //"http://192.168.88.175:9021",//'https://warehouse.szjixun.cn' header: { "Content-Type": "application/json;charset=UTF-8", // 'Content-Type':'application/x-www-form-urlencoded' diff --git a/components/mumu-getQrcode/mumu-getQrcode.vue b/components/mumu-getQrcode/mumu-getQrcode.vue index 4f1aa0c..0b6a262 100644 --- a/components/mumu-getQrcode/mumu-getQrcode.vue +++ b/components/mumu-getQrcode/mumu-getQrcode.vue @@ -275,26 +275,26 @@ page { height: 100vh; position: relative; - background-image: linear-gradient(0deg, - transparent 24%, - rgba(32, 255, 77, 0.1) 25%, - rgba(32, 255, 77, 0.1) 26%, - transparent 27%, - transparent 74%, - rgba(32, 255, 77, 0.1) 75%, - rgba(32, 255, 77, 0.1) 76%, - transparent 77%, - transparent), - linear-gradient(90deg, - transparent 24%, - rgba(32, 255, 77, 0.1) 25%, - rgba(32, 255, 77, 0.1) 26%, - transparent 27%, - transparent 74%, - rgba(32, 255, 77, 0.1) 75%, - rgba(32, 255, 77, 0.1) 76%, - transparent 77%, - transparent); + // background-image: linear-gradient(0deg, + // transparent 24%, + // rgba(32, 255, 77, 0.1) 25%, + // rgba(32, 255, 77, 0.1) 26%, + // transparent 27%, + // transparent 74%, + // rgba(32, 255, 77, 0.1) 75%, + // rgba(32, 255, 77, 0.1) 76%, + // transparent 77%, + // transparent), + // linear-gradient(90deg, + // transparent 24%, + // rgba(32, 255, 77, 0.1) 25%, + // rgba(32, 255, 77, 0.1) 26%, + // transparent 27%, + // transparent 74%, + // rgba(32, 255, 77, 0.1) 75%, + // rgba(32, 255, 77, 0.1) 76%, + // transparent 77%, + // transparent); background-size: 3rem 3rem; background-position: -1rem -1rem; z-index: 10; diff --git a/main.js b/main.js index 5e5563c..b769783 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,6 @@ import App from "./App"; import uviewPlus from "uview-plus"; - +import request from "./api/index"; // #ifndef VUE3 import Vue from "vue"; @@ -19,6 +19,7 @@ import { createSSRApp } from "vue"; export function createApp() { const app = createSSRApp(App); app.use(uviewPlus); + app.config.globalProperties.$request = request; uni.$u.config.unit = "rpx"; return { app, diff --git a/pages/check/index.vue b/pages/check/index.vue index aa5e39c..b6da0cd 100644 --- a/pages/check/index.vue +++ b/pages/check/index.vue @@ -1,14 +1,15 @@ diff --git a/pages/persomInfo/index.vue b/pages/persomInfo/index.vue index 2072d1a..ee091fa 100644 --- a/pages/persomInfo/index.vue +++ b/pages/persomInfo/index.vue @@ -52,7 +52,22 @@