diff --git a/pkg_product/views/heritage/details.vue b/pkg_product/views/heritage/details.vue index 9194bf0..7c46fb5 100644 --- a/pkg_product/views/heritage/details.vue +++ b/pkg_product/views/heritage/details.vue @@ -3,7 +3,10 @@ - + + + {{ details.intro }} + {{details.pageA.title}} {{details.pageB.title}} @@ -25,7 +28,7 @@ - + {{ item.hotelName }} @@ -63,6 +66,11 @@ export default { this.details = res.data || {} }) }, + toStore(item) { + uni.navigateTo({ + url: '/pagesInn/inn/innHome?id=' + item.hotelId + }) + } } } @@ -92,7 +100,6 @@ export default { .card-item-img{ width: 100%; height: 320rpx; - background: rgba(73,16,16,0.39); border-radius: 20rpx; } .intro{ @@ -114,9 +121,10 @@ export default { justify-content: center; } .tab-btn{ - width: 140rpx; + width: fit-content; height: 66rpx; border-radius: 36rpx; + padding: 0 20rpx; text-align: center; line-height: 66rpx; background: rgba(221,210,190,0.39); @@ -138,5 +146,7 @@ export default { border-radius: 146rpx; margin-top: 24rpx; background: rgba(255,255,255,0.39); + padding: 60rpx; + box-sizing: border-box; } \ No newline at end of file diff --git a/pkg_product/views/heritage/index.vue b/pkg_product/views/heritage/index.vue index c3cdd7d..5210597 100644 --- a/pkg_product/views/heritage/index.vue +++ b/pkg_product/views/heritage/index.vue @@ -7,7 +7,18 @@ - + + + @@ -17,16 +28,13 @@ - - - + + + {{ item.name }} - + @@ -45,16 +53,13 @@ - + - + {{ item.name }} - + {{ item.intro }} @@ -74,7 +79,8 @@ export default { id: '', actived: 0, contents: [], - recommendList: [] + recommendList: [], + keyword: '' } }, onLoad(opts) { @@ -82,6 +88,9 @@ export default { this.getIchData() }, methods: { + searchClick() { + this.getRecommend() + }, getIchData() { getIch(this.id).then(res => { this.ichData = res.data @@ -92,7 +101,7 @@ export default { getRecommend() { const params = { ichDataId: this.ichData.id, - keyword: '' + keyword: this.keyword } getIchRecommend(params).then(res => { this.recommendList = res.data || [] @@ -102,10 +111,9 @@ export default { this.actived = index this.contents = item.contents }, - toDetails(item) { - console.log(item); + toDetails(id) { uni.navigateTo({ - url: '/pkg_product/views/heritage/details?id=' + item.ichContentId + url: '/pkg_product/views/heritage/details?id=' + id }) } } @@ -113,6 +121,16 @@ export default {