Feat(店铺):点击查看资讯图片或者视频增加访问人数
This commit is contained in:
@@ -232,6 +232,7 @@
|
||||
controls
|
||||
play-btn-position="center"
|
||||
class="video-item"
|
||||
@click="infoItemViewClick(item)"
|
||||
/>
|
||||
</view>
|
||||
<view v-else>
|
||||
@@ -240,6 +241,7 @@
|
||||
:num="item.resources.length"
|
||||
:img-radius="10"
|
||||
style="width: 100%;"
|
||||
@click="infoItemViewClick(item)"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user