fix(苹果点击事件问题): 兼容性设置

This commit is contained in:
hzj 2026-03-20 19:04:18 +08:00
parent 4d10e2f1c1
commit bac1e5b561
3 changed files with 58 additions and 18 deletions

View File

@ -2124,13 +2124,26 @@
</div>
<!-- 关闭弹窗按钮 -->
<img
v-smart-img
:src="imageUrl('resultGoOnBt')"
alt=""
style="display: block; width: 30vw; object-fit: cover"
<div
style="
display: block;
width: 30vw;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
touch-action: manipulation;
"
@click="closedPopup"
/>
@touchend="closedPopup"
>
<img
v-smart-img
:src="imageUrl('resultGoOnBt')"
alt=""
style="display: block; width: 100%; object-fit: cover; pointer-events: none"
/>
</div>
</itemCenter>
</div>

View File

@ -621,7 +621,7 @@
</div>
</div>
<!-- 邀请按钮-->
<!-- 邀请按钮 -->
<div
style="
width: 100%;
@ -631,19 +631,22 @@
display: flex;
justify-content: center;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
touch-action: manipulation;
"
@click="handleInviteClick"
@touchend="handleInviteClick"
>
<img
v-show="showModule == 'income'"
v-smart-img
:src="imageUrl(getImgName('inviteFriendsBt'))"
alt=""
style="display: block; width: 90%; object-fit: cover"
@click="
openAppComponent(
'shareDrawer:' + t('share_invitation_message', { code: myInviteInfo.inviteCode }),
)
"
style="display: block; width: 90%; object-fit: cover; pointer-events: none"
/>
</div>
@ -1494,6 +1497,19 @@ const showDetail = (reward) => {
}
}
//
const handleInviteClick = () => {
//
if (!myInviteInfo.value?.inviteCode) {
showError(t('please_wait_loading'))
return
}
openAppComponent(
'shareDrawer:' + t('share_invitation_message', { code: myInviteInfo.inviteCode }),
)
}
//
const copyCode = (text) => {
if (isSupported.value) {

View File

@ -950,10 +950,7 @@
:contentStyle="`z-index: 0;`"
>
<!-- 关闭按钮 -->
<img
v-smart-img
:src="imageUrl('closeBt')"
alt=""
<div
style="
display: block;
position: absolute;
@ -961,9 +958,23 @@
width: 8vw;
top: 3vw;
right: 2vw;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
touch-action: manipulation;
"
@click="closedPopup"
/>
@touchend="closedPopup"
>
<img
v-smart-img
:src="imageUrl('closeBt')"
alt=""
style="display: block; width: 100%; pointer-events: none"
/>
</div>
</itemCenter>
</div>
</div>