|
|
|
@ -1,9 +1,11 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="box"> |
|
|
|
|
<view class="top"> |
|
|
|
|
<view class=""> |
|
|
|
|
<view class="top box"> |
|
|
|
|
<view class="img-play"> |
|
|
|
|
<image style="width: 100%; height: 100%; background-color: #eeeeee" :mode="item.mode" :src="baseUrl + datas.imgsl"></image> |
|
|
|
|
<view class="play-stop" v-if="plays&&datas.voiceurl" @click="play(datas.voiceurl)"><image style="width: 50rpx; height: 50rpx;padding:10rpx" src="../../static/img/icon_play.png"></image></view> |
|
|
|
|
<view class="play-stop" v-if="plays && datas.voiceurl" @click="play(datas.voiceurl)"> |
|
|
|
|
<image style="width: 50rpx; height: 50rpx; padding: 10rpx" src="../../static/img/icon_play.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="play-stop" v-if="!plays" @click="pause()"><image style="width: 50rpx; height: 50rpx; padding: 10rpx" src="../../static/img/icon_stop.png"></image></view> |
|
|
|
|
</view> |
|
|
|
|
<view class="top-right"> |
|
|
|
@ -12,19 +14,30 @@ |
|
|
|
|
<view class="sencien-price">门票:{{ datas.ticketprice }}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content"> |
|
|
|
|
<view>景区简介</view> |
|
|
|
|
<view class="content box"> |
|
|
|
|
<view class="box-title">景区简介</view> |
|
|
|
|
<mp-html :content="datas.content"></mp-html> |
|
|
|
|
</view> |
|
|
|
|
<view class="picture"> |
|
|
|
|
<view class="picture box"> |
|
|
|
|
<view class="box-title">景点图集</view> |
|
|
|
|
<view class="img-box" v-for="(item, index) in imgs"> |
|
|
|
|
<image class="img" :src="baseUrl + item"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="bottom"> |
|
|
|
|
<view><uni-icons class="icn" type="location" size="20" color="#989898"></uni-icons>{{datas.addr}}</view> |
|
|
|
|
<view><uni-icons class="icn" type="eye" size="20" color="#989898"></uni-icons>{{datas.opentime}}</view> |
|
|
|
|
<view @click="callPhone('tel')"><uni-icons class="icn" type="phone" size="20" color="#989898"></uni-icons>{{datas.tel}}</view> |
|
|
|
|
<view class="bottom box"> |
|
|
|
|
<view> |
|
|
|
|
<uni-icons class="icn" type="location" size="20" color="#989898"></uni-icons> |
|
|
|
|
{{ datas.addr }} |
|
|
|
|
</view> |
|
|
|
|
<view> |
|
|
|
|
<!-- <uni-icons class="icn" type="eye" size="20" color="#989898"></uni-icons> --> |
|
|
|
|
<span class="iconfont"></span> |
|
|
|
|
{{ datas.opentime }} |
|
|
|
|
</view> |
|
|
|
|
<view @click="callPhone('tel')"> |
|
|
|
|
<uni-icons class="icn" type="phone" size="20" color="#989898"></uni-icons> |
|
|
|
|
{{ datas.tel }} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
@ -36,7 +49,7 @@ export default { |
|
|
|
|
datas: null, |
|
|
|
|
imgs: null, |
|
|
|
|
baseUrl: this.$config.ROOTPATH, |
|
|
|
|
plays: true, |
|
|
|
|
plays: true |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
onLoad(options) { |
|
|
|
@ -45,7 +58,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getDetail(val) { |
|
|
|
|
let this_ = this |
|
|
|
|
let this_ = this; |
|
|
|
|
uni.request({ |
|
|
|
|
url: this.$config.ROOTPATH + '/mobile/mapScenic/qylyScenicinfoById?userkey=' + this.$param.userkey + '&id=' + val, |
|
|
|
|
method: 'get', |
|
|
|
@ -71,7 +84,7 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
pause() { |
|
|
|
|
let this_ = this |
|
|
|
|
let this_ = this; |
|
|
|
|
uni.stopBackgroundAudio({ |
|
|
|
|
success: function () { |
|
|
|
|
this_.showMp3Title = false; |
|
|
|
@ -82,7 +95,7 @@ export default { |
|
|
|
|
callPhone() { |
|
|
|
|
uni.makePhoneCall({ |
|
|
|
|
phoneNumber: '03193928888' //仅为示例,并非真实的电话号码 |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
@ -90,12 +103,15 @@ export default { |
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
.box { |
|
|
|
|
padding: 20rpx 25rpx 100rpx 25rpx; |
|
|
|
|
padding: 20rpx 25rpx 60rpx 25rpx; |
|
|
|
|
border-bottom: solid 10rpx #d8d8d8; |
|
|
|
|
} |
|
|
|
|
.box:last-child { |
|
|
|
|
border: none; |
|
|
|
|
} |
|
|
|
|
.top { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-bottom: 40rpx; |
|
|
|
|
} |
|
|
|
|
.img-play { |
|
|
|
|
width: 140rpx; |
|
|
|
@ -130,7 +146,8 @@ export default { |
|
|
|
|
color: #b31414; |
|
|
|
|
margin-top: 10rpx; |
|
|
|
|
} |
|
|
|
|
.content,.picture{ |
|
|
|
|
.content, |
|
|
|
|
.picture { |
|
|
|
|
margin-bottom: 40rpx; |
|
|
|
|
} |
|
|
|
|
.img-box { |
|
|
|
@ -145,4 +162,8 @@ export default { |
|
|
|
|
.icn { |
|
|
|
|
margin-right: 15rpx; |
|
|
|
|
} |
|
|
|
|
.box-title { |
|
|
|
|
font-size: 38rpx; |
|
|
|
|
margin-bottom: 25rpx; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|