index_mall.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973
  1. <template>
  2. <view>
  3. <!-- <headerSerch :dataConfig="headItem"></headerSerch> -->
  4. <view class="nav-bar_2">
  5. <text class="text_3">中意购</text>
  6. </view>
  7. <view class="block_2 flex-row justify-between">
  8. <view class="image-text_9 flex-row justify-between">
  9. <image class="icon_1" referrerpolicy="no-referrer" src="../../../static/images/addressIcon.png" />
  10. <text class="text-group_1 ">{{ markers[0].label.content }}</text>
  11. </view>
  12. <view class="image-text_10 flex-row justify-between">
  13. <text class="text-group_2" @click="changeAddress()">切换地点</text>
  14. <image class="icon_2" referrerpolicy="no-referrer" src="../../../static/images/quehuan.png" />
  15. </view>
  16. </view>
  17. <u-popup :show="showMap" mode="center" @close="showMap = false" @open="open">
  18. <view class="popup flex-col justify-center ">
  19. <view class="map1_box flex-row justify-center">
  20. <map id="map1" class="map" :latitude="markers[0].latitude" :longitude="markers[0].longitude" :markers="markers"
  21. @regionchange="regionChange">
  22. </map>
  23. </view>
  24. <view class="btn_box flex-row justify-center">
  25. <u-button @click="closePopup">取消</u-button>
  26. <u-button @click="closePopup">确定</u-button>
  27. </view>
  28. </view>
  29. </u-popup>
  30. <!-- 轮播 -->
  31. <view class="swiper-group">
  32. <u-swiper :list="swiperList" @change="e => current = e.current" :autoplay="false">
  33. <view slot="indicator" class="indicator">
  34. <view class="indicator__dot" v-for="(item, index) in swiperList" :key="index"
  35. :class="[index === current && 'indicator__dot--active']">
  36. </view>
  37. </view>
  38. </u-swiper>
  39. </view>
  40. <view class="header-group">
  41. <view class="tabs">
  42. <u-tabs class="defalt-utabs" :is-scroll="false" :list="navigationList" @click="clickNav" lineColor="#B22338"
  43. :inactiveStyle="{ color: '#999999' }" :activeStyle="{ color: '#B22338', fontWeight: 'bold' }"
  44. keyName="title"></u-tabs>
  45. </view>
  46. </view>
  47. <view class="good-list">
  48. <latestGroupBuying @changeTab="changeTab" :iSshowH="true" @detail="goDetail" :currentId="currentId" -
  49. :isSortType="false" :positionInfo="positionInfo" ref="latestGroupBuying"></latestGroupBuying>
  50. </view>
  51. <view v-if="!isLogin">
  52. <u-skeleton :loading="true" rows="20" :animate="true"></u-skeleton>
  53. </view>
  54. <view v-else>
  55. </view>
  56. <u-popup :round="15" :show="showTips" class="TipsPop" mode="center" @close="showTips = false" @open="() => { }">
  57. <view class="tips">
  58. </view>
  59. <view class="txt">
  60. <view class="tips1">
  61. 温馨提示
  62. </view>
  63. <view class="tips2">
  64. 您所在的城市没有开放团购目前仅支持的城市如下:
  65. </view>
  66. <view class="tips3">
  67. 上海市
  68. </view>
  69. <view class="tips4">
  70. 您可以通过右上角"
  71. <text class="red">切换地点</text>
  72. "定位到支持
  73. </view>
  74. <button class="tips5" @click="showTips = false">
  75. 知道了
  76. </button>
  77. </view>
  78. </u-popup>
  79. </view>
  80. </template>
  81. <script>
  82. import headerSerch from './components/headerSerch';
  83. import latestGroupBuying from './components/latestGroupBuying';
  84. import { getAddress } from '../../../api/wxMap'
  85. import {
  86. toLogin
  87. } from '@/libs/login.js';
  88. import {
  89. mapGetters
  90. } from "vuex";
  91. import { getAdsList, getNoticeList, getCategoryOne, getGoodsPage, getIndexData, getGoodsInfo } from '../../../api/home.js'
  92. import { latestGroupon, historyGroupon, detailGroupon, goodsDetail } from '../../../api/groupon.js'
  93. import {
  94. goShopDetail
  95. } from '@/libs/order.js';
  96. import UButton from "../../../uni_modules/uview-ui/components/u-button/u-button";
  97. export default {
  98. components: {
  99. UButton,
  100. headerSerch,
  101. latestGroupBuying
  102. },
  103. data () {
  104. return {
  105. showTips: true,
  106. showMap: false,
  107. markers: [{
  108. id: 1,
  109. latitude: '',//纬度,必填
  110. longitude: '',//经度,必填
  111. title: '',//标注点名
  112. width: 32,//标注图标宽度,Number类型
  113. height: 32,//标注图标高度,Number类型
  114. iconPath: '../../../static/images/addressIcon.png',//显示的图标,必填
  115. label: {
  116. content: '',
  117. textAlign: "center"
  118. }
  119. }],
  120. currentId: 0,
  121. noticeShow: false,
  122. noticeContent: '',
  123. tempArr: [],
  124. where: {
  125. zoneType: 8,
  126. current: 1,
  127. size: 20,
  128. },
  129. isSortType: 0,
  130. current: 0,
  131. noticeList: [],
  132. notice: [
  133. '寒雨连江夜入吴',
  134. '平明送客楚山孤',
  135. '洛阳亲友如相问',
  136. '一片冰心在玉壶'
  137. ],
  138. swiperList: [
  139. 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  140. 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  141. 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
  142. ],
  143. navigationList: [{
  144. title: '最新团购',
  145. id: '0'
  146. }, {
  147. title: '历史团购',
  148. id: '1'
  149. }],
  150. positionInfo: {
  151. address: '',
  152. longitude: '', //经度
  153. latitude: '', //纬度
  154. },
  155. user_latitude: '',
  156. user_longitude: ''
  157. }
  158. },
  159. computed: mapGetters(['isLogin']),
  160. created () {
  161. this.getAdsList();
  162. this.getLatestGroupon();
  163. this.getCurrentLocation()
  164. },
  165. onMounted (options) {
  166. },
  167. onLoad (options) {
  168. },
  169. onShow () {
  170. },
  171. updated () {
  172. },
  173. watch: {
  174. isLogin: {
  175. deep: true, //深度监听设置为 true
  176. handler: function (newV, oldV) {
  177. this.getAdsList()
  178. this.getLatestGroupon()
  179. }
  180. }
  181. },
  182. methods: {
  183. /**
  184. * 地图点击事件 定位不正确,原因未知,先不用
  185. * @param e
  186. */
  187. // tap(e){
  188. // console.log(e)
  189. // this.markers[0].latitude= e.detail.latitude;
  190. // this.markers[0].latitude= e.detail.latitude;
  191. //
  192. // },
  193. /**
  194. * 地图拖动事件
  195. * @param e
  196. */
  197. regionChange (e) {
  198. this.mapContext = uni.createMapContext("map1", this);
  199. this.mapContext.getCenterLocation({
  200. type: 'gcj02',
  201. success: (res) => {
  202. this.markers[0].longitude = res.longitude;
  203. this.markers[0].latitude = res.latitude;
  204. getAddress(this.markers[0].longitude, this.markers[0].latitude).then(res => {
  205. uni.setStorageSync('user_longitude', this.markers[0].longitude);
  206. uni.setStorageSync('user_latitude', this.markers[0].latitude);
  207. console.log(res)
  208. this.markers[0].label.content = res.result.address_reference.landmark_l2.title
  209. });
  210. }
  211. });
  212. },
  213. closePopup () {
  214. this.showMap = false
  215. },
  216. changeAddress () {
  217. this.showMap = true
  218. },
  219. // 通过自带的方法获取到当前的经纬度,调用方法获取到地址获取到地址的中文信息
  220. getCurrentLocation () {
  221. let that = this //在uniapp中药定义一下this才能使用
  222. uni.getLocation({
  223. type: 'wgs84',
  224. success: function (res) {
  225. uni.setStorageSync('user_longitude', res.longitude);
  226. uni.setStorageSync('user_latitude', res.latitude);
  227. console.log("dizhixinxi -> ", res)
  228. that.markers[0].longitude = res.longitude;
  229. that.markers[0].latitude = res.latitude;
  230. getAddress(res.longitude, res.latitude).then(res => {
  231. //初始化地址信息
  232. console.log("++++++++++初始化地址信息++++++++++++", res)
  233. that.positionInfo.address = res.result.address_reference.landmark_l2.title
  234. that.markers[0].label.content = res.result.address_reference.landmark_l2.title
  235. })
  236. }
  237. });
  238. },
  239. // 获取当前地址
  240. loAcquire (longitude, latitude) {
  241. let that = this;
  242. // uni.showLoading({
  243. // title: '加载中',
  244. // mask: true
  245. // });
  246. let str = `output=jsonp&key='此处输入你申请的密钥'=${latitude},${longitude}` //记得在这里要输入密钥哦!
  247. console.log(this.$jsonp);
  248. this.$jsonp('https://apis.map.qq.com/ws/geocoder/v1/?', {}).then(res => {
  249. console.log(res);
  250. uni.hideLoading();
  251. if (res.status == 0) {
  252. that.positionInfo.address = '当前位置是:' + res.result.address_component.street_number; //当前定位
  253. }
  254. })
  255. },
  256. pullResh () {
  257. // if (this.current == 0) {
  258. // uni.showLoading({ title: '刷新中' });
  259. // this.getAdsList()
  260. // this.getLatestGroupon()
  261. // } else {
  262. // this.$refs.latestGroupBuying.getGoodsPage()
  263. // }
  264. },
  265. getLatestGroupon () {
  266. // let that = this;
  267. // latestGroupon({
  268. // current: 1,
  269. // size: 1,
  270. // longitude: that.positionInfo.longitude,
  271. // latitude: that.positionInfo.latitude
  272. // }).then(res => {
  273. // console.log(res)
  274. // })
  275. },
  276. getGoodsInfo () {
  277. getGoodsInfo({
  278. current: 1,
  279. size: 50,
  280. isRecom: 1
  281. }).then(res => {
  282. this.tempArr = res.data
  283. uni.stopPullDownRefresh()
  284. uni.hideLoading();
  285. })
  286. },
  287. getBroGoodsInfo () {
  288. getGoodsInfo({
  289. current: 1,
  290. size: 50,
  291. zoneType: 6
  292. }).then(res => {
  293. this.tempArrBao = res.data
  294. })
  295. },
  296. getCategoryOne () {
  297. getCategoryOne().then(res => {
  298. this.navigationList = []
  299. let tuiJian = {
  300. title: '推荐',
  301. id: '0'
  302. }
  303. this.navigationList = res.data
  304. this.navigationList.unshift(tuiJian)
  305. })
  306. },
  307. menusTap (url, zoneType) {
  308. let that = this
  309. // #ifdef H5
  310. location.href = url
  311. // #endif
  312. // #ifdef MP || APP-PLUS
  313. if (zoneType == 8) {
  314. //共富取消中间过渡界面
  315. getGoodsInfo(that.where).then(res => {
  316. let list = res.data;
  317. if (that.where.zoneType == 8 && list.length == 1) {
  318. // 自动跳转共富1580商品详情
  319. that.godDetail(list[0])
  320. }
  321. })
  322. } else {
  323. uni.navigateTo({
  324. url: "/pages/goods/goods_list_mall/index?zoneType=" + zoneType + "&title=" + url
  325. });
  326. }
  327. // #endif
  328. },
  329. // 去详情页
  330. godDetail (item) {
  331. goShopDetail(item, this.uid).then(res => {
  332. uni.navigateTo({
  333. url: `/pages/goods_details/index?id=${item.id}`
  334. + "&zoneType=" + item.zoneType
  335. })
  336. })
  337. },
  338. noticeClose () {
  339. this.noticeShow = false
  340. },
  341. goNoticeDetail (value) {
  342. this.noticeContent = this.noticeList[value].content
  343. this.noticeShow = true
  344. },
  345. getNoticeList () {
  346. getNoticeList().then(res => {
  347. this.notice = []
  348. this.noticeList = res.data
  349. res.data.forEach(element => {
  350. this.notice.push(element.title)
  351. });
  352. })
  353. },
  354. getAdsList () {
  355. let that = this;
  356. getAdsList({
  357. type: 2
  358. }).then(res => {
  359. if (res.data.length > 0) {
  360. that.swiperList = []
  361. res.data.forEach(element => {
  362. that.swiperList.push(element.imageUrl)
  363. });
  364. }
  365. });
  366. },
  367. // 促销列表的点击事件;
  368. changeTab (type) {
  369. this.goodType = type;
  370. this.tempArr = [];
  371. this.page = 1;
  372. this.loadend = false;
  373. let onloadH = true;
  374. this.getGroomList(onloadH);
  375. },
  376. // 精品推荐
  377. getGroomList (onloadH) {
  378. let that = this;
  379. let type = that.goodType;
  380. if (that.loadend) return false;
  381. if (that.loading) return false;
  382. if (onloadH) {
  383. that.$set(that, 'iSshowH', true);
  384. }
  385. uni.request({
  386. url: 'api/groom/list',
  387. success: res => {
  388. that.$set(that, 'iSshowH', false);
  389. let maxPage = Math.ceil(this.numConfig / this.limit);
  390. let list = res.data.list,
  391. loadend = list.length < that.limit || that.page >= maxPage;
  392. let tempArr = that.$util.SplitArray(list, that.tempArr);
  393. that.$set(that, 'tempArr', tempArr.slice(0, this.numConfig));
  394. that.loadend = loadend;
  395. that.loadTitle = loadend ? that.$t(`没有更多内容啦~`) : that.$t(`加载更多`);
  396. that.page = that.page + 1;
  397. that.loading = false;
  398. }
  399. })
  400. // getGroomList(type, {
  401. // page: that.page,
  402. // limit: this.numConfig
  403. // })
  404. // .then(({
  405. // data
  406. // }) => {
  407. // that.$set(that, 'iSshowH', false);
  408. // let maxPage = Math.ceil(this.numConfig / this.limit);
  409. // let list = data.list,
  410. // loadend = list.length < that.limit || that.page >= maxPage;
  411. // let tempArr = that.$util.SplitArray(list, that.tempArr);
  412. // that.$set(that, 'tempArr', tempArr.slice(0, this.numConfig));
  413. // that.loadend = loadend;
  414. // that.loadTitle = loadend ? that.$t(`没有更多内容啦~`) : that.$t(`加载更多`);
  415. // that.page = that.page + 1;
  416. // that.loading = false;
  417. // })
  418. // .catch(res => {
  419. // that.loading = false;
  420. // that.loadTitle = that.$t(`加载更多`);
  421. // });
  422. },
  423. goDetail (item) {
  424. goShopDetail(item, this.$store.state.app.uid).then(res => {
  425. uni.navigateTo({
  426. url: `/pages/goods_details/index?id=${item.id}`
  427. });
  428. });
  429. },
  430. // 去商品详情
  431. goGoodsDetail (item) {
  432. goShopDetail(item, this.uid).then(res => {
  433. uni.navigateTo({
  434. url: `/pages/goods_details/index?id=${item.id}`
  435. });
  436. });
  437. },
  438. clickNav (e) {
  439. this.current = e.index
  440. // if (e.index > 0) {
  441. this.currentId = e.id
  442. // }
  443. // console.log("currentId ->", this.currentId)
  444. }
  445. }
  446. }
  447. </script>
  448. <style lang="scss" scoped>
  449. page {
  450. background-color: #ee4040;
  451. }
  452. .header-group {
  453. background-color: #F9F9F9;
  454. .search-group {
  455. display: flex;
  456. align-items: center;
  457. justify-content: space-between;
  458. padding: 30rpx 30rpx 10rpx 30rpx;
  459. .logo {
  460. width: 138rpx;
  461. height: 46rpx;
  462. }
  463. .message {
  464. line-height: 1;
  465. image {
  466. width: 48rpx;
  467. height: 48rpx;
  468. }
  469. }
  470. .search {
  471. flex: 1;
  472. padding: 0 30rpx;
  473. .searchBox {
  474. padding: 0 30rpx;
  475. display: flex;
  476. align-items: center;
  477. background-color: #FFF;
  478. border-radius: 100rpx;
  479. height: 60rpx;
  480. image {
  481. width: 28rpx;
  482. height: 28rpx;
  483. padding-right: 20rpx;
  484. }
  485. text {
  486. font-size: 24rpx;
  487. color: #999;
  488. }
  489. }
  490. }
  491. }
  492. .tabs {
  493. padding: 0 20rpx;
  494. }
  495. }
  496. .tab-content {
  497. .swiper-group {
  498. padding: 20rpx 30rpx 10rpx 30rpx;
  499. background-image: linear-gradient(to bottom, #EB4C63, #F9F9F9);
  500. }
  501. .grid-box {
  502. padding: 10rpx 30rpx 20rpx 30rpx;
  503. .grid-group {
  504. padding: 20rpx 0;
  505. border-radius: 20rpx;
  506. background-color: #FFF;
  507. display: flex;
  508. align-items: center;
  509. flex-wrap: wrap;
  510. .grid-item {
  511. width: 33.333%;
  512. display: flex;
  513. flex-direction: column;
  514. align-items: center;
  515. margin: 10rpx 0;
  516. image {
  517. width: 98rpx;
  518. height: 98rpx;
  519. }
  520. text {
  521. font-size: 24rpx;
  522. color: #666;
  523. margin-top: 10rpx;
  524. }
  525. }
  526. }
  527. }
  528. .notice {
  529. padding: 0 30rpx;
  530. }
  531. .sale-group {
  532. padding: 20rpx 30rpx;
  533. .sale-content {
  534. border-radius: 20rpx;
  535. background-image: linear-gradient(45deg, #EB4C63, #FFA470);
  536. padding: 20rpx 0;
  537. .title {
  538. display: flex;
  539. align-items: center;
  540. justify-content: space-between;
  541. color: #FFF;
  542. font-weight: bold;
  543. padding: 0 30rpx;
  544. .more {
  545. display: flex;
  546. align-items: center;
  547. font-size: 24rpx;
  548. font-weight: normal;
  549. image {
  550. width: 24rpx;
  551. height: 24rpx;
  552. }
  553. }
  554. }
  555. .goods-scroll {
  556. white-space: nowrap;
  557. padding: 20rpx 15rpx 0 15rpx;
  558. .goods-item {
  559. display: inline-block;
  560. width: 240rpx;
  561. padding: 15rpx;
  562. margin: 0 10rpx;
  563. background-color: #FFF;
  564. border-radius: 10rpx;
  565. image {
  566. width: 210rpx;
  567. height: 210rpx;
  568. }
  569. .goods-name {
  570. font-size: 26rpx;
  571. color: #333;
  572. width: 240rpx;
  573. margin: 6rpx 0;
  574. word-break: break-all;
  575. white-space: pre-wrap;
  576. text-overflow: ellipsis;
  577. display: -webkit-box;
  578. line-height: 1.2;
  579. -webkit-box-orient: vertical;
  580. -webkit-line-clamp: 2;
  581. overflow: hidden;
  582. }
  583. .tags {
  584. display: inline-block;
  585. font-size: 20rpx;
  586. padding: 6rpx;
  587. background-color: #FCE9EC;
  588. color: #EB4C63;
  589. margin: 6rpx 0;
  590. }
  591. .price {
  592. font-size: 32rpx;
  593. font-weight: bold;
  594. color: #EB4C63;
  595. }
  596. }
  597. }
  598. }
  599. }
  600. .goods-list {
  601. .title {
  602. text-align: center;
  603. color: #333;
  604. display: flex;
  605. align-items: center;
  606. justify-content: center;
  607. font-size: 32rpx;
  608. font-weight: bold;
  609. .line {
  610. display: inline-block;
  611. width: 200rpx;
  612. height: 2rpx;
  613. margin: 0 30rpx;
  614. background-color: #FFA470;
  615. }
  616. }
  617. .list-group {
  618. display: flex;
  619. align-items: center;
  620. flex-wrap: wrap;
  621. padding: 15rpx;
  622. box-sizing: border-box;
  623. .list-item-content {
  624. width: 50%;
  625. padding: 15rpx;
  626. box-sizing: border-box;
  627. .list-item {
  628. padding: 15rpx;
  629. background-color: #FFF;
  630. border-radius: 10rpx;
  631. image {
  632. width: 100%;
  633. }
  634. .goods-name {
  635. font-size: 28rpx;
  636. color: #333;
  637. margin: 6rpx 0;
  638. word-break: break-all;
  639. white-space: pre-wrap;
  640. text-overflow: ellipsis;
  641. display: -webkit-box;
  642. line-height: 1.4;
  643. -webkit-box-orient: vertical;
  644. -webkit-line-clamp: 2;
  645. overflow: hidden;
  646. }
  647. .tags {
  648. display: inline-block;
  649. font-size: 20rpx;
  650. padding: 6rpx;
  651. background-color: #FCE9EC;
  652. color: #EB4C63;
  653. margin: 6rpx 0;
  654. }
  655. .price {
  656. font-size: 32rpx;
  657. font-weight: bold;
  658. color: #EB4C63;
  659. }
  660. }
  661. }
  662. }
  663. }
  664. }
  665. .nav-bar_2 {
  666. width: 374px;
  667. margin-top: 6px;
  668. padding: 10px 9px 7px 16px;
  669. }
  670. .text_3 {
  671. overflow-wrap: break-word;
  672. color: rgba(51, 51, 51, 1);
  673. font-size: 18px;
  674. letter-spacing: 2px;
  675. font-family: STYuanti-SC-Regular;
  676. font-weight: NaN;
  677. text-align: left;
  678. white-space: nowrap;
  679. line-height: 24px;
  680. margin-top: 3px;
  681. }
  682. .applet-top-bar_1 {
  683. width: 90px;
  684. height: 30px;
  685. }
  686. .block_2 {
  687. display: flex;
  688. justify-content: space-around;
  689. box-shadow: 0px 2px 4px 0px rgba(178, 35, 56, 0.05);
  690. background-image: url(../../../static/images/addressBgi.png);
  691. background-size: cover;
  692. align-self: center;
  693. margin: 20rpx;
  694. margin-top: 4px;
  695. padding: 15px 8px 15px 8px;
  696. }
  697. .flex-row {
  698. display: flex;
  699. }
  700. .image-text_9 {
  701. width: 228px;
  702. }
  703. .icon_1 {
  704. width: 16px;
  705. height: 16px;
  706. margin: 2px 0 2px 0;
  707. }
  708. .text-group_1 {
  709. overflow-wrap: break-word;
  710. color: rgba(51, 51, 51, 1);
  711. font-size: 12px;
  712. text-align: left;
  713. white-space: nowrap;
  714. line-height: 20px;
  715. max-width: 190px;
  716. display: block;
  717. white-space: pre-line;
  718. margin-left: 20rpx;
  719. }
  720. .image-text_10 {
  721. width: 56px;
  722. }
  723. .text-group_2 {
  724. overflow-wrap: break-word;
  725. color: rgba(153, 153, 153, 1);
  726. font-size: 10px;
  727. font-weight: NaN;
  728. line-height: 20px;
  729. }
  730. .icon_2 {
  731. width: 12px;
  732. height: 12px;
  733. margin: 4px 0 4px 0;
  734. }
  735. .bord {
  736. border: 1px solid red;
  737. }
  738. .map_box {
  739. width: 100%;
  740. height: 70px;
  741. }
  742. .map {
  743. width: 100%;
  744. height: 100%;
  745. }
  746. .indicator {
  747. @include flex(row);
  748. justify-content: center;
  749. &__dot {
  750. height: 6px;
  751. width: 6px;
  752. border-radius: 100px;
  753. background-color: rgba(255, 255, 255, 0.35);
  754. margin: 0 5px;
  755. transition: background-color 0.3s;
  756. &--active {
  757. background-color: #ffffff;
  758. }
  759. }
  760. }
  761. .indicator-num {
  762. padding: 2px 0;
  763. background-color: rgba(0, 0, 0, 0.35);
  764. border-radius: 100px;
  765. width: 35px;
  766. @include flex;
  767. justify-content: center;
  768. &__text {
  769. color: #FFFFFF;
  770. font-size: 12px;
  771. }
  772. }
  773. .popup {
  774. width: 750rpx;
  775. height: 750rpx;
  776. background-color: #F9F9F9;
  777. }
  778. .map1_box {
  779. width: 750rpx;
  780. height: 670rpx;
  781. }
  782. .btn_box {
  783. width: 750rpx;
  784. height: 80rpx;
  785. }
  786. .TipsPop {
  787. width: 60vh;
  788. position: relative;
  789. }
  790. .tips {
  791. width: 550rpx;
  792. border-radius: 30px;
  793. left: 50%;
  794. transform: translateX(-50%);
  795. height: 56vh;
  796. background-size: 100% auto;
  797. background-image: url('http://www.gzzzyd.com/groupon/home_slices/编组 47@2x.png');
  798. background-repeat: no-repeat;
  799. text-align: center;
  800. border-radius: 20rpx;
  801. padding: 30rpx;
  802. position: absolute;
  803. top: -200rpx;
  804. }
  805. .txt {
  806. width: 550rpx;
  807. border-radius: 30px;
  808. left: 50%;
  809. transform: translateX(-50%);
  810. height: 56vh;
  811. text-align: center;
  812. position: relative;
  813. z-index: 999;
  814. padding: 30rpx;
  815. .tips1 {
  816. height: 80rpx;
  817. font-size: 56rpx;
  818. font-weight: 400;
  819. color: #333333;
  820. line-height: 80rpx;
  821. letter-spacing: 5px;
  822. margin-bottom: 30rpx;
  823. }
  824. .tips2 {
  825. height: 88rpx;
  826. font-size: 32rpx;
  827. font-weight: 400;
  828. color: #333333;
  829. line-height: 44rpx;
  830. margin-bottom: 30rpx;
  831. }
  832. .tips3 {
  833. height: 66rpx;
  834. font-size: 48rpx;
  835. font-weight: 600;
  836. color: #333333;
  837. line-height: 66rpx;
  838. margin-bottom: 30rpx;
  839. }
  840. .tips4 {
  841. height: 34rpx;
  842. font-size: 24rpx;
  843. font-weight: 400;
  844. color: #333333;
  845. line-height: 34rpx;
  846. margin-bottom: 30rpx;
  847. .red {
  848. color: #B42A3E;
  849. }
  850. }
  851. .tips5 {
  852. position: absolute;
  853. bottom: 50rpx;
  854. width: 80%;
  855. left: 50%;
  856. transform: translateX(-50%);
  857. height: 76rpx;
  858. background: #B42A3E;
  859. border-radius: 48rpx;
  860. line-height: 76rpx;
  861. font-size: 28rpx;
  862. font-weight: 400;
  863. color: #FFFFFF;
  864. margin-top: 30rpx;
  865. }
  866. }
  867. </style>