登录按钮可拖拽
This commit is contained in:
@@ -44,6 +44,12 @@ export default {
|
|||||||
return this.$u.toast("已在登录页!")
|
return this.$u.toast("已在登录页!")
|
||||||
} else uni.navigateTo({url: "/pages/login?back=" + encodeURIComponent(location.href?.replace(location.origin, ""))})
|
} else uni.navigateTo({url: "/pages/login?back=" + encodeURIComponent(location.href?.replace(location.origin, ""))})
|
||||||
})
|
})
|
||||||
|
btn.addEventListener('touchmove', e => {
|
||||||
|
let {clientX, clientY, target: {clientWidth, clientHeight}} = e.touches?.[0],
|
||||||
|
{width, height} = screen
|
||||||
|
btn.style.right = `${Math.min(Math.max(0, width - clientX - clientWidth), width - clientWidth)}px`
|
||||||
|
btn.style.top = `${Math.min(Math.max(0, clientY), height - clientHeight)}px`
|
||||||
|
})
|
||||||
document.body.appendChild(btn)
|
document.body.appendChild(btn)
|
||||||
},
|
},
|
||||||
getApps() {
|
getApps() {
|
||||||
@@ -188,6 +194,7 @@ uni-button {
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
box-shadow: 0 0 0.61538462em rgb(0 0 0 / 40%);
|
box-shadow: 0 0 0.61538462em rgb(0 0 0 / 40%);
|
||||||
|
z-index: 202206271112;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes mapWarn {
|
@keyframes mapWarn {
|
||||||
|
|||||||
Reference in New Issue
Block a user