|
|
@@ -20,6 +20,12 @@
|
|
|
<Text text="这里可看到您附近的村落,村落乡源光贡献越多,村落越亮哦!快去为自己家乡建设做贡献吧!" textAlign="center" fontConfig="contentText" :fontSize="26" />
|
|
|
<PrimaryButton text="去点亮我的家乡" @click="navTo('/pages/home/light/create-village')" />
|
|
|
</FlexCol>
|
|
|
+ <CommonDivider />
|
|
|
+ <FlexRow gap="gap.lg" align="center">
|
|
|
+ <Text text="地图显示" textAlign="center" fontConfig="contentText" :fontSize="26" />
|
|
|
+ <CheckBox v-model="showLighted" text="已点亮" />
|
|
|
+ <CheckBox v-model="showUnLighted" text="未点亮" />
|
|
|
+ </FlexRow>
|
|
|
</BoxMid>
|
|
|
</FlexRow>
|
|
|
</FlexCol>
|
|
|
@@ -35,6 +41,8 @@
|
|
|
:cityCode="currentCityCode"
|
|
|
:district="currentDistrict"
|
|
|
:lonlat="currentLocation.currentLonlat.value"
|
|
|
+ :showLighted="showLighted"
|
|
|
+ :showUnLighted="showUnLighted"
|
|
|
@lightVillage="handleLightVillage"
|
|
|
@createVillage="handleCreateVillage"
|
|
|
@getCurrentLonlat="currentLocation.getCurrentExactLocation"
|
|
|
@@ -73,6 +81,8 @@ import CitySelect from '../components/CitySelect.vue';
|
|
|
import Popup from '@/components/dialog/Popup.vue';
|
|
|
import CommonRoot from '@/components/dialog/CommonRoot.vue';
|
|
|
import PrimaryButton from '@/common/components/PrimaryButton.vue';
|
|
|
+import CheckBox from '@/components/form/CheckBox.vue';
|
|
|
+import CommonDivider from '@/common/components/CommonDivider.vue';
|
|
|
|
|
|
const { querys } = useLoadQuerys({
|
|
|
latitude: AppCofig.defaultLonLat[1],
|
|
|
@@ -87,6 +97,9 @@ const { querys } = useLoadQuerys({
|
|
|
currentDistrict.value = querys.district;
|
|
|
});
|
|
|
|
|
|
+const showLighted = ref(true);
|
|
|
+const showUnLighted = ref(true);
|
|
|
+
|
|
|
const currentLocation = useGetCurrentLocation({
|
|
|
onCityChanged: (city, code, district) => {
|
|
|
currentCity.value = city;
|