index.vue 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  1. <template>
  2. <view class="content-wrap bg-color">
  3. <view class="head-wrap ">
  4. <view class="content-info ">
  5. <view class="h-bg">
  6. <!-- 轮播图 -->
  7. <u-swiper
  8. :circular="true"
  9. :list="bannerList"
  10. :height="340"
  11. ></u-swiper>
  12. </view>
  13. <view class="content">
  14. <!-- 通知栏 -->
  15. <view v-if="noticeList.length > 0" class="h-notice-bar">
  16. <scroll-notice :dataList="noticeList" :type="2" :interval="3000" :height="46" :fontSize="12" color="#666666"
  17. @click="handleNoticeClick"></scroll-notice>
  18. </view>
  19. <!-- 个人信息、钱包、商店 -->
  20. <view class="h-content-wrap">
  21. <!-- 欢迎语 -->
  22. <view class="welcome-wrap">
  23. <view class="logo">
  24. <image :src="userInfo.selfPhotoUrl || '/../static/logo.png'" mode=""></image>
  25. </view>
  26. <view class="text">
  27. <view class="phone">{{ userInfo.cellPhone || ''}}</view>
  28. <!-- <view class="welcome">尊敬的{{ userInfo.ncikName || ''}},下午好~</view>-->
  29. </view>
  30. <view @click="goQrCode" class="arrow-right">
  31. <!-- <image v-if="userInfo.wxQrCode" class="qrcode" :src="userInfo.qrcode" mode=""></image> -->
  32. <!-- <image class="qrcode" src="../../static/index/qrcode.png" mode=""></image>
  33. <view class="h-text">会员码</view> -->
  34. <view class="coupon-wrap">
  35. <u-icon name="/static/me/u5.png" color="#ffb83d" size="22"></u-icon>
  36. <text>会员码</text>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 余额信息 -->
  41. <!-- <view class="balance-info">-->
  42. <!-- <view @click="gotoRechargeService()" class="balance-amount">-->
  43. <!-- <text class="number" v-if="userInfo.balance">¥{{ userInfo.balance }}</text>-->
  44. <!-- <text class="number" v-else>¥0.00</text>-->
  45. <!-- <view class="">余额</view>-->
  46. <!-- </view>-->
  47. <!-- <view class="score-info">-->
  48. <!-- <text class="number" v-if="userInfo.integral">{{ userInfo.integral }}</text>-->
  49. <!-- <text class="number" v-else>0</text>-->
  50. <!-- <view class="">积分</view>-->
  51. <!-- </view>-->
  52. <!-- <view @click="gotoCoupon()" class="coupon-info">-->
  53. <!-- <text class="number" v-if="userInfo.coupon">{{ userInfo.coupon }}</text>-->
  54. <!-- <text class="number" v-else>0</text>-->
  55. <!-- <view class="">优惠券</view>-->
  56. <!-- </view>-->
  57. <!-- <view class="e-currency-info">-->
  58. <!-- <text class="number" v-if="userInfo.electronicCurrency">{{ userInfo.electronicCurrency }}</text>-->
  59. <!-- <text class="number" v-else>0</text>-->
  60. <!-- <view class="">电子币</view>-->
  61. <!-- </view>-->
  62. <!-- </view>-->
  63. <view class="custom-line"></view>
  64. <view class="store-wrap">
  65. <view class="store-info">
  66. <view class="logo">
  67. <image src="../../static/index/u55.png" mode=""></image>
  68. </view>
  69. <view @click="gotoStoreChoose()" class="store-content">
  70. <view class="h-row">
  71. <view class="store-desc">
  72. <view class="store-name">
  73. <view class="">{{ storeInfo.storeName }}</view>
  74. </view>
  75. </view>
  76. <view class="arrow-right">
  77. <view class="change-store">更换门店</view>
  78. <u-icon name="arrow-right" color="#333" size="16"></u-icon>
  79. </view>
  80. </view>
  81. <view class="h-row">
  82. <text class="address">地址:{{ storeInfo.address }}</text>
  83. <!-- <text class="address">距你1.8km</text> -->
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 上次订单 -->
  90. <view class="nav-wrap ">
  91. <view class="upper-order-wrap">
  92. <!-- 左边内容 -->
  93. <view @click="gotoServiceOrder()" class="left-content">
  94. <view class="title">
  95. 当日排队
  96. </view>
  97. <view class="desc">
  98. <!-- 多种服务模式任您选择-->
  99. </view>
  100. <view class="bg-img">
  101. <image src="../../static/index/2.png" mode=""></image>
  102. </view>
  103. </view>
  104. <!-- 右边内容 -->
  105. <view class="right-content" @click="goBookService()">
  106. <view class="title">
  107. 预约排队
  108. </view>
  109. <view class="desc">
  110. <!-- 拼命研发中敬请期待...-->
  111. </view>
  112. <view class="bg-img">
  113. <image src="../../static/index/1.png" mode=""></image>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- 导航菜单 -->
  118. <view class="horizontal-dashed-line"></view>
  119. <view class="menu-tab">
  120. <!-- <view class="button-wrap">-->
  121. <!-- <view @click="gotoComeOrder()" class="btn">-->
  122. <!-- <view class="icon">-->
  123. <!-- <u-icon name="/static/index/u213.png" color="red" size="30"></u-icon>-->
  124. <!-- </view>-->
  125. <!-- <view class="name">-->
  126. <!-- 再来一单-->
  127. <!-- </view>-->
  128. <!-- </view>-->
  129. <!-- </view>-->
  130. <view class="button-wrap">
  131. <view @click="gotoRechargeService()" class="btn">
  132. <view class="icon">
  133. <u-icon name="/static/index/u215.png" color="red" size="30"></u-icon>
  134. </view>
  135. <view class="name">
  136. 储值服务
  137. </view>
  138. </view>
  139. </view>
  140. <!-- <view class="button-wrap">-->
  141. <!-- <view @click="gotoOrder()" class="btn">-->
  142. <!-- <view class="icon">-->
  143. <!-- <u-icon name="/static/index/u217.png" color="red" size="30"></u-icon>-->
  144. <!-- </view>-->
  145. <!-- <view class="name">-->
  146. <!-- 当前订单-->
  147. <!-- </view>-->
  148. <!-- </view>-->
  149. <!-- </view>-->
  150. <view class="button-wrap">
  151. <view @click="gotoReceiveCoupons()" class="btn">
  152. <view class="icon">
  153. <u-icon name="/static/index/u247.png" color="red" size="30"></u-icon>
  154. </view>
  155. <view class="name">
  156. 领券中心
  157. </view>
  158. </view>
  159. </view>
  160. <view class="button-wrap">
  161. <view @click="goRights()" class="btn">
  162. <view class="icon">
  163. <u-icon name="/static/index/equity_card.png" color="red" size="30"></u-icon>
  164. </view>
  165. <view class="name">
  166. 权益卡
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. <!-- 为你推荐 -->
  173. <view class="recommend-wrap">
  174. <view class="recommend-nav">
  175. <view class="icon">
  176. <image src="/static/index/u87.png" mode=""></image>
  177. </view>
  178. <view class="title">
  179. 为你推荐
  180. </view>
  181. </view>
  182. <!-- 分割线 -->
  183. <view class="custom-line"></view>
  184. <!-- 门店列表 -->
  185. <view class="store-wrap ">
  186. <view class="store-list">
  187. <view class="store-content">
  188. <view class="store-img">
  189. <image src="../../static/logo.png" mode=""></image>
  190. </view>
  191. <view class="h-store-content">
  192. <view class="title">
  193. <text>{{ storeInfo.storeName }}</text>
  194. </view>
  195. <view class="adress">
  196. 地址:{{ storeInfo.address }}
  197. </view>
  198. <view class="desc">
  199. <view class="price">
  200. </view>
  201. <view @click="gotoGoods()" class="order-btn">
  202. <view class="btn">去下单</view>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. <view class="footer ">
  211. <view class="">---到底了---</view>
  212. </view>
  213. </view>
  214. </view>
  215. </view>
  216. <view class="tabBarView">
  217. <tab-bar :tabIndex="tabIndex"></tab-bar>
  218. </view>
  219. </view>
  220. </template>
  221. <script>
  222. import tabBar from "../../components/tabBar/tabBar";
  223. import ScrollNotice from '../../components/scroll-notice/ScrollNotice.vue';
  224. export default {
  225. components: {
  226. ScrollNotice, tabBar
  227. },
  228. data() {
  229. return {
  230. noticeList: [],
  231. notice: '',
  232. userInfo: {},
  233. bannerList: [],
  234. reqParm: {
  235. auth: true,
  236. appid: 46,
  237. telphone: '',
  238. longitude: 0,
  239. latitude: 0
  240. },
  241. storeList: [],
  242. storeInfo: {},
  243. };
  244. },
  245. onShow() {
  246. this.userInfo = uni.getStorageSync('userInfo');
  247. if (this.userInfo.selfPhoto) {
  248. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  249. }
  250. // 查询门店信息
  251. const data = uni.getStorageSync('storeInfo');
  252. if (!data) {
  253. // 获取门店列表数据
  254. this.getStoreListData();
  255. } else {
  256. this.storeInfo = data;
  257. }
  258. },
  259. onLoad(e) {
  260. uni.hideTabBar({
  261. animation: false
  262. })
  263. if (e.scene){
  264. let scene = e.scene
  265. setTimeout(()=>{
  266. this.userInfo = uni.getStorageSync('userInfo');
  267. this.scanCode(this.userInfo.otherId,scene);
  268. },5000)
  269. }
  270. // 获取经纬度信息
  271. // this.getLocation();
  272. //公告信息
  273. this.getNoticeListData();
  274. // 获取banner图列表
  275. this.getSlideshowList();
  276. // 用户信息
  277. setTimeout(()=>{
  278. this.userInfo = uni.getStorageSync('userInfo');
  279. if (this.userInfo.selfPhoto) {
  280. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  281. }
  282. },2000)
  283. },
  284. // 分享到朋友圈
  285. onShareTimeline() {
  286. },
  287. // 分享到用户
  288. onShareAppMessage(OBJECT) {
  289. },
  290. methods: {
  291. scanCode(otherId,memberId){
  292. console.log('绑定开始memberId=>'+memberId)
  293. this.$api.scanCode({
  294. openId:otherId,
  295. memberId:memberId
  296. }).then(res=>{
  297. console.log('用户绑定成功',res)
  298. console.log('绑定结束memberId=>'+memberId)
  299. })
  300. },
  301. goQrCode(){
  302. uni.navigateTo({
  303. url: '/pages/qrCode/index'
  304. })
  305. },
  306. goRights(){
  307. uni.navigateTo({
  308. url: '/storePages/rights/index'
  309. })
  310. },
  311. // 去服务点单页面
  312. gotoServiceOrder() {
  313. this.userInfo = uni.getStorageSync('userInfo')
  314. if (!this.userInfo.phone){
  315. uni.showModal({
  316. title:'温馨提示',
  317. content:'请绑定手机号,以便为你提供服务',
  318. success:res=>{
  319. if (res.confirm){
  320. uni.navigateTo({
  321. url: '/myPages/setting/setting-telphone',
  322. })
  323. }
  324. }
  325. })
  326. return
  327. }
  328. uni.navigateTo({
  329. url: '/orderPages/storeService/index'
  330. })
  331. },
  332. goBookService() {
  333. this.userInfo = uni.getStorageSync('userInfo')
  334. if (!this.userInfo.phone){
  335. uni.showModal({
  336. title:'温馨提示',
  337. content:'请绑定手机号,以便为你提供服务',
  338. success:res=>{
  339. if (res.confirm){
  340. uni.navigateTo({
  341. url: '/myPages/setting/setting-telphone',
  342. })
  343. }
  344. }
  345. })
  346. return
  347. }
  348. uni.navigateTo({
  349. url: '/orderPages/bookService/index'
  350. })
  351. },
  352. //点击通知
  353. handleNoticeClick(e) {
  354. console.log(e)
  355. uni.navigateTo({
  356. url: '/storePages/notice/index?noticeId=' + e.noticeId,
  357. })
  358. },
  359. // 去优惠劵大厅
  360. gotoReceiveCoupons() {
  361. uni.navigateTo({
  362. url: '/orderPages/receiveCoupons/index'
  363. })
  364. },
  365. // 去我的优惠劵页面
  366. gotoCoupon() {
  367. uni.navigateTo({
  368. url: '/orderPages/myCoupon/index'
  369. })
  370. },
  371. // 储值服务
  372. gotoRechargeService() {
  373. uni.navigateTo({
  374. url: '/myPages/recharge/index?name=lisa',
  375. })
  376. },
  377. // 获取banner图片
  378. getSlideshowList() {
  379. let that = this;
  380. this.$api.getSlideshowList({data: this.reqParm}).then((res) => {
  381. this.getImgUrlByBannerOssId(res.data.data);
  382. })
  383. },
  384. async getImgUrlByBannerOssId(items) {
  385. for (let i = 0; i < items.length; i++) {
  386. if (items[i].slideshowId) {
  387. this.$api.getImage(items[i].slideshowId).then(res => {
  388. this.bannerList.push(res.data.data[0].url.replace(/^http:/, "https:"))
  389. })
  390. }
  391. }
  392. },
  393. // 获取门店列表数据
  394. getStoreListData() {
  395. let that = this;
  396. // 用户绑定门店
  397. this.$api.storeList(this.reqParm).then((res) => {
  398. console.log(res.data.data[0])
  399. that.storeInfo = res.data.data[0]
  400. // 更新用户选择的门店信息
  401. uni.setStorageSync('storeInfo', res.data.data[0])
  402. })
  403. },
  404. getNoticeListData() {
  405. let req = {
  406. auth: true,
  407. noticeType: 2,
  408. status:0
  409. }
  410. this.$api.noticeList(req).then((res) => {
  411. if (res.data.rows.length === 1) {
  412. this.noticeList.push(res.data.rows[0])
  413. this.noticeList.push(res.data.rows[0])
  414. } else {
  415. this.noticeList = res.data.rows;
  416. }
  417. })
  418. },
  419. getImgUrlByOssId(ossId) {
  420. if (ossId) {
  421. this.$api.getImage(ossId).then(res => {
  422. this.userInfo.selfPhotoUrl = res.data.data[0].url.replace(/^http:/, "https:")
  423. this.$set(this.userInfo)
  424. })
  425. }
  426. },
  427. // 获取经纬度信息
  428. // getLocation() {
  429. //
  430. // uni.getLocation({
  431. // type: 'gcj02',
  432. // success: function (res) {
  433. // var latitude = res.latitude; // 纬度
  434. // var longitude = res.longitude; // 经度
  435. // var speed = res.speed; // 速度
  436. // var accuracy = res.accuracy; // 精确度
  437. // // 在这里可以对位置信息进行处理
  438. // console.log("纬度:" + latitude + ";经度" + longitude)
  439. // this.reqParm.latitude = latitude
  440. // this.reqParm.longitude = longitude
  441. // }
  442. // });
  443. // },
  444. // 去选择门店
  445. gotoStoreChoose() {
  446. uni.navigateTo({
  447. url: '/storePages/store/store-choose?type=1',
  448. })
  449. },
  450. // 去再来一单
  451. gotoComeOrder() {
  452. uni.$u.route({
  453. url: '/pages/index/tabbar',
  454. params: {
  455. PageCur: 'orderList',
  456. status: '4'
  457. }
  458. })
  459. },
  460. // 去订单页面
  461. gotoOrder() {
  462. uni.setStorageSync('orderListIndex', 1)
  463. uni.switchTab({
  464. url: '/pages/order/index',
  465. })
  466. },
  467. // 去商品下单页面
  468. gotoGoods() {
  469. this.userInfo = uni.getStorageSync('userInfo')
  470. if (!this.userInfo.phone){
  471. uni.showModal({
  472. title:'温馨提示',
  473. content:'请绑定手机号,以便为你提供服务',
  474. success:res=>{
  475. if (res.confirm){
  476. uni.navigateTo({
  477. url: '/myPages/setting/setting-telphone',
  478. })
  479. }
  480. }
  481. })
  482. return
  483. }
  484. uni.navigateTo({
  485. url: '/orderPages/bookService/index',
  486. })
  487. },
  488. // 用户绑定门店
  489. userBindStore() {
  490. let that = this;
  491. // 用户绑定门店
  492. this.$api.userBindStore(this.reqParm).then((res) => {
  493. console.log(this.reqParm)
  494. })
  495. },
  496. }
  497. };
  498. </script>
  499. <style scoped lang="scss">
  500. /* 头部内容 */
  501. .head-wrap {
  502. height: 1850rpx;
  503. background: #FFE05C;
  504. .content-info {
  505. position: relative;
  506. .h-bg {
  507. height: 680rpx;
  508. }
  509. .content {
  510. position: absolute;
  511. top: 460rpx;
  512. left: 24rpx;
  513. right: 24rpx;
  514. border-radius: 12rpx;
  515. .h-notice-bar {
  516. padding-left: 20rpx;
  517. background: #FFFFFF;
  518. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  519. border-radius: 20rpx;
  520. }
  521. .noticeCard{
  522. margin-top: 10rpx;
  523. padding: 10rpx;
  524. background: #FFFFFF;
  525. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  526. border-radius: 10px;
  527. }
  528. .h-content-wrap {
  529. background: #fff;
  530. border-radius: 10px;
  531. /* 欢迎语 */
  532. .welcome-wrap {
  533. padding-top: 12px;
  534. display: flex;
  535. margin-left: 12px;
  536. margin-right: 12px;
  537. margin-top: 16px;
  538. align-items: center;
  539. .logo {
  540. width: 13%;
  541. image {
  542. border-radius: 18px;
  543. width: 36px;
  544. height: 36px;
  545. }
  546. }
  547. .text {
  548. width: 60%;
  549. font-size: 14px;
  550. .welcome-wrap {
  551. font-size: 12px;
  552. color: #999999;
  553. }
  554. .welcome {
  555. font-size: 12px;
  556. color: #999999;
  557. }
  558. }
  559. .arrow-right {
  560. width: 30%;
  561. text-align: center;
  562. cursor: pointer;
  563. display: flex;
  564. justify-content: center;
  565. background: #fff8db;
  566. // background: red;
  567. height: 32px;
  568. align-items: center;
  569. border-radius: 16px;
  570. .qrcode {
  571. height: 20px;
  572. width: 20px;
  573. }
  574. .h-text {
  575. font-size: 12px;
  576. color: #999999;
  577. }
  578. .coupon-wrap {
  579. display: flex;
  580. font-size: 14px;
  581. align-items: center;
  582. }
  583. }
  584. }
  585. /* 钱包信息 */
  586. .balance-info {
  587. font-size: 12px;
  588. padding-left: 12px;
  589. margin-bottom: 16px;
  590. margin-top: 12px;
  591. color: #666;
  592. display: flex;
  593. justify-content: space-around;
  594. text-align: center;
  595. .balance-amount {
  596. padding-right: 4px;
  597. }
  598. .score-info {
  599. padding-right: 4px;
  600. }
  601. .coupon-info {
  602. padding-right: 4px;
  603. }
  604. .e-currency-info {
  605. padding-right: 4px;
  606. }
  607. .number {
  608. color: #333333;
  609. font-size: 14px;
  610. }
  611. }
  612. /* 商店信息 */
  613. .store-wrap {
  614. margin: 10px;
  615. .store-info {
  616. display: flex;
  617. .logo {
  618. width: 10%;
  619. text-align: center;
  620. display: flex;
  621. justify-content: center;
  622. align-items: center;
  623. image {
  624. width: 30px;
  625. height: 30px;
  626. }
  627. }
  628. .store-content {
  629. width: 90%;
  630. padding-bottom: 13px;
  631. .h-row {
  632. display: flex;
  633. align-items: center;
  634. justify-content: space-between;
  635. .store-desc {
  636. width: 90%;
  637. display: flex;
  638. line-height: 30px;
  639. font-size: 14px;
  640. .store-name {
  641. }
  642. }
  643. .arrow-right {
  644. text-align: right;
  645. margin: 0 auto;
  646. cursor: pointer;
  647. padding-top: 3px;
  648. width: 100px;
  649. display: flex;
  650. font-size: 14px;
  651. .change-store {
  652. text-align: right;
  653. color: #666;
  654. }
  655. image {
  656. width: 18px;
  657. height: 18px;
  658. }
  659. }
  660. .address {
  661. color: #999999;
  662. font-size: 12px;
  663. padding-right: 12px;
  664. }
  665. }
  666. }
  667. }
  668. .adress {
  669. font-size: 22rpx;
  670. white-space: nowrap;
  671. overflow: hidden;
  672. text-overflow: ellipsis;
  673. padding-left: 80rpx;
  674. color: #666;
  675. }
  676. }
  677. }
  678. }
  679. }
  680. }
  681. /* 上次订单 */
  682. .nav-wrap {
  683. background: #fff;
  684. border-radius: 8px;
  685. margin-top: 16px;
  686. .upper-order-wrap {
  687. display: flex;
  688. border-radius: 6px;
  689. justify-content: center;
  690. .left-content {
  691. margin-top: 20px;
  692. width: 50%;
  693. font-size: 12px;
  694. text-align: center;
  695. border-radius: 10px;
  696. .title {
  697. font-size: 18px;
  698. text-align: center;
  699. }
  700. .desc {
  701. padding-top: 6px;
  702. color: #999999;
  703. }
  704. .bg-img {
  705. text-align: center;
  706. height: 100px;
  707. display: flex;
  708. justify-content: center;
  709. align-items: center;
  710. image {
  711. width: 78px;
  712. height: 78px;
  713. }
  714. }
  715. }
  716. .right-content {
  717. margin-top: 20px;
  718. width: 50%;
  719. font-size: 12px;
  720. text-align: center;
  721. .title {
  722. font-size: 18px;
  723. text-align: center;
  724. }
  725. .desc {
  726. padding-top: 6px;
  727. color: #999999;
  728. }
  729. .bg-img {
  730. height: 100px;
  731. text-align: center;
  732. display: flex;
  733. justify-content: center;
  734. align-items: center;
  735. image {
  736. width: 78px;
  737. height: 78px;
  738. }
  739. }
  740. }
  741. }
  742. .menu-tab {
  743. display: flex;
  744. justify-content: space-around; // 平均分布
  745. justify-content: center;
  746. padding-bottom: 8px;
  747. .button-wrap {
  748. flex: 1;
  749. display: flex;
  750. align-items: center;
  751. justify-content: center;
  752. margin-top: 16px;
  753. margin-bottom: 18px;
  754. .name {
  755. padding-top: 3px;
  756. font-size: 12px;
  757. color: #666666;
  758. }
  759. .btn {
  760. padding-left: 12px;
  761. padding-right: 12px;
  762. height: 36px;
  763. border-radius: 18px;
  764. .icon {
  765. display: flex;
  766. padding-right: 6px;
  767. align-items: center;
  768. justify-content: center;
  769. image {
  770. height: 14px;
  771. width: 14px;
  772. }
  773. }
  774. }
  775. }
  776. }
  777. }
  778. /* 为你推荐 */
  779. .recommend-wrap {
  780. margin-top: 16px;
  781. background: #fff;
  782. border-radius: 8px;
  783. .recommend-nav {
  784. display: flex;
  785. margin-left: 12px;
  786. padding-top: 8px;
  787. padding-bottom: 4px;
  788. align-items: center;
  789. .icon {
  790. padding-right: 4px;
  791. image {
  792. height: 26px;
  793. width: 26px;
  794. }
  795. }
  796. .title {
  797. font-size: 16px;
  798. }
  799. }
  800. /* 门店列表 */
  801. .store-wrap {
  802. margin: 12px;
  803. height: 100px;
  804. .store-list {
  805. margin-top: 16px;
  806. .store-content {
  807. display: flex;
  808. .store-img {
  809. width: 30%;
  810. image {
  811. width: 100%;
  812. height: 78px;
  813. border-radius: 6px;
  814. }
  815. }
  816. .h-store-content {
  817. width: 70%;
  818. padding-left: 8px;
  819. padding-top: 4px;
  820. .title {
  821. font-size: 18px;
  822. font-family: "黑体", sans-serif;
  823. }
  824. .adress {
  825. font-size: 28rpx;
  826. line-height: 36rpx;
  827. -webkit-box-orient: vertical;
  828. -webkit-line-clamp:1 ;
  829. white-space: nowrap;
  830. overflow: hidden;
  831. text-overflow: ellipsis;
  832. color: #666;
  833. }
  834. .price {
  835. color: #666;
  836. width: 60%;
  837. font-size: 14px;
  838. line-height: 22px;
  839. .red {
  840. color: red;
  841. font-size: 16px;
  842. }
  843. }
  844. .desc {
  845. display: flex;
  846. padding-top: 3px;
  847. .price {
  848. width: 60%;
  849. font-size: 14px;
  850. line-height: 22px;
  851. }
  852. .order-btn {
  853. width: 100%;
  854. .btn {
  855. background: #FFE05C;
  856. text-align: center;
  857. border-radius: 14px;
  858. height: 26px;
  859. line-height: 26px;
  860. color: #333;
  861. font-size: 12px;
  862. }
  863. }
  864. }
  865. }
  866. }
  867. }
  868. }
  869. }
  870. /* 底部 */
  871. .footer {
  872. margin-top: 30px;
  873. height: 60px;
  874. font-size: 12px;
  875. text-align: center;
  876. color: #666;
  877. margin-bottom: 40px;
  878. }
  879. .tabBarView {
  880. position: fixed;
  881. bottom: 0;
  882. }
  883. </style>