index.vue 26 KB

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