From f6ee33206064b48e37fd1a8a6a9e5122ebc0493b Mon Sep 17 00:00:00 2001 From: linxi Date: Mon, 28 Apr 2025 16:29:05 +0800 Subject: [PATCH] =?UTF-8?q?Task=EF=BC=9A=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=97=85=E5=B1=85=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/qianxian.js | 40 + pages.json | 7 + pkg_product/views/famousQianxianShop.vue | 10 +- pkg_product/views/sojoumStore.vue | 997 +++++++++++++++++++++++ 4 files changed, 1051 insertions(+), 3 deletions(-) create mode 100644 pkg_product/views/sojoumStore.vue diff --git a/api/qianxian.js b/api/qianxian.js index f699014..8be4cd9 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -108,3 +108,43 @@ export function getSaleList(params) { export function getJiaLouList(params) { return request.get('/countyFamous/sojourn', params, {login: true}) } + +// 旅居详情 +export function getJiaLouDetail(id) { + return request.get('/countyFamous/sojourn/' + id, {}, {login: true}) +} + +// 旅居资讯数据 +export function getJiaLouNews(params) { + return request.get('/countyFamous/sojourn/news', params, {login: true}) +} + +// 收藏旅居 +export function postJiaLouCollect(data) { + return request.post('/collection/sojourn/add', data, {login: true}) +} + +// 取消收藏旅居 +export function postJiaLouRemoveCollect(data) { + return request.post('/collection/sojourn/remove', data, {login: true}) +} + +// 收藏旅居列表 +export function getJiaLouCollectList(params) { + return request.get('/collection/sojourn/list', params, {login: true}) +} + +// 旅居点赞 +export function postJiaLouZan(data) { + return request.post('/countyFamous/sojourn/zan', data, {login: true}) +} + +// 旅居资讯查看 +export function postJiaLouNewsView(data) { + return request.post('/countyFamous/news/view', data, {login: true}) +} + +// 旅居资讯点赞 +export function postJiaLouNewsZan(data) { + return request.post('/countyFamous/news/zan', data, {login: true}) +} \ No newline at end of file diff --git a/pages.json b/pages.json index 3dd2cb1..70b659c 100644 --- a/pages.json +++ b/pages.json @@ -704,6 +704,13 @@ "navigationStyle": "custom" } }, + { + "path": "views/sojoumStore", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, { "path": "views/famousQianxianInvestment", "style": { diff --git a/pkg_product/views/famousQianxianShop.vue b/pkg_product/views/famousQianxianShop.vue index a4c1a91..b2af1c1 100644 --- a/pkg_product/views/famousQianxianShop.vue +++ b/pkg_product/views/famousQianxianShop.vue @@ -480,7 +480,7 @@ v-for="(jiaLou, jiaLouIndex) in jiaLouList" :key="jiaLouIndex" class="village-item v12-white" - @click="villageItemClick(jiaLou)" + @click="sujoumeClickHandle(jiaLou)" > - {{ jiaLou.address }} + {{ jiaLou.cityName }} - {{ jiaLou.intro }} + {{ jiaLou.shopIntro }} + + + + + + + + + + {{ store.name }} + + + {{ store.cityName }} + + + + + + + + {{ store.ownerName }}/店主 + + {{ store.serviceTime }} - {{ store.serviceEndTime }} / 营业时间 + + + + + + + + + + + + + + + + {{ store.shopIntro }} + + + + + + + + + + + + + + {{ store.address }} + + + + + 导航 + + + + 客服 + + + + + + + + {{ item.text }} + + + + + + + + + + + + + {{ item.title }} + + + {{ item.content }} + + + + + + + + + + + + + + + + + {{ item.createTime ? item.createTime.replace(/-/g, '.').substr(0, 10) : '' }} + + + + + {{ item.pv }} + + + + + {{ item.zan }} + + + + + + + + 店主还没有上传内容哦~ + + + + + + + + + + + + 店主还没有上传内容哦~ + + + + + + + + 店主还没有上传内容哦~ + + + + + + + + + + \ No newline at end of file