index.vue 27 KB

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