From f4f29469b34d2cb00b37e7d36148967092c8ddfc Mon Sep 17 00:00:00 2001 From: huxuejian Date: Thu, 29 Jan 2026 15:35:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .env.ip | 8 +++ .env.localhost | 1 + package.json | 70 ++++++++++--------- pages/login/redirect-page.vue | 81 ++++++++++++++-------- pages/work/profile.vue | 8 +++ pages/work/team/invite/invite-teammate.vue | 9 ++- pages/work/team/list/team-list.vue | 9 +-- routes/index.js | 4 ++ utils/api.js | 3 +- vite.config.js | 3 + 11 files changed, 129 insertions(+), 68 deletions(-) create mode 100644 .env.ip diff --git a/.env.development b/.env.development index d8e7453..c00ccb1 100644 --- a/.env.development +++ b/.env.development @@ -4,3 +4,4 @@ MP_CACHE_PREFIX=development MP_WX_APP_ID=wx93af55767423938e MP_CORP_ID=wwe3fb2faa52cf9dfb MP_TIM_SDK_APP_ID=1600123876 +MP_INVITE_TEAMMATE_QRCODE=https://patient.youcan365.com/invite-teammate diff --git a/.env.ip b/.env.ip new file mode 100644 index 0000000..943dbe3 --- /dev/null +++ b/.env.ip @@ -0,0 +1,8 @@ +MP_API_BASE_URL=http://192.168.60.2:8080 +MP_IMAGE_URL=https://patient.youcan365.com +MP_CACHE_PREFIX=development +MP_WX_APP_ID=wx93af55767423938e +MP_CORP_ID=wwe3fb2faa52cf9dfb +MP_TIM_SDK_APP_ID=1600123876 +MP_INVITE_TEAMMATE_QRCODE=https://patient.youcan365.com/invite-teammate + diff --git a/.env.localhost b/.env.localhost index d8e7453..c00ccb1 100644 --- a/.env.localhost +++ b/.env.localhost @@ -4,3 +4,4 @@ MP_CACHE_PREFIX=development MP_WX_APP_ID=wx93af55767423938e MP_CORP_ID=wwe3fb2faa52cf9dfb MP_TIM_SDK_APP_ID=1600123876 +MP_INVITE_TEAMMATE_QRCODE=https://patient.youcan365.com/invite-teammate diff --git a/package.json b/package.json index d40d825..c1c3bdf 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,40 @@ { - "name": "ykt-wxapp", - "version": "1.0.0", - "description": "", - "main": "main.js", - "scripts": { - "prebuild": "node scripts/pre-build.js", - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "dayjs": "^1.11.10", - "tim-upload-plugin": "^1.4.2", - "tim-wx-sdk": "^2.27.6" - }, - "uni-app": { - "scripts": { - "dev": { - "title": "测试", - "env": { - "UNI_PLATFORM": "mp-weixin" - } - }, + "name": "ykt-wxapp", + "version": "1.0.0", + "description": "", + "main": "main.js", + "scripts": { + "prebuild": "node scripts/pre-build.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "dayjs": "^1.11.10", + "tim-upload-plugin": "^1.4.2", + "tim-wx-sdk": "^2.27.6" + }, + "uni-app": { + "scripts": { + "dev": { + "title": "测试", + "env": { + "UNI_PLATFORM": "mp-weixin" + } + }, "localhost": { - "title": "本地", - "env": { - "UNI_PLATFORM": "mp-weixin" - } - } - } - }, - "devDependencies": {} -} + "title": "本地", + "env": { + "UNI_PLATFORM": "mp-weixin" + } + }, + "ip": { + "title": "本机ip", + "env": { + "UNI_PLATFORM": "mp-weixin" + } + } + } + }, + "devDependencies": {} +} \ No newline at end of file diff --git a/pages/login/redirect-page.vue b/pages/login/redirect-page.vue index 14fb39f..37359bb 100644 --- a/pages/login/redirect-page.vue +++ b/pages/login/redirect-page.vue @@ -4,43 +4,66 @@