index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050
  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 :circular="true" :list="bannerList" :height="340"></u-swiper>
  8. </view>
  9. <view class="content">
  10. <!-- 通知栏 -->
  11. <view v-if="noticeList.length > 0" class="h-notice-bar">
  12. <scroll-notice :dataList="noticeList" :type="2" :interval="3000" :height="46" :fontSize="12"
  13. color="#666666" @click="handleNoticeClick"></scroll-notice>
  14. </view>
  15. <!-- 个人信息、钱包、商店 -->
  16. <view class="h-content-wrap">
  17. <!-- 欢迎语 -->
  18. <view class="welcome-wrap">
  19. <view class="logo">
  20. <image :src="userInfo.selfPhotoUrl || '/static/me/ud4.png'" mode=""></image>
  21. </view>
  22. <view class="text">
  23. <view class="phone">{{ userInfo.ncikName || ''}}</view>
  24. <!-- <view class="welcome">尊敬的{{ userInfo.ncikName || ''}},下午好~</view>-->
  25. </view>
  26. <view @click="goQrCode" class="arrow-right">
  27. <!-- <image v-if="userInfo.wxQrCode" class="qrcode" :src="userInfo.qrcode" mode=""></image> -->
  28. <!-- <image class="qrcode" src="../../static/index/qrcode.png" mode=""></image>
  29. <view class="h-text">会员码</view> -->
  30. <view class="coupon-wrap">
  31. <u-icon name="/static/me/u5.png" color="#ffb83d" size="22"></u-icon>
  32. <text>会员码</text>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 余额信息 -->
  37. <!-- <view class="balance-info">-->
  38. <!-- <view @click="gotoRechargeService()" class="balance-amount">-->
  39. <!-- <text class="number" v-if="userInfo.balance">¥{{ userInfo.balance }}</text>-->
  40. <!-- <text class="number" v-else>¥0.00</text>-->
  41. <!-- <view class="">余额</view>-->
  42. <!-- </view>-->
  43. <!-- <view class="score-info">-->
  44. <!-- <text class="number" v-if="userInfo.integral">{{ userInfo.integral }}</text>-->
  45. <!-- <text class="number" v-else>0</text>-->
  46. <!-- <view class="">积分</view>-->
  47. <!-- </view>-->
  48. <!-- <view @click="gotoCoupon()" class="coupon-info">-->
  49. <!-- <text class="number" v-if="userInfo.coupon">{{ userInfo.coupon }}</text>-->
  50. <!-- <text class="number" v-else>0</text>-->
  51. <!-- <view class="">优惠券</view>-->
  52. <!-- </view>-->
  53. <!-- <view class="e-currency-info">-->
  54. <!-- <text class="number" v-if="userInfo.electronicCurrency">{{ userInfo.electronicCurrency }}</text>-->
  55. <!-- <text class="number" v-else>0</text>-->
  56. <!-- <view class="">电子币</view>-->
  57. <!-- </view>-->
  58. <!-- </view>-->
  59. <view class="custom-line"></view>
  60. <view class="store-wrap">
  61. <view class="store-info">
  62. <view class="logo">
  63. <image src="../../static/index/u55.png" mode=""></image>
  64. </view>
  65. <view @click="gotoStoreChoose()" class="store-content">
  66. <view class="h-row">
  67. <view class="store-desc">
  68. <view class="store-name">
  69. <view class="">{{ storeInfo.storeName }}</view>
  70. </view>
  71. </view>
  72. <view class="arrow-right">
  73. <view class="change-store">更换门店</view>
  74. <u-icon name="arrow-right" color="#333" size="16"></u-icon>
  75. </view>
  76. </view>
  77. <view class="h-row">
  78. <text class="address">地址:{{ storeInfo.address }}</text>
  79. <text class="address1">{{storeInfo.distanceDesc}}</text>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 上次订单 -->
  86. <view class="nav-wrap ">
  87. <view class="upper-order-wrap">
  88. <!-- 左边内容 -->
  89. <view @click="gotoServiceOrder()" class="left-content">
  90. <view class="title">
  91. 当日排队
  92. </view>
  93. <view class="desc">
  94. <!-- 多种服务模式任您选择-->
  95. </view>
  96. <view class="bg-img">
  97. <image src="../../static/index/2.png" mode=""></image>
  98. </view>
  99. </view>
  100. <!-- 右边内容 -->
  101. <view class="right-content" @click="goBookService()">
  102. <view class="title">
  103. 明日预约
  104. </view>
  105. <view class="desc">
  106. <!-- 拼命研发中敬请期待...-->
  107. </view>
  108. <view class="bg-img">
  109. <image src="../../static/index/1.png" mode=""></image>
  110. </view>
  111. </view>
  112. </view>
  113. <!-- 导航菜单 -->
  114. <view class="horizontal-dashed-line"></view>
  115. <view class="menu-tab">
  116. <!-- <view class="button-wrap">-->
  117. <!-- <view @click="gotoComeOrder()" class="btn">-->
  118. <!-- <view class="icon">-->
  119. <!-- <u-icon name="/static/index/u213.png" color="red" size="30"></u-icon>-->
  120. <!-- </view>-->
  121. <!-- <view class="name">-->
  122. <!-- 再来一单-->
  123. <!-- </view>-->
  124. <!-- </view>-->
  125. <!-- </view>-->
  126. <view class="button-wrap">
  127. <view @click="gotoRechargeService()" class="btn">
  128. <view class="icon">
  129. <u-icon name="/static/index/u215.png" color="red" size="30"></u-icon>
  130. </view>
  131. <view class="name">
  132. 储值服务
  133. </view>
  134. </view>
  135. </view>
  136. <!-- <view class="button-wrap">-->
  137. <!-- <view @click="gotoOrder()" class="btn">-->
  138. <!-- <view class="icon">-->
  139. <!-- <u-icon name="/static/index/u217.png" color="red" size="30"></u-icon>-->
  140. <!-- </view>-->
  141. <!-- <view class="name">-->
  142. <!-- 当前订单-->
  143. <!-- </view>-->
  144. <!-- </view>-->
  145. <!-- </view>-->
  146. <view class="button-wrap">
  147. <view @click="gotoReceiveCoupons()" class="btn">
  148. <view class="icon">
  149. <u-icon name="/static/index/u247.png" color="red" size="30"></u-icon>
  150. </view>
  151. <view class="name">
  152. 领券中心
  153. </view>
  154. </view>
  155. </view>
  156. <view class="button-wrap">
  157. <view @click="goRights()" class="btn">
  158. <view class="icon">
  159. <u-icon name="/static/index/equity_card.png" color="red" size="30"></u-icon>
  160. </view>
  161. <view class="name">
  162. 权益卡
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. <!-- 为你推荐 -->
  169. <!-- <view class="recommend-wrap">-->
  170. <!-- <view class="recommend-nav">-->
  171. <!-- <view class="icon">-->
  172. <!-- <image src="/static/index/u87.png" mode=""></image>-->
  173. <!-- </view>-->
  174. <!-- <view class="title">-->
  175. <!-- 为你推荐-->
  176. <!-- </view>-->
  177. <!-- </view>-->
  178. <!-- &lt;!&ndash; 分割线 &ndash;&gt;-->
  179. <!-- <view class="custom-line"></view>-->
  180. <!-- &lt;!&ndash; 门店列表 &ndash;&gt;-->
  181. <!-- <view class="store-wrap ">-->
  182. <!-- <view class="store-list">-->
  183. <!-- <view class="store-content">-->
  184. <!-- <view class="store-img">-->
  185. <!-- <image src="../../static/logo.png" mode=""></image>-->
  186. <!-- </view>-->
  187. <!-- <view class="h-store-content">-->
  188. <!-- <view class="title">-->
  189. <!-- <text>{{ storeInfo.storeName }}</text>-->
  190. <!-- </view>-->
  191. <!-- <view class="adress">-->
  192. <!-- 地址:{{ storeInfo.address }}-->
  193. <!-- </view>-->
  194. <!-- <view class="desc">-->
  195. <!-- <view class="price">-->
  196. <!-- </view>-->
  197. <!-- <view @click="gotoGoods()" class="order-btn">-->
  198. <!-- <view class="btn">去下单</view>-->
  199. <!-- </view>-->
  200. <!-- </view>-->
  201. <!-- </view>-->
  202. <!-- </view>-->
  203. <!-- </view>-->
  204. <!-- </view>-->
  205. <!-- </view>-->
  206. <!-- <view class="footer ">-->
  207. <!-- <view class="">-&#45;&#45;到底了-&#45;&#45;</view>-->
  208. <!-- </view>-->
  209. </view>
  210. </view>
  211. </view>
  212. <!-- <view class="tabBarView">-->
  213. <!-- <tab-bar :tabIndex="tabIndex"></tab-bar>-->
  214. <!-- </view>-->
  215. </view>
  216. </template>
  217. <script>
  218. import tabBar from "../../components/tabBar/tabBar";
  219. import ScrollNotice from '../../components/scroll-notice/ScrollNotice.vue';
  220. export default {
  221. components: {
  222. ScrollNotice,
  223. tabBar
  224. },
  225. data() {
  226. return {
  227. noticeList: [],
  228. notice: '',
  229. userInfo: {},
  230. bannerList: [],
  231. reqParm: {
  232. auth: true,
  233. appid: 46,
  234. telphone: '',
  235. longitude: 0,
  236. latitude: 0
  237. },
  238. storeList: [],
  239. storeInfo: {},
  240. };
  241. },
  242. onShow() {
  243. this.updateApp()
  244. this.userInfo = uni.getStorageSync('userInfo');
  245. if (this.userInfo.selfPhoto) {
  246. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  247. }
  248. // 查询门店信息
  249. const data = uni.getStorageSync('storeInfo');
  250. if (!data) {
  251. // 获取位置信息查询门店列表数据
  252. this.getLocation();
  253. } else {
  254. this.storeInfo = data;
  255. }
  256. },
  257. onLoad(e) {
  258. if (e.shareUserId) {
  259. //用户点击分享到好友或者朋友圈传递过来的参数
  260. uni.setStorageSync('shareUserId', e.shareUserId)
  261. }
  262. if (e.scene) {
  263. //用户扫用户的会员吗进入小程序
  264. uni.setStorageSync('shareUserId', e.scene)
  265. }
  266. if (e.q) {
  267. //用户扫技师端或者拓客端二维码传递过来的参数
  268. const q = decodeURIComponent(e.q)
  269. let a = q.split('?')
  270. let b = a[1].split('&')
  271. let param = {} //技师端分享过来的参数
  272. for (let i = 0; i < b.length; i++) {
  273. param[b[i].split('=')[0]] = b[i].split('=')[1]
  274. }
  275. if (param.expandUserId) { //从拓客端进来的用户
  276. uni.setStorageSync('expandParam', param)
  277. } else { //从技师端进来的用户
  278. uni.setStorageSync('promotionParam', param)
  279. }
  280. console.log("用户扫技师端或者拓客端二维码传递过来的参数",param)
  281. }
  282. this.getLocation();
  283. //公告信息
  284. this.getNoticeListData();
  285. // 获取banner图列表
  286. this.getSlideshowList();
  287. // 用户信息
  288. setTimeout(() => {
  289. this.userInfo = uni.getStorageSync('userInfo');
  290. if (this.userInfo.selfPhoto) {
  291. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  292. }
  293. }, 2000)
  294. },
  295. //分享到朋友圈
  296. onShareTimeline(option) {
  297. return {
  298. title: '娇骄儿造型',
  299. imageUrl: '/static/logo.png',
  300. query: `shareUserId='${this.userInfo.id}`,
  301. success(res) {
  302. uni.showToast({
  303. title: '分享成功'
  304. })
  305. },
  306. fail(res) {
  307. uni.showToast({
  308. title: '分享失败',
  309. icon: 'none'
  310. })
  311. }
  312. };
  313. },
  314. //分享到好友
  315. onShareAppMessage: function(res) {
  316. return {
  317. title: '娇骄儿造型',
  318. imageUrl: '/static/logo.png',
  319. path: `/pages/index/index?shareUserId=${this.userInfo.id}`,
  320. success(res) {
  321. uni.showToast({
  322. title: '分享成功'
  323. })
  324. },
  325. fail(res) {
  326. uni.showToast({
  327. title: '分享失败',
  328. icon: 'none'
  329. })
  330. }
  331. };
  332. },
  333. methods: {
  334. goQrCode() {
  335. uni.navigateTo({
  336. url: '/pages/qrCode/index'
  337. })
  338. },
  339. goRights() {
  340. uni.navigateTo({
  341. url: '/storePages/rights/index'
  342. })
  343. },
  344. // 去服务点单页面
  345. gotoServiceOrder() {
  346. uni.navigateTo({
  347. url: '/orderPages/storeService/index'
  348. })
  349. },
  350. goBookService() {
  351. uni.navigateTo({
  352. url: '/orderPages/bookService/index'
  353. })
  354. },
  355. //点击通知
  356. handleNoticeClick(e) {
  357. console.log(e)
  358. uni.navigateTo({
  359. url: '/storePages/notice/index?noticeId=' + e.noticeId,
  360. })
  361. },
  362. // 去优惠劵大厅
  363. gotoReceiveCoupons() {
  364. uni.navigateTo({
  365. url: '/orderPages/receiveCoupons/index'
  366. })
  367. },
  368. // 去我的优惠劵页面
  369. gotoCoupon() {
  370. uni.navigateTo({
  371. url: '/orderPages/myCoupon/index'
  372. })
  373. },
  374. // 储值服务
  375. gotoRechargeService() {
  376. uni.navigateTo({
  377. url: '/myPages/recharge/index?name=lisa',
  378. })
  379. },
  380. // 获取banner图片
  381. getSlideshowList() {
  382. let that = this;
  383. this.$api.getSlideshowList({
  384. data: this.reqParm
  385. }).then((res) => {
  386. this.getImgUrlByBannerOssId(res.data.data);
  387. })
  388. },
  389. async getImgUrlByBannerOssId(items) {
  390. for (let i = 0; i < items.length; i++) {
  391. if (items[i].slideshowId) {
  392. this.$api.getImage(items[i].slideshowId).then(res => {
  393. this.bannerList.push(res.data.data[0].url.replace(/^http:/, "https:"))
  394. })
  395. }
  396. }
  397. },
  398. // 获取门店列表数据
  399. getStoreListData(data) {
  400. let that = this;
  401. // 用户绑定门店
  402. this.$api.storeList(data).then((res) => {
  403. console.log(res.data.data[0])
  404. that.storeInfo = res.data.data[0]
  405. // 更新用户选择的门店信息
  406. uni.setStorageSync('storeInfo', res.data.data[0])
  407. })
  408. },
  409. getNoticeListData() {
  410. let req = {
  411. auth: true,
  412. noticeType: 2,
  413. status: 0
  414. }
  415. this.$api.noticeList(req).then((res) => {
  416. if (res.data.rows.length === 1) {
  417. this.noticeList.push(res.data.rows[0])
  418. this.noticeList.push(res.data.rows[0])
  419. } else {
  420. this.noticeList = res.data.rows;
  421. }
  422. })
  423. },
  424. getImgUrlByOssId(ossId) {
  425. if (ossId) {
  426. this.$api.getImage(ossId).then(res => {
  427. this.userInfo.selfPhotoUrl = res.data.data[0].url.replace(/^http:/, "https:")
  428. this.$set(this.userInfo)
  429. })
  430. }
  431. },
  432. // 获取经纬度信息
  433. getLocation() {
  434. let that = this
  435. console.log('+++++++++++++开始获取位置信息++++++++++++++++')
  436. uni.getLocation({
  437. type: 'gcj02',
  438. success: function(res) {
  439. console.log(res)
  440. let latitude = res.latitude; // 纬度
  441. let longitude = res.longitude; // 经度
  442. let speed = res.speed; // 速度
  443. let accuracy = res.accuracy; // 精确度
  444. // 在这里可以对位置信息进行处理
  445. console.log("纬度:" + latitude + ";经度" + longitude)
  446. that.reqParm.latitude = latitude
  447. that.reqParm.longitude = longitude
  448. uni.setStorageSync('location', that.reqParm)
  449. },
  450. fail: function(fail) {
  451. console.log('获取用户地址失败==》', fail)
  452. },
  453. complete: function(complete) {
  454. console.log('获取用户地址失败or成功==》', complete)
  455. that.getStoreListData(that.reqParm)
  456. }
  457. });
  458. },
  459. // 去选择门店
  460. gotoStoreChoose() {
  461. uni.navigateTo({
  462. url: '/storePages/store/store-choose?type=1',
  463. })
  464. },
  465. // 去再来一单
  466. gotoComeOrder() {
  467. uni.$u.route({
  468. url: '/pages/index/tabbar',
  469. params: {
  470. PageCur: 'orderList',
  471. status: '4'
  472. }
  473. })
  474. },
  475. // 去订单页面
  476. gotoOrder() {
  477. uni.setStorageSync('orderListIndex', 1)
  478. uni.switchTab({
  479. url: '/pages/order/index',
  480. })
  481. },
  482. // 去商品下单页面
  483. gotoGoods() {
  484. uni.navigateTo({
  485. url: '/orderPages/bookService/index',
  486. })
  487. },
  488. // 用户绑定门店
  489. userBindStore() {
  490. let that = this;
  491. // 用户绑定门店
  492. this.$api.userBindStore(this.reqParm).then((res) => {
  493. console.log(this.reqParm)
  494. })
  495. },
  496. updateApp() {
  497. const updateManager = uni.getUpdateManager();
  498. updateManager.onCheckForUpdate(function(res) {
  499. // 请求完新版本信息的回调
  500. console.log('++++++++++onCheckForUpdate++++++++++', res.hasUpdate);
  501. if (res.hasUpdate) {
  502. updateManager.onUpdateReady(function(res) {
  503. console.log('+++++++++onUpdateReady+++++++++++++', res)
  504. uni.showModal({
  505. title: '更新提示',
  506. content: '新版本已经准备好,是否重启应用?',
  507. showCancel: false,
  508. success(res) {
  509. if (res.confirm) {
  510. // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
  511. updateManager.applyUpdate();
  512. }
  513. }
  514. });
  515. });
  516. updateManager.onUpdateFailed(function(res) {
  517. // 新的版本下载失败
  518. console.log('+++++++++onUpdateFailed+++++++++++++', res)
  519. uni.showModal({
  520. title: '更新提示',
  521. content: '检测到小程序更新,但是下载失败,请检查网络',
  522. showCancel: false
  523. });
  524. });
  525. }
  526. });
  527. },
  528. }
  529. };
  530. </script>
  531. <style scoped lang="scss">
  532. /* 头部内容 */
  533. .head-wrap {
  534. height: 1375rpx;
  535. background: #FFE05C;
  536. .content-info {
  537. position: relative;
  538. .h-bg {
  539. height: 680rpx;
  540. }
  541. .content {
  542. position: absolute;
  543. top: 460rpx;
  544. left: 24rpx;
  545. right: 24rpx;
  546. border-radius: 12rpx;
  547. .h-notice-bar {
  548. padding-left: 20rpx;
  549. background: #FFFFFF;
  550. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  551. border-radius: 20rpx;
  552. }
  553. .noticeCard {
  554. margin-top: 10rpx;
  555. padding: 10rpx;
  556. background: #FFFFFF;
  557. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  558. border-radius: 10px;
  559. }
  560. .h-content-wrap {
  561. background: #fff;
  562. border-radius: 10px;
  563. /* 欢迎语 */
  564. .welcome-wrap {
  565. padding-top: 12px;
  566. display: flex;
  567. margin-left: 12px;
  568. margin-right: 12px;
  569. margin-top: 16px;
  570. align-items: center;
  571. .logo {
  572. width: 13%;
  573. image {
  574. border-radius: 18px;
  575. width: 36px;
  576. height: 36px;
  577. }
  578. }
  579. .text {
  580. width: 60%;
  581. font-size: 14px;
  582. .welcome-wrap {
  583. font-size: 12px;
  584. color: #999999;
  585. }
  586. .welcome {
  587. font-size: 12px;
  588. color: #999999;
  589. }
  590. }
  591. .arrow-right {
  592. width: 30%;
  593. text-align: center;
  594. cursor: pointer;
  595. display: flex;
  596. justify-content: center;
  597. background: #fff8db;
  598. // background: red;
  599. height: 32px;
  600. align-items: center;
  601. border-radius: 16px;
  602. .qrcode {
  603. height: 20px;
  604. width: 20px;
  605. }
  606. .h-text {
  607. font-size: 12px;
  608. color: #999999;
  609. }
  610. .coupon-wrap {
  611. display: flex;
  612. font-size: 14px;
  613. align-items: center;
  614. }
  615. }
  616. }
  617. /* 钱包信息 */
  618. .balance-info {
  619. font-size: 12px;
  620. padding-left: 12px;
  621. margin-bottom: 16px;
  622. margin-top: 12px;
  623. color: #666;
  624. display: flex;
  625. justify-content: space-around;
  626. text-align: center;
  627. .balance-amount {
  628. padding-right: 4px;
  629. }
  630. .score-info {
  631. padding-right: 4px;
  632. }
  633. .coupon-info {
  634. padding-right: 4px;
  635. }
  636. .e-currency-info {
  637. padding-right: 4px;
  638. }
  639. .number {
  640. color: #333333;
  641. font-size: 14px;
  642. }
  643. }
  644. /* 商店信息 */
  645. .store-wrap {
  646. margin: 10px;
  647. .store-info {
  648. display: flex;
  649. .logo {
  650. width: 10%;
  651. text-align: center;
  652. display: flex;
  653. justify-content: center;
  654. align-items: center;
  655. image {
  656. width: 30px;
  657. height: 30px;
  658. }
  659. }
  660. .store-content {
  661. width: 90%;
  662. padding-bottom: 13px;
  663. .h-row {
  664. display: flex;
  665. align-items: center;
  666. justify-content: space-between;
  667. .store-desc {
  668. width: 90%;
  669. display: flex;
  670. line-height: 30px;
  671. font-size: 14px;
  672. .store-name {}
  673. }
  674. .arrow-right {
  675. text-align: right;
  676. margin: 0 auto;
  677. cursor: pointer;
  678. padding-top: 3px;
  679. width: 100px;
  680. display: flex;
  681. font-size: 14px;
  682. .change-store {
  683. text-align: right;
  684. color: #666;
  685. }
  686. image {
  687. width: 18px;
  688. height: 18px;
  689. }
  690. }
  691. .address {
  692. width: 400rpx;
  693. color: #999999;
  694. font-size: 12px;
  695. padding-right: 12px;
  696. }
  697. .address1 {
  698. color: #999999;
  699. font-size: 12px;
  700. padding-right: 12px;
  701. }
  702. }
  703. }
  704. }
  705. .adress {
  706. font-size: 22rpx;
  707. white-space: nowrap;
  708. overflow: hidden;
  709. text-overflow: ellipsis;
  710. padding-left: 80rpx;
  711. color: #666;
  712. }
  713. }
  714. }
  715. }
  716. }
  717. }
  718. /* 上次订单 */
  719. .nav-wrap {
  720. background: #fff;
  721. border-radius: 8px;
  722. margin-top: 16px;
  723. .upper-order-wrap {
  724. display: flex;
  725. border-radius: 6px;
  726. justify-content: center;
  727. .left-content {
  728. margin-top: 20px;
  729. width: 50%;
  730. font-size: 12px;
  731. text-align: center;
  732. border-radius: 10px;
  733. .title {
  734. font-size: 18px;
  735. text-align: center;
  736. }
  737. .desc {
  738. padding-top: 6px;
  739. color: #999999;
  740. }
  741. .bg-img {
  742. text-align: center;
  743. height: 100px;
  744. display: flex;
  745. justify-content: center;
  746. align-items: center;
  747. image {
  748. width: 78px;
  749. height: 78px;
  750. }
  751. }
  752. }
  753. .right-content {
  754. margin-top: 20px;
  755. width: 50%;
  756. font-size: 12px;
  757. text-align: center;
  758. .title {
  759. font-size: 18px;
  760. text-align: center;
  761. }
  762. .desc {
  763. padding-top: 6px;
  764. color: #999999;
  765. }
  766. .bg-img {
  767. height: 100px;
  768. text-align: center;
  769. display: flex;
  770. justify-content: center;
  771. align-items: center;
  772. image {
  773. width: 78px;
  774. height: 78px;
  775. }
  776. }
  777. }
  778. }
  779. .menu-tab {
  780. display: flex;
  781. justify-content: space-around; // 平均分布
  782. justify-content: center;
  783. padding-bottom: 8px;
  784. .button-wrap {
  785. flex: 1;
  786. display: flex;
  787. align-items: center;
  788. justify-content: center;
  789. margin-top: 16px;
  790. margin-bottom: 18px;
  791. .name {
  792. padding-top: 3px;
  793. font-size: 12px;
  794. color: #666666;
  795. }
  796. .btn {
  797. padding-left: 12px;
  798. padding-right: 12px;
  799. height: 36px;
  800. border-radius: 18px;
  801. .icon {
  802. display: flex;
  803. padding-right: 6px;
  804. align-items: center;
  805. justify-content: center;
  806. image {
  807. height: 14px;
  808. width: 14px;
  809. }
  810. }
  811. }
  812. }
  813. }
  814. }
  815. /* 为你推荐 */
  816. .recommend-wrap {
  817. margin-top: 16px;
  818. background: #fff;
  819. border-radius: 8px;
  820. .recommend-nav {
  821. display: flex;
  822. margin-left: 12px;
  823. padding-top: 8px;
  824. padding-bottom: 4px;
  825. align-items: center;
  826. .icon {
  827. padding-right: 4px;
  828. image {
  829. height: 26px;
  830. width: 26px;
  831. }
  832. }
  833. .title {
  834. font-size: 16px;
  835. }
  836. }
  837. /* 门店列表 */
  838. .store-wrap {
  839. margin: 12px;
  840. height: 100px;
  841. .store-list {
  842. margin-top: 16px;
  843. .store-content {
  844. display: flex;
  845. .store-img {
  846. width: 30%;
  847. image {
  848. width: 100%;
  849. height: 78px;
  850. border-radius: 6px;
  851. }
  852. }
  853. .h-store-content {
  854. width: 70%;
  855. padding-left: 8px;
  856. padding-top: 4px;
  857. .title {
  858. font-size: 18px;
  859. font-family: "黑体", sans-serif;
  860. }
  861. .adress {
  862. font-size: 28rpx;
  863. line-height: 36rpx;
  864. -webkit-box-orient: vertical;
  865. -webkit-line-clamp: 1;
  866. white-space: nowrap;
  867. overflow: hidden;
  868. text-overflow: ellipsis;
  869. color: #666;
  870. }
  871. .price {
  872. color: #666;
  873. width: 60%;
  874. font-size: 14px;
  875. line-height: 22px;
  876. .red {
  877. color: red;
  878. font-size: 16px;
  879. }
  880. }
  881. .desc {
  882. display: flex;
  883. padding-top: 3px;
  884. .price {
  885. width: 60%;
  886. font-size: 14px;
  887. line-height: 22px;
  888. }
  889. .order-btn {
  890. width: 100%;
  891. .btn {
  892. background: #FFE05C;
  893. text-align: center;
  894. border-radius: 14px;
  895. height: 26px;
  896. line-height: 26px;
  897. color: #333;
  898. font-size: 12px;
  899. }
  900. }
  901. }
  902. }
  903. }
  904. }
  905. }
  906. }
  907. /* 底部 */
  908. .footer {
  909. margin-top: 30px;
  910. height: 60px;
  911. font-size: 12px;
  912. text-align: center;
  913. color: #666;
  914. margin-bottom: 40px;
  915. background-color: #FFE05C;
  916. }
  917. .tabBarView {
  918. position: fixed;
  919. bottom: 0;
  920. }
  921. </style>