|
|
@ -40,7 +40,7 @@ |
|
|
|
<!-- 精钢区 --> |
|
|
|
<view class="card traTop"> |
|
|
|
<view class="ul"> |
|
|
|
<view class="li" v-for="(item,index) in entrySection" :key="index" @click="item.click(item)"> |
|
|
|
<view class="li" v-for="(item,index) in entrySection" :key="index" @tap="$goPage(item.url)"> |
|
|
|
<view class="icon"> |
|
|
|
<image :src="item.icon" mode=""></image> |
|
|
|
</view> |
|
|
@ -128,15 +128,16 @@ |
|
|
|
text: '我要报名', |
|
|
|
icon: require('../../../static/images/index/ic_baoming.png'), |
|
|
|
url: '/pages/indexEntry/enroll/enroll', |
|
|
|
click: (item)=>{ |
|
|
|
this.$goPage(item.url) |
|
|
|
goPage: function (){ |
|
|
|
console.log(666) |
|
|
|
// this.$goPage(item.url) |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: '找驾校', |
|
|
|
icon: require('../../../static/images/index/ic_jiaxiao.png'), |
|
|
|
url: '/pages/indexEntry/findShcool/findShcool', |
|
|
|
click: (item)=>{ |
|
|
|
goPage: (item)=>{ |
|
|
|
this.$goPage(item.url) |
|
|
|
} |
|
|
|
}, |
|
|
@ -144,32 +145,32 @@ |
|
|
|
text: '找考场', |
|
|
|
icon: require('../../../static/images/index/ic_kaochang.png'), |
|
|
|
url: '/pages/indexEntry/examines/examines', |
|
|
|
click: (item)=>{ |
|
|
|
goPage: ((item)=>{ |
|
|
|
this.$goPage(item.url) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: '找驾驶馆', |
|
|
|
icon: require('../../../static/images/index/ic_jsg.png'), |
|
|
|
url: '/pages/carEntry/simulateAppointment/simulateAppointment', |
|
|
|
click: (item)=>{ |
|
|
|
goPage: ((item)=>{ |
|
|
|
this.$goPage(item.url) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: '找陪练', |
|
|
|
icon: require('../../../static/images/index/ic_peilian.png'), |
|
|
|
click: (item)=>{ |
|
|
|
goPage: ((item)=>{ |
|
|
|
this.$u.toast('正在开发中,敬请期待...') |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: '理论学习', |
|
|
|
icon: require('../../../static/images/index/ic_lilun.png'), |
|
|
|
url: '/pages/indexEntry/theory/theory', |
|
|
|
click: (item)=>{ |
|
|
|
goPage: ((item)=>{ |
|
|
|
this.$goPage(item.url) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
], |
|
|
|
moreSection: [{ |
|
|
@ -276,9 +277,20 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
async onLoad() { |
|
|
|
await this.$store.dispatch('getCity') |
|
|
|
console.log('有 啦') |
|
|
|
console.log(this.$store.state.user.vuex_cityInfo) |
|
|
|
// uni.getLocation({ |
|
|
|
// type: 'wgs84', |
|
|
|
// success: function (res) { |
|
|
|
// console.log('当前位置的经度:' + res.longitude); |
|
|
|
// console.log('当前位置的纬度:' + res.latitude); |
|
|
|
// }, |
|
|
|
// fail(err) { |
|
|
|
// console.log(err) |
|
|
|
// } |
|
|
|
// }); |
|
|
|
if(!this.$store.state.user.vuex_cityInfo.lat) { |
|
|
|
await this.$store.dispatch('getCity') |
|
|
|
} |
|
|
|
|
|
|
|
// console.log(this.$store.state.user.vuex_cityInfo) |
|
|
|
}, |
|
|
|
|
|
|
|