index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. <template>
  2. <view class="container">
  3. <view class="carousel-section">
  4. <!-- 背景色区域 -->
  5. <view class="bg"><image src="../../static/index/index13.png" mode=""></image></view>
  6. <!-- 标题栏和状态栏占位符 -->
  7. <view class="titleNview-placing"></view>
  8. <!-- 搜素栏 -->
  9. <view class="search flex">
  10. <image src="../../static/index/index09.png" class="address"></image>
  11. <!-- <view class="shop-name clamp" @click.stop="canChange == 0?nav('/pages/shoping/list'):''">{{ storeInfo.name }}</view> -->
  12. <view class="shop-name clamp">椒江区</view>
  13. <image class="shop-jt" src="../../static/index/index07.png" mode=""></image>
  14. <view class="input-box flex" @click.stop="clickSearch">
  15. <view class=" input-content flex">
  16. <view class="iconfont iconsearch"></view>
  17. <view class="input"><input type="text" disabled value="输入关键字搜索" /></view>
  18. </view>
  19. </view>
  20. </view>
  21. <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange" :indicator-dots="true" indicator-active-color="#FFFFFF">
  22. <!-- <swiper class="carousel" autoplay="true" duration="400" interval="5000"> -->
  23. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
  24. <image :src="item.pic" mode="aspectFill" @click="bannerNavToUrl(item)"></image>
  25. </swiper-item>
  26. </swiper>
  27. </view>
  28. <view class="navbar">
  29. <view class="navbar-box flex">
  30. <view class="navbar-item" @click="navTo('/pages/index/sign')">
  31. <image class="nitem-image" src="../../static/index/index05.png" mode=""></image>
  32. <view class="nitem-font">天天领红包</view>
  33. </view>
  34. <view class="navbar-item" @click="navTo('')">
  35. <image class="nitem-image" src="../../static/index/index04.png" mode=""></image>
  36. <view class="nitem-font">积分商城</view>
  37. </view>
  38. <view class="navbar-item" @click="navTo('/pages/product/list')">
  39. <image class="nitem-image" src="../../static/index/index03.png" mode=""></image>
  40. <view class="nitem-font">全部商品</view>
  41. </view>
  42. <view class="navbar-item" @click="navTo('/pages/user/shareQrCode')">
  43. <image class="nitem-image" src="../../static/index/index02.png" mode=""></image>
  44. <view class="nitem-font">邀请有礼</view>
  45. </view>
  46. <view class="navbar-item" @click="navTo('')">
  47. <image class="nitem-image" src="../../static/index/index01.png" mode=""></image>
  48. <view class="nitem-font">话费充值</view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="product-box" v-if="bastList.length != 0">
  53. <view class="product-title">
  54. <image class="pt-image" src="../../static/index/index15.png" mode=""></image>
  55. <view class="pt-title">会员礼包</view>
  56. </view>
  57. <view class="hotgoods">
  58. <view class="hotgoods-item" v-for="item in bastList" :key="item.id" @click="navToDetailPage(item)">
  59. <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
  60. <view class="title clamp2">{{ item.store_name }}</view>
  61. <view class="hot-price">
  62. <view class="hotPrice-box">会员价</view>
  63. <view class="price">
  64. <text class="font-size-sm">¥</text>
  65. {{ item.price * 1 }}
  66. </view>
  67. <view class="yuanPrice">{{ item.ot_price }}</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="shop" v-if="shoplist.length != 0">
  73. <view class="shop-title">
  74. <view class="shop-item">
  75. <view class="sitem-font">智能排序</view>
  76. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  77. </view>
  78. <view class="shop-item">
  79. <view class="sitem-font">位置距离</view>
  80. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  81. </view>
  82. <view class="shop-item">
  83. <view class="sitem-font">折扣优惠</view>
  84. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  85. </view>
  86. <view class="shop-item">
  87. <view class="sitem-font">筛选</view>
  88. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="shop-main flex" v-for="(item, index) in shoplist" :key="index">
  93. <image class="main-left" src="../../static/index/index13.png" mode=""></image>
  94. <view class="main-right flex">
  95. <view class="shopm-info">
  96. <view class="shopm-title">
  97. <view class="shopmt-font clamp">李家烤肉11111111111111111111111111111111111111111111</view>
  98. <view class="shopmt-good">荐</view>
  99. </view>
  100. <view class="address">椒江区市府大道200号</view>
  101. <view class="shopmt-tip">消费最高可得10%积分</view>
  102. </view>
  103. <view class="right">
  104. <view class="mright-top">
  105. <image class="mrt-image" src="../../static/index/index10.png" mode=""></image>
  106. <view class="mrt-font">距离0.3KM</view>
  107. </view>
  108. <view class="mright-bottom">
  109. <image class="mrb-item" src="../../static/index/index14.png" mode=""></image>
  110. <image class="mrb-item" src="../../static/index/index11.png" mode=""></image>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <u-tabbar activeColor="#EE0979" v-model="current" :list="tabbar" :mid-button="true"></u-tabbar>
  116. </view>
  117. </template>
  118. <script>
  119. import { lookSubpoints, lookOneself } from '../../api/user.js';
  120. import seckill from '../../components/seckill/seckill.vue';
  121. import { loadIndexs } from '@/api/index.js';
  122. import { getUserInfo, spread } from '@/api/user.js';
  123. import { setCoupons } from '@/api/functionalUnit.js';
  124. import { getBargainList } from '@/api/product.js';
  125. import { interceptor } from '@/utils/loginUtils';
  126. import { mapState, mapMutations } from 'vuex';
  127. import { tabbar } from '@/utils/tabbar.js';
  128. // #ifdef H5
  129. import { weixindata, shareLoad } from '@/utils/wxAuthorized';
  130. // #endif
  131. export default {
  132. components: {
  133. seckill
  134. },
  135. data() {
  136. return {
  137. tabbar: tabbar,
  138. current: 0,
  139. shareShow: false, //分享海报
  140. pageProportion: 0, //保存页面基于750宽度的比例
  141. swiperHeight: 0,
  142. checkid: 0,
  143. titleNViewBackground: '',
  144. longitude: 0, //经度
  145. latitude: 0, //纬度
  146. swiperCurrent: 0,
  147. swiperLength: 0,
  148. carouselList: [], //轮播列表
  149. bastList: [], //会员礼包
  150. shoplist: [], //商店列表
  151. page: 1,
  152. limit: 5,
  153. };
  154. },
  155. computed: {
  156. ...mapState(['loginInterceptor','baseURL']),
  157. ...mapState('user', ['hasLogin', 'userInfo'])
  158. },
  159. onLoad: function(option) {
  160. this.getaddress();
  161. // #ifdef MP
  162. if (option.scene) {
  163. // 存储小程序邀请人
  164. uni.setStorage({
  165. key: 'spread_code',
  166. data: option.scene
  167. });
  168. }
  169. // #endif
  170. // #ifdef H5
  171. this.IndexShare();
  172. //#endif
  173. },
  174. onShow: function() {
  175. // 判断是否强制登录
  176. if (!this.hasLogin) {
  177. // 登录拦截
  178. interceptor();
  179. }
  180. this.loadData();
  181. this.getBargainList();
  182. },
  183. //下拉刷新
  184. onPullDownRefresh() {
  185. this.loadData();
  186. },
  187. // #ifndef MP
  188. // 监听导航栏输入框点击事件
  189. onNavigationBarSearchInputClicked(e) {
  190. //跳转到搜索页面
  191. this.clickSearch();
  192. },
  193. //点击导航栏 buttons 时触发
  194. onNavigationBarButtonTap(e) {
  195. const index = e.index;
  196. if (index === 0) {
  197. this.$api.msg('点击了扫描');
  198. } else if (index === 1) {
  199. // #ifdef APP-PLUS
  200. const pages = getCurrentPages();
  201. const page = pages[pages.length - 1];
  202. const currentWebview = page.$getAppWebview();
  203. currentWebview.hideTitleNViewButtonRedDot({
  204. index
  205. });
  206. // #endif
  207. uni.navigateTo({
  208. url: '/pages/user/notice'
  209. });
  210. }
  211. },
  212. // #endif
  213. methods: {
  214. ...mapMutations(['setLat', 'setLon']),
  215. // #ifdef H5
  216. IndexShare() {
  217. let obj = this;
  218. let pages = getCurrentPages();
  219. // 获取当前页面
  220. let page = pages[pages.length - 1];
  221. let path = '#/' + page.route + '?';
  222. // 保存传值
  223. for (let i in page.options) {
  224. path += i + '=' + page.options[i] + '&';
  225. }
  226. console.log(obj.Path)
  227. // 保存邀请人
  228. path += 'spread=' + this.userInfo.uid;
  229. let data = {
  230. link: this.baseURL + '/index/' + path,
  231. title: this.userInfo.nickname + '邀请您进入响亮商城',
  232. desc:'欢迎加入响亮商城',
  233. imgUrl: 'https://xl.liuniu946.com/index/static/img/logo.jpg'
  234. };
  235. console.log(data,'分享数据');
  236. shareLoad(data);
  237. },
  238. // #endif
  239. getaddress() {
  240. console.log('dizhi+++++++++++');
  241. let obj = this;
  242. // uni.getLocation({
  243. // type: 'gcj02',
  244. // success: res => {
  245. // console.log(res, 123456);
  246. // obj.setLat(res.latitude);
  247. // obj.setLon(res.longitude);
  248. // },
  249. // fail: err => {
  250. // console.log(err, 'shi+++++++++++++++');
  251. // openMap().then(e => {
  252. // this.getaddress();
  253. // });
  254. // }
  255. // });
  256. weixindata().then(wxOjb => {
  257. console.log(wxOjb,'获取微信');
  258. wxOjb.getLocation({
  259. type: 'gcj02',
  260. success: res => {
  261. console.log(res, 123456);
  262. obj.setLat(res.latitude);
  263. obj.setLon(res.longitude);
  264. },
  265. fail: err => {
  266. console.log(err, 'shi+++++++++++++++');
  267. openMap().then(e => {
  268. this.getaddress();
  269. });
  270. }
  271. });
  272. });
  273. },
  274. //砍价商品推荐详情页
  275. navToDetailPages(item) {
  276. let id = item.product_id;
  277. //let type = 2;
  278. uni.navigateTo({
  279. url: '/pages/product/product?id=' + id
  280. });
  281. },
  282. navTo(url) {
  283. if (url == '') {
  284. this.$api.msg('暂未开通,敬请期待');
  285. } else {
  286. uni.navigateTo({
  287. url
  288. });
  289. }
  290. },
  291. openSubscribe: function(e) {
  292. let page = e;
  293. // #ifndef MP
  294. uni.navigateTo({
  295. url: page
  296. });
  297. // #endif
  298. // #ifdef MP
  299. uni.showLoading({
  300. title: '正在加载'
  301. });
  302. openBargainSubscribe()
  303. .then(res => {
  304. uni.hideLoading();
  305. uni.navigateTo({
  306. url: page
  307. });
  308. })
  309. .catch(err => {
  310. uni.hideLoading();
  311. });
  312. // #endif
  313. },
  314. getBargainList() {
  315. let that = this;
  316. getBargainList({
  317. page: that.page,
  318. limit: that.limit
  319. })
  320. .then(function(res) {
  321. that.$set(that, 'bargainlist', res.data.slice(0, 2));
  322. })
  323. .catch(res => {
  324. console.log(res, 'getBargainList');
  325. });
  326. },
  327. Mask() {
  328. this.MaskShow = false;
  329. this.shareShow = true;
  330. uni.setStorage({
  331. key: 'FirstEntry',
  332. data: true,
  333. success: function() {
  334. console.log(uni.getStorageSync('FirstEntry'), 'Mask');
  335. }
  336. });
  337. },
  338. Toshare() {
  339. if (this.userInfo == '') {
  340. getUserInfo({})
  341. .then(({ data }) => {
  342. this.setUserInfo(data);
  343. this.userInfo = data;
  344. })
  345. .catch(e => {});
  346. } else {
  347. this.shareShow = false;
  348. uni.navigateTo({
  349. url: '/pages/user/shareQrCode?spread=' + this.userInfo.uid
  350. });
  351. }
  352. },
  353. Tocancel() {
  354. this.shareShow = false;
  355. },
  356. // 监听切换事件
  357. listChange(e) {
  358. this.checkid = e.detail.current;
  359. },
  360. // 點擊搜索框
  361. clickSearch() {
  362. uni.navigateTo({
  363. url: '/pages/product/search'
  364. });
  365. },
  366. // 点击触发领取优惠券
  367. setCoupons(item) {
  368. // 判断是否已经领取了优惠券
  369. let obj = this;
  370. uni.showModal({
  371. title: '领取提示',
  372. content: '是否领取优惠券',
  373. success(e) {
  374. if (e.confirm) {
  375. setCoupons({
  376. couponId: item.id
  377. }).then(e => {
  378. item.is_use = true;
  379. uni.showToast({
  380. title: '领取成功',
  381. type: 'top',
  382. duration: 2000
  383. });
  384. });
  385. }
  386. }
  387. });
  388. },
  389. //商品种类切换
  390. change(item) {
  391. let id = item;
  392. this.checkid = id;
  393. if (this.checkid == 1) {
  394. // console.log(1);
  395. this.detail = this.selected_detail;
  396. } else if (this.checkid == 2) {
  397. // console.log(2);
  398. this.detail = this.new_product;
  399. } else {
  400. this.detail = this.cheap_good;
  401. }
  402. },
  403. // 监听图片加载完成
  404. onImageError(key, index) {
  405. this[key][index].image = '/static/error/errorImage.jpg';
  406. },
  407. // 请求载入数据
  408. async loadData() {
  409. loadIndexs({})
  410. .then(({ data }) => {
  411. let goods = data.info;
  412. this.carouselList = data.banner;
  413. this.swiperLength = this.carouselList.length;
  414. this.bastList = data.giftInfo; //会员礼包
  415. uni.stopPullDownRefresh();
  416. })
  417. .catch(e => {
  418. uni.stopPullDownRefresh();
  419. });
  420. },
  421. //轮播图切换修改背景色
  422. swiperChange(e) {
  423. const index = e.detail.current;
  424. this.swiperCurrent = index;
  425. this.titleNViewBackground = this.carouselList[index].background;
  426. },
  427. //详情页
  428. navToDetailPage(item) {
  429. let id = item.id;
  430. uni.navigateTo({
  431. url: '/pages/product/product?id=' + id + '&isVip=1'
  432. });
  433. },
  434. // 轮播图跳转
  435. bannerNavToUrl(item) {
  436. // #ifdef H5
  437. if (item.wap_url.indexOf('http') > 0) {
  438. window.location.href = item.wap_url;
  439. }
  440. // #endif
  441. //测试数据没有写id,用title代替
  442. uni.navigateTo({
  443. url: item.wap_url
  444. });
  445. }
  446. }
  447. };
  448. </script>
  449. <style lang="scss">
  450. .carousel-section {
  451. position: relative;
  452. padding-top: 10px;
  453. .bg {
  454. position: absolute;
  455. top: 0;
  456. left: 0;
  457. width: 750rpx;
  458. height: 378rpx;
  459. image {
  460. width: 100%;
  461. height: 100%;
  462. }
  463. }
  464. .titleNview-placing {
  465. height: var(--status-bar-height);
  466. box-sizing: content-box;
  467. }
  468. .search {
  469. justify-content: flex-start;
  470. padding: 10rpx 32rpx 20rpx;
  471. align-items: center;
  472. .address {
  473. width: 32rpx;
  474. height: 38rpx;
  475. }
  476. .shop-name {
  477. height: 38rpx;
  478. position: relative;
  479. top: -4rpx;
  480. z-index: 100;
  481. font-size: 30rpx;
  482. font-family: PingFang SC;
  483. font-weight: 500;
  484. color: #ffffff;
  485. padding-left: 10rpx;
  486. }
  487. .shop-jt {
  488. margin-left: 8rpx;
  489. width: 16rpx;
  490. height: 10rpx;
  491. }
  492. .input-box {
  493. margin-left: 10rpx;
  494. position: relative;
  495. z-index: 99;
  496. width: 520rpx;
  497. height: 60rpx;
  498. background: rgba(255, 255, 255, 0.4);
  499. border-radius: 30rpx;
  500. .input-content {
  501. position: relative;
  502. z-index: 11;
  503. border-radius: 99rpx;
  504. flex-grow: 1;
  505. padding: 5rpx 30rpx;
  506. background: rgba(255, 255, 255, 0.4);
  507. .iconsearch {
  508. font-size: 50rpx;
  509. color: #ffffff;
  510. }
  511. .input {
  512. margin-left: 19rpx;
  513. flex-grow: 1;
  514. color: #ffffff;
  515. input {
  516. font-size: 28rpx;
  517. color: #ffffff;
  518. }
  519. }
  520. }
  521. .input-button {
  522. padding-left: 20rpx;
  523. font-size: $font-base;
  524. height: 100%;
  525. }
  526. }
  527. }
  528. }
  529. .carousel {
  530. position: relative;
  531. z-index: 3;
  532. width: 100%;
  533. height: 360rpx;
  534. .carousel-item {
  535. width: 100%;
  536. height: 100%;
  537. padding: 0 28rpx;
  538. overflow: hidden;
  539. }
  540. image {
  541. width: 100%;
  542. height: 100%;
  543. border-radius: $border-radius-sm;
  544. }
  545. }
  546. .navbar {
  547. position: relative;
  548. z-index: 2;
  549. margin-top: -200rpx;
  550. width: 750rpx;
  551. height: 462rpx;
  552. background: #ffffff;
  553. border-radius: 40rpx;
  554. .navbar-box {
  555. padding-top: 250rpx;
  556. .navbar-item {
  557. display: flex;
  558. flex-direction: column;
  559. align-items: center;
  560. width: 20%;
  561. .nitem-image {
  562. width: 98rpx;
  563. height: 98rpx;
  564. }
  565. .nitem-font {
  566. margin-top: 22rpx;
  567. font-size: 26rpx;
  568. font-family: PingFang SC;
  569. font-weight: 500;
  570. color: #000000;
  571. }
  572. }
  573. }
  574. }
  575. .product-box {
  576. margin-top: 20rpx;
  577. background: #ffffff;
  578. padding: 26rpx 30rpx 20rpx;
  579. .product-title {
  580. display: flex;
  581. align-items: center;
  582. .pt-image {
  583. width: 36rpx;
  584. height: 36rpx;
  585. }
  586. .pt-title {
  587. margin-left: 8rpx;
  588. font-size: 32rpx;
  589. font-family: PingFang SC;
  590. font-weight: bold;
  591. color: #333333;
  592. }
  593. .pt-tip {
  594. margin-left: 16rpx;
  595. font-size: 20rpx;
  596. font-family: PingFang SC;
  597. font-weight: bold;
  598. color: #95a0b1;
  599. }
  600. }
  601. .hotgoods {
  602. margin-top: 38rpx;
  603. width: 100%;
  604. display: flex;
  605. flex-wrap: wrap;
  606. padding: 0 0 30rpx;
  607. .hotgoods-item {
  608. width: 48%;
  609. background-color: #ffffff;
  610. border-radius: 12rpx;
  611. &:nth-child(2n + 1) {
  612. margin-right: 24rpx;
  613. }
  614. .image-wrapper {
  615. width: 100%;
  616. height: 330rpx;
  617. border-radius: 3px;
  618. overflow: hidden;
  619. image {
  620. width: 100%;
  621. height: 100%;
  622. opacity: 1;
  623. border-radius: 12rpx 12rpx 0 0;
  624. }
  625. }
  626. .title {
  627. margin-top: 24rpx;
  628. font-size: 28rpx;
  629. font-family: PingFang SC;
  630. font-weight: 500;
  631. color: #333333;
  632. }
  633. .hot-price {
  634. display: flex;
  635. justify-content: flex-start;
  636. align-items: center;
  637. padding: 14rpx 0 30rpx;
  638. .hotPrice-box {
  639. width: 70rpx;
  640. height: 28rpx;
  641. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  642. border-radius: 5rpx;
  643. text-align: center;
  644. line-height: 28rpx;
  645. font-size: 20rpx;
  646. font-family: Source Han Sans CN;
  647. font-weight: 400;
  648. color: #ffffff;
  649. }
  650. .price {
  651. margin-left: 10rpx;
  652. font-size: 40rpx;
  653. color: #ff0000;
  654. font-weight: 500;
  655. }
  656. .yuanPrice {
  657. margin-left: 10rpx;
  658. font-size: 20rpx;
  659. font-family: PingFang SC;
  660. font-weight: 500;
  661. text-decoration: line-through;
  662. color: #999999;
  663. }
  664. .cart-icon {
  665. image {
  666. width: 44rpx;
  667. height: 44rpx;
  668. }
  669. }
  670. }
  671. }
  672. }
  673. }
  674. .shop {
  675. margin-top: 20rpx;
  676. background: #ffffff;
  677. padding: 0 12rpx;
  678. .shop-title {
  679. padding: 30rpx 0 20rpx;
  680. display: flex;
  681. align-items: center;
  682. border-bottom: 1px solid #e3e6e7;
  683. .shop-item {
  684. width: 25%;
  685. display: flex;
  686. align-items: center;
  687. justify-content: center;
  688. .sitem-font {
  689. font-size: 26rpx;
  690. font-family: PingFang SC;
  691. font-weight: bold;
  692. color: #333333;
  693. }
  694. .jt-down {
  695. width: 10rpx;
  696. height: 8rpx;
  697. margin-left: 12rpx;
  698. }
  699. }
  700. }
  701. }
  702. .shop-main {
  703. padding: 32rpx 18rpx 0 12rpx;
  704. align-items: flex-start;
  705. justify-content: flex-start;
  706. .main-left {
  707. width: 180rpx;
  708. height: 180rpx;
  709. border-radius: 10rpx;
  710. }
  711. .main-right {
  712. width: 500rpx;
  713. justify-content: space-between;
  714. align-items: flex-start;
  715. margin-left: 20rpx;
  716. padding: 13rpx 0 35rpx;
  717. border-bottom: 1px solid #eaeced;
  718. .shopm-info {
  719. max-width: 60%;
  720. line-height: 1;
  721. .shopm-title {
  722. display: flex;
  723. justify-content: flex-start;
  724. .shopmt-font {
  725. font-size: 34rpx;
  726. font-family: PingFang SC;
  727. font-weight: bold;
  728. color: #333333;
  729. }
  730. .shopmt-good {
  731. margin-left: 6rpx;
  732. width: 30rpx;
  733. height: 30rpx;
  734. border: 1px solid #ff4c4c;
  735. border-radius: 5rpx;
  736. font-size: 20rpx;
  737. font-family: PingFang SC;
  738. font-weight: 500;
  739. color: #ff4c4c;
  740. text-align: center;
  741. line-height: 30rpx;
  742. }
  743. }
  744. .address {
  745. margin-top: 16rpx;
  746. font-size: 24rpx;
  747. font-family: PingFang SC;
  748. font-weight: 500;
  749. color: #666666;
  750. }
  751. .shopmt-tip {
  752. position: relative;
  753. display: inline-block;
  754. flex-grow: 0;
  755. margin-top: 52rpx;
  756. padding: 8rpx;
  757. background: #fcf3f0;
  758. border-radius: 16rpx 16rpx 16rpx 0px;
  759. font-size: 20rpx;
  760. font-family: PingFang SC;
  761. font-weight: 500;
  762. color: #ff440d;
  763. }
  764. }
  765. .right {
  766. height: 100%;
  767. margin-top: 5rpx;
  768. display: flex;
  769. flex-direction: column;
  770. .mright-top {
  771. display: flex;
  772. justify-content: flex-end;
  773. align-items: center;
  774. .mrt-image {
  775. width: 20rpx;
  776. height: 28rpx;
  777. }
  778. .mrt-font {
  779. margin-left: 8rpx;
  780. font-size: 22rpx;
  781. font-family: PingFang SC;
  782. font-weight: 500;
  783. color: #666666;
  784. }
  785. }
  786. .mright-bottom {
  787. margin-top: 80rpx;
  788. display: flex;
  789. justify-content: flex-end;
  790. .mrb-item {
  791. width: 46rpx;
  792. height: 46rpx;
  793. margin-left: 14rpx;
  794. }
  795. }
  796. }
  797. }
  798. }
  799. </style>