From f517f1b385b2875e174bec85d49c6d8a7d9e65cf Mon Sep 17 00:00:00 2001 From: Wayne Hsu Date: Wed, 8 Mar 2023 18:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4liff=E7=99=BB=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 12 ++- .env.slash | 8 +- package-lock.json | 13 ++- package.json | 3 +- src/App.vue | 7 +- src/main.js | 13 ++- src/router/index.js | 4 +- src/utils/common.js | 8 ++ src/views/Home/index.vue | 185 +++++++++++++++++----------------- src/views/Login/LineLogin.vue | 2 +- src/views/Login/index.vue | 20 ++-- src/views/Register/index.vue | 36 ++----- src/views/Send/index.vue | 27 +++-- yarn.lock | 5 + 14 files changed, 179 insertions(+), 164 deletions(-) diff --git a/.env.development b/.env.development index a6dc82c..10ef8ea 100644 --- a/.env.development +++ b/.env.development @@ -2,11 +2,9 @@ NODE_ENV = production VUE_ENV = development -VUE_APP_BASE_URL = https://localhost:8080 +# VUE_APP_BASE_URL = https://localhost:8080 -VUE_APP_LINE_LIFF_ID = 1657876696-MKYDJKgm - -VUE_APP_BASE_URL = https://5998-220-129-49-197.jp.ngrok.io +VUE_APP_BASE_URL = https://557d-220-129-38-157.jp.ngrok.io VUE_APP_SEND_URL = https://liff.line.me/1657876696-MKYDJKgm @@ -16,4 +14,8 @@ VUE_APP_SSO_URL = https://sso.h888.fun/api/v1 VUE_APP_IMAGE_URL = https://card.h888.fun/storage -VUE_APP_DOMAIN = localhost \ No newline at end of file +VUE_APP_DOMAIN = 557d-220-129-38-157.jp.ngrok.io + +VUE_APP_LINE_CLINE_ID = 1657876696 + +VUE_APP_LINE_LIFF_ID = 1657876696-MKYDJKgm diff --git a/.env.slash b/.env.slash index 9592822..7673d7c 100644 --- a/.env.slash +++ b/.env.slash @@ -4,8 +4,6 @@ VUE_ENV = slash VUE_APP_BASE_URL = https://card.h888.fun -VUE_APP_LINE_LIFF_ID = 1657876696-MKYDJKgm - VUE_APP_SEND_URL = https://liff.line.me/1657876696-564NGMxy VUE_APP_API_URL = https://card.h888.fun/appapi/v1 @@ -14,4 +12,8 @@ VUE_APP_SSO_URL = https://sso.h888.fun/api/v1 VUE_APP_IMAGE_URL = https://card.h888.fun/storage -VUE_APP_DOMAIN = h888.fun \ No newline at end of file +VUE_APP_DOMAIN = h888.fun + +VUE_APP_LINE_CLINE_ID = 1657876696 + +VUE_APP_LINE_LIFF_ID = 1657876696-MKYDJKgm diff --git a/package-lock.json b/package-lock.json index 4a575f5..16b07ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,9 +10,10 @@ "dependencies": { "@line/liff": "^2.18.2", "@soerenmartius/vue3-clipboard": "^0.1.2", - "colorthief": "^2.3.2", "axios": "^1.3.3", + "colorthief": "^2.3.2", "core-js": "^3.6.5", + "ismobilejs": "^1.1.1", "js-cookie": "^3.0.1", "lodash": "^4.17.21", "moment": "^2.29.1", @@ -9308,6 +9309,11 @@ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, + "node_modules/ismobilejs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ismobilejs/-/ismobilejs-1.1.1.tgz", + "integrity": "sha512-VaFW53yt8QO61k2WJui0dHf4SlL8lxBofUuUmwBo0ljPk0Drz2TiuDW4jo3wDcv41qy/SxrJ+VAzJ/qYqsmzRw==" + }, "node_modules/isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", @@ -23426,6 +23432,11 @@ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, + "ismobilejs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ismobilejs/-/ismobilejs-1.1.1.tgz", + "integrity": "sha512-VaFW53yt8QO61k2WJui0dHf4SlL8lxBofUuUmwBo0ljPk0Drz2TiuDW4jo3wDcv41qy/SxrJ+VAzJ/qYqsmzRw==" + }, "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", diff --git a/package.json b/package.json index 3823f97..5b653f9 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,10 @@ "dependencies": { "@line/liff": "^2.18.2", "@soerenmartius/vue3-clipboard": "^0.1.2", - "colorthief": "^2.3.2", "axios": "^1.3.3", + "colorthief": "^2.3.2", "core-js": "^3.6.5", + "ismobilejs": "^1.1.1", "js-cookie": "^3.0.1", "lodash": "^4.17.21", "moment": "^2.29.1", diff --git a/src/App.vue b/src/App.vue index 82588ab..dff8dc2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,12 +10,7 @@