index.vue 27 KB

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