hookehuyr

调整导航功能

......@@ -28,13 +28,13 @@
</div>
</div>
<div class="van-hairline--top" style="margin: 1rem 0;">
<div @click="goTo()" style="width: 50%; float: left; text-align: center; margin-top: 1rem;"
<div @click="goToUrl()" style="width: 50%; float: left; text-align: center; margin-top: 1rem;"
class="van-hairline--right">
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E5%89%8D%E5%BE%80@2x.png" size="1.5rem" color="#FFF"
style="vertical-align: bottom;" />&nbsp;
<span style="color: #AB8F57; font-size: 1.1rem;">详情</span>
</div>
<div style="width: 50%; float: left; text-align: center; margin-top: 1rem;">
<div @click="goToLocation()" style="width: 50%; float: left; text-align: center; margin-top: 1rem;">
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E5%89%8D%E5%BE%80@2x.png" size="1.5rem" color="#FFF"
style="vertical-align: bottom;" />&nbsp;
<span style="color: #AB8F57; font-size: 1.1rem;">前往</span>
......@@ -200,7 +200,7 @@ export default {
this.audio.pause();
this.is_play = false;
},
goTo(url) {
goToUrl(url) {
location.href = this.info.details[this.isActive].url;
},
handleTitle (index) {
......@@ -226,6 +226,9 @@ export default {
}, 1000);
}, 100);
}
},
goToLocation () {
this.$emit('onLocation', this.info.position)
}
}
}
......
This diff is collapsed. Click to expand it.