index.vue 24 KB

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