From 208980ddbab4e8763f2ae7f47d2cae577fa1be85 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 9 Jul 2024 15:36:31 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E5=BA=97=E9=93=BA):=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=B5=84=E8=AE=AF=E5=9B=BE=E7=89=87=E6=88=96?= =?UTF-8?q?=E8=80=85=E8=A7=86=E9=A2=91=E5=A2=9E=E5=8A=A0=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E4=BA=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/inn.js | 8 ++++++++ components/imageTypeSet/imagebox.vue | 1 + pagesInn/inn/innHome.vue | 9 ++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/api/inn.js b/api/inn.js index bd042ef..18429b5 100644 --- a/api/inn.js +++ b/api/inn.js @@ -228,3 +228,11 @@ export function setTopHotelNew(data) { export function getHotelShareBackgroundImage(id) { return request.get("/api/hotelMain/shareImage/" + id, {}, {login: true}) } + +/** + * 店铺资讯 + * @param id 店铺资讯ID int + * */ +export function hotelNewsView(data) { + return request.post("/api/hotelNews/view", data, {login: true}) +} diff --git a/components/imageTypeSet/imagebox.vue b/components/imageTypeSet/imagebox.vue index 6cec1d2..65267ee 100644 --- a/components/imageTypeSet/imagebox.vue +++ b/components/imageTypeSet/imagebox.vue @@ -75,6 +75,7 @@ current: cind, indicator: 'default' }); + this.$emit('click') }, getheight() { let that = this; diff --git a/pagesInn/inn/innHome.vue b/pagesInn/inn/innHome.vue index 1194012..65d74ec 100644 --- a/pagesInn/inn/innHome.vue +++ b/pagesInn/inn/innHome.vue @@ -232,6 +232,7 @@ controls play-btn-position="center" class="video-item" + @click="infoItemViewClick(item)" /> @@ -240,6 +241,7 @@ :num="item.resources.length" :img-radius="10" style="width: 100%;" + @click="infoItemViewClick(item)" /> @@ -422,7 +424,8 @@ import { postHotelNewsDel, setTopHotelNew, getHotelNewsZan, - getHotelShareBackgroundImage + getHotelShareBackgroundImage, + hotelNewsView } from "@/api/inn.js" import {formatDateTime} from "@/utils" import {getUrlParam} from "@/utils/common.js" @@ -657,6 +660,10 @@ export default { infoClick: function (info) { // this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + info.id) }, + infoItemViewClick(item) { + console.log(item) + hotelNewsView({ id: item.id }) + }, publishBtnClick: function () { this.$yrouter.push('/pagesInn/inn/innInfoPublish?hotelId=' + this.inn.id) },