qqq.vue 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  1. <template>
  2. <view class="content">
  3. <!-- 轮播 -->
  4. <view class="carousel-section">
  5. <swiper class="carousel" :autoplay="true" :interval="3000" :duration="1000" @change="swiperChange">
  6. <swiper-item v-for="(item, index) in carouselList" :key="item.id"><image :src="item.pic"></image></swiper-item>
  7. </swiper>
  8. </view>
  9. <view class="swiper-dot">
  10. <template v-for="item in swiperLength">
  11. <view class="swiper-dots-item" :key="item" :class="{ action: swiperCurrent + 1 === item }"></view>
  12. </template>
  13. </view>
  14. <!-- 分类 -->
  15. <view class="cate-section flex">
  16. <view class="cate-left" @click="navto('/pages/form/applicationForm')"><image src="../../static/img/love.png"></image></view>
  17. <view class="cate-right">
  18. <view class="rightBox flex" @click="navto('/pages/form/tovolApplyDemo')">
  19. <image src="../../static/img/right-top.png"></image>
  20. </view>
  21. <view class="rightBox flex" @click="navto('/pages/applic/Love')">
  22. <image src="../../static/img/right-bottom.png" mode=""></image>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 红会科普 -->
  27. <view class="science-section">
  28. <view class="science-title flex">
  29. <view class="titleBox">
  30. <view class="title">红会科普</view>
  31. <image class="img" src="../../static/img/underTitle.png" mode=""></image>
  32. </view>
  33. <navigator class="science-more" url="/pages/applic/science">
  34. 更多
  35. <image src="../../static/icon/moreRight.png" mode=""></image>
  36. </navigator>
  37. </view>
  38. <scroll-view class="science-box" scroll-x>
  39. <view class="science-content">
  40. <view class="science-item" v-for="(item, index) in science" :key="index" @click="Jump(item)">
  41. <image :src="item.image_input[0]" mode=""></image>
  42. <view class="article-title word1_ellipsis">
  43. <text class="word1_ellipsis">{{ item.title }}</text>
  44. </view>
  45. </view>
  46. </view>
  47. </scroll-view>
  48. </view>
  49. <!-- sos急救系统 -->
  50. <view class="system">
  51. <view class="system-title">
  52. <view class="title" @click="tolocation">救在身边</view>
  53. <image class="img" src="../../static/img/underTitle.png" mode=""></image>
  54. </view>
  55. <view class="system-map" @click="tolocation">
  56. <!-- <view class="map-box" @click="tolocation"><image src="../../static/img/map.jpg" mode=""></image></view> -->
  57. <map class="map-box" @updated='mapChange' id="map_1" ref='map_1' :latitude="latitude4"
  58. :longitude="longitude4" :markers="marker"></map>
  59. </view>
  60. </view>
  61. <!-- AED导航 -->
  62. <!-- <view class="list-box">
  63. <view class="system-title">
  64. <view class="title" @click="tolocation">AED导航</view>
  65. <image class="img" src="../../static/img/underTitle.png" mode=""></image>
  66. </view>
  67. <view id="container" style="margin-top: 22rpx;">
  68. <map
  69. class="map-box"
  70. id="map"
  71. show-location
  72. :markers="marker"
  73. :scale="scale"
  74. :latitude="latitude4"
  75. :longitude="longitude4"
  76. ref="map"
  77. style="height: 450rpx"
  78. @markertap="markertap"
  79. ></map>
  80. </view>
  81. <view class="">
  82. <view class="list-tpl flex" @click="openAddress(item)" v-for="(item, index) in AEDList" :key="item.id">
  83. <view class="list-left">
  84. <view class="info">
  85. <view class="title">{{ item.name }}</view>
  86. <view class="addr">地址:{{ item.address }}</view>
  87. </view>
  88. </view>
  89. <view class="image">
  90. <image src="../../static/img/img10.png"></image>
  91. <view class="tip" v-if="item.space > 999">>999m</view>
  92. <view class="tip" v-else>{{ item.space}}m</view>
  93. </view>
  94. </view>
  95. <uni-load-more :status="loadingType"></uni-load-more>
  96. </view>
  97. </view> -->
  98. <view class="pad">
  99. <view class="love-box">
  100. <view class="love-title">
  101. 博爱罗田
  102. </view>
  103. <view class="main flex">
  104. <view class="erweima-box">
  105. <view class="erweima">
  106. <image src="../../static/img/gongzhonghao.jpg" mode=""></image>
  107. </view>
  108. <view class="font">红会公众号</view>
  109. </view>
  110. <image class="main-image" src="../../static/img/index-love.png" mode=""></image>
  111. <view class="erweima-box">
  112. <view class="erweima">
  113. <image src="../../static/img/lovetongdao.png" mode=""></image>
  114. </view>
  115. <view class="font">爱心通道</view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <uni-popup ref="popup" type="bottom" @click="close">
  121. <view class="popup_row">
  122. <view class="rows">
  123. <view class="rows-item" @click="toGaodeMap">高德地图</view>
  124. <view class="rows-item" @click="tobaiDuMap">百度地图</view>
  125. <view class="rows-item" @click="totengxunMap">腾讯地图</view>
  126. </view>
  127. </view>
  128. </uni-popup>
  129. </view>
  130. </template>
  131. <script>
  132. import { loadIndexs, bannerlist, getListAED, getDistance } from '@/api/index.js';
  133. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  134. import { mapState, mapMutations } from 'vuex';
  135. import { userinfo } from '@/api/user.js';
  136. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  137. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  138. import { getLoca } from '@/utils/wxAuthorized.js';
  139. import { getcomAddress } from '@/api/index.js';
  140. // #ifdef H5
  141. import {
  142. weixindata,
  143. weixinlocation
  144. } from '@/utils/wxAuthorized';
  145. // #endif
  146. export default {
  147. components: {
  148. uniPopup,
  149. uniLoadMore
  150. },
  151. data() {
  152. return {
  153. swiperCurrent: 0,
  154. titleNViewBackground: '',
  155. carouselList: [], //轮播
  156. science: [], //文章列表
  157. page: 1,
  158. limit: 10,
  159. AEDList: [],
  160. latitude2: '',
  161. longitude2: '',
  162. latitude4: '',
  163. longitude4: '',
  164. address: '',
  165. loadingType: 'more',
  166. markerList: [],
  167. marker: [],
  168. longitude: '121.15829821166992',
  169. latitude: '30.044394499237708',
  170. longitude1: '120.553638',
  171. latitude1: '30.547011',
  172. scale: '12', //地图缩放程度
  173. scale1: '15',
  174. showbox: false,
  175. showTEXT: false,
  176. addressData: {
  177. name: '',
  178. mobile: '',
  179. latitude: 0, //纬度
  180. longitude: 0, //经度
  181. address: {
  182. province: '',
  183. city: '',
  184. district: '',
  185. detail: ''
  186. },
  187. area: '',
  188. default: false
  189. },
  190. baseLongitude: 114.316738,
  191. baseLatitude: 30.353495,
  192. baseMarker: [{ id: 'baseAddr', latitude: 30.353495, longitude: 114.316738, iconPath: '../../static/img/location-icon.png' }],
  193. swiperLength: 0
  194. };
  195. },
  196. onShow() {
  197. this.IndexShare();
  198. saveUrl();
  199. console.log(11, this);
  200. if (!this.hasLogin) {
  201. // 登录拦截
  202. // interceptor();
  203. uni.showModal({
  204. title: '登录',
  205. content: '您未登录,是否马上登陆?',
  206. success: e => {
  207. if (e.confirm) {
  208. interceptor();
  209. }
  210. },
  211. fail: e => {
  212. console.log(e);
  213. }
  214. });
  215. } else {
  216. this.loadData();
  217. }
  218. },
  219. onLoad() {
  220. this.IndexShare();
  221. saveUrl();
  222. let obj = this;
  223. try {
  224. let locationAddress;
  225. // #ifdef H5
  226. let wxOjb = require('jweixin-module');
  227. locationAddress = wxOjb.getLocation;
  228. // #endif
  229. // #ifdef MP
  230. locationAddress = uni.getLocation;
  231. // #endif
  232. // #ifdef H5
  233. wxOjb.ready(() => {
  234. console.log('加载完毕注册事件');
  235. locationAddress({
  236. type: 'wgs84',
  237. success: function(res) {
  238. console.log('获取经纬度', res);
  239. obj.longitude4 = res.longitude;
  240. obj.latitude4 = res.latitude;
  241. obj.marker = [
  242. {
  243. longitude: res.longitude,
  244. latitude: res.latitude,
  245. iconPath: '/static/img/img19.png',
  246. width: '45',
  247. height: '45'
  248. }
  249. ];
  250. obj.loadData();
  251. },
  252. fail(e) {
  253. console.log('失败', e);
  254. this.tishi();
  255. // window.location.reload();
  256. }
  257. });
  258. });
  259. // #endif
  260. // #ifdef MP
  261. locationAddress({
  262. type: 'wgs84',
  263. success: function(res) {
  264. console.log('获取经纬度', res);
  265. obj.longitude4 = res.longitude;
  266. obj.latitude4 = res.latitude;
  267. obj.marker = [
  268. {
  269. longitude: res.longitude,
  270. latitude: res.latitude,
  271. iconPath: '/static/img/img19.png',
  272. width: '45',
  273. height: '45'
  274. }
  275. ];
  276. obj.loadData();
  277. },
  278. fail(e) {
  279. console.log('失败', e);
  280. this.tishi();
  281. // window.location.reload();
  282. }
  283. });
  284. // #endif
  285. } catch (e) {
  286. let locationAddress;
  287. // #ifdef H5
  288. let wxOjb = require('jweixin-module');
  289. locationAddress = wxOjb.getLocation;
  290. // #endif
  291. // #ifdef MP
  292. locationAddress = uni.getLocation;
  293. // #endif
  294. // #ifdef H5
  295. wxOjb.ready(() => {
  296. console.log('加载完毕注册事件');
  297. locationAddress({
  298. type: 'wgs84',
  299. success: function(res) {
  300. console.log('获取经纬度', res);
  301. obj.longitude4 = res.longitude;
  302. obj.latitude4 = res.latitude;
  303. obj.loadData();
  304. },
  305. fail(e) {
  306. console.log('失败', e);
  307. this.tishi();
  308. // window.location.reload();
  309. }
  310. });
  311. });
  312. // #endif
  313. // #ifdef MP
  314. locationAddress({
  315. type: 'wgs84',
  316. success: function(res) {
  317. console.log('获取经纬度', res);
  318. obj.longitude4 = res.longitude;
  319. obj.latitude4 = res.latitude;
  320. obj.loadData();
  321. },
  322. fail(e) {
  323. console.log('失败', e);
  324. // window.location.reload();
  325. }
  326. });
  327. // #endif
  328. }
  329. },
  330. computed: {
  331. ...mapState('user', ['userInfo', 'baseURL', 'hasLogin'])
  332. },
  333. // 下拉加载
  334. onReachBottom() {
  335. this.loadData();
  336. },
  337. methods: {
  338. ...mapMutations('user', ['setUserInfo']),
  339. tocontribution() {
  340. uni.navigateTo({
  341. // url: "/pages/applic/contribution"
  342. url: '/pages/form/applicationForm'
  343. });
  344. },
  345. IndexShare() {
  346. let obj = this;
  347. // let money = obj.money;
  348. let item = {
  349. link: 'http://lt.igxys.com/index/#/',// 分享链接
  350. imgUrl: 'http://lt.igxys.com/index/static/img/002.png',
  351. desc: '弘扬红十字精神,传播红十字观念,宣传红十字工作,这是一个汇聚爱心、救助之家力量的平台',
  352. title: '罗田县红十字会',
  353. success: console.log('分享加载成功')
  354. };
  355. console.log('分享加',item)
  356. weixindata(item);
  357. },
  358. //提示
  359. tishi(){
  360. uni.showModal({
  361. title: '提示',
  362. content:'获取当前位置信息失败,是否刷新页面。',
  363. success: function(res){
  364. if (res.confirm) {
  365. window.location.reload();
  366. console.log('用户点击确定');
  367. } else if (res.cancel) {
  368. console.log('用户点击取消');
  369. }
  370. }
  371. })
  372. },
  373. swiperChange(e) {
  374. const index = e.detail.current;
  375. this.swiperCurrent = index;
  376. this.titleNViewBackground = this.carouselList[index].background;
  377. },
  378. // 调用高德
  379. toGaodeMap() {
  380. let latitude = this.latitude2;
  381. let longitude = this.longitude2;
  382. let address = this.address;
  383. console.log('选择高德', latitude, longitude, address);
  384. // window.location.href = 'https://uri.amap.com/marker?position=30.537043,120.567191&name=浙江省嘉兴市桐乡市高桥镇高桥大道51号'
  385. window.location.href = `https://uri.amap.com/marker?position=${longitude},${latitude}&name=${address}`;
  386. // window.location.href = `http://uri.amap.com/navigation?from=114.02597366,22.54605355&to=114.029243,22.609562&mode=car&src=nyx_super`
  387. // http://uri.amap.com/navigation?from=" + fromLongitude + "," + fromLatitude + "&to="+ longitude + "," + latitude + "&mode=car&src=nyx_super
  388. },
  389. // 调用腾讯
  390. totengxunMap() {
  391. let latitude = this.latitude2;
  392. let longitude = this.longitude2;
  393. let address = this.address;
  394. console.log('选择腾讯', latitude, longitude);
  395. window.location.href = `http://apis.map.qq.com/uri/v1/marker?marker=coord:${latitude},${longitude};addr:${address}`;
  396. },
  397. // 调用百度
  398. tobaiDuMap() {
  399. let latitude = this.latitude2;
  400. let longitude = this.longitude2;
  401. let latitude6 = this.latitude4;
  402. let longitude6 = this.longitude4;
  403. let address = this.address;
  404. console.log('选择百度', latitude, longitude);
  405. console.log('获取当前经纬度', latitude6, longitude6);
  406. window.location.href = `http://api.map.baidu.com/direction?origin=latlng:${latitude6},${longitude6}|name:我的位置&destination=${latitude},${longitude}&mode=driving&region=${address}&output=html&src=webapp.baidu.openAPIdemo`;
  407. },
  408. // 调用谷歌
  409. toGoogleMap() {
  410. let latitude = this.latitude2;
  411. let longitude = this.longitude2;
  412. console.log('选择谷歌', latitude, longitude);
  413. },
  414. navto(url) {
  415. uni.navigateTo({
  416. url: url
  417. });
  418. },
  419. tolocation() {
  420. uni.navigateTo({
  421. url: '/pages/applic/location'
  422. });
  423. },
  424. toapplic() {
  425. uni.navigateTo({
  426. url: '/pages/applic/appliSystem'
  427. });
  428. },
  429. tohelpActi() {
  430. uni.navigateTo({
  431. // url: "/pages/applic/tohelpActi"
  432. url: '/pages/form/tovolApply'
  433. });
  434. },
  435. toOrgan() {
  436. console.log('kepuxingbaoming');
  437. uni.navigateTo({
  438. url: '/pages/train/index'
  439. });
  440. },
  441. // 点击图标
  442. markertap(e) {
  443. console.log(e.target.markerId);
  444. this.$refs.popup.open();
  445. let obj = this;
  446. for (let i = 0; i < obj.marker.length; i++) {
  447. if (e.target.markerId == obj.marker[i].id) {
  448. obj.latitude2 = obj.marker[i].latitude;
  449. obj.longitude2 = obj.marker[i].longitude;
  450. obj.address = obj.marker[i].address;
  451. }
  452. }
  453. },
  454. space(lat1, lng1, lat2, lng2) {
  455. console.log(lat1, lng1, lat2, lng2)
  456. var radLat1 = lat1 * Math.PI / 180.0;
  457. var radLat2 = lat2 * Math.PI / 180.0;
  458. var a = radLat1 - radLat2;
  459. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  460. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  461. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  462. s = s * 6378.137;
  463. s = Math.round(s * 10000) / 10000;
  464. return s * 1000 // 单位米
  465. },
  466. loadData() {
  467. let obj = this;
  468. console.log('打印当前经纬度', obj.longitude4, obj.latitude4);
  469. userinfo({}).then(({ data }) => {
  470. obj.setUserInfo(data);
  471. loadIndexs({}).then(({ data }) => {
  472. obj.carouselList = data.banner; //轮播图
  473. obj.swiperLength = data.banner.length;
  474. bannerlist().then(({ data }) => {
  475. console.log(data);
  476. obj.science = data;
  477. });
  478. });
  479. });
  480. if (obj.loadingType === 'noMore') {
  481. //防止重复加载
  482. return;
  483. }
  484. // 修改当前对象状态为加载中
  485. obj.loadingType = 'loading';
  486. getListAED({
  487. page: obj.page,
  488. limit: obj.limit
  489. }).then(({
  490. data
  491. }) => {
  492. console.log(obj.latitude4, 999);
  493. console.log(obj.longitude4, 999);
  494. // obj.AEDList = data
  495. for(let i = 0; i<data.length; i++){
  496. data[i].space = obj.space(obj.latitude4,obj.longitude4,data[i].latitude,data[i].longitude);
  497. }
  498. obj.AEDList = obj.AEDList.concat(data);
  499. obj.markerList = data
  500. obj.page++;
  501. if (obj.limit == data.length) {
  502. obj.loadingType = 'more';
  503. } else {
  504. obj.loadingType = 'noMore';
  505. }
  506. })
  507. getDistance({
  508. lng1: obj.longitude4,
  509. lat1: obj.latitude4
  510. }).then(({ data }) => {
  511. console.log(data, 980);
  512. obj.AEDList = data;
  513. obj.AEDList = data.slice(0, 5);
  514. let arr = data.map(item => ({
  515. latitude: item.latitude,
  516. longitude: item.longitude,
  517. iconPath: '/static/img/img014.png',
  518. width: '35',
  519. height: '35',
  520. id: item.id,
  521. address: item.address
  522. }));
  523. obj.marker = obj.marker.concat(arr);
  524. obj.marker = obj.marker.slice(0, 6);
  525. // uni.showModal({
  526. // title: '提示',
  527. // content: JSON.stringify(obj.marker)
  528. // })
  529. });
  530. },
  531. // 选择当前位置
  532. // chooseAddress() {
  533. // console.log('233')
  534. // let obj = this;
  535. // uni.chooseLocation({
  536. // success: function(res) {
  537. // console.log(res)
  538. // obj.addressData.area = res.name;
  539. // console.log('位置名称:' + res.name);
  540. // console.log('详细地址:' + res.address);
  541. // console.log('经度:' + res.longitude);
  542. // console.log('纬度:' + res.latitude);
  543. // obj.addressData.latitude = res.latitude;
  544. // obj.addressData.longitude = res.longitude;
  545. // obj.addressDetail = res.address;
  546. // console.log('common_address123',obj.addressDetail )
  547. // console.log('latitude123',obj.addressData.latitude )
  548. // console.log('longitude123',obj.addressData.longitude )
  549. // getcomAddress({
  550. // common_address: obj.addressDetail,
  551. // longitude: obj.addressData.longitude,
  552. // latitude: obj.addressData.latitude
  553. // }).then(data => {
  554. // console.log(333)
  555. // console.log(data);
  556. // if (data.status == 200) {
  557. // obj.$api.msg('保存成功')
  558. // }
  559. // })
  560. // }
  561. // });
  562. // },
  563. // 导航
  564. openAddress(item) {
  565. let obj = this;
  566. obj.latitude2 = item.latitude;
  567. obj.longitude2 = item.longitude;
  568. obj.address = item.address;
  569. this.$refs.popup.open();
  570. },
  571. Jump(item) {
  572. // console.log(item);
  573. if (item.url != '') {
  574. window.open(item.url);
  575. return;
  576. }
  577. uni.navigateTo({
  578. url: '/pages/applic/info?id=' + item.id
  579. });
  580. },
  581. open() {
  582. this.$refs.popup.open();
  583. },
  584. close() {
  585. this.$refs.popup.close();
  586. }
  587. }
  588. };
  589. </script>
  590. <style lang="scss">
  591. page,.content {
  592. background: #FFFFFF !important;
  593. height: 100%;
  594. }
  595. a {
  596. text-decoration: none;
  597. color: #5f5f5f;
  598. }
  599. .popup_row {
  600. width: 100%;
  601. height: 500rpx;
  602. background-color: #ffffff;
  603. border-radius: 20rpx;
  604. display: flex;
  605. justify-content: center;
  606. align-items: center;
  607. .rows {
  608. width: 100%;
  609. padding: 0 24rpx;
  610. .rows-item {
  611. height: 80rpx;
  612. line-height: 80rpx;
  613. text-align: center;
  614. width: 100%;
  615. font-size: 32rpx;
  616. color: #303133;
  617. // border-bottom: 1rpx solid #f0f0f0;
  618. }
  619. // .row-1 {
  620. // margin: auto;
  621. // .first_aid {
  622. // width: 300rpx;
  623. // height: 300rpx;
  624. // }
  625. // }
  626. // .row-2 {
  627. // font-size: 38rpx;
  628. // margin-top: 20rpx;
  629. // }
  630. }
  631. }
  632. .content {
  633. background-color: #f8f8f8;
  634. height: 100%;
  635. /* 头部 轮播图 */
  636. .carousel-section {
  637. padding-top: 34rpx;
  638. overflow: hidden;
  639. .carousel {
  640. width: 700rpx;
  641. height: 370rpx;
  642. border-radius: 15rpx;
  643. margin: 0 auto;
  644. image {
  645. width: 100%;
  646. height: 370rpx;
  647. border-radius: 15rpx;
  648. }
  649. }
  650. }
  651. .swiper-dot {
  652. padding-top: 20rpx;
  653. display: flex;
  654. justify-content: center;
  655. .swiper-dots-item {
  656. width: 25rpx;
  657. height: 8rpx;
  658. border-radius: 4rpx 4rpx;
  659. background-color: #fbb8b3;
  660. margin: 0 16rpx;
  661. // z-index: 999;
  662. }
  663. .action {
  664. background-color: #f3392c;
  665. }
  666. }
  667. // 分类
  668. .cate-section {
  669. padding: 20rpx 24rpx 0 4rpx;
  670. width: 100%;
  671. .cate-left {
  672. width: 50%;
  673. height: 404rpx;
  674. image {
  675. width: 100%;
  676. height: 100%;
  677. }
  678. }
  679. .cate-right {
  680. width: 50%;
  681. height: 404rpx;
  682. padding-top: 20rpx;
  683. .rightBox {
  684. height: 212rpx;
  685. width: 100%;
  686. margin-top: -20rpx;
  687. image {
  688. width: 100%;
  689. height: 100%;
  690. }
  691. }
  692. }
  693. }
  694. // 红会科普
  695. .science-section {
  696. width: 100%;
  697. background-color: #ffffff;
  698. margin-top: 20rpx;
  699. padding-left: 30rpx;
  700. padding-right: 25rpx;
  701. .science-title {
  702. display: flex;
  703. justify-content: space-between;
  704. align-items: center;
  705. .science-more {
  706. display: flex;
  707. justify-content: center;
  708. align-items: center;
  709. font-size: 28rpx;
  710. font-family: PingFang SC;
  711. font-weight: 500;
  712. color: #f3392c;
  713. image {
  714. margin-left: 10rpx;
  715. width: 14rpx;
  716. height: 25rpx;
  717. }
  718. }
  719. .titleBox {
  720. position: relative;
  721. .title {
  722. position: relative;
  723. z-index: 3;
  724. font-size: 40rpx;
  725. font-family: PingFang SC;
  726. font-weight: bold;
  727. color: #f3392c;
  728. }
  729. .img {
  730. width: 70rpx;
  731. height: 10rpx;
  732. position: absolute;
  733. left: 0;
  734. bottom: 4rpx;
  735. }
  736. }
  737. }
  738. .science-box {
  739. margin-top: 18rpx;
  740. padding-bottom: 20rpx;
  741. border-bottom: 1rpx solid #f0f0f0;
  742. white-space: nowrap;
  743. display: flex;
  744. width: 100%;
  745. // .uni-scroll-view-content{
  746. // display: flex;
  747. // }
  748. .science-content {
  749. // width: 100%;
  750. // display: flex;
  751. display: -webkit-box;
  752. .science-item {
  753. margin-right: 24rpx;
  754. width: 286rpx;
  755. height: 200rpx;
  756. background: #f5f5f5;
  757. position: relative;
  758. display: flex;
  759. flex-direction: column;
  760. align-items: center;
  761. text-align: center;
  762. image {
  763. border-radius: 15rpx;
  764. width: 100%;
  765. height: 200rpx;
  766. }
  767. .article-title {
  768. position: absolute;
  769. z-index: 3;
  770. left: 20rpx;
  771. bottom: 12rpx;
  772. width: 246rpx;
  773. height: 33rpx;
  774. background: #f3392c;
  775. opacity: 0.37;
  776. border-radius: 17rpx;
  777. line-height: 1;
  778. padding: 0 22rpx;
  779. color: #fefefe;
  780. text {
  781. font-size: 24rpx;
  782. font-family: PingFang SC;
  783. font-weight: 500;
  784. opacity: 1;
  785. }
  786. }
  787. }
  788. }
  789. }
  790. }
  791. // sos急救中心
  792. .system {
  793. width: 100%;
  794. background-color: #ffffff;
  795. padding: 0 30rpx;
  796. margin-top: 18rpx;
  797. padding-top: 40rpx;
  798. // padding-bottom: 45rpx;
  799. // margin-bottom: 43rpx;
  800. .system-title {
  801. position: relative;
  802. .title {
  803. position: relative;
  804. z-index: 3;
  805. font-size: 40rpx;
  806. font-family: PingFang SC;
  807. font-weight: bold;
  808. color: #f3392c;
  809. }
  810. .img {
  811. width: 70rpx;
  812. height: 10rpx;
  813. position: absolute;
  814. left: 0;
  815. bottom: 4rpx;
  816. }
  817. }
  818. .system-map {
  819. width: 100%;
  820. height: 500rpx;
  821. background-color: #ffffff;
  822. padding-bottom: 45rpx;
  823. .map-box {
  824. margin-top: 20rpx;
  825. width: 100%;
  826. height: 500rpx;
  827. image {
  828. width: 100%;
  829. height: 500rpx;
  830. }
  831. }
  832. }
  833. }
  834. //AED
  835. .list-box {
  836. margin-top: 44rpx;
  837. padding: 0rpx 30rpx 24rpx;
  838. // margin-bottom: 84rpx;
  839. .system-title {
  840. position: relative;
  841. .title {
  842. position: relative;
  843. z-index: 3;
  844. font-size: 40rpx;
  845. font-family: PingFang SC;
  846. font-weight: bold;
  847. color: #f3392c;
  848. }
  849. .img {
  850. width: 70rpx;
  851. height: 10rpx;
  852. position: absolute;
  853. left: 0;
  854. bottom: 4rpx;
  855. }
  856. }
  857. }
  858. .map-box {
  859. // background-color: #FFFFFF;
  860. width: 100%;
  861. height: 366rpx;
  862. // border: 2rpx solid #F2F2F2;
  863. // box-shadow: 5px 15px 15px 5px #f2f2f2;
  864. }
  865. .list-tpl {
  866. background-color: #ffffff;
  867. margin: 22rpx 0rpx;
  868. padding: 25rpx 0rpx;
  869. display: flex;
  870. justify-content: space-between;
  871. border-bottom: 2rpx #F1F1F1 solid;
  872. .list-left {
  873. display: flex;
  874. width: 100%;
  875. .info {
  876. width: 100%;
  877. .title {
  878. font-size: 28rpx;
  879. font-family: PingFang SC;
  880. font-weight: 500;
  881. color: #333333;
  882. }
  883. .addr {
  884. margin-top: 10rpx;
  885. width: 90%;
  886. font-size: 20rpx;
  887. font-family: PingFang SC;
  888. font-weight: 500;
  889. color: #999999;
  890. }
  891. }
  892. }
  893. .image {
  894. width: 10%;
  895. text-align: center;
  896. image {
  897. width: 40rpx;
  898. height: 40rpx;
  899. }
  900. .tip {
  901. font-size: 20rpx;
  902. font-family: PingFang SC;
  903. font-weight: 500;
  904. color: #999999;
  905. }
  906. }
  907. }
  908. }
  909. .pad {
  910. padding-bottom: 170rpx;
  911. }
  912. .love-box {
  913. margin: 60rpx auto 0;
  914. width: 689rpx;
  915. height: 400rpx;
  916. background: #FFFFFF;
  917. border: 2px solid #F3392C;
  918. padding: 40rpx 44rpx;
  919. .love-title{
  920. width: 100%;
  921. text-align: center;
  922. font-size: 42rpx;
  923. font-family: Swei Marker Leg CJK SC;
  924. font-weight: 900;
  925. color: #F2473B;
  926. }
  927. .main{
  928. padding-top: 50rpx;
  929. position: relative;
  930. justify-content: space-between;
  931. .main-image {
  932. position: absolute;
  933. top: 62rpx;
  934. left: 118rpx;
  935. width: 382rpx;
  936. height: 202rpx;
  937. z-index: 1;
  938. }
  939. .erweima-box {
  940. text-align: center;
  941. position: relative;
  942. z-index: 2;
  943. .erweima {
  944. width: 179rpx;
  945. height: 179rpx;
  946. background: #000000;
  947. image{
  948. width: 100%;
  949. height: 100%;
  950. }
  951. }
  952. .font {
  953. margin-top: 14rpx;
  954. font-size: 22rpx;
  955. font-family: PingFang SC;
  956. font-weight: 500;
  957. color: #333333;
  958. }
  959. }
  960. }
  961. }
  962. </style>