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