index.vue 25 KB

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