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