|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="">
|
|
|
- <view class="cu-card case card" v-for="(item,index) in list" :key="index">
|
|
|
+ <view class="cu-card case card" v-for="(item,index) in list" :key="index" @click="$jump('/pages/activity/activity')">
|
|
|
<view class="cu-item shadow">
|
|
|
<view class="image">
|
|
|
<image style="width: 100%;height: 450rpx;" :src="item.pic"></image>
|
|
|
@@ -17,7 +17,7 @@
|
|
|
<image src="../../../static/del/map1.png" mode=""></image>
|
|
|
<text>距此3.5km</text>
|
|
|
</view>
|
|
|
- <view class="">
|
|
|
+ <view class="" @click.stop="checkLine(item)">
|
|
|
<image style="width: 40rpx;height: 40rpx;" src="../../../static/del/lx.png" mode=""></image>
|
|
|
<text>查看路线</text>
|
|
|
</view>
|
|
|
@@ -41,6 +41,14 @@
|
|
|
return {
|
|
|
|
|
|
}
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ checkLine(item){
|
|
|
+ uni.openLocation({
|
|
|
+ latitude:parseFloat(item.latitude),
|
|
|
+ longitude:parseFloat(item.longitude)
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|