From 7a0073cd62ca8a55c6952d8cffba9e5ab24fd45f Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Thu, 30 Oct 2025 18:40:13 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=E7=AE=A1=E5=AE=B6=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/qianxian.js | 15 +- pages.json | 7 + pkg_product/views/housekeeperDetail.vue | 1406 +++++++++++++++++++++++ pkg_product/views/sojoumStore.vue | 65 +- 4 files changed, 1477 insertions(+), 16 deletions(-) create mode 100644 pkg_product/views/housekeeperDetail.vue diff --git a/api/qianxian.js b/api/qianxian.js index 83dfb1b..01b8303 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -141,12 +141,12 @@ export function postJiaLouZan(data) { // 旅居资讯查看 export function postJiaLouNewsView(data) { - return request.post('/countyFamous/news/view', data, {login: true}) + return request.post('/travel/news/view', data, {login: true}) } // 旅居资讯点赞 export function postJiaLouNewsZan(data) { - return request.post('/countyFamous/news/zan', data, {login: true}) + return request.post('/travel/news/zan', data, {login: true}) } // 分享旅居 @@ -238,3 +238,14 @@ export function createJiaLouOrder(params) { export function createJiaLouOrderPay(params) { return request.post('/travel/travelGroupOrder/create/' + params.key, params, {login: true}) } + + +/** + * 旅居资讯列表 + * merId int 旅居管家商户ID +page int 页码 +limit int 每页条数 + */ +export function getJiaLouNewsList(params) { + return request.get('/travel/news', params, {login: true}) +} diff --git a/pages.json b/pages.json index ced98e4..1afc0ea 100644 --- a/pages.json +++ b/pages.json @@ -726,6 +726,13 @@ "navigationStyle": "custom" } }, + { + "path": "views/housekeeperDetail", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, { "path": "views/groupBuyDetails", "style": { diff --git a/pkg_product/views/housekeeperDetail.vue b/pkg_product/views/housekeeperDetail.vue new file mode 100644 index 0000000..c686fcf --- /dev/null +++ b/pkg_product/views/housekeeperDetail.vue @@ -0,0 +1,1406 @@ + + + + + \ No newline at end of file diff --git a/pkg_product/views/sojoumStore.vue b/pkg_product/views/sojoumStore.vue index 4fa277f..5135579 100644 --- a/pkg_product/views/sojoumStore.vue +++ b/pkg_product/views/sojoumStore.vue @@ -100,7 +100,7 @@ 'background-image': item.isTop ? ('url(' + webUrl + '/page/hotel/info-top-bg.png)') : 'none' }" class="info-item-header" - @click="infoClick(item)"> + > {{ item.title }} @@ -272,19 +272,22 @@ - + - + + - 旅居管家 - {{ item.name }} + + 旅居管家 + {{ item.name }} + - + - + {{ item.desc }} @@ -334,7 +337,8 @@ import { postJiaLouZan, postJiaLouShare, getJiaLouProductList, - getJiaLouStewardList + getJiaLouStewardList, + getJiaLouNewsList } from '@/api/qianxian' import imgBox from '@/components/imageTypeSet/imagebox.vue' export default { @@ -406,6 +410,12 @@ export default { } }, methods: { + // 跳转管家详情 + goHousekeeperDetail(item) { + uni.navigateTo({ + url: '/pkg_product/views/housekeeperDetail?id=' + item.id + }) + }, getJiaLouStewardList() { uni.showLoading({ title: '加载中', @@ -539,9 +549,9 @@ export default { const params = { page: 1, limit: 9999, - sojournId: this.id + merId: this.id } - getJiaLouNews(params).then(res => { + getJiaLouNewsList(params).then(res => { this.infoArray = res.data.records || [] this.isLoadInfoListSuccess = true }) @@ -578,7 +588,7 @@ export default { }, likeInfoItemHandle(item) { const params = { - countyFamousNewsId: item.id + travelGroupNewsId: item.id } postJiaLouNewsZan(params).then(res => { const {success} = res @@ -620,7 +630,7 @@ export default { } if(this.videoPlayers.filter(id => id === playerId).length > 1) return const params = { - countyFamousNewsId: item.id + travelGroupNewsId: item.id } postJiaLouNewsView(params).then(res => { const {success} = res @@ -1229,6 +1239,7 @@ export default { align-items: center; justify-content: center; flex-direction: column; + overflow: hidden; } .avatar { width: 180rpx; @@ -1280,11 +1291,37 @@ export default { } .tag { padding: 6rpx 16rpx; - border: 2rpx solid #E95959; - color: #E95959; + border: 2rpx solid #C52733; + color: #C52733; border-radius: 100rpx; font-size: 24rpx; margin-right: 16rpx; margin-top: 12rpx; } +.mainImage-wap{ + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; + // transform: translate(-50%, -50%); +} +.gg-box{ + border: 2rpx solid #FADE9F; + border-radius: 22rpx; + position: absolute; + width: 160rpx; + bottom: 12rpx; + left: 0; + right: 0; + margin: auto; + text-align: center; +} +.gg{ + border-radius: 120rpx; + background: #FADE9F; + padding: 6rpx 5rpx; + margin-bottom: 12rpx; + color: #333; +} \ No newline at end of file