hookehuyr

fix 首页图片长按屏蔽

1 <!-- 1 <!--
2 * @Date: 2024-04-10 14:16:36 2 * @Date: 2024-04-10 14:16:36
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-04-13 10:40:09 4 + * @LastEditTime: 2024-04-15 10:07:31
5 * @FilePath: /fxPark/src/components/danmaku.vue 5 * @FilePath: /fxPark/src/components/danmaku.vue
6 * @Description: 弹幕组件 6 * @Description: 弹幕组件
7 --> 7 -->
...@@ -91,6 +91,7 @@ onMounted(async () => { ...@@ -91,6 +91,7 @@ onMounted(async () => {
91 border-radius: 14px; 91 border-radius: 14px;
92 margin-top: 1rem; 92 margin-top: 1rem;
93 font-size: 0.95rem; 93 font-size: 0.95rem;
94 + color: #FFF;
94 } 95 }
95 } 96 }
96 </style> 97 </style>
......
1 <!-- 1 <!--
2 * @Date: 2024-04-07 10:15:55 2 * @Date: 2024-04-07 10:15:55
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-04-15 09:51:47 4 + * @LastEditTime: 2024-04-15 10:05:02
5 * @FilePath: /fxPark/src/views/fxPark/index.vue 5 * @FilePath: /fxPark/src/views/fxPark/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -221,8 +221,18 @@ const onCloseDanmu = () => { // 弹幕开关 ...@@ -221,8 +221,18 @@ const onCloseDanmu = () => { // 弹幕开关
221 </script> 221 </script>
222 222
223 <style lang="less" scoped> 223 <style lang="less" scoped>
224 +* { // 屏蔽图片长按
225 + -webkit-touch-callout: none;
226 + -webkit-user-select: none;
227 + -moz-user-select: none;
228 + -ms-user-select: none;
229 + user-select: none;
230 +}
224 .fxPark-page { 231 .fxPark-page {
225 position: relative; 232 position: relative;
233 + img, :deep(.van-icon__image) { // 屏蔽图片长按
234 + pointer-events: none;
235 + }
226 .quick-entrance-wrapper { 236 .quick-entrance-wrapper {
227 position: absolute; 237 position: absolute;
228 right: 0; 238 right: 0;
......