index.vue 25 KB

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