From cbd73ae6383f8195976793afc161d6a2f9c15fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 14 Jul 2022 14:20:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=86=E4=BA=AB=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=A4=9A=E6=AC=A1=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E5=BA=97=E9=93=BA=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=90=9C=E7=B4=A2bug=EF=BC=8C=E4=BC=98=E5=8C=96=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2=E5=9C=A8h5=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E6=98=BE=E7=A4=BA=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 9 ++++++--- pages/passport/login.vue | 2 +- pages/product/shopPage.vue | 21 ++++++++++++--------- store/index.js | 1 + 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/App.vue b/App.vue index b59ad23..42b33aa 100644 --- a/App.vue +++ b/App.vue @@ -67,8 +67,8 @@ export default { onShow() { // #ifndef H5 - this.getClipboard(); - // #endif + this.getClipboard(); + // #endif // #ifdef APP-PLUS if (storage.getShow()) { @@ -150,10 +150,13 @@ export default { */ async getClipboard() { let res = await getClipboardData(); + /** * 解析粘贴板数据 */ - if (res.indexOf(config.shareLink) != -1) { + + if (res.indexOf(config.shareLink) != -1 && (res!= this.$store.state.shareLink)) { + this.$store.state.shareLink = res uni.showModal({ title: "提示", content: "检测到一个分享链接是否跳转?", diff --git a/pages/passport/login.vue b/pages/passport/login.vue index 08aa056..227da4e 100644 --- a/pages/passport/login.vue +++ b/pages/passport/login.vue @@ -846,7 +846,7 @@ page { display: flex; width: 590rpx; position: absolute; - bottom: 20px; + top: 1200rpx; align-items: center; justify-content: center; } diff --git a/pages/product/shopPage.vue b/pages/product/shopPage.vue index 6a0041d..dc57cf3 100644 --- a/pages/product/shopPage.vue +++ b/pages/product/shopPage.vue @@ -1,7 +1,7 @@