From 0c7407d62c9df2e30f1c649061bd75b52d2c7c54 Mon Sep 17 00:00:00 2001 From: cclu <1106109051@qq.com> Date: Wed, 22 Mar 2023 20:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=A1=86=E6=9E=B6=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=8E=A5=E4=BA=86=E4=B8=80=E4=B8=AA=20=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E5=9B=9E=E4=BA=86=E8=80=81=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .hbuilderx/launch.json | 16 + package-lock.json | 8 +- src/App.vue | 10 +- src/api/index/index.ts | 8 +- src/api/login/login.ts | 7 + src/pages/index/getInfo.ts | 65 + src/pages/index/index.vue | 67 +- src/pages/user/userType.ts | 6 +- src/static/images/index/arrow_reduce.svg | 16 + src/utils/dateTime/index.ts | 17 + src/utils/dateTime/utils.ts | 22 + src/utils/request.ts | 2 - yarn.lock | 4810 +++++++++++----------- 14 files changed, 2652 insertions(+), 2404 deletions(-) create mode 100644 .hbuilderx/launch.json create mode 100644 src/pages/index/getInfo.ts create mode 100644 src/static/images/index/arrow_reduce.svg create mode 100644 src/utils/dateTime/utils.ts diff --git a/.env.development b/.env.development index e2762dd..e39310f 100644 --- a/.env.development +++ b/.env.development @@ -7,4 +7,4 @@ VITE_BASE = '/api' VITE_USE_MOCK = true # 本地环境接口地址 -VITE_API_URL = 'http://mp.eshangtech.com' \ No newline at end of file +VITE_API_URL = 'https://api.eshangtech.com' \ No newline at end of file diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json new file mode 100644 index 0000000..81f13f4 --- /dev/null +++ b/.hbuilderx/launch.json @@ -0,0 +1,16 @@ +{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ + // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 + "version": "0.0", + "configurations": [{ + "default" : + { + "launchtype" : "local" + }, + "mp-weixin" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" + } + ] +} diff --git a/package-lock.json b/package-lock.json index 3c95545..99ae995 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3918,7 +3918,7 @@ "version": "4.1.0", "resolved": "https://registry.npmmirror.com/immutable/-/immutable-4.1.0.tgz", "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==", - "dev": true + "devOptional": true }, "node_modules/import-fresh": { "version": "3.3.0", @@ -5105,7 +5105,7 @@ "version": "1.52.3", "resolved": "https://registry.npmmirror.com/sass/-/sass-1.52.3.tgz", "integrity": "sha512-LNNPJ9lafx+j1ArtA7GyEJm9eawXN8KlA1+5dF6IZyoONg1Tyo/g+muOsENWJH/2Q1FHbbV4UwliU0cXMa/VIA==", - "dev": true, + "devOptional": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", "immutable": "^4.0.0", @@ -8984,7 +8984,7 @@ "version": "4.1.0", "resolved": "https://registry.npmmirror.com/immutable/-/immutable-4.1.0.tgz", "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==", - "dev": true + "devOptional": true }, "import-fresh": { "version": "3.3.0", @@ -9816,7 +9816,7 @@ "version": "1.52.3", "resolved": "https://registry.npmmirror.com/sass/-/sass-1.52.3.tgz", "integrity": "sha512-LNNPJ9lafx+j1ArtA7GyEJm9eawXN8KlA1+5dF6IZyoONg1Tyo/g+muOsENWJH/2Q1FHbbV4UwliU0cXMa/VIA==", - "dev": true, + "devOptional": true, "requires": { "chokidar": ">=3.0.0 <4.0.0", "immutable": "^4.0.0", diff --git a/src/App.vue b/src/App.vue index f6437ac..bae25a2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@