diff --git a/pages/index/index.vue b/pages/index/index.vue index 9ed2782..6f556e2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -76,19 +76,19 @@ - 更多 > + 更多 > - + {{item.goods.image_tag}} - + - - {{item.goods.title}} - {{item.goods.subtitle}} - + + {{item.name}} + {{item.points.length}}个景点 + @@ -224,6 +224,18 @@ this.getEventCalendarNum() }, methods: { + // 去线路列表 + gotoLineList() { + uni.navigateTo({ + url: '/subPackages/webPage/webPage?url=https://yandumap.sz-trip.com/lineList' + }); + }, + // 去线路详情 + goLineDetail(item) { + uni.navigateTo({ + url: '/subPackages/webPage/webPage?url=https://yandumap.sz-trip.com/lineList?id=' + item.id + }); + }, // 获取活动日历数量 getEventCalendarNum() { this.Post({},'/api/activity/getActivityCalendarCount').then(res => { @@ -349,11 +361,10 @@ // 线路推荐 getLineList() { this.Post({ - offset: 0, - limit: 3, - tag_id: 55 - },'/api/tag/getGoodsByTagId').then(res => { - this.lineList = res.data; + type: '', + code: '' + },'/api/emap/getLineByCode').then(res => { + this.lineList = res.data }) }, // 盐都美食 @@ -627,8 +638,6 @@ height: 227rpx; margin-left: 23rpx; padding: 16rpx 0 18rpx; - flex-direction: column; - align-items: flex-start; .line-title { width: 368rpx; @@ -643,6 +652,7 @@ font-weight: 500; font-size: 25rpx; color: #999999; + margin-top: 15px; } .line-tag { diff --git a/pages/map/map.vue b/pages/map/map.vue index 466f15e..5a7e8c7 100644 --- a/pages/map/map.vue +++ b/pages/map/map.vue @@ -32,5 +32,6 @@ .content { width: 100vw; height: 100vh; + padding-bottom: env(safe-area-inset-bottom) } \ No newline at end of file