index.vue 26 KB

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