Feat: 地标好物(服务)

This commit is contained in:
linxi
2024-11-15 10:39:59 +08:00
parent c18ec66653
commit d3957be379
8 changed files with 258 additions and 51 deletions
+5 -9
View File
@@ -46,7 +46,7 @@
</view>
<view class="list-wrap">
<view v-if="actived === 1">
<projects :landmarkDataId="landmarkDataId"></projects>
<projects :landmarkDataId="landmarkDataId" :info="mapData.serviceInfo"></projects>
</view>
<view v-if="actived === 2">
<culture :landmarkDataId="landmarkDataId"></culture>
@@ -62,13 +62,8 @@
mode="widthFix"
class="loadend"
/>
</view>
<image
v-if="goods.length === 0"
:src="webUrl + '/20231023131208675588.png'"
class="img-nodata"
mode="scaleToFill"
/>
</view>
</view>
</view>
@@ -153,13 +148,14 @@ export default {
this.page = 1
this.goods = []
this.isCompleteLoadGood = false
this.actived = 1
this.getMap()
this.fetchGoods()
},
getMap() {
const id = this.navList[this.navIndex]['id']
getProvince(id).then(({data}) => {
this.mapData = data
this.mapData = data || {}
this.isLoad = true
})
},