index.vue 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259
  1. <template>
  2. <view class="content">
  3. <!-- 轮播 -->
  4. <view class="carousel-section">
  5. <swiper class="carousel" :autoplay="true" :interval="3000" :duration="1000">
  6. <swiper-item v-for="item in carouselList" :key="item.id">
  7. <image :src="baseURL + item.image"></image>
  8. </swiper-item>
  9. </swiper>
  10. </view>
  11. <!-- 分类 -->
  12. <view class="cate-section flex">
  13. <view class="cate-item flex" @click="aixin">
  14. <!-- <view class="img-wrapper flex">
  15. <image src="../../static/index/index10.png" mode="" class="img"></image>
  16. </view>
  17. <view class="item-title">爱心捐款</view> -->
  18. <image src="../../static/index/in1.png" mode=""></image>
  19. </view>
  20. <view class="cate-item flex" @click="tocontribution">
  21. <!-- <view class="img-wrapper flex">
  22. <image src="../../static/index/index04.png" mode="" class="img" style="width: 110rpx;"></image>
  23. </view>
  24. <view class="item-title">遗体器官捐献</view> -->
  25. <image src="../../static/index/in2.png" mode=""></image>
  26. </view>
  27. <view class="cate-item flex" @click="toapplic">
  28. <!-- <view class="img-wrapper flex">
  29. <image src="../../static/index/index03.png" mode="" class="img"></image>
  30. </view>
  31. <view class="item-title">造血干细胞捐献</view> -->
  32. <image src="../../static/index/in3.png" mode=""></image>
  33. </view>
  34. <view class="cate-item flex" @click="toOrgan">
  35. <!-- <view class="img-wrapper flex">
  36. <image src="../../static/index/index02.png" mode="" class="img"></image>
  37. </view>
  38. <view class="item-title">红十字志愿者</view> -->
  39. <image src="../../static/index/in4.png" mode=""></image>
  40. </view>
  41. <view class="cate-item flex" @click="tohelpActi1">
  42. <!-- <view class="img-wrapper flex">
  43. <image src="../../static/index/index01.png" mode="" class="img"></image>
  44. </view>
  45. <view class="item-title">培训报名</view> -->
  46. <image src="../../static/index/in5.png" mode=""></image>
  47. </view>
  48. <view class="cate-item flex" @click="navTo('/pages/train/index')">
  49. <!-- <view class="img-wrapper flex">
  50. <image src="../../static/index/index07.png" mode="" class="img"></image>
  51. </view>
  52. <view class="item-title">红十字会员</view> -->
  53. <image src="../../static/index/in6.png" mode=""></image>
  54. </view>
  55. <!-- <view class="cate-item flex" @click="tohelpActi2">
  56. <view class="img-wrapper flex">
  57. <image src="../../static/index/index09.png" mode="" class="img"></image>
  58. </view>
  59. <view class="item-title">救在身边系统</view>
  60. <image src="../../static/index/in7.png" mode=""></image>
  61. </view> -->
  62. <!-- <view class="cate-item flex" @click="tohelpActi3">
  63. <view class="img-wrapper flex">
  64. <image src="../../static/index/index08.png" mode="" class="img"></image>
  65. </view>
  66. <view class="item-title">AED智能系统</view>
  67. <image src="../../static/index/in8.png" mode=""></image>
  68. </view> -->
  69. <!-- <view class="cate-item flex" @click="navTo('/pages/applic/aid')">
  70. <view class="img-wrapper flex">
  71. <image src="../../static/index/index06.png" mode="" class="img"></image>
  72. </view>
  73. <view class="item-title">救护站智能系统</view>
  74. <image src="../../static/index/in9.png" mode=""></image>
  75. </view> -->
  76. <!-- <view class="cate-item flex" @click="tohelpActi4">
  77. <view class="cate-item flex" @click="navTo('/pages/applic/science')">
  78. <view class="img-wrapper flex">
  79. <image src="../../static/index/index05.png" mode="" class="img"></image>
  80. </view>
  81. <view class="item-title">红会科普</view>
  82. </view>
  83. </view> -->
  84. <view class="redkp flex" @click="navTo('/pages/user/user')">
  85. <image src="../../static/index/in10.png" mode=""></image>
  86. <!-- <image src="../../static/index/index05.png" mode="" class="redkp-img"></image>
  87. <view class="redkp-center">
  88. <view class="">
  89. 红会科普
  90. </view>
  91. <view class="center-btm">
  92. 一起学习救援知识
  93. </view>
  94. </view>
  95. <image src="../../static/icon/goto.png" mode="" class="goto"></image> -->
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script>
  101. import {
  102. getAed,
  103. getAidList,
  104. getRescuerList,
  105. sos,
  106. } from '@/api/category.js'
  107. import {
  108. loadIndexs,
  109. bannerlist,
  110. getListAED,
  111. getDistance,
  112. getListMechanism,
  113. getdis,
  114. tocall
  115. } from '@/api/index.js';
  116. import {
  117. saveUrl,
  118. interceptor
  119. } from '@/utils/loginUtils.js';
  120. import {
  121. mapState,
  122. mapMutations
  123. } from 'vuex';
  124. import {
  125. userinfo
  126. } from '@/api/user.js';
  127. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  128. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  129. import {
  130. getLoca
  131. } from '@/utils/wxAuthorized.js';
  132. import {
  133. getcomAddress
  134. } from '@/api/index.js';
  135. import topTitle from '../../components/top-title/top-title.vue';
  136. export default {
  137. components: {
  138. uniPopup,
  139. uniLoadMore,
  140. topTitle
  141. },
  142. data() {
  143. return {
  144. shareShow: true,
  145. user_id: '',
  146. rescuers_id: '',
  147. name: '',
  148. uid: '',
  149. phone: '',
  150. to_phone: '',
  151. jzsbmarker: [],
  152. jzsblist: [],
  153. jhzmarker: [],
  154. aedmarker: [],
  155. carouselList: [], //轮播
  156. science: [], //文章列表
  157. page: 1,
  158. limit: 10,
  159. AEDList: [],
  160. Mechanism: [],
  161. latitude2: '',
  162. longitude2: '',
  163. latitude4: '',
  164. longitude4: '',
  165. address: '',
  166. loadingType: 'more',
  167. markerList: [],
  168. marker: [],
  169. longitude: '121.15829821166992',
  170. latitude: '30.044394499237708',
  171. longitude1: '120.553638',
  172. latitude1: '30.547011',
  173. scale: '12', //地图缩放程度
  174. scale1: '15',
  175. showbox: false,
  176. showTEXT: false,
  177. addressData: {
  178. name: '',
  179. mobile: '',
  180. latitude: 0, //纬度
  181. longitude: 0, //经度
  182. address: {
  183. province: '',
  184. city: '',
  185. district: '',
  186. detail: ''
  187. },
  188. area: '',
  189. default: false
  190. }
  191. };
  192. },
  193. onShow() {
  194. saveUrl();
  195. // let token = uni.getStorageSync('token');
  196. console.log(11, this);
  197. if (!this.hasLogin) {
  198. // 登录拦截
  199. // interceptor();
  200. uni.showModal({
  201. title: '登录',
  202. content: '您未登录,是否马上登陆?',
  203. success: e => {
  204. if (e.confirm) {
  205. interceptor();
  206. }
  207. },
  208. fail: e => {
  209. console.log(e);
  210. }
  211. });
  212. } else {
  213. // this.loadData();
  214. }
  215. },
  216. onLoad() {
  217. this.loadIndex()
  218. saveUrl();
  219. },
  220. computed: {
  221. ...mapState('user', ['userInfo', 'baseURL', 'hasLogin']),
  222. ...mapState(['baseURL']),
  223. },
  224. // 下拉加载
  225. // onReachBottom() {
  226. // this.loadData();
  227. // },
  228. methods: {
  229. ...mapMutations('user', ['setUserInfo']),
  230. loadIndex() {
  231. loadIndexs({}).then(({
  232. data
  233. }) => {
  234. console.log(data, 'index')
  235. this.carouselList = data.banner; //轮播图
  236. });
  237. },
  238. tocontribution() {
  239. uni.navigateTo({
  240. url: "/pages/form/applicationForm"
  241. // url: '/pages/applic/toOrgan'
  242. });
  243. },
  244. //爱心捐款
  245. aixin() {
  246. uni.navigateTo({
  247. url: '/pages/index/aixin'
  248. })
  249. // uni.navigateTo({
  250. // url: '/pages/applic/love'
  251. // })
  252. },
  253. //提示
  254. tishi() {
  255. uni.showModal({
  256. title: '提示',
  257. content: '获取当前位置信息失败,是否刷新页面。',
  258. success: function(res) {
  259. if (res.confirm) {
  260. window.location.reload();
  261. console.log('用户点击确定');
  262. } else if (res.cancel) {
  263. console.log('用户点击取消');
  264. }
  265. }
  266. })
  267. },
  268. // 调用高德
  269. toGaodeMap() {
  270. let latitude = this.latitude2;
  271. let longitude = this.longitude2;
  272. let address = this.address;
  273. console.log('选择高德', latitude, longitude, address);
  274. // window.location.href = 'https://uri.amap.com/marker?position=30.537043,120.567191&name=浙江省嘉兴市桐乡市高桥镇高桥大道51号'
  275. window.location.href = `https://uri.amap.com/marker?position=${longitude},${latitude}&name=${address}`;
  276. // window.location.href = `http://uri.amap.com/navigation?from=114.02597366,22.54605355&to=114.029243,22.609562&mode=car&src=nyx_super`
  277. // http://uri.amap.com/navigation?from=" + fromLongitude + "," + fromLatitude + "&to="+ longitude + "," + latitude + "&mode=car&src=nyx_super
  278. },
  279. // 调用腾讯
  280. totengxunMap() {
  281. let latitude = this.latitude2;
  282. let longitude = this.longitude2;
  283. let address = this.address;
  284. console.log('选择腾讯', latitude, longitude);
  285. window.location.href =
  286. `http://apis.map.qq.com/uri/v1/marker?marker=coord:${latitude},${longitude};addr:${address}`;
  287. },
  288. // 调用百度
  289. tobaiDuMap() {
  290. let latitude = this.latitude2;
  291. let longitude = this.longitude2;
  292. let latitude6 = this.latitude4;
  293. let longitude6 = this.longitude4;
  294. let address = this.address;
  295. console.log('选择百度', latitude, longitude);
  296. console.log('获取当前经纬度', latitude6, longitude6);
  297. window.location.href =
  298. `http://api.map.baidu.com/direction?origin=latlng:${latitude6},${longitude6}|name:我的位置&destination=${latitude},${longitude}&mode=driving&region=${address}&output=html&src=webapp.baidu.openAPIdemo`;
  299. //`bdapp://map/navi?location=${longitude},${latitude}&coord_type=gc02&title=${address}&content=${address}&output=html&src=andr.baidu.openAPIdemo `
  300. },
  301. // 调用谷歌
  302. toGoogleMap() {
  303. let latitude = this.latitude2;
  304. let longitude = this.longitude2;
  305. console.log('选择谷歌', latitude, longitude);
  306. },
  307. tolocation() {
  308. uni.navigateTo({
  309. url: '/pages/applic/location'
  310. });
  311. },
  312. toapplic() {
  313. uni.navigateTo({
  314. url: '/pages/applic/appliSystem'
  315. });
  316. },
  317. tohelpActi() {
  318. uni.navigateTo({
  319. // url: "/pages/applic/tohelpActi"
  320. url: '/pages/cart/cart'
  321. });
  322. },
  323. tohelpActi1() {
  324. uni.navigateTo({
  325. url: '../cart/cat1'
  326. })
  327. },
  328. tohelpActi2() {
  329. uni.navigateTo({
  330. url: '/pages/applic/location'
  331. })
  332. },
  333. tohelpActi3() {
  334. uni.navigateTo({
  335. url: '../applic/aed'
  336. })
  337. },
  338. tohelpActi4() {
  339. uni.navigateTo({
  340. url: '/pages/applic/science'
  341. })
  342. },
  343. toOrgan() {
  344. console.log('kepuxingbaoming');
  345. uni.navigateTo({
  346. url: '/pages/form/tovolApply'
  347. });
  348. },
  349. // 点击图标
  350. markertap(e) {
  351. console.log(e.target.markerId);
  352. this.$refs.popup.open();
  353. let obj = this;
  354. for (let i = 0; i < obj.marker.length; i++) {
  355. if (e.target.markerId == obj.marker[i].id) {
  356. obj.latitude2 = obj.marker[i].latitude;
  357. obj.longitude2 = obj.marker[i].longitude;
  358. obj.address = obj.marker[i].address;
  359. }
  360. }
  361. },
  362. aedmarkertap(e) {
  363. console.log(e.target.markerId);
  364. let obj = this;
  365. for (let i = 0; i < obj.aedmarker.length; i++) {
  366. if (e.target.markerId == obj.marker[i].id) {
  367. obj.latitude2 = obj.marker[i].latitude;
  368. obj.longitude2 = obj.marker[i].longitude;
  369. obj.address = obj.marker[i].address;
  370. }
  371. }
  372. obj.$refs.popup.open();
  373. },
  374. jhzmarkertap(e) {
  375. console.log(e.target.markerId);
  376. let obj = this;
  377. for (let i = 0; i < obj.jhzmarker.length; i++) {
  378. if (e.target.markerId == obj.marker[i].id) {
  379. obj.latitude2 = obj.marker[i].latitude;
  380. obj.longitude2 = obj.marker[i].longitude;
  381. obj.address = obj.marker[i].address;
  382. }
  383. }
  384. obj.$refs.popup.open();
  385. },
  386. loadData() {
  387. let obj = this;
  388. console.log('打印当前经纬度', obj.longitude4, obj.latitude4);
  389. userinfo({}).then(({
  390. data
  391. }) => {
  392. obj.setUserInfo(data);
  393. obj.to_phone = data.mobile || ''
  394. });
  395. if (obj.loadingType === 'noMore') {
  396. //防止重复加载
  397. return;
  398. }
  399. // 修改当前对象状态为加载中
  400. obj.loadingType = 'loading';
  401. getAed({
  402. longitude: obj.longitude4,
  403. latitude: obj.latitude4,
  404. page: 1,
  405. limit: 2
  406. }).then(({
  407. data
  408. }) => {
  409. console.log(data, 999);
  410. // obj.AEDList = data
  411. for (let i = 0; i < data.length; i++) {
  412. data[i].space = obj.space(obj.latitude4, obj.longitude4, data[i].latitude, data[i]
  413. .longitude);
  414. }
  415. obj.AEDList = data;
  416. let arr = data.map(item => ({
  417. latitude: item.latitude,
  418. longitude: item.longitude,
  419. iconPath: '/static/img/img014.png',
  420. width: '35',
  421. height: '35',
  422. id: item.id,
  423. address: item.address
  424. }));
  425. obj.aedmarker = obj.marker.concat(arr)
  426. console.log(obj.AEDList, '999++++++++++++++++++++++++++');
  427. obj.markerList = data;
  428. });
  429. getAidList({
  430. page: 1,
  431. limit: 2,
  432. longitude: obj.longitude4,
  433. latitude: obj.latitude4,
  434. }).then(({
  435. data
  436. }) => {
  437. console.log(data, '机构+++++++++++++')
  438. for (let i = 0; i < data.length; i++) {
  439. data[i].space = obj.space(obj.latitude4, obj.longitude4, data[i].latitude, data[i]
  440. .longitude);
  441. }
  442. let arr = data.map(item => ({
  443. latitude: item.latitude,
  444. longitude: item.longitude,
  445. iconPath: '/static/img/img014.png',
  446. width: '35',
  447. height: '35',
  448. id: item.id,
  449. address: item.address
  450. }));
  451. obj.jhzmarker = obj.marker.concat(arr)
  452. obj.Mechanism = data;
  453. console.log(obj.Mechanism, '888++++++++++++++++++++++++++');
  454. })
  455. getRescuerList({
  456. longitude: obj.longitude4,
  457. latitude: obj.latitude4,
  458. page: 1,
  459. limit: 2
  460. }).then((res) => {
  461. let data = res.data;
  462. data = data.slice(0, 2)
  463. console.log('就在身边请求数据', data);
  464. console.log('data.phone333', data.phone)
  465. data = data.map(d => {
  466. return {
  467. ...d,
  468. iscall: true
  469. }
  470. })
  471. obj.jzsblist = data;
  472. let arr = data.map(item => ({
  473. latitude: item.latitude,
  474. longitude: item.longitude,
  475. iconPath: '/static/img/img014.png',
  476. width: '35',
  477. height: '35',
  478. id: item.id,
  479. address: item.address
  480. }))
  481. obj.jzsbmarker = obj.marker.concat(arr)
  482. }).catch(err => {
  483. console.log(err);
  484. });
  485. },
  486. // 导航
  487. openAddress(item) {
  488. let obj = this;
  489. obj.latitude2 = item.latitude;
  490. obj.longitude2 = item.longitude;
  491. obj.address = item.address;
  492. this.$refs.popup.open();
  493. },
  494. Jump(item) {
  495. // console.log(item);
  496. if (item.url != '') {
  497. window.open(item.url);
  498. return;
  499. }
  500. uni.navigateTo({
  501. url: '/pages/applic/info?id=' + item.id
  502. });
  503. },
  504. open() {
  505. this.$refs.popup.open();
  506. },
  507. close() {
  508. this.$refs.popup.close();
  509. },
  510. navTo(url) {
  511. uni.navigateTo({
  512. url
  513. });
  514. },
  515. space(lat1, lng1, lat2, lng2) {
  516. console.log(lat1, lng1, lat2, lng2);
  517. var radLat1 = (lat1 * Math.PI) / 180.0;
  518. var radLat2 = (lat2 * Math.PI) / 180.0;
  519. var a = radLat1 - radLat2;
  520. var b = (lng1 * Math.PI) / 180.0 - (lng2 * Math.PI) / 180.0;
  521. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math
  522. .pow(Math.sin(b / 2), 2)));
  523. s = s * 6378.137;
  524. s = Math.round(s * 10000) / 10000;
  525. return s * 1000; // 单位米
  526. },
  527. // 立即救援
  528. rescue(item, index) {
  529. let obj = this;
  530. console.log(item, 'jiuzhu item')
  531. uni.showModal({
  532. content: '是否发起求救?',
  533. success: res => {
  534. if (res.confirm) {
  535. this.$refs.popup2.open(item, index);
  536. obj.rescuers_id = item.id
  537. obj.user_id = item.user_id
  538. }
  539. }
  540. })
  541. },
  542. close2() {
  543. this.$refs.popup2.close()
  544. },
  545. comfirm1: function() {
  546. let obj = this
  547. if (obj.to_phone.toString().trim() == '') {
  548. return obj.$api.msg('请输入手机号码')
  549. } else {
  550. console.log('obj.to_phone1111', obj.to_phone)
  551. const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
  552. if (!reg.test(obj.to_phone)) {
  553. obj.$api.msg('请填写正确的手机号码');
  554. return;
  555. }
  556. sos({
  557. mobile: obj.to_phone,
  558. address: obj.user_address,
  559. latitude: obj.latitude4,
  560. longitude: obj.longitude4,
  561. rescuers_id: obj.rescuers_id,
  562. rescuers_user_id: obj.user_id
  563. }).then(res => {
  564. uni.showModal({
  565. title: '请耐心等待救援',
  566. success: res => {
  567. if (res.confirm) {
  568. window.location.reload(); //重新刷新页面
  569. }
  570. }
  571. })
  572. obj.$refs.popup2.close();
  573. })
  574. }
  575. },
  576. }
  577. };
  578. </script>
  579. <style lang="scss">
  580. a {
  581. text-decoration: none;
  582. color: #5f5f5f;
  583. }
  584. .content {
  585. // line-height: 1;
  586. background-color: #ffabab;
  587. // padding-bottom: 60rpx;
  588. }
  589. .popup_row {
  590. width: 100%;
  591. height: 500rpx;
  592. background-color: #ffffff;
  593. border-radius: 20rpx;
  594. display: flex;
  595. justify-content: center;
  596. align-items: center;
  597. .rows {
  598. width: 100%;
  599. padding: 0 24rpx;
  600. .rows-item {
  601. height: 80rpx;
  602. line-height: 80rpx;
  603. text-align: center;
  604. width: 100%;
  605. font-size: 32rpx;
  606. color: #303133;
  607. // border-bottom: 1rpx solid #f0f0f0;
  608. }
  609. // .row-1 {
  610. // margin: auto;
  611. // .first_aid {
  612. // width: 300rpx;
  613. // height: 300rpx;
  614. // }
  615. // }
  616. // .row-2 {
  617. // font-size: 38rpx;
  618. // margin-top: 20rpx;
  619. // }
  620. }
  621. }
  622. .content {
  623. background-color: #f8f6f9;
  624. height: 100%;
  625. /* 头部 轮播图 */
  626. .carousel-section {
  627. // padding-top: 10px;
  628. overflow: hidden;
  629. // background-color: #fff;
  630. .carousel {
  631. width: 744rpx;
  632. height: 470rpx;
  633. margin: 0 auto;
  634. border-radius: 20rpx;
  635. overflow: hidden;
  636. .carousel-item {
  637. width: 100%;
  638. height: 100%;
  639. // padding-left: 30rpx;
  640. // padding-right: 30rpx;
  641. overflow: hidden;
  642. }
  643. image {
  644. width: 100%;
  645. height: 470rpx;
  646. border-radius: 20rpx;
  647. }
  648. }
  649. }
  650. // 分类
  651. .cate-section {
  652. justify-content: space-between;
  653. flex-wrap: wrap;
  654. background-color: #f8f6f9;
  655. padding: 20rpx 30rpx 0rpx;
  656. height: 100%;
  657. .cate-item {
  658. width: 335rpx;
  659. height: 250rpx;
  660. background: #FFFFFF;
  661. box-shadow: 0 0 20rpx 0 rgba(50, 50, 52, 0.06);
  662. border-radius: 25px;
  663. flex-direction: column;
  664. text-align: center;
  665. align-items: center;
  666. justify-content: center;
  667. margin-bottom: 20rpx;
  668. image {
  669. width: 335rpx;
  670. height: 250rpx;
  671. }
  672. // .img-wrapper {
  673. // width: 90rpx;
  674. // height: 90rpx;
  675. // background: #eef4ff;
  676. // border-radius: 14rpx;
  677. // position: relative;
  678. // image {
  679. // position: absolute;
  680. // left: 50%;
  681. // top: 50%;
  682. // transform: translate(-50%, -50%);
  683. // }
  684. // .img {
  685. // width: 90rpx;
  686. // height: 90rpx;
  687. // }
  688. // }
  689. // .item-title {
  690. // margin-top: 15rpx;
  691. // font-size: 28rpx;
  692. // font-family: PingFang SC;
  693. // font-weight: bold;
  694. // color: #333333;
  695. // }
  696. }
  697. }
  698. // 红会科普
  699. .science-section {
  700. width: 100%;
  701. background-color: #ffffff;
  702. margin-top: 18rpx;
  703. padding-top: 30rpx;
  704. .science-title {
  705. display: flex;
  706. justify-content: center;
  707. align-items: center;
  708. padding-bottom: 22rpx;
  709. .title {
  710. width: 285rpx;
  711. height: 64rpx;
  712. background-color: #ca121e;
  713. border-radius: 32rpx;
  714. color: #ffffff;
  715. font-size: 32rpx;
  716. line-height: 64rpx;
  717. text-align: center;
  718. }
  719. image {
  720. width: 68rpx;
  721. height: 43rpx;
  722. margin-left: 16rpx;
  723. margin-right: 16rpx;
  724. }
  725. }
  726. .science-box {
  727. padding-left: 15rpx;
  728. padding-right: 15rpx;
  729. padding-bottom: 20rpx;
  730. border-bottom: 1rpx solid #f0f0f0;
  731. white-space: nowrap;
  732. display: flex;
  733. width: 100%;
  734. // .uni-scroll-view-content{
  735. // display: flex;
  736. // }
  737. .science-content {
  738. // width: 100%;
  739. // display: flex;
  740. display: -webkit-box;
  741. .science-item {
  742. margin-right: 24rpx;
  743. width: 198rpx;
  744. display: flex;
  745. flex-direction: column;
  746. align-items: center;
  747. text-align: center;
  748. image {
  749. width: 100%;
  750. height: 145rpx;
  751. }
  752. .article-title {
  753. width: 198rpx;
  754. color: #333;
  755. font-size: 25rpx;
  756. padding-top: 20rpx;
  757. padding-bottom: 16rpx;
  758. font-weight: 900;
  759. }
  760. .article-content {
  761. width: 198rpx;
  762. color: #999999;
  763. font-size: 18rpx;
  764. overflow: hidden;
  765. text-overflow: ellipsis;
  766. display: -webkit-box;
  767. word-break: break-all;
  768. -webkit-box-orient: vertical;
  769. -webkit-line-clamp: 2;
  770. }
  771. }
  772. }
  773. }
  774. .science-more {
  775. display: flex;
  776. justify-content: center;
  777. align-items: center;
  778. color: #cb131c;
  779. font-size: 30rpx;
  780. padding-top: 18rpx;
  781. padding-bottom: 18rpx;
  782. image {
  783. width: 20rpx;
  784. height: 27rpx;
  785. }
  786. }
  787. }
  788. // sos急救中心
  789. .system {
  790. width: 100%;
  791. background-color: #ffffff;
  792. margin-top: 18rpx;
  793. padding: 40rpx 30rpx 35rpx 30rpx;
  794. margin-bottom: 20rpx;
  795. .system-map {
  796. margin: 30rpx auto 0;
  797. width: 689rpx;
  798. height: 312rpx;
  799. background-color: #ffffff;
  800. // padding: 0 30rpx;
  801. padding-bottom: 45rpx;
  802. // .map-box {
  803. // width: 100%;
  804. // height: 312rpx;
  805. // // background-color: #fff;
  806. // }
  807. }
  808. }
  809. // AED
  810. .list-box {
  811. padding: 0rpx 25rpx 24rpx;
  812. // margin-bottom: 84rpx;
  813. background-color: #fff;
  814. .system-title {
  815. display: flex;
  816. justify-content: flex-start;
  817. align-items: center;
  818. height: 130rpx;
  819. // padding-bottom: 22rpx;
  820. background-color: #ffffff;
  821. .title {
  822. width: 285rpx;
  823. height: 64rpx;
  824. background-color: #ca121e;
  825. border-radius: 32rpx;
  826. color: #ffffff;
  827. font-size: 32rpx;
  828. line-height: 64rpx;
  829. text-align: center;
  830. }
  831. .img {
  832. width: 68rpx;
  833. height: 43rpx;
  834. margin-left: 16rpx;
  835. margin-right: 16rpx;
  836. image {
  837. width: 68rpx;
  838. height: 43rpx;
  839. }
  840. }
  841. }
  842. }
  843. .map-box {
  844. width: 100%;
  845. height: 366rpx;
  846. }
  847. .list-tpl {
  848. background-color: #ffffff;
  849. margin: 25rpx 0rpx;
  850. padding: 25rpx 25rpx;
  851. font-size: 28rpx;
  852. border-radius: 15rpx;
  853. display: flex;
  854. justify-content: space-between;
  855. align-items: center;
  856. border-bottom: 1px solid #f1f1f1;
  857. .list-left {
  858. display: flex;
  859. width: 100%;
  860. .number {
  861. font-size: 32rpx;
  862. margin-right: 14rpx;
  863. }
  864. .info {
  865. width: 100%;
  866. .title {
  867. font-size: 32rpx;
  868. color: #222222;
  869. font-weight: 500;
  870. }
  871. .addr {
  872. width: 400rpx;
  873. margin-top: 20rpx;
  874. font-size: 20rpx;
  875. font-family: PingFang SC;
  876. font-weight: 500;
  877. color: #999999;
  878. }
  879. }
  880. }
  881. .image {
  882. width: 20%;
  883. text-align: center;
  884. image {
  885. width: 50rpx;
  886. height: 50rpx;
  887. }
  888. .tip {
  889. color: #7f7f7f;
  890. font-size: 21rpx;
  891. }
  892. }
  893. }
  894. }
  895. .red-box {
  896. margin: 20rpx 0;
  897. height: 521rpx;
  898. padding: 40rpx 23rpx 35rpx 23rpx;
  899. background-color: #fff;
  900. .red-nav {
  901. justify-content: space-between;
  902. margin-top: 23rpx;
  903. .left-nav {
  904. width: 332rpx;
  905. height: 392rpx;
  906. background: #FFF3F5;
  907. background-image: url(../../static/img/m1.png);
  908. background-size: 100% 100%;
  909. }
  910. .right-nav {
  911. width: 357rpx;
  912. height: 392rpx;
  913. flex-direction: column;
  914. justify-content: space-between;
  915. // background: #F6F6FF;
  916. .right-top-nav {
  917. width: 357rpx;
  918. height: 204rpx;
  919. background: #F6F6FF;
  920. background-image: url(../../static/img/m2.png);
  921. background-size: 100% 100%;
  922. }
  923. .right-bottom-nav {
  924. width: 357rpx;
  925. height: 173rpx;
  926. justify-content: space-between;
  927. view {
  928. width: 171rpx;
  929. height: 173rpx;
  930. }
  931. .left-item {
  932. background: #F5EFFE;
  933. background-image: url(../../static/img/m3.png);
  934. background-size: 100% 100%;
  935. }
  936. .right-item {
  937. background: #EDFEFE;
  938. background-image: url(../../static/img/m4.png);
  939. background-size: 100% 100%;
  940. }
  941. }
  942. }
  943. }
  944. }
  945. .popup_row2 {
  946. // margin-top: 108rpx;
  947. height: 440rpx;
  948. border-radius: 25rpx;
  949. width: 100%;
  950. padding: 24rpx;
  951. background-color: #f8f8f8;
  952. z-index: 999;
  953. .title {
  954. border-bottom: 2rpx solid #F2F2F2;
  955. color: #E63931;
  956. font-size: 32rpx;
  957. padding-left: 4rpx;
  958. padding-bottom: 16rpx;
  959. display: flex;
  960. justify-content: space-between;
  961. // align-items: center;
  962. .cancel {
  963. margin-left: 52rpx;
  964. width: 36rpx;
  965. height: 36rpx;
  966. image {
  967. width: 36rpx;
  968. height: 36rpx;
  969. }
  970. }
  971. }
  972. .inpBox {
  973. margin-top: 52rpx;
  974. border: 2px solid #f2f2f2;
  975. padding: 12rpx 24rpx;
  976. color: #FF9797;
  977. border-radius: 8rpx;
  978. .input-placeholder {
  979. // height: 70rpx;
  980. font-size: 32rpx;
  981. color: #FF9797;
  982. }
  983. }
  984. .inpedit {
  985. margin-top: 24rpx;
  986. margin-left: 14rpx;
  987. font-size: 28rpx;
  988. color: #FF9797;
  989. }
  990. .comfirm {
  991. display: flex;
  992. justify-content: flex-end;
  993. margin-top: 54rpx;
  994. .comfirm1 {
  995. padding: 12rpx 24rpx;
  996. border-radius: 12rpx;
  997. color: #FFFFFF;
  998. background-color: #E63931;
  999. }
  1000. }
  1001. }
  1002. .location-item {
  1003. z-index: 1000;
  1004. display: flex;
  1005. justify-content: space-between;
  1006. align-items: center;
  1007. border-bottom: 1rpx solid #E7E8EA;
  1008. padding: 15rpx 0;
  1009. .box-left {
  1010. display: flex;
  1011. .img01 {
  1012. width: 8rpx;
  1013. height: 28rpx;
  1014. margin-right: 18rpx;
  1015. image {
  1016. width: 8rpx;
  1017. height: 28rpx;
  1018. }
  1019. }
  1020. .img02 {
  1021. width: 117rpx;
  1022. height: 117rpx;
  1023. border-radius: 50%;
  1024. image {
  1025. width: 117rpx;
  1026. height: 117rpx;
  1027. border-radius: 50%;
  1028. }
  1029. }
  1030. .info {
  1031. margin-left: 16rpx;
  1032. .info-header {
  1033. display: flex;
  1034. align-items: center;
  1035. .name {
  1036. font-size: 32rpx;
  1037. color: #333333;
  1038. }
  1039. .distance {
  1040. margin-left: 25rpx;
  1041. font-size: 28rpx;
  1042. color: #303133;
  1043. }
  1044. .location-icon {
  1045. margin-left: 10rpx;
  1046. width: 20rpx;
  1047. height: 26rpx;
  1048. image {
  1049. width: 20rpx;
  1050. height: 26rpx;
  1051. display: inline;
  1052. }
  1053. }
  1054. }
  1055. .address {
  1056. font-size: 26rpx;
  1057. color: #333333;
  1058. margin-top: 33rpx;
  1059. }
  1060. }
  1061. }
  1062. .box-right {
  1063. .img {
  1064. height: 107rpx;
  1065. image {
  1066. width: 107rpx;
  1067. height: 107rpx;
  1068. }
  1069. }
  1070. .called {
  1071. margin-right: 16rpx;
  1072. height: 107rpx;
  1073. line-height: 107rpx;
  1074. font-size: 28rpx;
  1075. color: #CB131C;
  1076. }
  1077. }
  1078. }
  1079. .ewm {
  1080. width: 75rpx;
  1081. height: 75rpx;
  1082. position: absolute;
  1083. right: 10rpx;
  1084. bottom: 200rpx;
  1085. background-color: #fff;
  1086. border-radius: 50%;
  1087. box-shadow: 0 0 10rpx rgba($color: #000000, $alpha: 0.6);
  1088. image {
  1089. width: 50rpx;
  1090. height: 50rpx;
  1091. position: absolute;
  1092. top: 0;
  1093. left: 0;
  1094. bottom: 0;
  1095. right: 0;
  1096. margin: auto;
  1097. }
  1098. .ewm-tit {
  1099. position: absolute;
  1100. bottom: 10rpx;
  1101. font-size: 10rpx;
  1102. }
  1103. .closeEwm {
  1104. width: 40rpx;
  1105. height: 40rpx;
  1106. position: absolute;
  1107. top: -40rpx;
  1108. right: -20rpx;
  1109. image {
  1110. width: 100%;
  1111. height: 100%;
  1112. }
  1113. }
  1114. }
  1115. .redkp {
  1116. width: 690rpx;
  1117. height: 145rpx;
  1118. background: #FFFFFF;
  1119. box-shadow: 0 0 20rpx 0 rgba(50, 50, 52, 0.06);
  1120. border-radius: 25rpx;
  1121. margin: auto;
  1122. // padding: 25rpx 45rpx;
  1123. align-items: center;
  1124. image {
  1125. width: 690rpx;
  1126. height: 145rpx;
  1127. }
  1128. .redkp-img {
  1129. width: 70rpx;
  1130. height: 89rpx;
  1131. }
  1132. .redkp-center {
  1133. font-size: 32rpx;
  1134. font-family: PingFang SC;
  1135. font-weight: bold;
  1136. color: #333333;
  1137. padding-left: 30rpx;
  1138. flex-grow: 1;
  1139. .center-btm {
  1140. padding-top: 15rpx;
  1141. font-size: 24rpx;
  1142. font-family: PingFang SC;
  1143. font-weight: bold;
  1144. color: rgba(153, 153, 153, 0.5);
  1145. }
  1146. }
  1147. .goto {
  1148. width: 14rpx;
  1149. height: 27rpx;
  1150. }
  1151. }
  1152. </style>