Feat(店铺):点击查看资讯图片或者视频增加访问人数
This commit is contained in:
@@ -228,3 +228,11 @@ export function setTopHotelNew(data) {
|
|||||||
export function getHotelShareBackgroundImage(id) {
|
export function getHotelShareBackgroundImage(id) {
|
||||||
return request.get("/api/hotelMain/shareImage/" + id, {}, {login: true})
|
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})
|
||||||
|
}
|
||||||
|
|||||||
@@ -75,6 +75,7 @@
|
|||||||
current: cind,
|
current: cind,
|
||||||
indicator: 'default'
|
indicator: 'default'
|
||||||
});
|
});
|
||||||
|
this.$emit('click')
|
||||||
},
|
},
|
||||||
getheight() {
|
getheight() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|||||||
@@ -232,6 +232,7 @@
|
|||||||
controls
|
controls
|
||||||
play-btn-position="center"
|
play-btn-position="center"
|
||||||
class="video-item"
|
class="video-item"
|
||||||
|
@click="infoItemViewClick(item)"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
@@ -240,6 +241,7 @@
|
|||||||
:num="item.resources.length"
|
:num="item.resources.length"
|
||||||
:img-radius="10"
|
:img-radius="10"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
|
@click="infoItemViewClick(item)"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -422,7 +424,8 @@ import {
|
|||||||
postHotelNewsDel,
|
postHotelNewsDel,
|
||||||
setTopHotelNew,
|
setTopHotelNew,
|
||||||
getHotelNewsZan,
|
getHotelNewsZan,
|
||||||
getHotelShareBackgroundImage
|
getHotelShareBackgroundImage,
|
||||||
|
hotelNewsView
|
||||||
} from "@/api/inn.js"
|
} from "@/api/inn.js"
|
||||||
import {formatDateTime} from "@/utils"
|
import {formatDateTime} from "@/utils"
|
||||||
import {getUrlParam} from "@/utils/common.js"
|
import {getUrlParam} from "@/utils/common.js"
|
||||||
@@ -657,6 +660,10 @@ export default {
|
|||||||
infoClick: function (info) {
|
infoClick: function (info) {
|
||||||
// this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + info.id)
|
// this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + info.id)
|
||||||
},
|
},
|
||||||
|
infoItemViewClick(item) {
|
||||||
|
console.log(item)
|
||||||
|
hotelNewsView({ id: item.id })
|
||||||
|
},
|
||||||
publishBtnClick: function () {
|
publishBtnClick: function () {
|
||||||
this.$yrouter.push('/pagesInn/inn/innInfoPublish?hotelId=' + this.inn.id)
|
this.$yrouter.push('/pagesInn/inn/innInfoPublish?hotelId=' + this.inn.id)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user