|
|
@@ -36,7 +36,7 @@
|
|
|
<view class="cate-item" @click="navTo('/pages/train/index')">
|
|
|
|
|
|
<image src="../../static/icon/icon5.png" style="width: 66rpx;height: 65rpx;"></image>
|
|
|
- <text>普及培训</text>
|
|
|
+ <text>培训报名</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -63,7 +63,56 @@
|
|
|
<image src="../../static/icon/moreRight.png" mode=""></image>
|
|
|
</navigator>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
+ <view class="science-section" style="padding-bottom: 20rpx;">
|
|
|
+ <view class="science-title">
|
|
|
+ <image src="../../static/img/wings-left.png" mode=""></image>
|
|
|
+ <view class="title">爱心榜</view>
|
|
|
+ <image src="../../static/img/wings-right.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="love">
|
|
|
+ <view class="love-wrap">
|
|
|
+ <!-- <view class="" style="height: 46rpx;"></view> -->
|
|
|
+ <!-- <view class="love-top">
|
|
|
+ 爱心榜
|
|
|
+ </view> -->
|
|
|
+ <view class="tab-tit flex">
|
|
|
+ <view class="tit">
|
|
|
+ 捐赠时间
|
|
|
+ </view>
|
|
|
+ <view class="tit" style="width: 30%;">
|
|
|
+ 捐献者/单位
|
|
|
+ </view>
|
|
|
+ <view class="tit" style="width: 20%;">
|
|
|
+ 捐赠金额
|
|
|
+ </view>
|
|
|
+ <view class="tit">
|
|
|
+ 捐赠意向
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="tab-tit flex tab-val" v-for="item in showLove">
|
|
|
+ <view class="tit clamp">
|
|
|
+ {{item.pay_time | getTime}}
|
|
|
+ </view>
|
|
|
+ <view class="tit clamp" style="width: 30%;">
|
|
|
+ {{item.donate_er || '佚名'}}
|
|
|
+ </view>
|
|
|
+ <view class="tit clamp" style="width: 20%;">
|
|
|
+ {{item.money*1}}
|
|
|
+ </view>
|
|
|
+ <view class="tit clamp">
|
|
|
+ {{item.intention || '红十字会人道事...'}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="lookmore" @click="navTo('/pages/index/loveList')">
|
|
|
+ 查看更多
|
|
|
+ <!-- <image src="../../static/icon/lm.png" mode="widthFix"></image> -->
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!-- sos急救系统 -->
|
|
|
<view class="system">
|
|
|
<view class="system-title">
|
|
|
@@ -115,6 +164,9 @@
|
|
|
<image src="../../static/icon/moreRight.png" mode=""></image>
|
|
|
<image src="../../static/icon/moreRight.png" mode=""></image>
|
|
|
</navigator>
|
|
|
+ <view class="" style="height: 20rpx;">
|
|
|
+
|
|
|
+ </view>
|
|
|
<view class="list-box">
|
|
|
<view class="system-title">
|
|
|
<view class="img">
|
|
|
@@ -154,6 +206,50 @@
|
|
|
<image src="../../static/icon/moreRight.png" mode=""></image>
|
|
|
<image src="../../static/icon/moreRight.png" mode=""></image>
|
|
|
</navigator>
|
|
|
+ <view class="" style="height: 20rpx;">
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <template v-if="AedList.length > 0">
|
|
|
+ <view class="list-box">
|
|
|
+ <view class="system-title">
|
|
|
+ <view class="img">
|
|
|
+ <image src="../../static/img/wings-left.png"></image>
|
|
|
+ </view>
|
|
|
+ <view class="title">AED</view>
|
|
|
+ <view class="img">
|
|
|
+ <image src="../../static/img/wings-right.png"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view id="container">
|
|
|
+ <map class="map-box" id="map" :show-location="false" :markers="markeraed" :scale='scale'
|
|
|
+ :latitude="latitude4" :longitude="longitude4" ref="map" style="height: 450rpx"
|
|
|
+ @markertap='markertap'>
|
|
|
+ </map>
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+ <view class="list-tpl flex" @click="openAddress(item)" v-for="(item,index) in AedList" :key="item.id">
|
|
|
+ <view class="list-left">
|
|
|
+ <view class="number">{{ index + 1 }}</view>
|
|
|
+ <view class="info">
|
|
|
+ <view class="title">{{ item.name }}</view>
|
|
|
+ <view class="addr">地址:{{ item.detailed_address }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="image">
|
|
|
+ <image src="../../static/img/img10.png"></image>
|
|
|
+ <view class="tip">导航</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- <uni-load-more :status="loadingType"></uni-load-more> -->
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <navigator class="science-more" url="/pages/applic/aed">
|
|
|
+ 查看更多
|
|
|
+ <image src="../../static/icon/moreRight.png" mode=""></image>
|
|
|
+ <image src="../../static/icon/moreRight.png" mode=""></image>
|
|
|
+ </navigator>
|
|
|
+ </template>
|
|
|
<uni-popup ref="popup" type="bottom" @click="close">
|
|
|
<view class="popup_row">
|
|
|
<view class="rows">
|
|
|
@@ -198,7 +294,10 @@
|
|
|
bannerlist,
|
|
|
getListAED,
|
|
|
getDistance,
|
|
|
- getdis
|
|
|
+ getdis,
|
|
|
+ getStation,
|
|
|
+ getLove,
|
|
|
+ tocall
|
|
|
} from '@/api/index.js';
|
|
|
import {
|
|
|
saveUrl,
|
|
|
@@ -223,16 +322,18 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ loveList: [],
|
|
|
jzsbList: [],
|
|
|
carouselList: [], //轮播
|
|
|
science: [], //文章列表
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
- AEDList: [],
|
|
|
+ AEDList: [],//救护站
|
|
|
+ AedList: [],//aed列表
|
|
|
latitude2: '',
|
|
|
longitude2: '',
|
|
|
- latitude4: '',
|
|
|
- longitude4: '',
|
|
|
+ latitude4: '30.647021',
|
|
|
+ longitude4: '114.133656',
|
|
|
// longitude4: '121.15829821166992',
|
|
|
// latitude4: "30.044394499237708",
|
|
|
address: '',
|
|
|
@@ -240,6 +341,7 @@
|
|
|
markerList: [],
|
|
|
marker: [],
|
|
|
markerjzsb: [],
|
|
|
+ markeraed: [],//aed图表
|
|
|
marker1: [],
|
|
|
longitude: '121.15829821166992',
|
|
|
latitude: "30.044394499237708",
|
|
|
@@ -252,138 +354,103 @@
|
|
|
to_phone: '',
|
|
|
};
|
|
|
},
|
|
|
+ filters: {
|
|
|
+ getTime(val) {
|
|
|
+ let date = new Date(val * 1000);
|
|
|
+ let Y = date.getFullYear();
|
|
|
+ let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
|
|
|
+ let D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
|
|
|
+ return Y + '/' + M + '/' + D;
|
|
|
+ },
|
|
|
+ },
|
|
|
onShow() {
|
|
|
// let token = uni.getStorageSync('token');
|
|
|
console.log(11, this);
|
|
|
- if (!this.hasLogin) {
|
|
|
- // 登录拦截
|
|
|
- // interceptor();
|
|
|
- uni.showModal({
|
|
|
- title: '登录',
|
|
|
- content: '您未登录,是否马上登陆?',
|
|
|
- success: e => {
|
|
|
- if (e.confirm) {
|
|
|
- saveUrl();
|
|
|
- interceptor();
|
|
|
- }
|
|
|
- },
|
|
|
- fail: e => {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.loadData();
|
|
|
+ // if (!this.hasLogin) {
|
|
|
+ // // 登录拦截
|
|
|
+ // // interceptor();
|
|
|
+ // uni.showModal({
|
|
|
+ // title: '登录',
|
|
|
+ // content: '您未登录,是否马上登陆?',
|
|
|
+ // success: e => {
|
|
|
+ // if (e.confirm) {
|
|
|
+ // saveUrl();
|
|
|
+ // interceptor();
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // fail: e => {
|
|
|
+ // console.log(e);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.loadData();
|
|
|
+ // }
|
|
|
+ this.loadData()
|
|
|
+ if(this.timer) {
|
|
|
+ clearTimeout(this.timer)
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
let obj = this;
|
|
|
- try {
|
|
|
- let locationAddress
|
|
|
- // #ifdef H5
|
|
|
- let wxOjb = require('jweixin-module');
|
|
|
- locationAddress = wxOjb.getLocation;
|
|
|
- // #endif
|
|
|
- // #ifdef MP
|
|
|
- locationAddress = uni.getLocation;
|
|
|
- // #endif
|
|
|
- // #ifdef H5
|
|
|
- wxOjb.ready(() => {
|
|
|
- console.log('加载完毕注册事件');
|
|
|
- locationAddress({
|
|
|
- type: 'gcj02',
|
|
|
- success: function(res) {
|
|
|
- console.log('获取经纬度', res);
|
|
|
- obj.longitude4 = res.longitude
|
|
|
- obj.latitude4 = res.latitude
|
|
|
- obj.marker = [{
|
|
|
- longitude: res.longitude,
|
|
|
- latitude: res.latitude,
|
|
|
- iconPath: '/static/img/img19.png',
|
|
|
- width: '45',
|
|
|
- height: '45',
|
|
|
- }]
|
|
|
- obj.marker1 = [{
|
|
|
- longitude: res.longitude,
|
|
|
- latitude: res.latitude,
|
|
|
- iconPath: '/static/img/img19.png',
|
|
|
- width: '45',
|
|
|
- height: '45',
|
|
|
- }]
|
|
|
- obj.loadData();
|
|
|
- obj.getJzsb()
|
|
|
- },
|
|
|
- fail(e) {
|
|
|
- console.log('失败', e);
|
|
|
- window.location.reload();
|
|
|
- }
|
|
|
- });
|
|
|
- })
|
|
|
- // #endif
|
|
|
-
|
|
|
- // #ifdef MP
|
|
|
+ let locationAddress
|
|
|
+ let wxOjb = require('jweixin-module');
|
|
|
+ locationAddress = wxOjb.getLocation;
|
|
|
+ wxOjb.ready(() => {
|
|
|
+ console.log('加载完毕注册事件');
|
|
|
locationAddress({
|
|
|
type: 'gcj02',
|
|
|
success: function(res) {
|
|
|
console.log('获取经纬度', res);
|
|
|
obj.longitude4 = res.longitude
|
|
|
obj.latitude4 = res.latitude
|
|
|
+ obj.marker = [{
|
|
|
+ longitude: res.longitude,
|
|
|
+ latitude: res.latitude,
|
|
|
+ iconPath: '/static/img/img19.png',
|
|
|
+ width: '45',
|
|
|
+ height: '45',
|
|
|
+ }]
|
|
|
+ obj.marker1 = [{
|
|
|
+ longitude: res.longitude,
|
|
|
+ latitude: res.latitude,
|
|
|
+ iconPath: '/static/img/img19.png',
|
|
|
+ width: '45',
|
|
|
+ height: '45',
|
|
|
+ }]
|
|
|
obj.loadData();
|
|
|
obj.getJzsb()
|
|
|
},
|
|
|
fail(e) {
|
|
|
console.log('失败', e);
|
|
|
- window.location.reload();
|
|
|
- }
|
|
|
- });
|
|
|
- // #endif
|
|
|
- } catch (e) {
|
|
|
- let locationAddress
|
|
|
- // #ifdef H5
|
|
|
- let wxOjb = require('jweixin-module');
|
|
|
- locationAddress = wxOjb.getLocation;
|
|
|
- // #endif
|
|
|
- // #ifdef MP
|
|
|
- locationAddress = uni.getLocation;
|
|
|
- // #endif
|
|
|
- // #ifdef H5
|
|
|
- wxOjb.ready(() => {
|
|
|
- console.log('加载完毕注册事件');
|
|
|
- locationAddress({
|
|
|
- type: 'wgs84',
|
|
|
- success: function(res) {
|
|
|
- console.log('获取经纬度', res);
|
|
|
- obj.longitude4 = res.longitude
|
|
|
- obj.latitude4 = res.latitude
|
|
|
- obj.loadData();
|
|
|
- obj.getJzsb()
|
|
|
- },
|
|
|
- fail(e) {
|
|
|
- console.log('失败', e);
|
|
|
- window.location.reload();
|
|
|
- }
|
|
|
- });
|
|
|
- })
|
|
|
- // #endif
|
|
|
- // #ifdef MP
|
|
|
- locationAddress({
|
|
|
- type: 'wgs84',
|
|
|
- success: function(res) {
|
|
|
- console.log('获取经纬度', res);
|
|
|
- obj.longitude4 = res.longitude
|
|
|
- obj.latitude4 = res.latitude
|
|
|
+ // window.location.reload();
|
|
|
+ //30.647021,114.133656
|
|
|
+ obj.longitude4 = '114.133656'
|
|
|
+ obj.latitude4 = '30.647021'
|
|
|
+ obj.marker = [{
|
|
|
+ longitude: res.longitude,
|
|
|
+ latitude: res.latitude,
|
|
|
+ iconPath: '/static/img/img19.png',
|
|
|
+ width: '45',
|
|
|
+ height: '45',
|
|
|
+ }]
|
|
|
+ obj.marker1 = [{
|
|
|
+ longitude: res.longitude,
|
|
|
+ latitude: res.latitude,
|
|
|
+ iconPath: '/static/img/img19.png',
|
|
|
+ width: '45',
|
|
|
+ height: '45',
|
|
|
+ }]
|
|
|
obj.loadData();
|
|
|
obj.getJzsb()
|
|
|
- },
|
|
|
- fail(e) {
|
|
|
- console.log('失败', e);
|
|
|
- window.location.reload();
|
|
|
}
|
|
|
});
|
|
|
- // #endif
|
|
|
- }
|
|
|
+ })
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState('user', ['userInfo', 'baseURL', 'hasLogin'])
|
|
|
+ ...mapState('user', ['userInfo', 'baseURL', 'hasLogin']),
|
|
|
+ showLove() {
|
|
|
+ return this.loveList.slice(0, 5);
|
|
|
+ }
|
|
|
},
|
|
|
// 下拉加载
|
|
|
onReachBottom() {
|
|
|
@@ -391,53 +458,67 @@
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations('user', ['setUserInfo']),
|
|
|
+ gundong() {
|
|
|
+ let obj = this;
|
|
|
+ obj.timer = setTimeout(() => {
|
|
|
+ obj.loveList.push(obj.loveList.shift());
|
|
|
+ // console.log(obj.moreJxList)
|
|
|
+ obj.gundong();
|
|
|
+ }, 2000);
|
|
|
+ },
|
|
|
+ getLove(index_start_time,index_end_time) {
|
|
|
+ let obj = this
|
|
|
+ getLove({
|
|
|
+ page: 1,
|
|
|
+ limit: 100,
|
|
|
+ data:index_start_time+ ' - ' + index_end_time
|
|
|
+ }).then(res => {
|
|
|
+ this.loveList = res.data.data
|
|
|
+ if(obj.loveList.length > 5) {
|
|
|
+ obj.gundong();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
cancel() {
|
|
|
this.$refs.popups.close();
|
|
|
},
|
|
|
- comfirm1: function() {
|
|
|
- let obj = this;
|
|
|
- if (obj.to_phone.toString().trim() == '') {
|
|
|
- // uni.showModal({
|
|
|
- // title:'输入框为空',
|
|
|
- // // content:JSON.stringify(obj)
|
|
|
- // })
|
|
|
- } else {
|
|
|
- console.log('obj.to_phone1111', obj.to_phone);
|
|
|
- const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
|
|
|
- if (!reg.test(obj.to_phone)) {
|
|
|
- obj.$api.msg('请填写正确的手机号码');
|
|
|
- return;
|
|
|
+ comfirm1() {
|
|
|
+ let obj = this;
|
|
|
+ if (obj.to_phone.toString().trim() == '') {
|
|
|
+ // uni.showModal({
|
|
|
+ // title:'输入框为空',
|
|
|
+ // // content:JSON.stringify(obj)
|
|
|
+ // })
|
|
|
+ } else {
|
|
|
+ console.log('obj.to_phone1111', obj.to_phone);
|
|
|
+ const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
|
|
|
+ if (!reg.test(obj.to_phone)) {
|
|
|
+ obj.$api.msg('请填写正确的手机号码');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ tocall({
|
|
|
+ name: obj.name,
|
|
|
+ uid: obj.uid,
|
|
|
+ phone: obj.phone,
|
|
|
+ longitude: obj.longitude4,
|
|
|
+ latitude: obj.latitude4,
|
|
|
+ to_phone: obj.to_phone
|
|
|
+ }).then(data => {
|
|
|
+ console.log(99988, data);
|
|
|
+ uni.showModal({
|
|
|
+ title: '请耐心等待救援',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ window.location.reload(); //重新刷新页面
|
|
|
+ }
|
|
|
}
|
|
|
- console.log('name:', obj.name);
|
|
|
- console.log('uid:', obj.uid);
|
|
|
- console.log('phone', obj.phone);
|
|
|
- console.log('to_phone', obj.to_phone);
|
|
|
- console.log('longitude', obj.longitude);
|
|
|
- console.log('latitude', obj.latitude);
|
|
|
- console.log('iscall', obj.iscall);
|
|
|
- tocall({
|
|
|
- name: obj.name,
|
|
|
- uid: obj.uid,
|
|
|
- phone: obj.phone,
|
|
|
- longitude: obj.longitude4,
|
|
|
- latitude: obj.latitude4,
|
|
|
- to_phone: obj.to_phone
|
|
|
- }).then(data => {
|
|
|
- console.log(99988, data);
|
|
|
- uni.showModal({
|
|
|
- title: '请耐心等待救援',
|
|
|
- success: res => {
|
|
|
- if (res.confirm) {
|
|
|
- window.location.reload(); //重新刷新页面
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- obj.$refs.popups.close();
|
|
|
- obj.iscall = false;
|
|
|
- console.log(123, obj.iscall);
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
+ });
|
|
|
+ obj.$refs.popups.close();
|
|
|
+ obj.iscall = false;
|
|
|
+ console.log(123, obj.iscall);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
// 立即救援
|
|
|
rescue(item, index) {
|
|
|
let obj = this;
|
|
|
@@ -552,22 +633,39 @@
|
|
|
loadData() {
|
|
|
let obj = this;
|
|
|
console.log('打印当前经纬度', obj.longitude4, obj.latitude4)
|
|
|
- userinfo({}).then(({
|
|
|
+ // userinfo({}).then(({
|
|
|
+ // data
|
|
|
+ // }) => {
|
|
|
+ // obj.setUserInfo(data);
|
|
|
+ // loadIndexs({}).then(({
|
|
|
+ // data
|
|
|
+ // }) => {
|
|
|
+ // obj.carouselList = data.banner; //轮播图
|
|
|
+ // bannerlist().then(({
|
|
|
+ // data
|
|
|
+ // }) => {
|
|
|
+ // console.log(data);
|
|
|
+ // obj.science = data;
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+
|
|
|
+ // });
|
|
|
+ loadIndexs({}).then(({
|
|
|
data
|
|
|
}) => {
|
|
|
- obj.setUserInfo(data);
|
|
|
- loadIndexs({}).then(({
|
|
|
+ obj.carouselList = data.banner; //轮播图
|
|
|
+ console.log(data.index_end_time,)
|
|
|
+ if(data.index_end_time && data.index_statr_time) {
|
|
|
+ console.log('zz')
|
|
|
+ this.getLove(data.index_statr_time,data.index_end_time)
|
|
|
+ }else {
|
|
|
+ this.getLove()
|
|
|
+ }
|
|
|
+ bannerlist().then(({
|
|
|
data
|
|
|
}) => {
|
|
|
- obj.carouselList = data.banner; //轮播图
|
|
|
- bannerlist().then(({
|
|
|
- data
|
|
|
- }) => {
|
|
|
- console.log(data);
|
|
|
- obj.science = data;
|
|
|
- });
|
|
|
+ obj.science = data;
|
|
|
});
|
|
|
-
|
|
|
});
|
|
|
if (obj.loadingType === 'noMore') {
|
|
|
//防止重复加载
|
|
|
@@ -575,23 +673,7 @@
|
|
|
}
|
|
|
// 修改当前对象状态为加载中
|
|
|
obj.loadingType = 'loading';
|
|
|
- // getListAED({
|
|
|
- // page: obj.page,
|
|
|
- // limit: obj.limit
|
|
|
- // }).then(({
|
|
|
- // data
|
|
|
- // }) => {
|
|
|
- // console.log(data, 999)
|
|
|
- // // obj.AEDList = data
|
|
|
- // obj.AEDList = obj.AEDList.concat(data);
|
|
|
- // obj.markerList = data
|
|
|
- // obj.page++;
|
|
|
- // if (obj.limit == data.length) {
|
|
|
- // obj.loadingType = 'more';
|
|
|
- // } else {
|
|
|
- // obj.loadingType = 'noMore';
|
|
|
- // }
|
|
|
- // })
|
|
|
+ obj.getStation()
|
|
|
getDistance({
|
|
|
lng1: obj.longitude4,
|
|
|
lat1: obj.latitude4
|
|
|
@@ -613,10 +695,6 @@
|
|
|
obj.marker = obj.marker.concat(arr)
|
|
|
obj.marker = obj.marker.slice(0, 6)
|
|
|
console.log('obj.marker', obj.marker)
|
|
|
- // uni.showModal({
|
|
|
- // title: '提示',
|
|
|
- // content: JSON.stringify(obj.marker)
|
|
|
- // })
|
|
|
})
|
|
|
obj.getJzsb()
|
|
|
},
|
|
|
@@ -671,11 +749,28 @@
|
|
|
}).catch(err => {
|
|
|
console.log(err);
|
|
|
uni.hideLoading();
|
|
|
- // uni.showModal({
|
|
|
- // title: '失败',
|
|
|
- // content: JSON.stringify(err)
|
|
|
- // });
|
|
|
});
|
|
|
+ },
|
|
|
+ getStation() {
|
|
|
+ getStation({
|
|
|
+ longitude: this.longitude4,
|
|
|
+ latitude: this.latitude4,
|
|
|
+ page: 1,
|
|
|
+ limit: 3
|
|
|
+ }).then(res => {
|
|
|
+ this.AedList = res.data.list.slice(0, 3)
|
|
|
+ let arr =this.AedList.map(item => ({
|
|
|
+ latitude: item.latitude,
|
|
|
+ longitude: item.longitude,
|
|
|
+ iconPath: '/static/icon/aed-na.png',
|
|
|
+ width: '35',
|
|
|
+ height: '35',
|
|
|
+ id: item.id,
|
|
|
+ address: item.detailed_address
|
|
|
+ }))
|
|
|
+ this.markeraed = this.marker1.concat(arr)
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -1000,15 +1095,13 @@
|
|
|
|
|
|
.list-tpl {
|
|
|
background-color: #FFFFFF;
|
|
|
- margin: 25rpx 0rpx;
|
|
|
+ margin: 25rpx 0rpx 0;
|
|
|
padding: 25rpx 25rpx;
|
|
|
font-size: 28rpx;
|
|
|
border-radius: 15rpx;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- // &:last-of-type {
|
|
|
- // margin-bottom: 0;
|
|
|
- // }
|
|
|
+
|
|
|
.list-left {
|
|
|
display: flex;
|
|
|
width: 100%;
|
|
|
@@ -1059,6 +1152,7 @@
|
|
|
align-items: center;
|
|
|
border-bottom: 1rpx solid #e7e8ea;
|
|
|
padding: 15rpx 30rpx;
|
|
|
+
|
|
|
// margin: auto;
|
|
|
.box-left {
|
|
|
display: flex;
|
|
|
@@ -1144,6 +1238,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.popup_rows {
|
|
|
// margin-top: 108rpx;
|
|
|
height: 440rpx;
|
|
|
@@ -1152,6 +1247,7 @@
|
|
|
padding: 24rpx;
|
|
|
background-color: #f8f8f8;
|
|
|
z-index: 999;
|
|
|
+
|
|
|
.title {
|
|
|
border-bottom: 2rpx solid #f2f2f2;
|
|
|
color: #e63931;
|
|
|
@@ -1160,39 +1256,46 @@
|
|
|
padding-bottom: 16rpx;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
+
|
|
|
// align-items: center;
|
|
|
.cancel {
|
|
|
margin-left: 52rpx;
|
|
|
width: 36rpx;
|
|
|
height: 36rpx;
|
|
|
+
|
|
|
image {
|
|
|
width: 36rpx;
|
|
|
height: 36rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.inpBox {
|
|
|
margin-top: 52rpx;
|
|
|
border: 2px solid #f2f2f2;
|
|
|
padding: 12rpx 24rpx;
|
|
|
color: #ff9797;
|
|
|
border-radius: 8rpx;
|
|
|
+
|
|
|
.input-placeholder {
|
|
|
// height: 70rpx;
|
|
|
font-size: 32rpx;
|
|
|
color: #ff9797;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.inpedit {
|
|
|
margin-top: 24rpx;
|
|
|
margin-left: 14rpx;
|
|
|
font-size: 28rpx;
|
|
|
color: #ff9797;
|
|
|
}
|
|
|
+
|
|
|
.comfirm {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
margin-top: 54rpx;
|
|
|
+
|
|
|
.comfirm1 {
|
|
|
padding: 12rpx 24rpx;
|
|
|
border-radius: 12rpx;
|
|
|
@@ -1201,6 +1304,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.science-more {
|
|
|
background-color: #fff;
|
|
|
display: flex;
|
|
|
@@ -1210,10 +1314,66 @@
|
|
|
font-size: 30rpx;
|
|
|
padding-top: 18rpx;
|
|
|
padding-bottom: 18rpx;
|
|
|
-
|
|
|
+
|
|
|
image {
|
|
|
width: 20rpx;
|
|
|
height: 27rpx;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+ .love {
|
|
|
+ background: #FFFFFF;
|
|
|
+ }
|
|
|
+ .love-wrap {
|
|
|
+ margin: auto;
|
|
|
+ width: 694rpx;
|
|
|
+ // height: 309px;
|
|
|
+
|
|
|
+ box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1000);
|
|
|
+ border-radius: 30rpx;
|
|
|
+ position: relative;
|
|
|
+ text-align: center;
|
|
|
+ .love-top {
|
|
|
+ width: 185rpx;
|
|
|
+ line-height: 55rpx;
|
|
|
+ background: #FF4C4C;
|
|
|
+ border-radius: 28rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FFFFFF;
|
|
|
+ text-align: center;
|
|
|
+ position: absolute;
|
|
|
+ top: -25rpx;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ margin: auto;
|
|
|
+ }
|
|
|
+ .tab-tit {
|
|
|
+ line-height: 65rpx;
|
|
|
+ border-bottom: 1px solid #F2F2F2;
|
|
|
+ .tit {
|
|
|
+ width: 25%;
|
|
|
+ font-size: 20rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FF4C4C;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .tab-val {
|
|
|
+ .tit {
|
|
|
+ color: #101010;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .lookmore {
|
|
|
+ padding: 10rpx 0;
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #090909;
|
|
|
+ image {
|
|
|
+ display: inline-block;
|
|
|
+ margin-left: 10rpx;
|
|
|
+ width: 18rpx;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|