index.vue 26 KB

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