优化分享链接多次提示问题,优化店铺点击搜索bug,优化登录页面在h5部分手机显示第三方登录样式问题

This commit is contained in:
lemon橪
2022-07-14 14:20:15 +08:00
committed by 学习很差啦
parent 109af44c6b
commit bbf0f39d69
4 changed files with 20 additions and 13 deletions

View File

@@ -65,8 +65,8 @@ export default {
onShow() {
// #ifndef H5
this.getClipboard();
// #endif
this.getClipboard();
// #endif
// #ifdef APP-PLUS
if (storage.getShow()) {
@@ -148,10 +148,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: "检测到一个分享链接是否跳转?",