fix(苹果点击事件问题): 兼容性设置
This commit is contained in:
parent
4d10e2f1c1
commit
bac1e5b561
@ -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>
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user