index.vue 25 KB

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