|
|
|
@ -34,7 +34,7 @@ |
|
|
|
|
{{ pointData.cname }} |
|
|
|
|
</cover-view> |
|
|
|
|
</cover-view> |
|
|
|
|
<cover-view v-if="plays && pointData.voiceurl" @click.stop="play(pointData.voiceurl)" class="play-stop"> |
|
|
|
|
<cover-view v-if="plays && pointData.voiceurl" @click.stop="play(pointData)" class="play-stop"> |
|
|
|
|
<cover-image style="width: 30rpx; height: 30rpx; padding: 10rpx" src="../../static/img/icon_play.png"></cover-image> |
|
|
|
|
<cover-view>语音讲解</cover-view> |
|
|
|
|
</cover-view> |
|
|
|
@ -42,9 +42,13 @@ |
|
|
|
|
<cover-image style="width: 30rpx; height: 30rpx; padding: 10rpx" src="../../static/img/icon_stop.png"></cover-image> |
|
|
|
|
<cover-view>语音讲解</cover-view> |
|
|
|
|
</cover-view> |
|
|
|
|
<cover-view v-if="pointData.voiceurl" class="small-text"> |
|
|
|
|
<cover-view>累计播放:{{count}}次</cover-view> |
|
|
|
|
</cover-view> |
|
|
|
|
<cover-view v-else="!pointData.voiceurl" class="play-stop no-audio"> |
|
|
|
|
<cover-view>暂无讲解</cover-view> |
|
|
|
|
</cover-view> |
|
|
|
|
|
|
|
|
|
<!-- <cover-view class="go-detail">查看详情>>></cover-view> --> |
|
|
|
|
<!-- <cover-view > --> |
|
|
|
|
<!-- <mp-html :content="pointData.content"/> --> |
|
|
|
@ -58,11 +62,11 @@ |
|
|
|
|
<cover-image v-else :src="allIcons"></cover-image> |
|
|
|
|
<cover-view class="small-fnt">全部</cover-view> |
|
|
|
|
</cover-view> |
|
|
|
|
<cover-view class="shaixuan-item" @click="showLine"> |
|
|
|
|
<!-- <cover-view class="shaixuan-item" @click="showLine"> |
|
|
|
|
<cover-image v-if="isLineActive" :src="lineIcon"></cover-image> |
|
|
|
|
<cover-image v-else :src="lineIcons"></cover-image> |
|
|
|
|
<cover-view class="small-fnt">线路</cover-view> |
|
|
|
|
</cover-view> |
|
|
|
|
</cover-view> --> |
|
|
|
|
<cover-view class="shaixuan-item" v-for="(item, index) in screenList" @click="screenData(item, index)"> |
|
|
|
|
<cover-image v-if="!item.isActive" :src="'/static/img/' + item.dicremark + '.png'"></cover-image> |
|
|
|
|
<cover-image v-else :src="'/static/img/' + item.dicremark + '-h.png'"></cover-image> |
|
|
|
@ -92,6 +96,7 @@ |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
count:0, |
|
|
|
|
mapCtx: '', |
|
|
|
|
scale: 18, |
|
|
|
|
min: 10, |
|
|
|
@ -130,10 +135,10 @@ export default { |
|
|
|
|
this.addThings(); |
|
|
|
|
this.getScreeningData(); |
|
|
|
|
this.getLineData(); |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '手绘图加载中...', |
|
|
|
|
mask: true |
|
|
|
|
}); |
|
|
|
|
// uni.showLoading({ |
|
|
|
|
// title: '手绘图加载中...', |
|
|
|
|
// mask: true |
|
|
|
|
// }); |
|
|
|
|
// setTimeout(function () { |
|
|
|
|
// uni.hideLoading(); |
|
|
|
|
// }, 6000); |
|
|
|
@ -222,6 +227,13 @@ export default { |
|
|
|
|
if (item.id == val.detail.markerId) { |
|
|
|
|
this.pointData = item; |
|
|
|
|
this.showCover = true; |
|
|
|
|
uni.request({ |
|
|
|
|
url: this.$config.ROOTPATH + '/mobile/appletsAppointment/getPlayCount?id='+item.id, |
|
|
|
|
method:'get', |
|
|
|
|
success(res) { |
|
|
|
|
this_.count = res.data.data |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -426,11 +438,26 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 播音频 |
|
|
|
|
play(val) { |
|
|
|
|
let this_ = this |
|
|
|
|
this.showMp3Title = true; |
|
|
|
|
this.plays = false; |
|
|
|
|
uni.playBackgroundAudio({ |
|
|
|
|
dataUrl: this.$config.ROOTPATH + val |
|
|
|
|
dataUrl: this.$config.ROOTPATH + val.voiceurl |
|
|
|
|
}); |
|
|
|
|
uni.request({ |
|
|
|
|
url: this.$config.ROOTPATH + '/mobile/appletsAppointment/updatePlayCount?id='+val.id, |
|
|
|
|
method:'get', |
|
|
|
|
success(res) { |
|
|
|
|
console.log(res,'次数') |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
uni.request({ |
|
|
|
|
url: this.$config.ROOTPATH + '/mobile/appletsAppointment/getPlayCount?id='+val.id, |
|
|
|
|
method:'get', |
|
|
|
|
success(res) { |
|
|
|
|
this_.count = res.data.data |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 停音频 |
|
|
|
|
pause() { |
|
|
|
@ -601,4 +628,10 @@ map { |
|
|
|
|
top: 0rpx; |
|
|
|
|
z-index: 99; |
|
|
|
|
} |
|
|
|
|
.small-text{ |
|
|
|
|
display: inline-flex; |
|
|
|
|
color: #9e9e9e; |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
margin-left: 26rpx; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|