|
@@ -17,13 +17,46 @@
|
|
|
@getedCurrentLonlat="getedCurrentLonlat"
|
|
@getedCurrentLonlat="getedCurrentLonlat"
|
|
|
/>
|
|
/>
|
|
|
<FlexRow justify="space-between" :padding="[10, 16]">
|
|
<FlexRow justify="space-between" :padding="[10, 16]">
|
|
|
- <ImageButton src="https://mn.wenlvti.net/app_static/xiangyuan/images/home/ButtonMainAction.png" :width="215" mode="widthFix" @click="goCommonContentList({ modelId: 18, mainBodyColumnId: 361 })" />
|
|
|
|
|
|
|
+ <ImageButton src="https://mn.wenlvti.net/app_static/xiangyuan/images/home/ButtonMainAction.png" :width="215" mode="widthFix" @click="goCommonContentList({ modelId: 18, mainBodyColumnId: 361, autoJumpFirst: true })" />
|
|
|
<ImageButton src="https://mn.wenlvti.net/app_static/xiangyuan/images/home/ButtonMainLight.png" :width="215" mode="widthFix" @click="navTo('/pages/home/light/submit-map', { latitude: currentLonlat.latitude, longitude: currentLonlat.longitude })" />
|
|
<ImageButton src="https://mn.wenlvti.net/app_static/xiangyuan/images/home/ButtonMainLight.png" :width="215" mode="widthFix" @click="navTo('/pages/home/light/submit-map', { latitude: currentLonlat.latitude, longitude: currentLonlat.longitude })" />
|
|
|
- <ImageButton src="https://mn.wenlvti.net/app_static/xiangyuan/images/home/ButtonMainSupport.png" :width="215" mode="widthFix" @click="goCommonContentList({ modelId: 18, mainBodyColumnId: 362 })" />
|
|
|
|
|
|
|
+ <ImageButton src="https://mn.wenlvti.net/app_static/xiangyuan/images/home/ButtonMainSupport.png" :width="215" mode="widthFix" @click="goCommonContentList({ modelId: 18, mainBodyColumnId: 362, autoJumpFirst: true })" />
|
|
|
</FlexRow>
|
|
</FlexRow>
|
|
|
</Box>
|
|
</Box>
|
|
|
|
|
|
|
|
- <Box title="发现 · 周边" icon="https://mncdn.wenlvti.net/app_static/xiangyuan/images/home/icon-compass.png" showMore @moreClicked="goCommonContentList({
|
|
|
|
|
|
|
+ <Box title="资讯动态" icon="https://mncdn.wenlvti.net/app_static/xiangyuan/images/home/icon-compass.png" showMore @moreClicked="goCommonContentList({
|
|
|
|
|
+ title: '资讯动态',
|
|
|
|
|
+ modelId: 18,
|
|
|
|
|
+ mainBodyColumnId: 363,
|
|
|
|
|
+ })">
|
|
|
|
|
+ <SimplePageContentLoader :loader="newsLoader">
|
|
|
|
|
+ <FlexCol :gap="25">
|
|
|
|
|
+ <Touchable
|
|
|
|
|
+ v-for="(item, i) in newsLoader.content.value"
|
|
|
|
|
+ :key="i"
|
|
|
|
|
+ justify="space-between"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ direction="row"
|
|
|
|
|
+ @click="goDiscoverDetails(item)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <FlexCol flex="1" :gap="20">
|
|
|
|
|
+ <Text :text="item.title" fontConfig="h5" />
|
|
|
|
|
+ <Text :text="item.desc" fontConfig="subText" />
|
|
|
|
|
+ </FlexCol>
|
|
|
|
|
+ <Width :width="25" />
|
|
|
|
|
+ <Image
|
|
|
|
|
+ :src="item.image"
|
|
|
|
|
+ :failedImage="AppCofig.defaultImage"
|
|
|
|
|
+ :width="170"
|
|
|
|
|
+ :height="120"
|
|
|
|
|
+ :radius="15"
|
|
|
|
|
+ mode="aspectFill"
|
|
|
|
|
+ />
|
|
|
|
|
+ </Touchable>
|
|
|
|
|
+ </FlexCol>
|
|
|
|
|
+ </SimplePageContentLoader>
|
|
|
|
|
+ </Box>
|
|
|
|
|
+
|
|
|
|
|
+ <Box title="周边文化遗产" icon="https://mncdn.wenlvti.net/app_static/xiangyuan/images/home/icon-compass.png" @moreClicked="goCommonContentList({
|
|
|
modelId: 1,
|
|
modelId: 1,
|
|
|
latitude: currentLonlat.latitude,
|
|
latitude: currentLonlat.latitude,
|
|
|
longitude: currentLonlat.longitude,
|
|
longitude: currentLonlat.longitude,
|
|
@@ -39,9 +72,9 @@
|
|
|
direction="row"
|
|
direction="row"
|
|
|
@click="goCommonContentDetail(item.id)"
|
|
@click="goCommonContentDetail(item.id)"
|
|
|
>
|
|
>
|
|
|
- <FlexCol flex="1" :gap="20">
|
|
|
|
|
- <Text :text="item.title" fontConfig="h5" />
|
|
|
|
|
- <Text :text="`距离您约 ${item.distance}`" fontConfig="subText" />
|
|
|
|
|
|
|
+ <Text :text="item.title" fontConfig="h5" />
|
|
|
|
|
+ <Text :text="`距离您约 ${item.distance}`" fontConfig="subText" />
|
|
|
|
|
+ <!-- <FlexCol flex="1" :gap="20">
|
|
|
</FlexCol>
|
|
</FlexCol>
|
|
|
<Width :width="25" />
|
|
<Width :width="25" />
|
|
|
<Image
|
|
<Image
|
|
@@ -51,12 +84,12 @@
|
|
|
:height="120"
|
|
:height="120"
|
|
|
:radius="15"
|
|
:radius="15"
|
|
|
mode="aspectFill"
|
|
mode="aspectFill"
|
|
|
- />
|
|
|
|
|
|
|
+ /> -->
|
|
|
</Touchable>
|
|
</Touchable>
|
|
|
</FlexCol>
|
|
</FlexCol>
|
|
|
</SimplePageContentLoader>
|
|
</SimplePageContentLoader>
|
|
|
</Box>
|
|
</Box>
|
|
|
- <Box title="线上史馆展示" icon="https://mncdn.wenlvti.net/app_static/xiangyuan/images/home/icon-ancient-gate.png">
|
|
|
|
|
|
|
+ <!-- <Box title="线上史馆展示" icon="https://mncdn.wenlvti.net/app_static/xiangyuan/images/home/icon-ancient-gate.png">
|
|
|
<SimplePageContentLoader :loader="recommendLoader">
|
|
<SimplePageContentLoader :loader="recommendLoader">
|
|
|
<FlexRow justify="space-between" align="center" wrap :gap="25">
|
|
<FlexRow justify="space-between" align="center" wrap :gap="25">
|
|
|
<Touchable
|
|
<Touchable
|
|
@@ -79,7 +112,7 @@
|
|
|
</Touchable>
|
|
</Touchable>
|
|
|
</FlexRow>
|
|
</FlexRow>
|
|
|
</SimplePageContentLoader>
|
|
</SimplePageContentLoader>
|
|
|
- </Box>
|
|
|
|
|
|
|
+ </Box> -->
|
|
|
<Box title="精彩推荐" icon="https://mncdn.wenlvti.net/app_static/xiangyuan/images/home/icon-compass.png" showMore @moreClicked="$emit('goDiscover')">
|
|
<Box title="精彩推荐" icon="https://mncdn.wenlvti.net/app_static/xiangyuan/images/home/icon-compass.png" showMore @moreClicked="$emit('goDiscover')">
|
|
|
<SimplePageContentLoader :loader="discoverLoader">
|
|
<SimplePageContentLoader :loader="discoverLoader">
|
|
|
<FlexCol :gap="25">
|
|
<FlexCol :gap="25">
|
|
@@ -221,6 +254,13 @@ const discoverLoader = useSimpleDataLoader(async () => {
|
|
|
})
|
|
})
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+const newsLoader = useSimpleDataLoader(async () => {
|
|
|
|
|
+ return (await CommonContent.getContentList(new GetContentListParams()
|
|
|
|
|
+ .setModelId(18)
|
|
|
|
|
+ .setMainBodyColumnId(363)
|
|
|
|
|
+ , 1, 8)).list;
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
function goDiscoverDetails(item: any) {
|
|
function goDiscoverDetails(item: any) {
|
|
|
navTo('/pages/home/discover/details', {
|
|
navTo('/pages/home/discover/details', {
|
|
|
id: item.id,
|
|
id: item.id,
|