index.vue 26 KB

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