index.vue 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064
  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: 1375rpx;
  547. background: #FFE05C;
  548. .content-info {
  549. position: relative;
  550. .h-bg {
  551. height: 680rpx;
  552. }
  553. .content {
  554. position: absolute;
  555. top: 460rpx;
  556. left: 24rpx;
  557. right: 24rpx;
  558. border-radius: 12rpx;
  559. .h-notice-bar {
  560. padding-left: 20rpx;
  561. background: #FFFFFF;
  562. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  563. border-radius: 20rpx;
  564. }
  565. .noticeCard {
  566. margin-top: 10rpx;
  567. padding: 10rpx;
  568. background: #FFFFFF;
  569. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  570. border-radius: 10px;
  571. }
  572. .h-content-wrap {
  573. background: #fff;
  574. border-radius: 10px;
  575. /* 欢迎语 */
  576. .welcome-wrap {
  577. padding-top: 12px;
  578. display: flex;
  579. margin-left: 12px;
  580. margin-right: 12px;
  581. margin-top: 16px;
  582. align-items: center;
  583. .logo {
  584. width: 13%;
  585. image {
  586. border-radius: 18px;
  587. width: 36px;
  588. height: 36px;
  589. }
  590. }
  591. .text {
  592. width: 60%;
  593. font-size: 14px;
  594. .welcome-wrap {
  595. font-size: 12px;
  596. color: #999999;
  597. }
  598. .welcome {
  599. font-size: 12px;
  600. color: #999999;
  601. }
  602. }
  603. .arrow-right {
  604. width: 30%;
  605. text-align: center;
  606. cursor: pointer;
  607. display: flex;
  608. justify-content: center;
  609. background: #fff8db;
  610. // background: red;
  611. height: 32px;
  612. align-items: center;
  613. border-radius: 16px;
  614. .qrcode {
  615. height: 20px;
  616. width: 20px;
  617. }
  618. .h-text {
  619. font-size: 12px;
  620. color: #999999;
  621. }
  622. .coupon-wrap {
  623. display: flex;
  624. font-size: 14px;
  625. align-items: center;
  626. }
  627. }
  628. }
  629. /* 钱包信息 */
  630. .balance-info {
  631. font-size: 12px;
  632. padding-left: 12px;
  633. margin-bottom: 16px;
  634. margin-top: 12px;
  635. color: #666;
  636. display: flex;
  637. justify-content: space-around;
  638. text-align: center;
  639. .balance-amount {
  640. padding-right: 4px;
  641. }
  642. .score-info {
  643. padding-right: 4px;
  644. }
  645. .coupon-info {
  646. padding-right: 4px;
  647. }
  648. .e-currency-info {
  649. padding-right: 4px;
  650. }
  651. .number {
  652. color: #333333;
  653. font-size: 14px;
  654. }
  655. }
  656. /* 商店信息 */
  657. .store-wrap {
  658. margin: 10px;
  659. .store-info {
  660. display: flex;
  661. .logo {
  662. width: 10%;
  663. text-align: center;
  664. display: flex;
  665. justify-content: center;
  666. align-items: center;
  667. image {
  668. width: 30px;
  669. height: 30px;
  670. }
  671. }
  672. .store-content {
  673. width: 90%;
  674. padding-bottom: 13px;
  675. .h-row {
  676. display: flex;
  677. align-items: center;
  678. justify-content: space-between;
  679. .store-desc {
  680. width: 90%;
  681. display: flex;
  682. line-height: 30px;
  683. font-size: 14px;
  684. .store-name {}
  685. }
  686. .arrow-right {
  687. text-align: right;
  688. margin: 0 auto;
  689. cursor: pointer;
  690. padding-top: 3px;
  691. width: 100px;
  692. display: flex;
  693. font-size: 14px;
  694. .change-store {
  695. text-align: right;
  696. color: #666;
  697. }
  698. image {
  699. width: 18px;
  700. height: 18px;
  701. }
  702. }
  703. .address {
  704. width: 400rpx;
  705. color: #999999;
  706. font-size: 12px;
  707. padding-right: 12px;
  708. }
  709. .address1 {
  710. color: #999999;
  711. font-size: 12px;
  712. padding-right: 12px;
  713. }
  714. }
  715. }
  716. }
  717. .adress {
  718. font-size: 22rpx;
  719. white-space: nowrap;
  720. overflow: hidden;
  721. text-overflow: ellipsis;
  722. padding-left: 80rpx;
  723. color: #666;
  724. }
  725. }
  726. }
  727. }
  728. }
  729. }
  730. /* 上次订单 */
  731. .nav-wrap {
  732. background: #fff;
  733. border-radius: 8px;
  734. margin-top: 16px;
  735. .upper-order-wrap {
  736. display: flex;
  737. border-radius: 6px;
  738. justify-content: center;
  739. .left-content {
  740. margin-top: 20px;
  741. width: 50%;
  742. font-size: 12px;
  743. text-align: center;
  744. border-radius: 10px;
  745. .title {
  746. font-size: 18px;
  747. text-align: center;
  748. }
  749. .desc {
  750. padding-top: 6px;
  751. color: #999999;
  752. }
  753. .bg-img {
  754. text-align: center;
  755. height: 100px;
  756. display: flex;
  757. justify-content: center;
  758. align-items: center;
  759. image {
  760. width: 78px;
  761. height: 78px;
  762. }
  763. }
  764. }
  765. .right-content {
  766. margin-top: 20px;
  767. width: 50%;
  768. font-size: 12px;
  769. text-align: center;
  770. .title {
  771. font-size: 18px;
  772. text-align: center;
  773. }
  774. .desc {
  775. padding-top: 6px;
  776. color: #999999;
  777. }
  778. .bg-img {
  779. height: 100px;
  780. text-align: center;
  781. display: flex;
  782. justify-content: center;
  783. align-items: center;
  784. image {
  785. width: 78px;
  786. height: 78px;
  787. }
  788. }
  789. }
  790. }
  791. .menu-tab {
  792. display: flex;
  793. justify-content: space-around; // 平均分布
  794. justify-content: center;
  795. padding-bottom: 8px;
  796. .button-wrap {
  797. flex: 1;
  798. display: flex;
  799. align-items: center;
  800. justify-content: center;
  801. margin-top: 16px;
  802. margin-bottom: 18px;
  803. .name {
  804. padding-top: 3px;
  805. font-size: 12px;
  806. color: #666666;
  807. }
  808. .btn {
  809. padding-left: 12px;
  810. padding-right: 12px;
  811. height: 36px;
  812. border-radius: 18px;
  813. .icon {
  814. display: flex;
  815. padding-right: 6px;
  816. align-items: center;
  817. justify-content: center;
  818. image {
  819. height: 14px;
  820. width: 14px;
  821. }
  822. }
  823. }
  824. }
  825. }
  826. }
  827. /* 为你推荐 */
  828. .recommend-wrap {
  829. margin-top: 16px;
  830. background: #fff;
  831. border-radius: 8px;
  832. .recommend-nav {
  833. display: flex;
  834. margin-left: 12px;
  835. padding-top: 8px;
  836. padding-bottom: 4px;
  837. align-items: center;
  838. .icon {
  839. padding-right: 4px;
  840. image {
  841. height: 26px;
  842. width: 26px;
  843. }
  844. }
  845. .title {
  846. font-size: 16px;
  847. }
  848. }
  849. /* 门店列表 */
  850. .store-wrap {
  851. margin: 12px;
  852. height: 100px;
  853. .store-list {
  854. margin-top: 16px;
  855. .store-content {
  856. display: flex;
  857. .store-img {
  858. width: 30%;
  859. image {
  860. width: 100%;
  861. height: 78px;
  862. border-radius: 6px;
  863. }
  864. }
  865. .h-store-content {
  866. width: 70%;
  867. padding-left: 8px;
  868. padding-top: 4px;
  869. .title {
  870. font-size: 18px;
  871. font-family: "黑体", sans-serif;
  872. }
  873. .adress {
  874. font-size: 28rpx;
  875. line-height: 36rpx;
  876. -webkit-box-orient: vertical;
  877. -webkit-line-clamp: 1;
  878. white-space: nowrap;
  879. overflow: hidden;
  880. text-overflow: ellipsis;
  881. color: #666;
  882. }
  883. .price {
  884. color: #666;
  885. width: 60%;
  886. font-size: 14px;
  887. line-height: 22px;
  888. .red {
  889. color: red;
  890. font-size: 16px;
  891. }
  892. }
  893. .desc {
  894. display: flex;
  895. padding-top: 3px;
  896. .price {
  897. width: 60%;
  898. font-size: 14px;
  899. line-height: 22px;
  900. }
  901. .order-btn {
  902. width: 100%;
  903. .btn {
  904. background: #FFE05C;
  905. text-align: center;
  906. border-radius: 14px;
  907. height: 26px;
  908. line-height: 26px;
  909. color: #333;
  910. font-size: 12px;
  911. }
  912. }
  913. }
  914. }
  915. }
  916. }
  917. }
  918. }
  919. /* 底部 */
  920. .footer {
  921. margin-top: 30px;
  922. height: 60px;
  923. font-size: 12px;
  924. text-align: center;
  925. color: #666;
  926. margin-bottom: 40px;
  927. background-color: #FFE05C;
  928. }
  929. .tabBarView {
  930. position: fixed;
  931. bottom: 0;
  932. }
  933. </style>