|
|
|
|
@ -168,7 +168,7 @@
|
|
|
|
|
<rich-text v-if='showContent' :nodes="info.content?info.content:' '"></rich-text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-btn" @click="toQus(info.id)">
|
|
|
|
|
<view class="detail-btn" v-if="hasQuestion" @click="toQus(info.id)">
|
|
|
|
|
<image src="../static/detail-btn.png" mode=""></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -203,7 +203,8 @@
|
|
|
|
|
playvideo: false,
|
|
|
|
|
playimg: false,
|
|
|
|
|
qrCode: '',
|
|
|
|
|
showQrCode: false,
|
|
|
|
|
showQrCode: false,
|
|
|
|
|
hasQuestion:false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onShareAppMessage() {
|
|
|
|
|
@ -218,31 +219,24 @@
|
|
|
|
|
onLoad(option) {
|
|
|
|
|
const MenuButton = uni.getMenuButtonBoundingClientRect()
|
|
|
|
|
this.navBarTop = MenuButton.top //左侧文字与右侧胶囊对齐
|
|
|
|
|
this.getDetail(option.id)
|
|
|
|
|
this.getDetail(option.id)
|
|
|
|
|
this.getQuestions(option.id)
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
playFullScreen() {
|
|
|
|
|
let videoContext = uni.createVideoContext('videos', this)
|
|
|
|
|
videoContext.requestFullScreen()
|
|
|
|
|
},
|
|
|
|
|
async getQuestions(id) {
|
|
|
|
|
const res = await this.$u.api.getQuestions({
|
|
|
|
|
point_id: id
|
|
|
|
|
})
|
|
|
|
|
this.hasQuestion = res.questions.length>0?true:false
|
|
|
|
|
},
|
|
|
|
|
async getDetail(id) {
|
|
|
|
|
const res = await this.$u.api.pointDetail({
|
|
|
|
|
id: id
|
|
|
|
|
})
|
|
|
|
|
// if(res.points.config && res.points.config.length>0){
|
|
|
|
|
|
|
|
|
|
// res.points.config.map(item=>{
|
|
|
|
|
// if(item.key==='address'){
|
|
|
|
|
// res.points.address = item.value
|
|
|
|
|
// }
|
|
|
|
|
// if(item.key==='time'){
|
|
|
|
|
// res.points.time = item.value
|
|
|
|
|
// }
|
|
|
|
|
// if(item.key==='phone'){
|
|
|
|
|
// res.points.phone = item.value
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
this.info = res.points
|
|
|
|
|
this.showVorImage = this.info.video ? true : false
|
|
|
|
|
this.vrInfo = res.points.point_content.length > 0 ? res.points.point_content : []
|
|
|
|
|
@ -251,7 +245,6 @@
|
|
|
|
|
this.imgInfo.push(item.image.url)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// this.imgInfo = res.points.point_image.length > 0 ? res.points.point_image : []
|
|
|
|
|
this.showContent = true
|
|
|
|
|
},
|
|
|
|
|
swierChange(e) {
|
|
|
|
|
|