index.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067
  1. <template>
  2. <view class="content">
  3. <view class="tip">
  4. <image src="../../static/img/kp-tip.png" mode="widthFix"></image>
  5. </view>
  6. <view class="top-time flex">
  7. <view class="item flex jl" v-if="new_time">
  8. <image src="../../static/img/dingwei.png" mode="widthFix"></image>
  9. <view class="">
  10. {{new_address || '武汉市江夏区市民之家一楼'}}
  11. </view>
  12. </view>
  13. <view class="item flex jr" v-if="new_time">
  14. <image src="../../static/icon/rl.png" mode="widthFix"></image>
  15. <view class="">
  16. {{new_time}}
  17. </view>
  18. </view>
  19. </view>
  20. <view class="kp-wrap">
  21. <swiper class="kp-wrap" @change="change" :current="current" disable-touch :autoplay='videoAuto' >
  22. <swiper-item v-for="(item,index) of science" :key="item.id">
  23. <videoPlayer ref="player" :video="item" @goNext="nextV" @errorVideo='errvideo(item,index)' @playVideoSuccess='videoPlaySuccess(item,index)' :current="index"></videoPlayer>
  24. </swiper-item>
  25. </swiper>
  26. <!-- <zg-swiper :list="science"></zg-swiper> -->
  27. </view>
  28. <!-- <view class="kp-wrap">
  29. <swiper class="kp-wrap" :current="current" @change="stopv" >
  30. <swiper-item v-for="(item,index) in science" class="kp-wrap">
  31. <video :id="'myvideo' + index" :src="item.src"
  32. @error="videoErrorCallback" controls class="kp-wrap" :poster="item.poster"
  33. :autoplay="true" @ended="nextV"></video>
  34. </swiper-item>
  35. </swiper>
  36. </view> -->
  37. <view class="tip tip2">
  38. <image src="../../static/img/more-g.png" mode="widthFix"></image>
  39. </view>
  40. <view class="function-list flex">
  41. <template v-if="showTools">
  42. <view class="fun1" @click="showCard()">
  43. <image src="../../static/img/about-us.png" mode="widthFix"></image>
  44. </view>
  45. <view class="fun1" @click="navto('/pages/applic/appliSystem')">
  46. <!-- <view class="fun1" @click="openQr"> -->
  47. <image src="../../static/img/zxgxb.png" mode="widthFix"></image>
  48. </view>
  49. <view class="fun1" @click="openQr('yiti')">
  50. <image src="../../static/img/ytqgjx.png" mode="widthFix"></image>
  51. </view>
  52. <view class="fun1" @click="openQr('peixun')">
  53. <image src="../../static/img/jhpxbm.png" mode="widthFix"></image>
  54. </view>
  55. <view class="fun1" @click="openQr('zyz')">
  56. <image src="../../static/img/hszhydj.png" mode="widthFix"></image>
  57. </view>
  58. <view class="fun1" @click="openQr('zyz')">
  59. <image src="../../static/img/zyzdj.png" mode="widthFix"></image>
  60. </view>
  61. <view class="fun2" @click="openAx()">
  62. <image src="../../static/img/axjk.png" mode="widthFix"></image>
  63. </view>
  64. <view class="fun2 fun3" @click="">
  65. <!-- <image src="../../static/img/fjaed.png" mode="widthFix" @click="navto('/pages/applic/yz')"></image> -->
  66. <image src="../../static/img/fjdaed.png" mode="widthFix" @click="showMap('yz')"></image>
  67. <image src="../../static/img/jhz.png" mode="widthFix" @click="showMap('jhz')"></image>
  68. </view>
  69. </template>
  70. <template v-else>
  71. <view class="map">
  72. <map @updated='mapChange' id="map_1" ref='map_1' style="width:100%; height: 100%"
  73. latitude="30.353495" longitude="114.316738"
  74. :markers="mark_type == 'yz'? yz_mark: jhz_mark"></map>
  75. </view>
  76. <view class="mark-list">
  77. <scroll-view scroll-y="true" class="mark-list flex">
  78. <view class="mark" v-for="item in show_mark">
  79. <view class="mark-name clamp">
  80. {{mark_type == 'yz' ? item.name: item.introduction}}
  81. </view>
  82. <view class="mark-address clamp2">
  83. {{item.detailed_address}}
  84. </view>
  85. </view>
  86. </scroll-view>
  87. </view>
  88. <view class="back flex" @click="backTools">
  89. <image src="../../static/icon/back.png" mode="" class="back-lo" v-if="!showTools"></image>
  90. <view class="">
  91. 返回
  92. </view>
  93. </view>
  94. </template>
  95. </view>
  96. <view class="tip tip3">
  97. <image src="../../static/img/redfc.png" mode="widthFix"></image>
  98. </view>
  99. <swiper class="fc-wrap" :autoplay="true" >
  100. <swiper-item v-for="fcitem in fc" class="fc" >
  101. <image :src="fcitem" mode="scaleToFill" ></image>
  102. </swiper-item>
  103. </swiper>
  104. <uni-popup ref="qrwrap" type="center">
  105. <view class="qro-wrap">
  106. <image src="../../static/img/ewm-wrap.png" mode="" class="qro-bg"></image>
  107. <view class="tit">
  108. 请使用微信扫描二维码
  109. </view>
  110. <view class="qr-wrap flex">
  111. <image :src="'../../static/ewm/'+showType+'.png'" mode=""></image>
  112. </view>
  113. <view class="qr-btn" @click="closeQr">
  114. 知道了
  115. </view>
  116. </view>
  117. </uni-popup>
  118. <uni-popup ref="showcard" type="center">
  119. <view class="showcard">
  120. <view class="bg">
  121. <image class="imgBox" src="../../static/img/test_bg.png" mode="scaleToFill"></image>
  122. </view>
  123. <view class="top flex">
  124. <image src="../../static/img/top_bg.png" mode="aspectFill"></image>
  125. <view class="china-font">武汉市江夏区红十字会</view>
  126. <view class="english-font">RED CROSS SOCIETY OF JIANGXIA DISTRICT, WUHAN</view>
  127. <view class="fgx"></view>
  128. </view>
  129. <view class="buttom flex">
  130. <view class="item flex">
  131. <image class="home_img" src="../../static/img/test_home.png" mode="aspectFill"></image>
  132. <view class="text"><text>武汉市江夏区四贤路6号江夏区<br>红十字会(江夏区卫健局5楼)</text></view>
  133. </view>
  134. <view class="item flex">
  135. <image class="home_img" src="../../static/img/test_phone.png" mode="aspectFill"></image>
  136. <view class="text">027-87012677</view>
  137. </view>
  138. <view class="map">
  139. <image class="map-box" src="../../static/img/baseaddr.jpg"></image>
  140. <view class="map-font flex">
  141. <view class="font-left">武汉市江夏区红十字会</view>
  142. <!-- <view @click="navigation()" class="font-right">
  143. <image src="../../static/img/btn.png" mode="aspectFill"></image>
  144. </view> -->
  145. </view>
  146. </view>
  147. <view class="qrcode">
  148. <image src="../../static/images/sharecard.jpg" mode="aspectFill"></image>
  149. </view>
  150. </view>
  151. <image src="../../static/icon/closepop.png" mode="" class="close-show" @click="closeShow"></image>
  152. </view>
  153. </uni-popup>
  154. <uni-popup ref="aixmap" type="center">
  155. <view class=" aixin-wrap">
  156. <image src="../../static/img/aixinjk.png" mode="" class="aixin"></image>
  157. <image src="../../static/icon/closepop.png" mode="" class="close-aixin" @click="closeAx"></image>
  158. </view>
  159. </uni-popup>
  160. </view>
  161. </template>
  162. <script>
  163. import ZgSwiper from '@/components/zhuge-swiper/zhuge-swiper';
  164. import videoPlayer from './videoPlayer.vue'
  165. import {
  166. mapState,
  167. mapMutations
  168. } from 'vuex';
  169. import {
  170. getdis,
  171. tocall,
  172. getListMechanism,
  173. getDistance
  174. } from '@/api/index.js';
  175. import {
  176. bannerlist
  177. } from '@/api/index.js';
  178. import {
  179. login,
  180. getUserInfo
  181. } from '@/api/login.js';
  182. import {
  183. details,
  184. deconstructArticle
  185. } from '@/api/info.js';
  186. var time = null
  187. export default {
  188. components: {
  189. videoPlayer,
  190. ZgSwiper,
  191. },
  192. data() {
  193. return {
  194. showV: true,
  195. swiperList: [],
  196. list4: [{
  197. url: 'https://cdn.uviewui.com/uview/resources/video.mp4',
  198. title: '昨夜星辰昨夜风,画楼西畔桂堂东',
  199. poster: 'https://cdn.uviewui.com/uview/swiper/swiper1.png'
  200. }, {
  201. url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  202. title: '身无彩凤双飞翼,心有灵犀一点通'
  203. }, {
  204. url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  205. title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
  206. }],
  207. address: [
  208. // {
  209. // name: '',
  210. // latitude: '',
  211. // longitude: ''
  212. // }
  213. ],
  214. new_address: '',
  215. is_play: false,
  216. current: 0,
  217. mark_type: 'yz',
  218. show_mark: [],
  219. showTools: true,
  220. scale: 18,
  221. latitude: 0,
  222. longitude: 0,
  223. covers: [],
  224. science: [],
  225. new_time: '',
  226. fc: [],
  227. timer: '',
  228. showType: '',
  229. marker: [],
  230. yz_mark: [],
  231. yz_list: [],
  232. jhz_mark: [],
  233. jhz_list: [],
  234. pageStartY: 0,
  235. pageEndY: 0,
  236. maxheight: '',
  237. videoAuto:false,//是否自动播放
  238. }
  239. },
  240. async onLoad(opt) {
  241. console.log(opt);
  242. await this.goLogin()
  243. this.getKpList()
  244. // this.getNewTime()
  245. this.getFc()
  246. this.getDy()
  247. },
  248. onShow() {
  249. // 每秒更新时间
  250. // if(this.timer)
  251. this.getListMechanism()
  252. clearInterval(this.timer)
  253. this.timer = setInterval(() => {
  254. this.getNewTime();
  255. }, 1000);
  256. },
  257. computed: {
  258. ...mapState('user', ['userInfo', 'baseURL', 'hasLogin'])
  259. },
  260. onHide() {
  261. clearInterval(this.timer)
  262. },
  263. onReady() {
  264. var that = this;
  265. // uni.getSystemInfo({
  266. // success: resu => {
  267. // const query = uni.createSelectorQuery();
  268. // query.select('.fc-wrap').boundingClientRect();
  269. // query.exec(function(res) {
  270. // that.maxheight = resu.windowHeight - res[0].top + 'px';
  271. // console.log(that.maxheight,'that.maxheight');
  272. // });
  273. // },
  274. // fail: res => {}
  275. // });
  276. },
  277. methods: {
  278. ...mapMutations('user', ['setUserInfo', 'login']),
  279. // 视频错误处理
  280. errvideo(item,index){
  281. item.videoerro=true;
  282. },
  283. //视频播放成功
  284. videoPlaySuccess(item,index){
  285. item.videoerro=false;
  286. this.videoAuto = false
  287. },
  288. //
  289. nextV() {
  290. if (this.current == this.science.length - 1) {
  291. this.current = 0
  292. } else {
  293. console.log('++');
  294. this.current++
  295. }
  296. },
  297. change(res) {
  298. this.current = res.detail.current;
  299. if(this.science[this.current].videoerro){
  300. this.videoAuto = true
  301. }else{
  302. this.videoAuto = false
  303. this.$refs.player[this.current].playVideo(this.current)
  304. }
  305. },
  306. openAx() {
  307. this.$refs.aixmap.open()
  308. },
  309. closeAx() {
  310. this.$refs.aixmap.close()
  311. },
  312. closeShow() {
  313. this.$refs.showcard.close()
  314. },
  315. stopv(res) {
  316. console.log(res);
  317. this.current = res.detail.current
  318. this.showV = false
  319. // console.log(this.current, 'this.current');
  320. let video = uni.createVideoContext('myvideo', this)
  321. video.pause()
  322. this.showV = true
  323. },
  324. //附近aed
  325. getListMechanism() {
  326. let that = this
  327. getListMechanism({
  328. page: 1,
  329. limit: 1000
  330. }).then(res => {
  331. console.log(res);
  332. let arr = [];
  333. arr = res.data.map(item => ({
  334. latitude: item.latitude,
  335. longitude: item.longitude,
  336. iconPath: '/static/icon/aed.png',
  337. width: '35',
  338. height: '35',
  339. id: item.id,
  340. address: item.detailed_address
  341. }));
  342. that.yz_mark = that.marker.concat(arr)
  343. that.yz_list = res.data
  344. })
  345. },
  346. mapChange() {},
  347. showMap(type) {
  348. // this.$refs.map.open()
  349. // console.log('type',type);
  350. if (type === 'yz') {
  351. this.mark_type = 'yz'
  352. if (this.yz_list && this.yz_list.length > 0) {
  353. this.show_mark = this.yz_list
  354. this.showTools = false
  355. } else {
  356. this.getListMechanism()
  357. }
  358. } else if (type === 'jhz') {
  359. this.mark_type = 'jhz'
  360. if (this.jhz_list && this.jhz_list.length > 0) {
  361. this.show_mark = this.jhz_list
  362. this.showTools = false
  363. } else {
  364. this.getJhz('show')
  365. }
  366. }
  367. },
  368. backTools() {
  369. this.showTools = true
  370. },
  371. showCard() {
  372. this.$refs.showcard.open()
  373. },
  374. openQr(type) {
  375. this.showType = type
  376. this.$refs.qrwrap.open()
  377. },
  378. closeQr() {
  379. this.$refs.qrwrap.close()
  380. },
  381. getDy() {
  382. let that = this
  383. try {
  384. uni.getLocation({
  385. type: 'gcj02',
  386. success: function(res) {
  387. // console.log('当前定位', res);
  388. that.setDy(res.latitude, res.longitude)
  389. that.getWhere(res.latitude, res.longitude)
  390. },
  391. fail() {
  392. that.setDy()
  393. }
  394. });
  395. } catch (e) {
  396. that.setDy()
  397. }
  398. },
  399. getWhere(lat, lon) {
  400. if (this.address && this.address.length > 0) {
  401. this.address = this.address.map(item => {
  402. item.sapce = this.sapce(lat, lon, item.latitude, item.longitude)
  403. })
  404. const sortedPeople = this.address.sort((a, b) => a.space - b.space);
  405. this.new_address = sortedPeople[0].name
  406. }
  407. },
  408. space(lat1, lng1, lat2, lng2) {
  409. console.log(lat1, lng1, lat2, lng2);
  410. var radLat1 = (lat1 * Math.PI) / 180.0;
  411. var radLat2 = (lat2 * Math.PI) / 180.0;
  412. var a = radLat1 - radLat2;
  413. var b = (lng1 * Math.PI) / 180.0 - (lng2 * Math.PI) / 180.0;
  414. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math
  415. .pow(Math.sin(b / 2), 2)));
  416. s = s * 6378.137;
  417. s = Math.round(s * 10000) / 10000;
  418. return s * 1000; // 单位米
  419. },
  420. setDy(lat = 30.353495, lon = 114.316738) {
  421. let that = this
  422. that.longitude = lon
  423. that.latitude = lat
  424. that.marker = [{
  425. latitude: that.latitude,
  426. longitude: that.longitude,
  427. iconPath: '/static/img/img19.png',
  428. width: '45',
  429. height: '45',
  430. }, ]
  431. that.getJhz();
  432. },
  433. getJhz(type) {
  434. let that = this
  435. getDistance({
  436. page: 1,
  437. limit: 1000,
  438. lng1: that.longitude,
  439. lat1: that.latitude
  440. }).then(res => {
  441. console.log(res, 'jhz');
  442. let boai = [],
  443. jhz = [],
  444. arr = [];
  445. res.data.forEach(item => {
  446. if (item.introduction.indexOf('驿站') !== -1) {
  447. boai.push(item)
  448. } else {
  449. jhz.push(item)
  450. }
  451. })
  452. boai = boai.sort((a, b) => a.introduction.localeCompare(b.introduction));
  453. arr = res.data.map(item => ({
  454. latitude: item.latitude,
  455. longitude: item.longitude,
  456. iconPath: '/static/icon/jhz.png',
  457. width: '35',
  458. height: '35',
  459. id: item.id,
  460. address: item.detailed_address
  461. }));
  462. that.jhz_mark = that.marker.concat(arr)
  463. console.log('jhzisst', that.jhz_mark);
  464. that.jhz_list = boai.concat(jhz)
  465. if (type == 'show') {
  466. that.show_mark = that.jhz_list
  467. that.showTools = false
  468. }
  469. })
  470. },
  471. navto(url) {
  472. if (this.hasLogin) {
  473. uni.navigateTo({
  474. url,
  475. fail() {
  476. uni.switchTab({
  477. url
  478. })
  479. }
  480. })
  481. } else {
  482. login({
  483. account: '13245678912',
  484. password: '132456'
  485. })
  486. .then(function(e) {
  487. uni.setStorageSync('token', e.data.token);
  488. getUserInfo({}).then((e) => {
  489. obj.login();
  490. // 保存返回用户数据
  491. obj.setUserInfo(e.data);
  492. uni.navigateTo({
  493. url,
  494. fail() {
  495. uni.switchTab({
  496. url
  497. })
  498. }
  499. })
  500. })
  501. })
  502. .catch(function(e) {
  503. console.log(e);
  504. });
  505. }
  506. },
  507. goLogin() {
  508. login({
  509. account: '13245678912',
  510. password: '132456'
  511. })
  512. .then(function(e) {
  513. uni.setStorageSync('token', e.data.token);
  514. })
  515. .catch(function(e) {
  516. console.log(e);
  517. });
  518. },
  519. getNewTime() {
  520. // 获取当前日期对象
  521. const currentDate = new Date();
  522. // 获取当前年份
  523. const currentYear = currentDate.getFullYear();
  524. // 获取当前月份(注意:月份从 0 开始,所以需要加 1)
  525. const currentMonth = currentDate.getMonth() + 1;
  526. // 获取当前日期
  527. const currentDay = currentDate.getDate();
  528. this.new_time = currentYear + '年' + (currentMonth > 9 ? currentMonth : ('0' + currentMonth)) + '月' + (
  529. currentDay > 9 ? currentDay : ('0' + currentDay)) + '日'
  530. // console.log(this.new_time);
  531. },
  532. videoErrorCallback(err) {
  533. console.log(err);
  534. },
  535. getKpList() {
  536. let that = this
  537. bannerlist().then(({
  538. data
  539. }) => {
  540. that.science = data.map(item => {
  541. item.is_play = false
  542. //处理当前视频是否加载错误
  543. item.videoerro = false
  544. return item
  545. });
  546. that.science.forEach((item,index) => {
  547. details({}, item.id).then(res => {
  548. let regex = /http.*\.mp4/g; // 匹配以 "http" 开头,以 ".mp4" 结尾的字符串
  549. let matches = res.data.content.match(regex)[0]; // 使用正则表达式匹配字符串
  550. // console.log(index == 1,index)
  551. // if(index == 1) {
  552. // that.$set(item, 'src', matches + 's')
  553. // }else {
  554. that.$set(item, 'src', matches)
  555. // }
  556. that.$set(item, 'type', 'video')
  557. that.$set(item, 'poster', item.image_input[0])
  558. // console.log(item);
  559. })
  560. })
  561. try {
  562. that.$nextTick(
  563. () => {
  564. that.$refs.player[that.current].playVideo(that.current)
  565. }
  566. )
  567. } catch (e) {
  568. //TODO handle the exception
  569. // uni.showModal({
  570. // content: JSON.stringify()
  571. // })
  572. }
  573. });
  574. },
  575. getFc() {
  576. details({}, 28).then(res => {
  577. // const regex = /http.*\.(png|jpg)/g;
  578. // this.fc = res.data.content.match(regex);
  579. // console.log(this.fc,'fc+++++++++');
  580. function extractImageUrls(text) {
  581. const regex = /https?:\/\/[^\s]+?\.(jpg|jpeg|png|gif)/gi;
  582. const matches = text.match(regex);
  583. return matches || [];
  584. }
  585. this.fc = extractImageUrls(res.data.content);
  586. })
  587. }
  588. }
  589. }
  590. </script>
  591. <style lang="scss" scoped>
  592. page {
  593. background-color: #fff;
  594. .content{
  595. height: 100%;
  596. }
  597. }
  598. $bl: 10.8;
  599. $lg: 1.5;
  600. .top-time {
  601. padding: 0 (15vw/$bl);
  602. font-size: (17vw/$bl);
  603. font-weight: bold;
  604. color: #666666;
  605. // background-color: red;
  606. // padding-top: (20vw/$bl);
  607. position: absolute;
  608. top: 0;
  609. width: 100%;
  610. .item {
  611. width: 50%;
  612. }
  613. height: (42vw/$bl);
  614. display: flex;
  615. image {
  616. width: (22.8vw/$bl);
  617. margin-right: (10vw/$bl);
  618. }
  619. .jr {
  620. justify-content: flex-end;
  621. align-items: center;
  622. }
  623. .jl {
  624. justify-content: flex-start;
  625. align-items: center;
  626. }
  627. }
  628. .tip {
  629. width: (450vw/$bl);
  630. height: (43vw/$bl);
  631. image {
  632. width: 100%;
  633. }
  634. margin:0 auto (5vw/$bl);
  635. }
  636. .tip2 {
  637. width: (415vw/$bl);
  638. margin: (5vw/$bl) auto (5vw/$bl);
  639. }
  640. .tip3 {
  641. width: (586vw/$bl);
  642. margin: (5vw/$bl) auto (5vw/$bl);
  643. position: relative;
  644. top: -(5vw/$bl);
  645. }
  646. .kp-wrap {
  647. width: (1080vw/$bl);
  648. height: (540vw/$bl);
  649. // background-color: red;
  650. }
  651. .function-list {
  652. width: 100vw;
  653. padding: 0 (75vw/$bl);
  654. height: (536vw/$bl);
  655. justify-content: space-between;
  656. align-items: center;
  657. flex-wrap: wrap;
  658. position: relative;
  659. .back {
  660. position: absolute;
  661. right: (70vw/$bl);
  662. font-size: (30vw/$bl);
  663. top: (-60vw/$bl);
  664. align-items: center;
  665. .back-lo {
  666. width: (20vw/$bl);
  667. height: (22vw/$bl);
  668. margin-right: (10vw/$bl);
  669. }
  670. }
  671. .map {
  672. height: 100%;
  673. width: (450vw/$bl);
  674. }
  675. .mark-list {
  676. height: 100%;
  677. width: (450vw/$bl);
  678. .mark {
  679. background-color: #fff;
  680. width: (450vw/$bl);
  681. padding: (20vw/$bl);
  682. margin: 0 auto (20vw/$bl);
  683. display: flex;
  684. flex-direction: column;
  685. justify-content: center;
  686. border-radius: (20vw/$bl);
  687. &::first-of-type {
  688. margin-top: 0;
  689. }
  690. .mark-name {
  691. font-size: (32vw/$bl);
  692. margin-bottom: (20vw/$bl);
  693. font-weight: bold;
  694. }
  695. .mark-address {
  696. font-size: (26vw/$bl);
  697. }
  698. }
  699. }
  700. .fun1 {
  701. width: (292vw/$bl);
  702. height: (125vw/$bl);
  703. // background-color: red;
  704. image {
  705. width: 100%;
  706. height: 100%;
  707. }
  708. }
  709. .fun2 {
  710. width: (443vw/$bl);
  711. height: (240vw/$bl);
  712. image {
  713. width: 100%;
  714. height: 100%;
  715. }
  716. }
  717. .fun3 {
  718. display: flex;
  719. flex-direction: column;
  720. justify-content: space-between;
  721. image {
  722. width: (454vw/$bl);
  723. height: (115vw/$bl);
  724. }
  725. }
  726. }
  727. .fc-wrap {
  728. width: (1080vw/$bl);
  729. height:35.9vh;
  730. .fc {
  731. width: 100%;
  732. height: 100%;
  733. display: flex;
  734. justify-content: center;
  735. align-items: center;
  736. }
  737. image {
  738. width: 100%;
  739. height: 100%;
  740. }
  741. }
  742. .qro-wrap {
  743. // width: ;
  744. width: (580vw/$bl/$lg);
  745. height: (750vw/$bl/$lg);
  746. font-size: (40vw/$bl/$lg);
  747. font-weight: 500;
  748. color: #333333;
  749. position: relative;
  750. z-index: 999;
  751. .qro-bg {
  752. width: (580vw/$bl/$lg);
  753. height: (750vw/$bl/$lg);
  754. }
  755. .tit {
  756. text-align: center;
  757. position: absolute;
  758. left: 0;
  759. right: 0;
  760. bottom: (633vw/$bl/$lg);
  761. margin: auto;
  762. }
  763. .qr-wrap {
  764. width: (362vw/$bl/$lg);
  765. height: (362vw/$bl/$lg);
  766. border: (6vw/$bl/$lg) solid #2D2E39;
  767. border-radius: (15vw/$bl/$lg);
  768. position: absolute;
  769. left: 0;
  770. right: 0;
  771. bottom: (211vw/$bl/$lg);
  772. margin: auto;
  773. justify-content: center;
  774. align-items: center;
  775. image {
  776. width: (300vw/$bl/$lg);
  777. height: (300vw/$bl/$lg);
  778. }
  779. }
  780. .qr-btn {
  781. text-align: center;
  782. width: (433vw/$bl/$lg);
  783. line-height: (86vw/$bl/$lg);
  784. background: #ffe6b7;
  785. border-radius: (43vw/$bl/$lg);
  786. font-size: (35vw/$bl/$lg);
  787. font-weight: 800;
  788. color: #ad5224;
  789. position: absolute;
  790. left: 0;
  791. right: 0;
  792. bottom: (63vw/$bl/$lg);
  793. margin: auto;
  794. }
  795. }
  796. .aixin-wrap {
  797. width: (524vw/$bl);
  798. height: (560vw/$bl);
  799. position: relative;
  800. .aixin {
  801. width: 100%;
  802. height: 100%;
  803. }
  804. }
  805. .showcard {
  806. position: relative;
  807. .close-show {
  808. width: (52vw/$bl);
  809. height: (52vw/$bl);
  810. position: absolute;
  811. left: 0;
  812. right: 0;
  813. bottom: (-82vw/$bl);
  814. margin: auto;
  815. }
  816. .flex {
  817. display: flex;
  818. justify-content: space-between;
  819. align-items: center;
  820. }
  821. width: (610vw/$bl);
  822. background-color: #fff;
  823. min-height: (100vw/$bl);
  824. // border-radius: (20vw/$bl);
  825. border: (6vw/$bl) solid #e01a1c;
  826. position: relative;
  827. .bg {
  828. width: 100%;
  829. height: 100%;
  830. position: absolute;
  831. left: 0;
  832. top: 0;
  833. padding: 20rpx;
  834. .imgBox {
  835. width: 100%;
  836. }
  837. }
  838. .top {
  839. flex-direction: column;
  840. width: 100%;
  841. image {
  842. width: (312vw/3*2/$bl);
  843. height: (312vw/3*2/$bl);
  844. border-color: linear-gradient(0deg, #e01a1c, #e01a1c);
  845. border-radius: 50%;
  846. margin-top: (85vw/3*2/$bl);
  847. }
  848. .china-font {
  849. z-index: 0;
  850. width: 100%;
  851. font-size: (56vw/3*2/$bl);
  852. padding-left: (20vw/3*2/$bl);
  853. letter-spacing: 15rpx;
  854. font-family: Swei Fist Leg CJK SC;
  855. font-weight: bold;
  856. color: #e01a1c;
  857. line-height: 1;
  858. margin-top: (19vw/3*2/$bl);
  859. text-align: center;
  860. }
  861. .english-font {
  862. margin-top: (14vw/3*2/$bl);
  863. z-index: 0;
  864. letter-spacing: (-1.9vw/3*2/$bl);
  865. width: 100%;
  866. font-size: (20vw/3*2/$bl);
  867. font-weight: bold;
  868. color: #e01a1c;
  869. text-align: center;
  870. }
  871. .fgx {
  872. margin-top: (25vw/3*2/$bl);
  873. z-index: 0;
  874. width: (625vw/3*2/$bl);
  875. border-bottom: 1rpx dashed #e01a1c;
  876. }
  877. }
  878. .buttom {
  879. flex-direction: column;
  880. .item {
  881. z-index: 0;
  882. margin: 0 auto;
  883. margin-top: 20rpx;
  884. width: (532vw/3*2/$bl);
  885. border: 1rpx solid #e01a1c;
  886. border-radius: (38vw/3*2/$bl);
  887. justify-content: flex-start;
  888. .home_img {
  889. height: (58vw/3*2/$bl);
  890. width: (58vw/3*2/$bl);
  891. margin: 8rpx 13rpx;
  892. flex-shrink: 0;
  893. }
  894. .text {
  895. display: inline-block;
  896. // padding-left: 75rpx;
  897. padding-right: (38vw/3*2/$bl);
  898. letter-spacing: 1.2rpx;
  899. font-size: (25vw/3*2/$bl);
  900. font-weight: bold;
  901. text-align: center;
  902. flex-grow: 1;
  903. .text1 {
  904. padding-left: (60vw/3*2/$bl);
  905. }
  906. }
  907. }
  908. .map {
  909. margin-top: (25vw/3*2/$bl);
  910. background-color: #ffffff;
  911. z-index: 0;
  912. width: (517vw/3*2/$bl);
  913. border: 2rpx solid #ea3638;
  914. line-height: 0;
  915. .map-box {
  916. width: (513vw/3*2/$bl);
  917. height: (286vw/3*2/$bl);
  918. background: #ffffff;
  919. }
  920. .map-font {
  921. height: (90vw/3*2/$bl);
  922. padding: 0 (20vw/3*2/$bl);
  923. justify-content: center;
  924. .font-left {
  925. font-family: PingFang SC;
  926. font-weight: bold;
  927. font-size: (29vw/3*2/$bl);
  928. color: #333333;
  929. line-height: 1;
  930. }
  931. .font-right {
  932. border-radius: 10rpx;
  933. overflow: hidden;
  934. background-color: #1593ff;
  935. image {
  936. width: (120vw/3*2/$bl);
  937. height: (45vw/3*2/$bl);
  938. }
  939. }
  940. }
  941. }
  942. .qrcode {
  943. width: (517vw/3*2/$bl);
  944. image {
  945. width: (517vw/3*2/$bl);
  946. height: (517vw/3*2/$bl);
  947. margin: (20vw/3*2/$bl) 0 (36vw/3*2/$bl);
  948. }
  949. }
  950. }
  951. }
  952. .map-wrap {
  953. background-color: #fff;
  954. position: relative;
  955. // top: (120vw/$bl);
  956. .map {
  957. height: 100%;
  958. width: (450vw/$bl);
  959. background-color: red;
  960. }
  961. }
  962. .clamp2 {
  963. overflow: hidden;
  964. text-overflow: ellipsis;
  965. display: -webkit-box;
  966. -webkit-line-clamp: 2;
  967. -webkit-box-orient: vertical;
  968. }
  969. .close-aixin {
  970. width: (52vw/$bl);
  971. height: (52vw/$bl);
  972. position: absolute;
  973. left: 0;
  974. right: 0;
  975. bottom: (-82vw/$bl);
  976. margin: auto;
  977. }
  978. /* 一行显示 */
  979. .clamp {
  980. overflow: hidden;
  981. text-overflow: ellipsis;
  982. white-space: nowrap;
  983. display: block;
  984. }
  985. </style>