hookehuyr

fix 首页新增放大镜提示

<!--
* @Date: 2024-04-07 10:15:55
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-04-18 07:00:44
* @LastEditTime: 2024-04-18 13:55:44
* @FilePath: /fxPark/src/views/fxPark/index.vue
* @Description: 首页
-->
......@@ -31,7 +31,9 @@
:style="{ zIndex: index + 2 }"
>
<img src="https://cdn.ipadbiz.cn/xfPark/index/bg.1713248259.jpg" class="img" style="z-index: 1;">
<div v-if="all_no_light" id="magnifying-glass-box"></div>
<div v-if="all_no_light" id="magnifying-glass-box">
<div style="position: absolute; left: 0.5rem; bottom: -3rem; background-image: url('https://cdn.ipadbiz.cn/xfPark/index/word.png'); background-size: 80% 80%; width: 12rem; height: 3rem; background-repeat: no-repeat;"></div>
</div>
</div>
<van-action-sheet v-model:show="show_danmu_message" title="留言" :round="false" :close-on-click-overlay="false" :closeable="false">
......@@ -112,7 +114,7 @@ const offset = ref({ x: -10, y: 500 });
const data_list = ref([]);
const all_actived = ref(false); // 全部激活
const all_no_light = ref(false); // 全部未激活
const all_no_light = ref(true); // 全部未激活
const space_height = ref('10vh'); // 第一次进入没有导航栏
......@@ -215,7 +217,7 @@ const handleEnterPress = (evt) => { // 小键盘回车回调
const goToPoster = () => { // 海报列表按钮
let index = data_list.value.findIndex(item => item.is_light === '1'); // 没有一个点亮
if (index === -1) {
showToast('没有点亮的植被,无法生成海报');
showToast('您还没点亮植物,获得海报哦');
return false;
}
let raw_data = data_list.value.filter(item => item.is_light === '1'); // 获取所有已点亮的植被
......