Преглед на файлове

🎨 修复点击细节问题

快乐的梦鱼 преди 1 месец
родител
ревизия
521e9e76d4
променени са 3 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 1 1
      src/pages/home/components/LightMap.vue
  2. 4 0
      src/pages/home/light/map.vue
  3. 2 2
      src/pages/home/village/introd/card.vue

+ 1 - 1
src/pages/home/components/LightMap.vue

@@ -49,7 +49,7 @@
       position="absolute" 
       :inset="{ l: 0, b: 0,r: 0 }"
       :zIndex="20"
-      :padding="full ? [0, 40] : 20"
+      :padding="full ? [0, 10] : 20"
     >
       <FlexRow align="center" justify="space-between">
         <view v-if="small"></view>

+ 4 - 0
src/pages/home/light/map.vue

@@ -36,6 +36,7 @@
       :district="currentDistrict"
       :lonlat="currentLocation.currentLonlat.value"
       @lightVillage="handleLightVillage"
+      @selectVillage="handleSelectVillage"
       @createVillage="handleCreateVillage"
       @getCurrentLonlat="currentLocation.getCurrentExactLocation"
       @changeCity="showCityPopup=true"
@@ -122,6 +123,9 @@ function handleJoinFinish() {
   backAndCallOnPageBack('goVillage', { id: joinCurrentVillageId.value });
   joinCurrentVillageId.value = 0;
 }
+function handleSelectVillage(item: VillageMapItem) {
+  backAndCallOnPageBack('goVillage', { id: item.id });
+}
 
 const showCityPopup = ref(false);
 const currentCity = ref('');

+ 2 - 2
src/pages/home/village/introd/card.vue

@@ -335,7 +335,7 @@
   <Popup 
     :show="showUnLight"
     :zIndex="100"
-    size="40%"
+    size="45%"
     position="bottom"
     backgroundColor="transparent"
   >
@@ -501,7 +501,7 @@ const showFollowTipTimeout = new MemoryTimeOut('FollowTip', 1000 * 3600);//1h
 const showFollowTip = ref(false);
 
 function handleShowFollowTip() {
-  if (!isFollowed.value && showFollowTipTimeout.isTimeout()) {
+  if (!isFollowed.value && isLight.value && showFollowTipTimeout.isTimeout()) {
     showFollowTip.value = true;
   }
 }