fix(苹果点击事件问题): 兼容性设置
This commit is contained in:
parent
4d10e2f1c1
commit
bac1e5b561
@ -2124,13 +2124,26 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 关闭弹窗按钮 -->
|
<!-- 关闭弹窗按钮 -->
|
||||||
<img
|
<div
|
||||||
v-smart-img
|
style="
|
||||||
:src="imageUrl('resultGoOnBt')"
|
display: block;
|
||||||
alt=""
|
width: 30vw;
|
||||||
style="display: block; width: 30vw; object-fit: cover"
|
cursor: pointer;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
user-select: none;
|
||||||
|
touch-action: manipulation;
|
||||||
|
"
|
||||||
@click="closedPopup"
|
@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>
|
</itemCenter>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -621,7 +621,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 邀请按钮-->
|
<!-- 邀请按钮 -->
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -631,19 +631,22 @@
|
|||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
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
|
<img
|
||||||
v-show="showModule == 'income'"
|
v-show="showModule == 'income'"
|
||||||
v-smart-img
|
v-smart-img
|
||||||
:src="imageUrl(getImgName('inviteFriendsBt'))"
|
:src="imageUrl(getImgName('inviteFriendsBt'))"
|
||||||
alt=""
|
alt=""
|
||||||
style="display: block; width: 90%; object-fit: cover"
|
style="display: block; width: 90%; object-fit: cover; pointer-events: none"
|
||||||
@click="
|
|
||||||
openAppComponent(
|
|
||||||
'shareDrawer:' + t('share_invitation_message', { code: myInviteInfo.inviteCode }),
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</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) => {
|
const copyCode = (text) => {
|
||||||
if (isSupported.value) {
|
if (isSupported.value) {
|
||||||
|
|||||||
@ -950,10 +950,7 @@
|
|||||||
:contentStyle="`z-index: 0;`"
|
:contentStyle="`z-index: 0;`"
|
||||||
>
|
>
|
||||||
<!-- 关闭按钮 -->
|
<!-- 关闭按钮 -->
|
||||||
<img
|
<div
|
||||||
v-smart-img
|
|
||||||
:src="imageUrl('closeBt')"
|
|
||||||
alt=""
|
|
||||||
style="
|
style="
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -961,9 +958,23 @@
|
|||||||
width: 8vw;
|
width: 8vw;
|
||||||
top: 3vw;
|
top: 3vw;
|
||||||
right: 2vw;
|
right: 2vw;
|
||||||
|
|
||||||
|
cursor: pointer;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
user-select: none;
|
||||||
|
touch-action: manipulation;
|
||||||
"
|
"
|
||||||
@click="closedPopup"
|
@click="closedPopup"
|
||||||
/>
|
@touchend="closedPopup"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
v-smart-img
|
||||||
|
:src="imageUrl('closeBt')"
|
||||||
|
alt=""
|
||||||
|
style="display: block; width: 100%; pointer-events: none"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</itemCenter>
|
</itemCenter>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user