|
|
@@ -67,7 +67,7 @@
|
|
|
<top-title :title="'救在身边'" navurl="/pages/applic/location" :show_more="true"></top-title>
|
|
|
<view class="system-map">
|
|
|
<map class="map-box" id="map" show-location :markers="jzsbmarker" :scale="scale" :latitude="latitude4"
|
|
|
- :longitude="longitude4" ref="map" @markertap="markertap"></map>
|
|
|
+ :longitude="longitude4" ref="map" @markertap="markertap" :show-location="false"></map>
|
|
|
</view>
|
|
|
<view class="" style="padding-top: 80rpx;">
|
|
|
<view v-for="(item,index) in jzsblist" :key="item.id">
|
|
|
@@ -117,7 +117,8 @@
|
|
|
</view>
|
|
|
<view id="container">
|
|
|
<map class="map-box" id="map" show-location :markers="jhzmarker" :scale="scale" :latitude="latitude4"
|
|
|
- :longitude="longitude4" ref="map" style="height: 450rpx" @markertap="jhzmarkertap"></map>
|
|
|
+ :longitude="longitude4" ref="map" style="height: 450rpx" @markertap="jhzmarkertap"
|
|
|
+ :show-location="false"></map>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<view class="list-tpl flex" @click="openAddress(item)" v-for="(item, index) in Mechanism"
|
|
|
@@ -145,7 +146,8 @@
|
|
|
</view>
|
|
|
<view id="container">
|
|
|
<map class="map-box" id="map" show-location :markers="aedmarker" :scale="scale" :latitude="latitude4"
|
|
|
- :longitude="longitude4" ref="map" style="height: 450rpx" @markertap="aedmarkertap"></map>
|
|
|
+ :longitude="longitude4" ref="map" style="height: 450rpx" @markertap="aedmarkertap"
|
|
|
+ :show-location="false"></map>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<view class="list-tpl flex" @click="openAddress(item)" v-for="(item, index) in AEDList" :key="item.id">
|
|
|
@@ -322,6 +324,15 @@
|
|
|
// #ifdef H5
|
|
|
wxOjb.ready(() => {
|
|
|
console.log('加载完毕注册事件');
|
|
|
+ wxOjb.updateAppMessageShareData({
|
|
|
+ title: '松滋市红十字会',// 分享标题
|
|
|
+ desc: '弘扬红十字精神,传播红十字观念,宣传红十字工作,这是一个汇聚爱心、救助之家力量的平台!',// 分享描述
|
|
|
+ link: 'http://jz.red.igxys.com/szs',// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
+ imgUrl: 'http://jz.red.igxys.com/static/img/22.jpg',// 分享图标
|
|
|
+ success: function() {
|
|
|
+ console.log('分享数据',)
|
|
|
+ }
|
|
|
+ })
|
|
|
locationAddress({
|
|
|
type: 'gcj02',
|
|
|
success: function(res) {
|
|
|
@@ -348,7 +359,7 @@
|
|
|
|
|
|
// #ifdef MP
|
|
|
locationAddress({
|
|
|
- type: 'wgs84',
|
|
|
+ type: 'gcj02',
|
|
|
success: function(res) {
|
|
|
console.log('获取经纬度', res);
|
|
|
obj.longitude4 = res.longitude;
|
|
|
@@ -421,6 +432,19 @@
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations('user', ['setUserInfo']),
|
|
|
+ // IndexShare() {
|
|
|
+ // let obj = this;
|
|
|
+ // // let money = obj.money;
|
|
|
+ // let item = {
|
|
|
+ // link: 'http://jz.red.igxys.com/szs, // 分享链接
|
|
|
+ // imgUrl: 'http://jz.red.igxys.com/static/img/22.jpg',
|
|
|
+ // desc: '弘扬红十字精神,传播红十字观念,宣传红十字工作,这是一个汇聚爱心、救助之家力量的平台!',
|
|
|
+ // title: '松滋市红十字会',
|
|
|
+ // success: console.log('分享加载成功')
|
|
|
+ // };
|
|
|
+ // console.log('分享加', item);
|
|
|
+ // weixindata(item);
|
|
|
+ // },
|
|
|
tocontribution() {
|
|
|
uni.navigateTo({
|
|
|
// url: "/pages/applic/contribution"
|
|
|
@@ -575,7 +599,8 @@
|
|
|
console.log(data, 999);
|
|
|
// obj.AEDList = data
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
- data[i].space = obj.space(obj.latitude4, obj.longitude4, data[i].latitude, data[i].longitude);
|
|
|
+ data[i].space = obj.space(obj.latitude4, obj.longitude4, data[i].latitude, data[i]
|
|
|
+ .longitude);
|
|
|
}
|
|
|
obj.AEDList = data;
|
|
|
let arr = data.map(item => ({
|
|
|
@@ -599,7 +624,8 @@
|
|
|
}) => {
|
|
|
console.log(data, '机构+++++++++++++')
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
- data[i].space = obj.space(obj.latitude4, obj.longitude4, data[i].latitude, data[i].longitude);
|
|
|
+ data[i].space = obj.space(obj.latitude4, obj.longitude4, data[i].latitude, data[i]
|
|
|
+ .longitude);
|
|
|
}
|
|
|
let arr = data.map(item => ({
|
|
|
latitude: item.latitude,
|
|
|
@@ -621,7 +647,7 @@
|
|
|
limit: 2
|
|
|
}).then((res) => {
|
|
|
let data = res.data;
|
|
|
- data = data.slice(0,2)
|
|
|
+ data = data.slice(0, 2)
|
|
|
console.log('就在身边请求数据', data);
|
|
|
console.log('data.phone333', data.phone)
|
|
|
data = data.map(d => {
|
|
|
@@ -631,7 +657,7 @@
|
|
|
}
|
|
|
})
|
|
|
obj.jzsblist = data;
|
|
|
-
|
|
|
+
|
|
|
let arr = data.map(item => ({
|
|
|
latitude: item.latitude,
|
|
|
longitude: item.longitude,
|
|
|
@@ -1185,18 +1211,18 @@
|
|
|
// height: 393rpx;
|
|
|
padding: 30rpx 30rpx 40rpx 30rpx;
|
|
|
background-color: #fff;
|
|
|
-
|
|
|
+
|
|
|
.red-nav {
|
|
|
padding-top: 25rpx;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
-
|
|
|
+
|
|
|
.nav-item {
|
|
|
width: 330rpx;
|
|
|
height: 175rpx;
|
|
|
background: #FFF4F2;
|
|
|
border-radius: 15rpx;
|
|
|
-
|
|
|
+
|
|
|
image {
|
|
|
width: 330rpx;
|
|
|
height: 175rpx;
|