map - 副本.nvue 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  1. <template>
  2. <view class="main-container">
  3. <map
  4. id="map"
  5. ref="map1"
  6. :show-location="true"
  7. :style="{'height':windowHeight+'px','width':windowWidth+'px'}"
  8. :latitude="latitude"
  9. :longitude="longitude"
  10. :markers="covers"
  11. :circles="circles"
  12. scale="13"
  13. @tap="clickMap"
  14. @markertap="markertap"
  15. ></map>
  16. <view class="my-location" @click="backMyLocation">
  17. <image class="my-img" src="/static/map/my.png" mode="aspectFill"></image>
  18. </view>
  19. <view class="search-box">
  20. <!-- <image class="search-img" src="../../../static/home/search-icon.png" mode=""></image> -->
  21. <text class="search-icon iconfont_nvue">&#xe653;</text>
  22. <input
  23. class="search-input"
  24. type="text"
  25. placeholder="请输入关键字"
  26. v-model="keyWord"
  27. @input="getMapList"
  28. />
  29. </view>
  30. <view class="top-btn">
  31. <view
  32. class="top-btn-item"
  33. v-for="item,index in pageListHalf"
  34. :key="index"
  35. @click="toApp(item)"
  36. >
  37. <image class="top-img" :src="$getImgPath(item.moduleImage)" mode="aspectFill"></image>
  38. <text class="top-txt">{{item.moduleName}}</text>
  39. </view>
  40. <view class="top-btn-item top-btn-item-l" @click="changeShowType">
  41. <image class="top-img" src="/static/map/more.png" mode=""></image>
  42. <text class="top-txt">更多地图</text>
  43. </view>
  44. </view>
  45. <view class="list-box" v-if="showType == '列表'">
  46. <babTouchbox
  47. :minHeight="0.35"
  48. :smallHeight="0.1"
  49. :maxHeight="0.8"
  50. :touchHeight="64"
  51. @currentHeight="setScrollHeight"
  52. @maxtHeight="setScrollViewHeight"
  53. >
  54. <view class="">
  55. <view class="tab-list">
  56. <view
  57. :class="[isActive == index ? 'isActive' : '' ,'tab-item']"
  58. v-for="(item , index) in typeOptions"
  59. :key="`label_${index}`"
  60. @click="changeType(item,index)"
  61. >
  62. <text v-if="isActive == index" class="atab-txt">{{item.name}}</text>
  63. <text v-else class="tab-txt">{{item.name}}</text>
  64. <text class="aline" v-if="isActive == index"></text>
  65. </view>
  66. </view>
  67. <scroll-view :style="{'height':scrollViewHeight - 110 +'px'}" scroll-y="true">
  68. <view class="address-list" v-if="addressList.length > 0">
  69. <view
  70. class="address-item"
  71. v-for="(item, index) in addressList"
  72. :key="item.id"
  73. @click="toDetails(item.id,item)"
  74. >
  75. <view class="item-l">
  76. <text class="txt name-txt">{{item.name}}</text>
  77. <view class="add-box">
  78. <image class="dwimg" src="/static/map/dw.png" mode="aspectFill"></image>
  79. <text class="txt address list-address">{{item.detailedAddress}}</text>
  80. </view>
  81. </view>
  82. <view class="item-r">
  83. <text class="txt text-jl">距我{{(item.distance/1000).toFixed(1)}}KM</text>
  84. <image class="jt" src="../../../static/home/arrow-right.png" mode=""></image>
  85. </view>
  86. </view>
  87. </view>
  88. <view v-else class="empty-box">
  89. <image class="empty-img" src="/static/map/empty-img.png" mode="aspectFit"></image>
  90. <text class="empty-text">暂无数据</text>
  91. </view>
  92. </scroll-view>
  93. </view>
  94. </babTouchbox>
  95. </view>
  96. <view class="detail-box" v-if="showType == '详情'" @click.stop="e => {return false}">
  97. <view class="info-top">
  98. <image
  99. class="close-img"
  100. src="@/static/map/close.png"
  101. mode="aspectFill"
  102. @click="showType = '列表'"
  103. ></image>
  104. <view class="top-l">
  105. <image
  106. class="map-img"
  107. v-if="mapInfo.icon"
  108. :src="$getImgPath(mapInfo.icon)"
  109. mode="aspectFill"
  110. ></image>
  111. <view class="none-img" v-else>
  112. <image class="imgnone" src="@/static/map/none.png" mode="aspectFill"></image>
  113. </view>
  114. </view>
  115. <view class="top-r">
  116. <text class="title">{{mapInfo.name}}</text>
  117. <text class="type-txt txt">{{getTypeName(mapInfo.classifyId)}}</text>
  118. <text class="distance txt">{{(mapInfo.distance/1000).toFixed(1)}}公里</text>
  119. <view class="top-r-b">
  120. <text class="sub_address txt">{{mapInfo.detailedAddress}}</text>
  121. <view class="to-btn" @click="toHere">
  122. <image class="toimg" src="@/static/map/location.png" mode="scaleToFill"></image>
  123. <text class="txt to-txt">去这里</text>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="info-bottom">
  129. <text class="remark">{{mapInfo.intro}}</text>
  130. </view>
  131. <view class="btn-box" v-if="mapInfo.modules && mapInfo.modules.length>0">
  132. <view
  133. :class="['fun-btn' , `fun-btn_${index}`]"
  134. v-if="index < 3"
  135. v-for="(item,index) in mapInfo.modules"
  136. :key="item.id"
  137. @click="toApp(item)"
  138. >
  139. <image class="funimg" :src="$getImgPath(item.icon)" mode="aspectFill"></image>
  140. <text class="funtxt">{{item.name}}</text>
  141. </view>
  142. </view>
  143. </view>
  144. <view class="more-box" v-if="showType == '更多'" @click.stop="e => {return false}">
  145. <view class="more-title-box">
  146. <text style="width: 30rpx"></text>
  147. <text class="m-title">更多地图</text>
  148. <image
  149. class="m-img"
  150. src="@/static/map/close.png"
  151. mode="aspectFill"
  152. @click.stop="showType = '列表'"
  153. ></image>
  154. </view>
  155. <view class="title-tip">
  156. <text class="line-tip"></text>
  157. </view>
  158. <view class="more-item">
  159. <view class="title-box">
  160. <text class="line"></text>
  161. <text class="more-title">地图服务</text>
  162. </view>
  163. <view class="fun-list">
  164. <view class="fun-item" v-for="item,index in pageList" :key="index" @click="toApp(item)">
  165. <image class="fun-img" :src="$getImgPath(item.moduleImage)" mode="aspectFill"></image>
  166. <text class="fun-txt">{{item.moduleName}}</text>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="more-item">
  171. <view class="title-box">
  172. <text class="line"></text>
  173. <text class="more-title">人才服务</text>
  174. </view>
  175. <view class="fun-list">
  176. <view class="fun-item" v-for="item,index in pageList2" :key="index" @click="toApp(item)">
  177. <image class="fun-img" :src="$getImgPath(item.moduleImage)" mode="aspectFill"></image>
  178. <text class="fun-txt">{{item.moduleName}}</text>
  179. </view>
  180. </view>
  181. </view>
  182. </view>
  183. <view
  184. class="mask-box"
  185. v-if="showType == '更多'"
  186. @click.stop="e => {return false}"
  187. :style="{'height':windowHeight+'px','width':windowWidth+'px'}"
  188. ></view>
  189. </view>
  190. </template>
  191. <script src="https://webapi.amap.com/maps?v=1.4.15&key=bde3903093d0eff03b0052192a67e1c0"></script>
  192. <script>
  193. let app = getApp();
  194. import babTouchbox from '@/components/bab-Touchbox/bab-Touchbox';
  195. export default {
  196. components: {
  197. babTouchbox,
  198. },
  199. data() {
  200. return {
  201. currentHeight: 0, // 滑动组件当前高度
  202. scrollViewHeight: 0, //用于计算滚动区域高度
  203. map: null,
  204. // 屏幕高度
  205. screenHeight: '',
  206. latitude: 30.480535,
  207. longitude: 114.42001,
  208. isActive: 0,
  209. typeOptions: [
  210. {
  211. id: -1,
  212. name: '全部',
  213. },
  214. ],
  215. addressList: [],
  216. // 标记的点位
  217. covers: [],
  218. circles: [],
  219. mapInfo: {},
  220. keyWord: '',
  221. acticeId: '',
  222. pageList: [],
  223. pageListHalf: [],
  224. pageList2: [],
  225. showType: '列表',
  226. };
  227. },
  228. watch: {},
  229. created() {
  230. // #ifdef APP-NVUE
  231. try {
  232. var domModule = weex.requireModule('dom');
  233. domModule.addRule('fontFace', {
  234. fontFamily: 'iconfont_nvue',
  235. src: "url('../../../static/font/yige/iconfont.ttf')",
  236. });
  237. } catch (e) {
  238. console.log('iconfont_nvue = ', e);
  239. //TODO handle the exception
  240. }
  241. // #endif
  242. let _this = this;
  243. this.getPages('map001');
  244. this.getPages('map002');
  245. uni.getLocation({
  246. type: 'gcj02',
  247. isHighAccuracy: true, //高精度
  248. geocode: true, //将位置解析成地址
  249. success: function (res) {
  250. _this.latitude = res.latitude;
  251. _this.longitude = res.longitude;
  252. _this.getTypeOptions();
  253. },
  254. fail: function (res) {
  255. reject();
  256. },
  257. });
  258. uni.$on('initPop', (data) => {
  259. if (data.init) {
  260. this.getTypeOptions();
  261. }
  262. });
  263. },
  264. beforeDestroy() {
  265. uni.$off('initPop');
  266. },
  267. computed: {
  268. windowHeight() {
  269. const { statusBarHeight, screenHeight, navHeight } = app.globalData;
  270. // 屏幕高度 - 状态栏高度 - 标题高度
  271. return screenHeight - statusBarHeight;
  272. },
  273. windowWidth() {
  274. return uni.getSystemInfoSync().windowWidth;
  275. },
  276. },
  277. onReady() {
  278. // this.map = plus.maps.create('map', {});
  279. this.map = uni.createMapContext('map', this);
  280. plus.key.addEventListener('backbutton', function () {
  281. console.log('backbutton');
  282. });
  283. plus.webview.currentWebview().setStyle({
  284. popGesture: 'none',
  285. });
  286. },
  287. methods: {
  288. // clickEvent() {
  289. // console.log('默认行为已被阻止');
  290. // },
  291. $getImgPath(path = '', str = 'http') {
  292. if (path.startsWith(str)) {
  293. return path;
  294. }
  295. return app.$mConfig.imgURL + path;
  296. },
  297. //查询聚合页 -
  298. getPages(code) {
  299. uni.request({
  300. url: app.$yghttp.config.baseUrl + '/themeModule/list/' + code,
  301. method: 'GET',
  302. success: (res) => {
  303. if (res.data.code === 200) {
  304. let data = res.data.data;
  305. if (code == 'map001') {
  306. this.pageList = data.themeModuleVoList;
  307. this.pageListHalf.push(data.themeModuleVoList[0]);
  308. this.pageListHalf.push(data.themeModuleVoList[1]);
  309. } else {
  310. this.pageList2 = data.themeModuleVoList;
  311. }
  312. }
  313. },
  314. fail: (err) => {
  315. console.log(err);
  316. },
  317. });
  318. },
  319. //获取地图类型
  320. getTypeOptions() {
  321. uni.request({
  322. url: app.$yghttp.config.baseUrl + '/location/map/classify/select',
  323. method: 'GET',
  324. success: (res) => {
  325. if (res.data.code === 200) {
  326. this.typeOptions = [
  327. {
  328. id: -1,
  329. name: '全部',
  330. },
  331. ];
  332. let data = res.data.data;
  333. data.forEach((e) => {
  334. this.typeOptions.push(e);
  335. });
  336. this.getMapList();
  337. }
  338. },
  339. fail: (err) => {
  340. console.log(err);
  341. },
  342. });
  343. },
  344. clickMap() {
  345. this.showType = '列表';
  346. },
  347. getTypeName(id) {
  348. let item = this.typeOptions.filter((i) => {
  349. return i.id === id;
  350. })[0];
  351. if (item && item.name) {
  352. return item.name;
  353. }
  354. },
  355. getTypeIcon(id) {
  356. let item = this.typeOptions.filter((i) => {
  357. return i.id === id;
  358. })[0];
  359. if (item && item.icon) {
  360. return item.icon;
  361. }
  362. },
  363. //获取地图列表
  364. getMapList(type) {
  365. let that = this;
  366. uni.request({
  367. url: app.$yghttp.config.baseUrl + '/location/map/nearbyList',
  368. method: 'GET',
  369. data: {
  370. latitude: that.latitude,
  371. longitude: that.longitude,
  372. classifyId: that.acticeId,
  373. name: that.keyWord,
  374. },
  375. success: function (res) {
  376. if (res.data.code === 200) {
  377. let data = res.data.data;
  378. that.addressList = data;
  379. data.forEach((e) => {
  380. e.width = '60rpx';
  381. e.height = '60rpx';
  382. e.locationType = 'zx';
  383. // e.label = {
  384. // content: e.name,
  385. // color: '#1a1a1a',
  386. // textAlign: 'center',
  387. // padding: 2,
  388. // borderRadius: 5,
  389. // anchorX: -20,
  390. // };
  391. e.iconPath = that.$getImgPath(that.getTypeIcon(e.classifyId));
  392. // e.iconPath = e.icon;
  393. });
  394. that.$nextTick(() => {
  395. that.covers = data;
  396. });
  397. if (type) {
  398. that.getNearbyList(type);
  399. }
  400. }
  401. },
  402. });
  403. },
  404. markertap(e) {
  405. let item = this.covers.filter((a) => a.id == e.detail.markerId)[0];
  406. this.$refs.map1.moveToLocation({
  407. longitude: item.longitude,
  408. latitude: item.latitude,
  409. });
  410. if (item.locationType == 'gd') {
  411. this.mapInfo = item;
  412. this.showType = '详情';
  413. } else {
  414. this.toDetails(e.detail.markerId);
  415. }
  416. },
  417. toApp(PageInfo) {
  418. uni.$emit('mapJump', PageInfo);
  419. },
  420. changeType(item, index) {
  421. this.isActive = index;
  422. if (index != 0) {
  423. this.acticeId = item.id;
  424. this.circles = [
  425. {
  426. latitude: this.latitude,
  427. longitude: this.longitude,
  428. fillColor: 'rgba(156,207,209,0.5)',
  429. radius: 3000,
  430. color: 'transparent',
  431. strokeWidth: 2
  432. },
  433. ];
  434. this.getMapList(item.name);
  435. } else {
  436. this.circles = [];
  437. this.acticeId = '';
  438. this.getMapList();
  439. }
  440. },
  441. //周边搜索
  442. getNearbyList(type) {
  443. let that = this;
  444. uni.request({
  445. url: app.$yghttp.config.baseUrl + '/location/map/placeAround',
  446. method: 'GET',
  447. data: {
  448. keywords: type,
  449. location: that.longitude + ',' + that.latitude,
  450. pageNum: 1,
  451. pageSize: 20,
  452. radius: 3000,
  453. },
  454. success: function (res) {
  455. console.log('dasdad', res);
  456. if (res.data.code === 200) {
  457. let data = res.data.data;
  458. let covers = JSON.parse(JSON.stringify(that.covers));
  459. data.forEach((e) => {
  460. e.width = '60rpx';
  461. e.height = '60rpx';
  462. e.classifyId = that.acticeId;
  463. e.longitude = e.location.split(',')[0];
  464. e.latitude = e.location.split(',')[1];
  465. e.locationType = 'gd';
  466. e.detailedAddress = e.address;
  467. e.intro = e.type;
  468. e.id = that.covers.length + 101;
  469. covers.push(e);
  470. that.addressList.push(e);
  471. e.iconPath = that.$getImgPath(that.getTypeIcon(e.classifyId));
  472. // e.iconPath = '';
  473. });
  474. that.$nextTick(() => {
  475. data.forEach((e) => {
  476. that.covers = covers;
  477. });
  478. });
  479. // that.covers = [
  480. // {
  481. // longitude: '114.435545',
  482. // latitude: '30.477182',
  483. // id: 1,
  484. // },
  485. // ];
  486. console.log('covers', that.covers);
  487. }
  488. },
  489. });
  490. },
  491. //查看详情
  492. toDetails(id, item) {
  493. let that = this;
  494. if (item && item.locationType == 'gd') {
  495. that.$refs.map1.moveToLocation({
  496. longitude: item.longitude,
  497. latitude: item.latitude,
  498. });
  499. that.mapInfo = item;
  500. that.showType = '详情';
  501. } else {
  502. uni.request({
  503. url:
  504. app.$yghttp.config.baseUrl +
  505. '/location/map/info/' +
  506. id +
  507. '?latitude=' +
  508. that.latitude +
  509. '&longitude=' +
  510. that.longitude,
  511. method: 'GET',
  512. success: (res) => {
  513. if (res.data.code === 200) {
  514. let data = res.data.data;
  515. that.$refs.map1.moveToLocation({
  516. longitude: data.longitude,
  517. latitude: data.latitude,
  518. });
  519. that.mapInfo = data;
  520. that.showType = '详情';
  521. }
  522. },
  523. fail: (err) => {
  524. console.log(err);
  525. uni.showToast({
  526. icon: 'none',
  527. title: '查询失败',
  528. duration: 2000,
  529. });
  530. },
  531. });
  532. }
  533. // console.log('toDetails = ', item )
  534. // that.latitude = item.latitude
  535. // that.longitude = item.longitude
  536. // that.covers = [item]
  537. // const id = item.id;
  538. },
  539. toHere() {
  540. uni.openLocation({
  541. latitude: parseFloat(this.mapInfo.latitude), // 要去的地址经度,浮点数
  542. longitude: parseFloat(this.mapInfo.longitude), // 要去的地址纬度,浮点数
  543. name: this.mapInfo.name, // 位置名
  544. address: this.mapInfo.detailedAddress, // 要去的地址详情说明
  545. scale: 16, // 地图缩放级别,整形值,范围从1~28。默认为最大
  546. });
  547. },
  548. changeShowType() {
  549. this.showType = '更多';
  550. },
  551. backMyLocation() {
  552. this.$refs.map1.moveToLocation();
  553. },
  554. setScrollHeight(val) {
  555. // 实时返回的滑动组件高度
  556. this.currentHeight = val;
  557. },
  558. setScrollViewHeight(val) {
  559. //最大高度
  560. this.scrollViewHeight = val;
  561. },
  562. },
  563. };
  564. </script>
  565. <style lang="scss" scoped>
  566. .main-container {
  567. position: relative;
  568. }
  569. .iconfont_nvue {
  570. font-family: iconfont_nvue;
  571. }
  572. .top-btn {
  573. position: absolute;
  574. top: 200rpx;
  575. right: 20rpx;
  576. flex-direction: column;
  577. padding: 20rpx 10rpx;
  578. border-radius: 20rpx;
  579. background-color: #fff;
  580. box-shadow: 0 0 20rpx #ccc;
  581. }
  582. .top-btn-item {
  583. flex-direction: column;
  584. align-items: center;
  585. margin-bottom: 15rpx;
  586. }
  587. .top-btn-item-l {
  588. margin-bottom: 0;
  589. }
  590. .top-img {
  591. width: 60rpx;
  592. height: 60rpx;
  593. }
  594. .top-txt {
  595. font-size: 20rpx;
  596. margin-top: 3rpx;
  597. }
  598. .my-location {
  599. position: absolute;
  600. align-items: center;
  601. justify-content: center;
  602. right: 20rpx;
  603. top: 800rpx;
  604. width: 90rpx;
  605. height: 90rpx;
  606. border-radius: 22rpx;
  607. background-color: #fff;
  608. }
  609. .my-img {
  610. width: 54rpx;
  611. height: 54rpx;
  612. }
  613. .search-box {
  614. position: absolute;
  615. top: 70rpx;
  616. left: 20rpx;
  617. right: 20rpx;
  618. flex-direction: row;
  619. align-items: center;
  620. margin-top: 20rpx;
  621. padding: 20rpx;
  622. background-color: #fff;
  623. border-radius: 40rpx;
  624. height: 80rpx;
  625. .search-icon {
  626. font-size: 40rpx;
  627. color: #666666;
  628. }
  629. }
  630. .search-img {
  631. width: 30rpx;
  632. height: 30rpx;
  633. }
  634. .search-input {
  635. flex: 1;
  636. font-size: 28rpx;
  637. margin-left: 10rpx;
  638. }
  639. .tab-list {
  640. flex-direction: row;
  641. align-items: flex-end;
  642. justify-content: flex-start;
  643. margin: 10rpx 0;
  644. }
  645. .tab-item {
  646. padding: 20rpx 20rpx 10rpx;
  647. }
  648. .tab-txt {
  649. position: relative;
  650. z-index: 4;
  651. font-size: 30rpx;
  652. }
  653. .atab-txt {
  654. position: relative;
  655. z-index: 1;
  656. font-size: 36rpx;
  657. font-weight: bold;
  658. }
  659. .aline {
  660. position: absolute;
  661. bottom: 8rpx;
  662. left: 20rpx;
  663. right: 0;
  664. z-index: -1;
  665. width: 74rpx;
  666. height: 20rpx;
  667. // background-image: linear-gradient(134deg,#3DBAD3,#44C6D4);
  668. background-color: #44c6d4;
  669. border-radius: 10rpx;
  670. opacity: 0.5;
  671. }
  672. .address {
  673. width: 450rpx;
  674. }
  675. .list-address {
  676. // line-height: 1;
  677. margin-left: 10rpx;
  678. color: #808080;
  679. }
  680. .add-box {
  681. margin-top: 10rpx;
  682. flex-direction: row;
  683. align-items: center;
  684. font-size: 22rpx;
  685. }
  686. .dwimg {
  687. width: 21.5rpx;
  688. height: 26rpx;
  689. }
  690. .address-item {
  691. flex-direction: row;
  692. align-items: center;
  693. justify-content: space-between;
  694. padding: 30rpx 10rpx;
  695. color: #808080;
  696. border-bottom-width: 1rpx;
  697. border-bottom-style: solid;
  698. border-bottom-color: #ededed;
  699. }
  700. .item-r {
  701. flex-direction: row;
  702. align-items: center;
  703. }
  704. .jt {
  705. width: 30rpx;
  706. height: 30rpx;
  707. }
  708. .name-txt {
  709. width: 500rpx;
  710. }
  711. .txt {
  712. font-size: 26rpx;
  713. }
  714. .text-jl {
  715. font-size: 22rpx;
  716. color: #808080;
  717. }
  718. .detail-box {
  719. position: fixed;
  720. bottom: 100rpx;
  721. left: 0;
  722. right: 0;
  723. // height: 800rpx;
  724. padding: 30rpx;
  725. margin: 20rpx;
  726. background-color: #fff;
  727. overflow: hidden;
  728. border-radius: 30rpx;
  729. }
  730. .info-top {
  731. position: relative;
  732. flex-direction: row;
  733. align-items: center;
  734. }
  735. .map-img {
  736. width: 200rpx;
  737. height: 200rpx;
  738. border-radius: 20rpx;
  739. }
  740. .none-img {
  741. align-items: center;
  742. justify-content: center;
  743. width: 200rpx;
  744. height: 200rpx;
  745. background-color: #e6e6e6;
  746. border-radius: 10rpx;
  747. }
  748. .imgnone {
  749. width: 150rpx;
  750. height: 150rpx;
  751. }
  752. .title {
  753. font-size: 30rpx;
  754. font-weight: bold;
  755. }
  756. .toimg {
  757. width: 30rpx;
  758. height: 30rpx;
  759. }
  760. .top-r {
  761. margin-left: 20rpx;
  762. align-items: flex-start;
  763. flex: 1;
  764. }
  765. .top-r-b {
  766. flex-direction: row;
  767. align-items: flex-end;
  768. justify-content: space-between;
  769. }
  770. .to-btn {
  771. padding: 10rpx;
  772. border-radius: 30rpx;
  773. flex-direction: row;
  774. align-items: center;
  775. background-image: linear-gradient(90deg, #45c7d5, #3cb7d1);
  776. }
  777. .to-txt {
  778. color: #fff;
  779. }
  780. .type-txt {
  781. margin: 5rpx 0;
  782. padding: 5rpx 20rpx;
  783. border-top-left-radius: 20rpx;
  784. border-bottom-right-radius: 20rpx;
  785. background-color: #e3fcfc;
  786. color: #43bdd6;
  787. font-size: 24rpx;
  788. }
  789. .info-bottom {
  790. padding: 20rpx 0;
  791. }
  792. .remark {
  793. font-size: 28rpx;
  794. }
  795. .btn-box {
  796. padding-top: 20rpx;
  797. border-top: 1rpx solid #e6e6e6;
  798. flex-direction: row;
  799. align-items: center;
  800. flex-wrap: wrap;
  801. }
  802. .fun-btn {
  803. flex-direction: row;
  804. justify-content: center;
  805. align-items: center;
  806. margin-right: 10rpx;
  807. margin-bottom: 10rpx;
  808. padding: 20rpx;
  809. border-radius: 20rpx;
  810. border-width: 1rpx;
  811. border-color: #ccc;
  812. border-style: solid;
  813. // height: 77rpx;
  814. // border-radius: 15rpx;
  815. .funtxt {
  816. font-size: 28rpx;
  817. margin-left: 10rpx;
  818. }
  819. &_0 {
  820. border: 1px solid #215dd9;
  821. background: #e6edfa;
  822. .funtxt {
  823. color: #215dd9;
  824. }
  825. }
  826. &_1 {
  827. border: 1px solid #3fb9d4;
  828. background: #edfdfd;
  829. .funtxt {
  830. color: #3fb9d4;
  831. }
  832. }
  833. &_2 {
  834. border: 1px solid #76bcb1;
  835. background: #e8f4f6;
  836. .funtxt {
  837. color: #76bcb1;
  838. }
  839. }
  840. }
  841. .sub_address {
  842. width: 280rpx;
  843. }
  844. .mask-box {
  845. position: fixed;
  846. left: 0;
  847. right: 0;
  848. bottom: 0;
  849. top: 0;
  850. z-index: 1;
  851. background-color: rgba(0, 0, 0, 0.5);
  852. }
  853. .more-box {
  854. position: fixed;
  855. bottom: 0;
  856. left: 0;
  857. right: 0;
  858. z-index: 2;
  859. height: 700rpx;
  860. padding: 40rpx;
  861. background-color: #fff;
  862. border-top-left-radius: 30rpx;
  863. border-top-right-radius: 30rpx;
  864. }
  865. .more-item {
  866. margin-bottom: 30rpx;
  867. }
  868. .title-box {
  869. flex-direction: row;
  870. align-items: center;
  871. }
  872. .line {
  873. width: 5rpx;
  874. height: 30rpx;
  875. background-color: #44c6d4;
  876. border-radius: 10rpx;
  877. }
  878. .more-title {
  879. position: relative;
  880. padding-left: 15rpx;
  881. font-size: 32rpx;
  882. font-weight: bold;
  883. }
  884. .fun-list {
  885. flex-direction: row;
  886. margin: 20rpx 0;
  887. padding: 0 20rpx;
  888. }
  889. .fun-item {
  890. flex-direction: column;
  891. align-items: center;
  892. margin-right: 40rpx;
  893. }
  894. .fun-img {
  895. width: 86rpx;
  896. height: 86rpx;
  897. }
  898. .fun-txt {
  899. margin-top: 5rpx;
  900. font-size: 26rpx;
  901. }
  902. .empty-box {
  903. margin-top: 20rpx;
  904. flex-direction: column;
  905. align-items: center;
  906. justify-content: center;
  907. }
  908. .empty-img {
  909. width: 204rpx;
  910. height: 193rpx;
  911. }
  912. .empty-text {
  913. padding: 32rpx;
  914. opacity: 0.59;
  915. color: #999999;
  916. font-size: 30rpx;
  917. font-weight: 400;
  918. }
  919. .more-title-box {
  920. flex-direction: row;
  921. align-items: center;
  922. justify-content: space-between;
  923. padding: 0 20rpx 10rpx;
  924. }
  925. .m-title {
  926. font-size: 36rpx;
  927. font-weight: bold;
  928. }
  929. .m-img {
  930. width: 30rpx;
  931. height: 30rpx;
  932. }
  933. .title-tip {
  934. flex-direction: row;
  935. justify-content: center;
  936. margin-bottom: 10rpx;
  937. }
  938. .line-tip {
  939. width: 64rpx;
  940. height: 8rpx;
  941. background-color: #cccccc;
  942. border-radius: 10rpx;
  943. }
  944. .close-img{
  945. position: absolute;
  946. top: 10rpx;
  947. right: 10rpx;
  948. width: 30rpx;
  949. height: 30rpx;
  950. }
  951. </style>