hookehuyr

调整导航功能

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