index.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260
  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. window.location.href = 'http://www.hszzyz.cn/index.php?s=/home/sqhy.html'
  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>