|
@ -38,7 +38,7 @@ |
|
|
<view class="subtitle">便民快捷购票入口</view> |
|
|
<view class="subtitle">便民快捷购票入口</view> |
|
|
<image src="https://static.ticket.sz-trip.com/tongli/images/index/rightIcons1.png" mode=""></image> |
|
|
<image src="https://static.ticket.sz-trip.com/tongli/images/index/rightIcons1.png" mode=""></image> |
|
|
</view> |
|
|
</view> |
|
|
<view :style="{backgroundImage: 'url('+showImg(homeUi['dtdl'])+')'}" @click="gotoPath('plugin://myPlugin/index')"> |
|
|
<view :style="{backgroundImage: 'url('+showImg(homeUi['dtdl'])+')'}" @click="gotoMap"> |
|
|
<view class="title">地图导览</view> |
|
|
<view class="title">地图导览</view> |
|
|
<view class="subtitle">随时随地发现新旅程</view> |
|
|
<view class="subtitle">随时随地发现新旅程</view> |
|
|
<image src="https://static.ticket.sz-trip.com/tongli/images/index/rightIcons.png" mode=""></image> |
|
|
<image src="https://static.ticket.sz-trip.com/tongli/images/index/rightIcons.png" mode=""></image> |
|
@ -207,6 +207,16 @@ |
|
|
this.getLatest() |
|
|
this.getLatest() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
// 去地图导览 |
|
|
|
|
|
gotoMap() { |
|
|
|
|
|
// 必须登录 |
|
|
|
|
|
let userInfo = (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo'))) || this.$store.state.user.userInfo || {} |
|
|
|
|
|
if(userInfo.token) { |
|
|
|
|
|
this.gotoPath('plugin://guide/index') |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$store.commit('changeLoginPath') |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
//轮播图左右滑动 |
|
|
//轮播图左右滑动 |
|
|
swiperChange(e) { |
|
|
swiperChange(e) { |
|
|
this.current = e.detail.current; |
|
|
this.current = e.detail.current; |
|
|