index.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044
  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.getLocation();
  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(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. that.getStoreListData(that.reqParm)
  450. },
  451. fail:function (fail) {
  452. console.log('获取用户地址失败==》',fail)
  453. that.getStoreListData(that.reqParm)
  454. },
  455. complete:function (complete) {
  456. console.log('获取用户地址失败or成功==》',complete)
  457. }
  458. });
  459. },
  460. // 去选择门店
  461. gotoStoreChoose() {
  462. uni.navigateTo({
  463. url: '/storePages/store/store-choose?type=1',
  464. })
  465. },
  466. // 去再来一单
  467. gotoComeOrder() {
  468. uni.$u.route({
  469. url: '/pages/index/tabbar',
  470. params: {
  471. PageCur: 'orderList',
  472. status: '4'
  473. }
  474. })
  475. },
  476. // 去订单页面
  477. gotoOrder() {
  478. uni.setStorageSync('orderListIndex', 1)
  479. uni.switchTab({
  480. url: '/pages/order/index',
  481. })
  482. },
  483. // 去商品下单页面
  484. gotoGoods() {
  485. uni.navigateTo({
  486. url: '/orderPages/bookService/index',
  487. })
  488. },
  489. // 用户绑定门店
  490. userBindStore() {
  491. let that = this;
  492. // 用户绑定门店
  493. this.$api.userBindStore(this.reqParm).then((res) => {
  494. console.log(this.reqParm)
  495. })
  496. },
  497. updateApp(){
  498. const updateManager = uni.getUpdateManager();
  499. updateManager.onCheckForUpdate(function (res) {
  500. // 请求完新版本信息的回调
  501. console.log('++++++++++onCheckForUpdate++++++++++',res.hasUpdate);
  502. if (res.hasUpdate){
  503. updateManager.onUpdateReady(function (res) {
  504. console.log('+++++++++onUpdateReady+++++++++++++',res)
  505. uni.showModal({
  506. title: '更新提示',
  507. content: '新版本已经准备好,是否重启应用?',
  508. showCancel:false,
  509. success(res) {
  510. if (res.confirm) {
  511. // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
  512. updateManager.applyUpdate();
  513. }
  514. }
  515. });
  516. });
  517. updateManager.onUpdateFailed(function (res) {
  518. // 新的版本下载失败
  519. console.log('+++++++++onUpdateFailed+++++++++++++',res)
  520. uni.showModal({
  521. title: '更新提示',
  522. content: '检测到小程序更新,但是下载失败,请检查网络',
  523. showCancel:false
  524. });
  525. });
  526. }
  527. });
  528. },
  529. }
  530. };
  531. </script>
  532. <style scoped lang="scss">
  533. /* 头部内容 */
  534. .head-wrap {
  535. height: 1375rpx;
  536. background: #FFE05C;
  537. .content-info {
  538. position: relative;
  539. .h-bg {
  540. height: 680rpx;
  541. }
  542. .content {
  543. position: absolute;
  544. top: 460rpx;
  545. left: 24rpx;
  546. right: 24rpx;
  547. border-radius: 12rpx;
  548. .h-notice-bar {
  549. padding-left: 20rpx;
  550. background: #FFFFFF;
  551. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  552. border-radius: 20rpx;
  553. }
  554. .noticeCard{
  555. margin-top: 10rpx;
  556. padding: 10rpx;
  557. background: #FFFFFF;
  558. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  559. border-radius: 10px;
  560. }
  561. .h-content-wrap {
  562. background: #fff;
  563. border-radius: 10px;
  564. /* 欢迎语 */
  565. .welcome-wrap {
  566. padding-top: 12px;
  567. display: flex;
  568. margin-left: 12px;
  569. margin-right: 12px;
  570. margin-top: 16px;
  571. align-items: center;
  572. .logo {
  573. width: 13%;
  574. image {
  575. border-radius: 18px;
  576. width: 36px;
  577. height: 36px;
  578. }
  579. }
  580. .text {
  581. width: 60%;
  582. font-size: 14px;
  583. .welcome-wrap {
  584. font-size: 12px;
  585. color: #999999;
  586. }
  587. .welcome {
  588. font-size: 12px;
  589. color: #999999;
  590. }
  591. }
  592. .arrow-right {
  593. width: 30%;
  594. text-align: center;
  595. cursor: pointer;
  596. display: flex;
  597. justify-content: center;
  598. background: #fff8db;
  599. // background: red;
  600. height: 32px;
  601. align-items: center;
  602. border-radius: 16px;
  603. .qrcode {
  604. height: 20px;
  605. width: 20px;
  606. }
  607. .h-text {
  608. font-size: 12px;
  609. color: #999999;
  610. }
  611. .coupon-wrap {
  612. display: flex;
  613. font-size: 14px;
  614. align-items: center;
  615. }
  616. }
  617. }
  618. /* 钱包信息 */
  619. .balance-info {
  620. font-size: 12px;
  621. padding-left: 12px;
  622. margin-bottom: 16px;
  623. margin-top: 12px;
  624. color: #666;
  625. display: flex;
  626. justify-content: space-around;
  627. text-align: center;
  628. .balance-amount {
  629. padding-right: 4px;
  630. }
  631. .score-info {
  632. padding-right: 4px;
  633. }
  634. .coupon-info {
  635. padding-right: 4px;
  636. }
  637. .e-currency-info {
  638. padding-right: 4px;
  639. }
  640. .number {
  641. color: #333333;
  642. font-size: 14px;
  643. }
  644. }
  645. /* 商店信息 */
  646. .store-wrap {
  647. margin: 10px;
  648. .store-info {
  649. display: flex;
  650. .logo {
  651. width: 10%;
  652. text-align: center;
  653. display: flex;
  654. justify-content: center;
  655. align-items: center;
  656. image {
  657. width: 30px;
  658. height: 30px;
  659. }
  660. }
  661. .store-content {
  662. width: 90%;
  663. padding-bottom: 13px;
  664. .h-row {
  665. display: flex;
  666. align-items: center;
  667. justify-content: space-between;
  668. .store-desc {
  669. width: 90%;
  670. display: flex;
  671. line-height: 30px;
  672. font-size: 14px;
  673. .store-name {
  674. }
  675. }
  676. .arrow-right {
  677. text-align: right;
  678. margin: 0 auto;
  679. cursor: pointer;
  680. padding-top: 3px;
  681. width: 100px;
  682. display: flex;
  683. font-size: 14px;
  684. .change-store {
  685. text-align: right;
  686. color: #666;
  687. }
  688. image {
  689. width: 18px;
  690. height: 18px;
  691. }
  692. }
  693. .address {
  694. color: #999999;
  695. font-size: 12px;
  696. padding-right: 12px;
  697. }
  698. }
  699. }
  700. }
  701. .adress {
  702. font-size: 22rpx;
  703. white-space: nowrap;
  704. overflow: hidden;
  705. text-overflow: ellipsis;
  706. padding-left: 80rpx;
  707. color: #666;
  708. }
  709. }
  710. }
  711. }
  712. }
  713. }
  714. /* 上次订单 */
  715. .nav-wrap {
  716. background: #fff;
  717. border-radius: 8px;
  718. margin-top: 16px;
  719. .upper-order-wrap {
  720. display: flex;
  721. border-radius: 6px;
  722. justify-content: center;
  723. .left-content {
  724. margin-top: 20px;
  725. width: 50%;
  726. font-size: 12px;
  727. text-align: center;
  728. border-radius: 10px;
  729. .title {
  730. font-size: 18px;
  731. text-align: center;
  732. }
  733. .desc {
  734. padding-top: 6px;
  735. color: #999999;
  736. }
  737. .bg-img {
  738. text-align: center;
  739. height: 100px;
  740. display: flex;
  741. justify-content: center;
  742. align-items: center;
  743. image {
  744. width: 78px;
  745. height: 78px;
  746. }
  747. }
  748. }
  749. .right-content {
  750. margin-top: 20px;
  751. width: 50%;
  752. font-size: 12px;
  753. text-align: center;
  754. .title {
  755. font-size: 18px;
  756. text-align: center;
  757. }
  758. .desc {
  759. padding-top: 6px;
  760. color: #999999;
  761. }
  762. .bg-img {
  763. height: 100px;
  764. text-align: center;
  765. display: flex;
  766. justify-content: center;
  767. align-items: center;
  768. image {
  769. width: 78px;
  770. height: 78px;
  771. }
  772. }
  773. }
  774. }
  775. .menu-tab {
  776. display: flex;
  777. justify-content: space-around; // 平均分布
  778. justify-content: center;
  779. padding-bottom: 8px;
  780. .button-wrap {
  781. flex: 1;
  782. display: flex;
  783. align-items: center;
  784. justify-content: center;
  785. margin-top: 16px;
  786. margin-bottom: 18px;
  787. .name {
  788. padding-top: 3px;
  789. font-size: 12px;
  790. color: #666666;
  791. }
  792. .btn {
  793. padding-left: 12px;
  794. padding-right: 12px;
  795. height: 36px;
  796. border-radius: 18px;
  797. .icon {
  798. display: flex;
  799. padding-right: 6px;
  800. align-items: center;
  801. justify-content: center;
  802. image {
  803. height: 14px;
  804. width: 14px;
  805. }
  806. }
  807. }
  808. }
  809. }
  810. }
  811. /* 为你推荐 */
  812. .recommend-wrap {
  813. margin-top: 16px;
  814. background: #fff;
  815. border-radius: 8px;
  816. .recommend-nav {
  817. display: flex;
  818. margin-left: 12px;
  819. padding-top: 8px;
  820. padding-bottom: 4px;
  821. align-items: center;
  822. .icon {
  823. padding-right: 4px;
  824. image {
  825. height: 26px;
  826. width: 26px;
  827. }
  828. }
  829. .title {
  830. font-size: 16px;
  831. }
  832. }
  833. /* 门店列表 */
  834. .store-wrap {
  835. margin: 12px;
  836. height: 100px;
  837. .store-list {
  838. margin-top: 16px;
  839. .store-content {
  840. display: flex;
  841. .store-img {
  842. width: 30%;
  843. image {
  844. width: 100%;
  845. height: 78px;
  846. border-radius: 6px;
  847. }
  848. }
  849. .h-store-content {
  850. width: 70%;
  851. padding-left: 8px;
  852. padding-top: 4px;
  853. .title {
  854. font-size: 18px;
  855. font-family: "黑体", sans-serif;
  856. }
  857. .adress {
  858. font-size: 28rpx;
  859. line-height: 36rpx;
  860. -webkit-box-orient: vertical;
  861. -webkit-line-clamp:1 ;
  862. white-space: nowrap;
  863. overflow: hidden;
  864. text-overflow: ellipsis;
  865. color: #666;
  866. }
  867. .price {
  868. color: #666;
  869. width: 60%;
  870. font-size: 14px;
  871. line-height: 22px;
  872. .red {
  873. color: red;
  874. font-size: 16px;
  875. }
  876. }
  877. .desc {
  878. display: flex;
  879. padding-top: 3px;
  880. .price {
  881. width: 60%;
  882. font-size: 14px;
  883. line-height: 22px;
  884. }
  885. .order-btn {
  886. width: 100%;
  887. .btn {
  888. background: #FFE05C;
  889. text-align: center;
  890. border-radius: 14px;
  891. height: 26px;
  892. line-height: 26px;
  893. color: #333;
  894. font-size: 12px;
  895. }
  896. }
  897. }
  898. }
  899. }
  900. }
  901. }
  902. }
  903. /* 底部 */
  904. .footer {
  905. margin-top: 30px;
  906. height: 60px;
  907. font-size: 12px;
  908. text-align: center;
  909. color: #666;
  910. margin-bottom: 40px;
  911. background-color:#FFE05C ;
  912. }
  913. .tabBarView {
  914. position: fixed;
  915. bottom: 0;
  916. }
  917. </style>