index.vue 25 KB

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