|
@@ -0,0 +1,1338 @@
|
|
|
+<template>
|
|
|
+ <view class="content">
|
|
|
+ <view class="" style="height: 20rpx;"></view>
|
|
|
+ <!-- 调转item -->
|
|
|
+ <view class="tool-item" v-for=" item in actionList.list" @click="navto(item.path)">
|
|
|
+ <view class="item-img">
|
|
|
+ <image :src="item.img" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="item-tit">
|
|
|
+ {{item.name}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 地图 -->
|
|
|
+ <template v-if="type == 5">
|
|
|
+ <view class="system">
|
|
|
+ <top-title :title="'救在身边'" navurl="/pages/applic/location" :show_more="true"></top-title>
|
|
|
+ <view class="system-map">
|
|
|
+ <map class="map-box" show-location :markers="jzsbmarker" :scale="scale" :latitude="latitude"
|
|
|
+ :longitude="longitude" 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">
|
|
|
+ <view class="location-item">
|
|
|
+ <view class="box-left">
|
|
|
+ <view class="img01">
|
|
|
+ <image src="../../static/img/line01.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="img02" v-if="item.info !=null">
|
|
|
+ <image src="../../static/img/002.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="img02" v-else>
|
|
|
+ <image src="../../static/img/002.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="info">
|
|
|
+ <view class="info-header">
|
|
|
+ <view class="name">
|
|
|
+ 救护员{{ index +1 }}
|
|
|
+ </view>
|
|
|
+ <view class="distance">
|
|
|
+ {{item.range >= 1 ? (item.range + 'km') : (item.distance + 'm')}}
|
|
|
+ </view>
|
|
|
+ <view class="location-icon">
|
|
|
+ <image src="../../static/img/location-icon.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="address">
|
|
|
+ {{ item.address }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="box-right">
|
|
|
+ <view class="img" v-if="item.is_create == 0" @click="rescue(item,index)">
|
|
|
+ <image src="../../static/img/rescue.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="called" v-else>
|
|
|
+ 已呼叫
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-box">
|
|
|
+ <view class="system-title">
|
|
|
+ <top-title :title="'救护站'" :navurl="'/pages/applic/aid'" :show_more="true"></top-title>
|
|
|
+ </view>
|
|
|
+ <view id="container">
|
|
|
+ <map class="map-box" show-location :markers="jhzmarker" :scale="scale" :latitude="latitude"
|
|
|
+ :longitude="longitude" 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"
|
|
|
+ :key="item.id">
|
|
|
+ <template>
|
|
|
+ <view class="list-left">
|
|
|
+ <view class="info">
|
|
|
+ <view class="title">{{ item.name }}</view>
|
|
|
+ <view class="addr">地址:{{ item.address }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="image">
|
|
|
+ <image src="../../static/img/img10.png"></image>
|
|
|
+ <!-- <view class="tip" v-if="item.space > 999">>999m</view> -->
|
|
|
+ <view class="tip">{{ item.range >=1 ? (item.range + 'km') : (item.distance + 'm') }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
+ <!-- <uni-load-more :status="loadingType"></uni-load-more> -->
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-box" style="margin-top: 20rpx;">
|
|
|
+ <view class="system-title">
|
|
|
+ <top-title :title="'智能AED'" :navurl="'/pages/applic/aed'" :show_more="true"></top-title>
|
|
|
+ </view>
|
|
|
+ <view id="container">
|
|
|
+ <map class="map-box" show-location :markers="aedmarker" :scale="scale" :latitude="latitude"
|
|
|
+ :longitude="longitude" 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">
|
|
|
+ <template>
|
|
|
+ <view class="list-left">
|
|
|
+ <view class="info">
|
|
|
+ <view class="title">{{ item.name }}</view>
|
|
|
+ <view class="addr">地址:{{ item.address }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="image">
|
|
|
+ <image src="../../static/img/img10.png"></image>
|
|
|
+ <view class="tip">{{ item.range >=1 ? (item.range + 'km') : (item.distance + 'm') }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <uni-popup ref="popup" type="bottom" @click="close">
|
|
|
+ <view class="popup_row">
|
|
|
+ <view class="rows">
|
|
|
+ <view class="rows-item" @click="toGaodeMap">高德地图</view>
|
|
|
+ <view class="rows-item" @click="tobaiDuMap">百度地图</view>
|
|
|
+ <view class="rows-item" @click="totengxunMap">腾讯地图</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+ <uni-popup ref="popup2" type="center" @click.stop="close2">
|
|
|
+ <view class="popup_row2">
|
|
|
+ <view class="title">
|
|
|
+ <view class="title-left">
|
|
|
+ 请输入您的手机号,等待救援!
|
|
|
+ </view>
|
|
|
+ <view class="cancel" @click="close2">
|
|
|
+ <image src="../../static/img/cancel1.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="inpBox">
|
|
|
+ <input type="text" value="" placeholder="请输入您的手机号" v-model="to_phone" />
|
|
|
+ </view>
|
|
|
+ <view class="inpedit">
|
|
|
+ 可在方框中修改您的手机号
|
|
|
+ </view>
|
|
|
+ <view class="comfirm">
|
|
|
+ <view class="comfirm1" @click="comfirm1()">
|
|
|
+ 确认
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import {
|
|
|
+ mapState,
|
|
|
+ mapMutations
|
|
|
+ } from 'vuex';
|
|
|
+ import {
|
|
|
+ getAed,
|
|
|
+ getAidList,
|
|
|
+ getRescuerList,
|
|
|
+ sos,
|
|
|
+ geocoder
|
|
|
+ } from '@/api/category.js'
|
|
|
+ import {
|
|
|
+ userinfo
|
|
|
+ } from '@/api/user.js';
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ type: 0,
|
|
|
+ actionList: {
|
|
|
+ list: []
|
|
|
+ },
|
|
|
+ navList: [{
|
|
|
+ tit: '爱心捐款',
|
|
|
+ id: 1,
|
|
|
+ list: [{
|
|
|
+ name: '爱心捐款',
|
|
|
+ path: '/pages/applic/love',
|
|
|
+ img: '../../static/img/tool/axjk.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '爱心捐物',
|
|
|
+ path: '/pages/index/transfer?type=6',
|
|
|
+ img: '../../static/img/tool/axjw.png'
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tit: '志愿捐献',
|
|
|
+ id: 2,
|
|
|
+ list: [{
|
|
|
+ name: '造血干细胞捐献',
|
|
|
+ path: '/pages/applic/appliSystem',
|
|
|
+ img: '../../static/img/tool/zxgxbjx.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '遗体器官捐献',
|
|
|
+ path: '/pages/form/applicationForm',
|
|
|
+ img: '../../static/img/tool/ytqgjx.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '无偿献血',
|
|
|
+ path: '/pages/cart/jxdetail',
|
|
|
+ img: '../../static/img/tool/wcxx.png'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tit: '会员服务',
|
|
|
+ id: 3,
|
|
|
+ list: [{
|
|
|
+ name: '申请注册',
|
|
|
+ path: '/pages/cart/cart',
|
|
|
+ img: '../../static/img/tool/hyzc.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '会费缴交',
|
|
|
+ path: '/pages/cart/hyjj',
|
|
|
+ img: '../../static/img/tool/hyjj.png'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tit: '救助服务',
|
|
|
+ id: 4,
|
|
|
+ list: [{
|
|
|
+ name: '儿童先心病',
|
|
|
+ path: '/pages/cart/xxb',
|
|
|
+ img: '../../static/img/tool/etxxb.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '儿童白血病',
|
|
|
+ path: '/pages/cart/bxb',
|
|
|
+ img: '../../static/img/tool/etbxb.png'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tit: '救在身边',
|
|
|
+ id: 5,
|
|
|
+ list: [{
|
|
|
+ name: '普及培训报名',
|
|
|
+ path: '/pages/train/index',
|
|
|
+ img: '../../static/img/tool/pjpxbm.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '救护员招募',
|
|
|
+ path: '/pages/category/category',
|
|
|
+ img: '../../static/img/tool/jhyzm.png'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tit: '爱心捐物',
|
|
|
+ id: 6,
|
|
|
+ list: [{
|
|
|
+ name: '项目捐赠',
|
|
|
+ path: '/pages/donate/donate',
|
|
|
+ img: '../../static/img/tool/xmjz.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '我要捐赠',
|
|
|
+ path: '/pages/donate/idonate?type=1',
|
|
|
+ img: '../../static/img/tool/wyjz.png'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ user_address: '',
|
|
|
+ shareShow: true,
|
|
|
+ user_id: '',
|
|
|
+ rescuers_id: '',
|
|
|
+ name: '',
|
|
|
+ uid: '',
|
|
|
+ phone: '',
|
|
|
+ to_phone: '',
|
|
|
+ jzsbmarker: [],
|
|
|
+ jzsblist: [],
|
|
|
+ jhzmarker: [],
|
|
|
+ aedmarker: [],
|
|
|
+ carouselList: [], //轮播
|
|
|
+ science: [], //文章列表
|
|
|
+ page: 1,
|
|
|
+ limit: 10,
|
|
|
+ AEDList: [],
|
|
|
+ Mechanism: [],
|
|
|
+ latitude2: '',
|
|
|
+ longitude2: '',
|
|
|
+ latitude: '',
|
|
|
+ longitude: '',
|
|
|
+ address: '',
|
|
|
+ loadingType: 'more',
|
|
|
+ markerList: [],
|
|
|
+ marker: [],
|
|
|
+ longitude: '121.15829821166992',
|
|
|
+ latitude: '30.044394499237708',
|
|
|
+ longitude1: '120.553638',
|
|
|
+ latitude1: '30.547011',
|
|
|
+ scale: '12', //地图缩放程度
|
|
|
+ scale1: '15',
|
|
|
+ showbox: false,
|
|
|
+ showTEXT: false,
|
|
|
+ addressData: {
|
|
|
+ name: '',
|
|
|
+ mobile: '',
|
|
|
+ latitude: 0, //纬度
|
|
|
+ longitude: 0, //经度
|
|
|
+ address: {
|
|
|
+ province: '',
|
|
|
+ city: '',
|
|
|
+ district: '',
|
|
|
+ detail: ''
|
|
|
+ },
|
|
|
+ area: '',
|
|
|
+ default: false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(opt) {
|
|
|
+ this.type = opt.type
|
|
|
+
|
|
|
+ this.actionList = this.navList[this.type * 1 - 1]
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: this.actionList.tit
|
|
|
+ })
|
|
|
+ if (this.type == 5) {
|
|
|
+ this.getLocal()
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState('user', ['userInfo', 'hasLogin']),
|
|
|
+ ...mapState(['baseURL']),
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ userinfo({}).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ this.setUserInfo(data);
|
|
|
+ this.to_phone = data.mobile || ''
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
+ onReachBottom() {
|
|
|
+
|
|
|
+ },
|
|
|
+ onReady() {
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ ...mapMutations('user', ['setUserInfo']),
|
|
|
+ navto(url) {
|
|
|
+ if (url == '/pages/cart/hyjj') {
|
|
|
+ if (!this.userInfo.level_name) {
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '您还未注册红会会员是否前往注册?',
|
|
|
+ complete(e) {
|
|
|
+ console.log('success', e)
|
|
|
+ if (e.confirm) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/cart/cart',
|
|
|
+ fail() {
|
|
|
+ uni.switchTab({
|
|
|
+ url: '/pages/cart/cart'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ if (this.userInfo.level_name == '个人会员') {
|
|
|
+ url += '?type=1'
|
|
|
+ } else {
|
|
|
+ url += '?type=2'
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ uni.navigateTo({
|
|
|
+ url,
|
|
|
+ fail() {
|
|
|
+ uni.switchTab({
|
|
|
+ url
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取本地坐标
|
|
|
+ getLocal() {
|
|
|
+ let obj = this;
|
|
|
+ console.log('ddddddddddddddddddddddddd')
|
|
|
+ let weichatBrowser = uni.getStorageSync('weichatBrowser')
|
|
|
+ if (weichatBrowser) {
|
|
|
+ let wxOjb = require('jweixin-module');
|
|
|
+ wxOjb.ready(() => {
|
|
|
+ console.log('加载完毕注册事件');
|
|
|
+ wxOjb.getLocation({
|
|
|
+ type: 'gcj02',
|
|
|
+ success(e) {
|
|
|
+ console.log(e)
|
|
|
+ obj.baseLat = obj.latitude = Math.abs(e.latitude)
|
|
|
+ obj.baseLng = obj.longitude = Math.abs(e.longitude)
|
|
|
+ obj.marker = [{
|
|
|
+ longitude: e.longitude,
|
|
|
+ latitude: e.latitude,
|
|
|
+ iconPath: '/static/img/img19.png',
|
|
|
+ width: '45',
|
|
|
+ height: '45'
|
|
|
+ }];
|
|
|
+ obj.loadData();
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ obj.getLocal()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.getLocation({
|
|
|
+ type: 'gcj02',
|
|
|
+ success(e) {
|
|
|
+ console.log(e)
|
|
|
+ obj.baseLat = obj.latitude = Math.abs(e.latitude)
|
|
|
+ obj.baseLng = obj.longitude = Math.abs(e.longitude)
|
|
|
+ console.log('本地坐标', obj.latitude, obj.longitude)
|
|
|
+ obj.marker = [{
|
|
|
+ longitude: e.longitude,
|
|
|
+ latitude: e.latitude,
|
|
|
+ iconPath: '/static/img/img19.png',
|
|
|
+ width: '45',
|
|
|
+ height: '45'
|
|
|
+ }];
|
|
|
+ obj.loadData();
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ obj.getLocal()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+ loadData() {
|
|
|
+ let obj = this;
|
|
|
+ console.log('打印当前经纬度', obj.longitude, obj.latitude);
|
|
|
+ geocoder({
|
|
|
+ latitude: obj.latitude,
|
|
|
+ longitude: obj.longitude
|
|
|
+ }).then(ress => {
|
|
|
+ console.log(ress)
|
|
|
+ obj.user_address = ress.data.result.address
|
|
|
+ console.log(obj.user_address, 'obj.user_address')
|
|
|
+ })
|
|
|
+
|
|
|
+ if (obj.loadingType === 'noMore') {
|
|
|
+ //防止重复加载
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // 修改当前对象状态为加载中
|
|
|
+ obj.loadingType = 'loading';
|
|
|
+ getAed({
|
|
|
+ longitude: obj.longitude,
|
|
|
+ latitude: obj.latitude,
|
|
|
+ page: 1,
|
|
|
+ limit: 2
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ console.log(data, 999);
|
|
|
+ obj.AEDList = data;
|
|
|
+ let arr = data.map(item => ({
|
|
|
+ latitude: item.latitude,
|
|
|
+ longitude: item.longitude,
|
|
|
+ iconPath: '/static/img/img014.png',
|
|
|
+ width: '35',
|
|
|
+ height: '35',
|
|
|
+ id: item.id,
|
|
|
+ address: item.address
|
|
|
+ }));
|
|
|
+ obj.aedmarker = obj.marker.concat(arr)
|
|
|
+ console.log(obj.AEDList, '999++++++++++++++++++++++++++');
|
|
|
+ obj.markerList = data;
|
|
|
+ });
|
|
|
+ getAidList({
|
|
|
+ page: 1,
|
|
|
+ limit: 2,
|
|
|
+ longitude: obj.longitude,
|
|
|
+ latitude: obj.latitude,
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ console.log(data, '机构+++++++++++++')
|
|
|
+ let arr = data.map(item => ({
|
|
|
+ latitude: item.latitude,
|
|
|
+ longitude: item.longitude,
|
|
|
+ iconPath: '/static/img/img014.png',
|
|
|
+ width: '35',
|
|
|
+ height: '35',
|
|
|
+ id: item.id,
|
|
|
+ address: item.address
|
|
|
+ }));
|
|
|
+ obj.jhzmarker = obj.marker.concat(arr)
|
|
|
+ obj.Mechanism = data;
|
|
|
+ console.log(obj.Mechanism, '888++++++++++++++++++++++++++');
|
|
|
+ })
|
|
|
+ getRescuerList({
|
|
|
+ longitude: obj.longitude,
|
|
|
+ latitude: obj.latitude,
|
|
|
+ page: 1,
|
|
|
+ limit: 2
|
|
|
+ }).then((res) => {
|
|
|
+ let data = res.data;
|
|
|
+ data = data.slice(0, 2)
|
|
|
+ console.log('就在身边请求数据', data);
|
|
|
+ console.log('data.phone333', data.phone)
|
|
|
+ data = data.map(d => {
|
|
|
+ return {
|
|
|
+ ...d,
|
|
|
+ iscall: true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ obj.jzsblist = data;
|
|
|
+
|
|
|
+ let arr = data.map(item => ({
|
|
|
+ latitude: item.latitude,
|
|
|
+ longitude: item.longitude,
|
|
|
+ iconPath: '/static/img/img014.png',
|
|
|
+ width: '35',
|
|
|
+ height: '35',
|
|
|
+ id: item.id,
|
|
|
+ address: item.address
|
|
|
+ }))
|
|
|
+ obj.jzsbmarker = obj.marker.concat(arr)
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 立即救援
|
|
|
+ rescue(item, index) {
|
|
|
+ let obj = this;
|
|
|
+ console.log(item, 'jiuzhu item')
|
|
|
+ uni.showModal({
|
|
|
+ content: '是否发起求救?',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ this.$refs.popup2.open(item, index);
|
|
|
+ obj.rescuers_id = item.id
|
|
|
+ obj.user_id = item.user_id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ close2() {
|
|
|
+ this.$refs.popup2.close()
|
|
|
+ },
|
|
|
+ comfirm1: function() {
|
|
|
+ let obj = this
|
|
|
+ if (obj.to_phone.toString().trim() == '') {
|
|
|
+ return obj.$api.msg('请输入手机号码')
|
|
|
+ } 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;
|
|
|
+ }
|
|
|
+ sos({
|
|
|
+ mobile: obj.to_phone,
|
|
|
+ address: obj.user_address,
|
|
|
+ latitude: obj.latitude,
|
|
|
+ longitude: obj.longitude,
|
|
|
+ rescuers_id: obj.rescuers_id,
|
|
|
+ rescuers_user_id: obj.user_id,
|
|
|
+ re_url: obj.$store.state.baseURL + '/index/#/pages/applic/rescuerecords'
|
|
|
+ }).then(res => {
|
|
|
+ uni.showModal({
|
|
|
+ title: '请耐心等待救援',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ window.location.reload(); //重新刷新页面
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ obj.$refs.popup2.close();
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 导航
|
|
|
+ openAddress(item) {
|
|
|
+ let obj = this;
|
|
|
+ obj.latitude2 = item.latitude;
|
|
|
+ obj.longitude2 = item.longitude;
|
|
|
+ obj.address = item.address;
|
|
|
+ this.$refs.popup.open();
|
|
|
+ },
|
|
|
+ // 调用腾讯
|
|
|
+ totengxunMap() {
|
|
|
+ let latitude = this.latitude2;
|
|
|
+ let longitude = this.longitude2;
|
|
|
+ let address = this.address;
|
|
|
+ console.log('选择腾讯', latitude, longitude);
|
|
|
+ window.location.href =
|
|
|
+ `http://apis.map.qq.com/uri/v1/marker?marker=coord:${latitude},${longitude};addr:${address}`;
|
|
|
+ },
|
|
|
+ // 调用百度
|
|
|
+ tobaiDuMap() {
|
|
|
+ let latitude = this.latitude2;
|
|
|
+ let longitude = this.longitude2;
|
|
|
+ let latitude6 = this.latitude;
|
|
|
+ let longitude6 = this.longitude;
|
|
|
+ let address = this.address;
|
|
|
+ console.log('选择百度', latitude, longitude);
|
|
|
+ console.log('获取当前经纬度', latitude6, longitude6);
|
|
|
+ window.location.href =
|
|
|
+ `http://api.map.baidu.com/direction?origin=latlng:${latitude6},${longitude6}|name:我的位置&destination=${latitude},${longitude}&mode=driving®ion=${address}&output=html&src=webapp.baidu.openAPIdemo`;
|
|
|
+ //`bdapp://map/navi?location=${longitude},${latitude}&coord_type=gc02&title=${address}&content=${address}&output=html&src=andr.baidu.openAPIdemo `
|
|
|
+ },
|
|
|
+ // 调用谷歌
|
|
|
+ toGoogleMap() {
|
|
|
+ let latitude = this.latitude2;
|
|
|
+ let longitude = this.longitude2;
|
|
|
+ console.log('选择谷歌', latitude, longitude);
|
|
|
+ },
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss">
|
|
|
+ .tool-item {
|
|
|
+ width: 702rpx;
|
|
|
+ height: 416rpx;
|
|
|
+ background: #FEFEFE;
|
|
|
+ box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
|
|
|
+ border-radius: 20rpx;
|
|
|
+ margin: 0 auto 30rpx;
|
|
|
+ font-size: 0;
|
|
|
+
|
|
|
+ .item-img {
|
|
|
+ width: 702rpx;
|
|
|
+ height: 300rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .item-tit {
|
|
|
+ font-size: 34rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #0E0E0E;
|
|
|
+ line-height: 116rpx;
|
|
|
+ padding-left: 26rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .popup_row {
|
|
|
+ width: 100%;
|
|
|
+ height: 500rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .rows {
|
|
|
+ width: 100%;
|
|
|
+ padding: 0 24rpx;
|
|
|
+
|
|
|
+ .rows-item {
|
|
|
+ height: 80rpx;
|
|
|
+ line-height: 80rpx;
|
|
|
+ text-align: center;
|
|
|
+ width: 100%;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #303133;
|
|
|
+ // border-bottom: 1rpx solid #f0f0f0;
|
|
|
+ }
|
|
|
+
|
|
|
+ // .row-1 {
|
|
|
+ // margin: auto;
|
|
|
+ // .first_aid {
|
|
|
+ // width: 300rpx;
|
|
|
+ // height: 300rpx;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // .row-2 {
|
|
|
+ // font-size: 38rpx;
|
|
|
+ // margin-top: 20rpx;
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .content {
|
|
|
+ background-color: #f8f8f8;
|
|
|
+ height: 100%;
|
|
|
+
|
|
|
+ /* 头部 轮播图 */
|
|
|
+ .carousel-section {
|
|
|
+ // padding-top: 10px;
|
|
|
+ overflow: hidden;
|
|
|
+ background-color: #fff;
|
|
|
+
|
|
|
+ .carousel {
|
|
|
+ width: 705rpx;
|
|
|
+ height: 375rpx;
|
|
|
+ margin: 0 auto;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ overflow: hidden;
|
|
|
+
|
|
|
+ .carousel-item {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ padding-left: 30rpx;
|
|
|
+ padding-right: 30rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 100%;
|
|
|
+ height: 375rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 分类
|
|
|
+ .cate-section {
|
|
|
+ justify-content: space-around;
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 46rpx 0 30rpx;
|
|
|
+
|
|
|
+ .cate-item {
|
|
|
+ width: 25%;
|
|
|
+ flex-direction: column;
|
|
|
+ text-align: center;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+
|
|
|
+ .img-wrapper {
|
|
|
+ width: 100rpx;
|
|
|
+ height: 88rpx;
|
|
|
+ background: #eef4ff;
|
|
|
+ border-radius: 14rpx;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ image {
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ top: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ }
|
|
|
+
|
|
|
+ .img1 {
|
|
|
+ width: 100rpx;
|
|
|
+ height: 84rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .img2 {
|
|
|
+ width: 100rpx;
|
|
|
+ height: 85rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .img3 {
|
|
|
+ width: 100rpx;
|
|
|
+ height: 84rpx;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .img4 {
|
|
|
+ width: 100rpx;
|
|
|
+ height: 88rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .item-title {
|
|
|
+ margin-top: 15rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 红会科普
|
|
|
+ .science-section {
|
|
|
+ width: 100%;
|
|
|
+ background-color: #ffffff;
|
|
|
+ margin-top: 18rpx;
|
|
|
+ padding-top: 30rpx;
|
|
|
+
|
|
|
+ .science-title {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ padding-bottom: 22rpx;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ width: 285rpx;
|
|
|
+ height: 64rpx;
|
|
|
+ background-color: #ca121e;
|
|
|
+ border-radius: 32rpx;
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 32rpx;
|
|
|
+ line-height: 64rpx;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 68rpx;
|
|
|
+ height: 43rpx;
|
|
|
+ margin-left: 16rpx;
|
|
|
+ margin-right: 16rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .science-box {
|
|
|
+ padding-left: 15rpx;
|
|
|
+ padding-right: 15rpx;
|
|
|
+ padding-bottom: 20rpx;
|
|
|
+ border-bottom: 1rpx solid #f0f0f0;
|
|
|
+ white-space: nowrap;
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ // .uni-scroll-view-content{
|
|
|
+ // display: flex;
|
|
|
+ // }
|
|
|
+ .science-content {
|
|
|
+ // width: 100%;
|
|
|
+
|
|
|
+ // display: flex;
|
|
|
+ display: -webkit-box;
|
|
|
+
|
|
|
+ .science-item {
|
|
|
+ margin-right: 24rpx;
|
|
|
+ width: 198rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 100%;
|
|
|
+ height: 145rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .article-title {
|
|
|
+ width: 198rpx;
|
|
|
+ color: #333;
|
|
|
+ font-size: 25rpx;
|
|
|
+ padding-top: 20rpx;
|
|
|
+ padding-bottom: 16rpx;
|
|
|
+ font-weight: 900;
|
|
|
+ }
|
|
|
+
|
|
|
+ .article-content {
|
|
|
+ width: 198rpx;
|
|
|
+ color: #999999;
|
|
|
+ font-size: 18rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ display: -webkit-box;
|
|
|
+ word-break: break-all;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .science-more {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ color: #cb131c;
|
|
|
+ font-size: 30rpx;
|
|
|
+ padding-top: 18rpx;
|
|
|
+ padding-bottom: 18rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 20rpx;
|
|
|
+ height: 27rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // sos急救中心
|
|
|
+ .system {
|
|
|
+ width: 100%;
|
|
|
+ background-color: #ffffff;
|
|
|
+ margin-top: 18rpx;
|
|
|
+ padding: 40rpx 30rpx 35rpx 30rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+
|
|
|
+ .system-map {
|
|
|
+ margin: 30rpx auto 0;
|
|
|
+ width: 689rpx;
|
|
|
+ height: 312rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ padding-bottom: 45rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // AED
|
|
|
+ .list-box {
|
|
|
+ padding: 0rpx 25rpx 24rpx;
|
|
|
+ background-color: #fff;
|
|
|
+
|
|
|
+ .system-title {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ align-items: center;
|
|
|
+ height: 130rpx;
|
|
|
+ // padding-bottom: 22rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ width: 285rpx;
|
|
|
+ height: 64rpx;
|
|
|
+ background-color: #ca121e;
|
|
|
+ border-radius: 32rpx;
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 32rpx;
|
|
|
+ line-height: 64rpx;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .img {
|
|
|
+ width: 68rpx;
|
|
|
+ height: 43rpx;
|
|
|
+ margin-left: 16rpx;
|
|
|
+ margin-right: 16rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 68rpx;
|
|
|
+ height: 43rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-box {
|
|
|
+ width: 100%;
|
|
|
+ height: 366rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list-tpl {
|
|
|
+ background-color: #ffffff;
|
|
|
+ margin: 25rpx 0rpx;
|
|
|
+ padding: 25rpx 25rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ border-radius: 15rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ border-bottom: 1px solid #f1f1f1;
|
|
|
+
|
|
|
+ .list-left {
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .number {
|
|
|
+ font-size: 32rpx;
|
|
|
+ margin-right: 14rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .info {
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #222222;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+
|
|
|
+ .addr {
|
|
|
+ width: 400rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ font-size: 20rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .image {
|
|
|
+ width: 20%;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 50rpx;
|
|
|
+ height: 50rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .tip {
|
|
|
+ color: #7f7f7f;
|
|
|
+ font-size: 21rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 高配爱心红会
|
|
|
+ .red-box {
|
|
|
+ margin: 20rpx 0;
|
|
|
+ height: 521rpx;
|
|
|
+ padding: 40rpx 23rpx 35rpx 23rpx;
|
|
|
+ background-color: #fff;
|
|
|
+
|
|
|
+ .red-nav {
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-top: 23rpx;
|
|
|
+
|
|
|
+ .left-nav {
|
|
|
+ width: 332rpx;
|
|
|
+ height: 392rpx;
|
|
|
+ background: #FFF3F5;
|
|
|
+ background-image: url(../../static/img/m1.png);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .right-nav {
|
|
|
+ width: 357rpx;
|
|
|
+ height: 392rpx;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .right-top-nav {
|
|
|
+ width: 357rpx;
|
|
|
+ height: 204rpx;
|
|
|
+ background: #F6F6FF;
|
|
|
+ background-image: url(../../static/img/m2.png);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .right-bottom-nav {
|
|
|
+ width: 357rpx;
|
|
|
+ height: 173rpx;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ view {
|
|
|
+ width: 171rpx;
|
|
|
+ height: 173rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .left-item {
|
|
|
+ background: #F5EFFE;
|
|
|
+ background-image: url(../../static/img/m3.png);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .right-item {
|
|
|
+ background: #EDFEFE;
|
|
|
+ background-image: url(../../static/img/m4.png);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 低配爱心红会
|
|
|
+ // .red-box {
|
|
|
+ // margin: 20rpx 0;
|
|
|
+ // 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;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ .popup_row2 {
|
|
|
+ // margin-top: 108rpx;
|
|
|
+ height: 440rpx;
|
|
|
+ border-radius: 25rpx;
|
|
|
+ width: 100%;
|
|
|
+ padding: 24rpx;
|
|
|
+ background-color: #f8f8f8;
|
|
|
+ z-index: 999;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ border-bottom: 2rpx solid #F2F2F2;
|
|
|
+ color: #E63931;
|
|
|
+ font-size: 32rpx;
|
|
|
+ padding-left: 4rpx;
|
|
|
+ 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;
|
|
|
+ color: #FFFFFF;
|
|
|
+ background-color: #E63931;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .location-item {
|
|
|
+ z-index: 1000;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ border-bottom: 1rpx solid #E7E8EA;
|
|
|
+ padding: 15rpx 0;
|
|
|
+
|
|
|
+ .box-left {
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .img01 {
|
|
|
+ width: 8rpx;
|
|
|
+ height: 28rpx;
|
|
|
+ margin-right: 18rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 8rpx;
|
|
|
+ height: 28rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .img02 {
|
|
|
+ width: 117rpx;
|
|
|
+ height: 117rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 117rpx;
|
|
|
+ height: 117rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .info {
|
|
|
+ margin-left: 16rpx;
|
|
|
+
|
|
|
+ .info-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .name {
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+
|
|
|
+ .distance {
|
|
|
+ margin-left: 25rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #303133;
|
|
|
+ }
|
|
|
+
|
|
|
+ .location-icon {
|
|
|
+ margin-left: 10rpx;
|
|
|
+ width: 20rpx;
|
|
|
+ height: 26rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 20rpx;
|
|
|
+ height: 26rpx;
|
|
|
+ display: inline;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .address {
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #333333;
|
|
|
+ margin-top: 33rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .box-right {
|
|
|
+ .img {
|
|
|
+ height: 107rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 107rpx;
|
|
|
+ height: 107rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .called {
|
|
|
+ margin-right: 16rpx;
|
|
|
+ height: 107rpx;
|
|
|
+ line-height: 107rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #CB131C;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .ewm {
|
|
|
+ width: 75rpx;
|
|
|
+ height: 75rpx;
|
|
|
+ position: absolute;
|
|
|
+ right: 10rpx;
|
|
|
+ bottom: 200rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 50%;
|
|
|
+
|
|
|
+ box-shadow: 0 0 10rpx rgba($color: #000000, $alpha: 0.6);
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 50rpx;
|
|
|
+ height: 50rpx;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ bottom: 0;
|
|
|
+ right: 0;
|
|
|
+ margin: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .ewm-tit {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 10rpx;
|
|
|
+ font-size: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .closeEwm {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ position: absolute;
|
|
|
+ top: -40rpx;
|
|
|
+ right: -20rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ // 功能区
|
|
|
+ .tool-box {
|
|
|
+ width: 750rpx;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 20rpx 23rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ font-size: 0;
|
|
|
+
|
|
|
+ .tool-item {
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: space-between;
|
|
|
+ width: 344rpx;
|
|
|
+ margin-bottom: 15rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .item-item {
|
|
|
+ width: 100%;
|
|
|
+ // width: ;
|
|
|
+ }
|
|
|
+
|
|
|
+ .slot-item {
|
|
|
+ width: 166rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|