index.vue 24 KB

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