Feat(店铺):点击查看资讯图片或者视频增加访问人数
This commit is contained in:
@@ -661,8 +661,13 @@ export default {
|
||||
// this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + info.id)
|
||||
},
|
||||
infoItemViewClick(item) {
|
||||
console.log(item)
|
||||
hotelNewsView({ id: item.id })
|
||||
hotelNewsView({ id: item.id }).finally(() => {
|
||||
this.infoArray.map(info => {
|
||||
if (info.id === item.id) {
|
||||
info.pv += 1
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
publishBtnClick: function () {
|
||||
this.$yrouter.push('/pagesInn/inn/innInfoPublish?hotelId=' + this.inn.id)
|
||||
|
||||
Reference in New Issue
Block a user