index.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  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.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. this.userInfo = uni.getStorageSync('userInfo')
  368. if (!this.userInfo.phone){
  369. uni.showModal({
  370. title:'温馨提示',
  371. content:'请绑定手机号,以便为你提供服务',
  372. success:res=>{
  373. if (res.confirm){
  374. uni.navigateTo({
  375. url: '/myPages/setting/setting-telphone',
  376. })
  377. }
  378. }
  379. })
  380. return
  381. }
  382. uni.navigateTo({
  383. url: '/storePages/rights/index'
  384. })
  385. },
  386. // 去服务点单页面
  387. gotoServiceOrder() {
  388. this.userInfo = uni.getStorageSync('userInfo')
  389. if (!this.userInfo.phone){
  390. uni.showModal({
  391. title:'温馨提示',
  392. content:'请绑定手机号,以便为你提供服务',
  393. success:res=>{
  394. if (res.confirm){
  395. uni.navigateTo({
  396. url: '/myPages/setting/setting-telphone',
  397. })
  398. }
  399. }
  400. })
  401. return
  402. }
  403. uni.navigateTo({
  404. url: '/orderPages/storeService/index'
  405. })
  406. },
  407. goBookService() {
  408. this.userInfo = uni.getStorageSync('userInfo')
  409. if (!this.userInfo.phone){
  410. uni.showModal({
  411. title:'温馨提示',
  412. content:'请绑定手机号,以便为你提供服务',
  413. success:res=>{
  414. if (res.confirm){
  415. uni.navigateTo({
  416. url: '/myPages/setting/setting-telphone',
  417. })
  418. }
  419. }
  420. })
  421. return
  422. }
  423. uni.navigateTo({
  424. url: '/orderPages/bookService/index'
  425. })
  426. },
  427. //点击通知
  428. handleNoticeClick(e) {
  429. console.log(e)
  430. uni.navigateTo({
  431. url: '/storePages/notice/index?noticeId=' + e.noticeId,
  432. })
  433. },
  434. // 去优惠劵大厅
  435. gotoReceiveCoupons() {
  436. uni.navigateTo({
  437. url: '/orderPages/receiveCoupons/index'
  438. })
  439. },
  440. // 去我的优惠劵页面
  441. gotoCoupon() {
  442. uni.navigateTo({
  443. url: '/orderPages/myCoupon/index'
  444. })
  445. },
  446. // 储值服务
  447. gotoRechargeService() {
  448. uni.navigateTo({
  449. url: '/myPages/recharge/index?name=lisa',
  450. })
  451. },
  452. // 获取banner图片
  453. getSlideshowList() {
  454. let that = this;
  455. this.$api.getSlideshowList({data: this.reqParm}).then((res) => {
  456. this.getImgUrlByBannerOssId(res.data.data);
  457. })
  458. },
  459. async getImgUrlByBannerOssId(items) {
  460. for (let i = 0; i < items.length; i++) {
  461. if (items[i].slideshowId) {
  462. this.$api.getImage(items[i].slideshowId).then(res => {
  463. this.bannerList.push(res.data.data[0].url.replace(/^http:/, "https:"))
  464. })
  465. }
  466. }
  467. },
  468. // 获取门店列表数据
  469. getStoreListData() {
  470. let that = this;
  471. // 用户绑定门店
  472. this.$api.storeList(this.reqParm).then((res) => {
  473. console.log(res.data.data[0])
  474. that.storeInfo = res.data.data[0]
  475. // 更新用户选择的门店信息
  476. uni.setStorageSync('storeInfo', res.data.data[0])
  477. })
  478. },
  479. getNoticeListData() {
  480. let req = {
  481. auth: true,
  482. noticeType: 2,
  483. status:0
  484. }
  485. this.$api.noticeList(req).then((res) => {
  486. if (res.data.rows.length === 1) {
  487. this.noticeList.push(res.data.rows[0])
  488. this.noticeList.push(res.data.rows[0])
  489. } else {
  490. this.noticeList = res.data.rows;
  491. }
  492. })
  493. },
  494. getImgUrlByOssId(ossId) {
  495. if (ossId) {
  496. this.$api.getImage(ossId).then(res => {
  497. this.userInfo.selfPhotoUrl = res.data.data[0].url.replace(/^http:/, "https:")
  498. this.$set(this.userInfo)
  499. })
  500. }
  501. },
  502. // 获取经纬度信息
  503. // getLocation() {
  504. //
  505. // uni.getLocation({
  506. // type: 'gcj02',
  507. // success: function (res) {
  508. // var latitude = res.latitude; // 纬度
  509. // var longitude = res.longitude; // 经度
  510. // var speed = res.speed; // 速度
  511. // var accuracy = res.accuracy; // 精确度
  512. // // 在这里可以对位置信息进行处理
  513. // console.log("纬度:" + latitude + ";经度" + longitude)
  514. // this.reqParm.latitude = latitude
  515. // this.reqParm.longitude = longitude
  516. // }
  517. // });
  518. // },
  519. // 去选择门店
  520. gotoStoreChoose() {
  521. uni.navigateTo({
  522. url: '/storePages/store/store-choose?type=1',
  523. })
  524. },
  525. // 去再来一单
  526. gotoComeOrder() {
  527. uni.$u.route({
  528. url: '/pages/index/tabbar',
  529. params: {
  530. PageCur: 'orderList',
  531. status: '4'
  532. }
  533. })
  534. },
  535. // 去订单页面
  536. gotoOrder() {
  537. uni.setStorageSync('orderListIndex', 1)
  538. uni.switchTab({
  539. url: '/pages/order/index',
  540. })
  541. },
  542. // 去商品下单页面
  543. gotoGoods() {
  544. this.userInfo = uni.getStorageSync('userInfo')
  545. if (!this.userInfo.phone){
  546. uni.showModal({
  547. title:'温馨提示',
  548. content:'请绑定手机号,以便为你提供服务',
  549. success:res=>{
  550. if (res.confirm){
  551. uni.navigateTo({
  552. url: '/myPages/setting/setting-telphone',
  553. })
  554. }
  555. }
  556. })
  557. return
  558. }
  559. uni.navigateTo({
  560. url: '/orderPages/bookService/index',
  561. })
  562. },
  563. // 用户绑定门店
  564. userBindStore() {
  565. let that = this;
  566. // 用户绑定门店
  567. this.$api.userBindStore(this.reqParm).then((res) => {
  568. console.log(this.reqParm)
  569. })
  570. },
  571. updateApp(){
  572. const updateManager = uni.getUpdateManager();
  573. updateManager.onCheckForUpdate(function (res) {
  574. // 请求完新版本信息的回调
  575. console.log('++++++++++onCheckForUpdate++++++++++',res.hasUpdate);
  576. if (res.hasUpdate){
  577. updateManager.onUpdateReady(function (res) {
  578. console.log('+++++++++onUpdateReady+++++++++++++',res)
  579. uni.showModal({
  580. title: '更新提示',
  581. content: '新版本已经准备好,是否重启应用?',
  582. showCancel:false,
  583. success(res) {
  584. if (res.confirm) {
  585. // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
  586. updateManager.applyUpdate();
  587. }
  588. }
  589. });
  590. });
  591. updateManager.onUpdateFailed(function (res) {
  592. // 新的版本下载失败
  593. console.log('+++++++++onUpdateFailed+++++++++++++',res)
  594. uni.showModal({
  595. title: '更新提示',
  596. content: '检测到小程序更新,但是下载失败,请检查网络',
  597. showCancel:false
  598. });
  599. });
  600. }
  601. });
  602. },
  603. }
  604. };
  605. </script>
  606. <style scoped lang="scss">
  607. /* 头部内容 */
  608. .head-wrap {
  609. height: 1375rpx;
  610. background: #FFE05C;
  611. .content-info {
  612. position: relative;
  613. .h-bg {
  614. height: 680rpx;
  615. }
  616. .content {
  617. position: absolute;
  618. top: 460rpx;
  619. left: 24rpx;
  620. right: 24rpx;
  621. border-radius: 12rpx;
  622. .h-notice-bar {
  623. padding-left: 20rpx;
  624. background: #FFFFFF;
  625. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  626. border-radius: 20rpx;
  627. }
  628. .noticeCard{
  629. margin-top: 10rpx;
  630. padding: 10rpx;
  631. background: #FFFFFF;
  632. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  633. border-radius: 10px;
  634. }
  635. .h-content-wrap {
  636. background: #fff;
  637. border-radius: 10px;
  638. /* 欢迎语 */
  639. .welcome-wrap {
  640. padding-top: 12px;
  641. display: flex;
  642. margin-left: 12px;
  643. margin-right: 12px;
  644. margin-top: 16px;
  645. align-items: center;
  646. .logo {
  647. width: 13%;
  648. image {
  649. border-radius: 18px;
  650. width: 36px;
  651. height: 36px;
  652. }
  653. }
  654. .text {
  655. width: 60%;
  656. font-size: 14px;
  657. .welcome-wrap {
  658. font-size: 12px;
  659. color: #999999;
  660. }
  661. .welcome {
  662. font-size: 12px;
  663. color: #999999;
  664. }
  665. }
  666. .arrow-right {
  667. width: 30%;
  668. text-align: center;
  669. cursor: pointer;
  670. display: flex;
  671. justify-content: center;
  672. background: #fff8db;
  673. // background: red;
  674. height: 32px;
  675. align-items: center;
  676. border-radius: 16px;
  677. .qrcode {
  678. height: 20px;
  679. width: 20px;
  680. }
  681. .h-text {
  682. font-size: 12px;
  683. color: #999999;
  684. }
  685. .coupon-wrap {
  686. display: flex;
  687. font-size: 14px;
  688. align-items: center;
  689. }
  690. }
  691. }
  692. /* 钱包信息 */
  693. .balance-info {
  694. font-size: 12px;
  695. padding-left: 12px;
  696. margin-bottom: 16px;
  697. margin-top: 12px;
  698. color: #666;
  699. display: flex;
  700. justify-content: space-around;
  701. text-align: center;
  702. .balance-amount {
  703. padding-right: 4px;
  704. }
  705. .score-info {
  706. padding-right: 4px;
  707. }
  708. .coupon-info {
  709. padding-right: 4px;
  710. }
  711. .e-currency-info {
  712. padding-right: 4px;
  713. }
  714. .number {
  715. color: #333333;
  716. font-size: 14px;
  717. }
  718. }
  719. /* 商店信息 */
  720. .store-wrap {
  721. margin: 10px;
  722. .store-info {
  723. display: flex;
  724. .logo {
  725. width: 10%;
  726. text-align: center;
  727. display: flex;
  728. justify-content: center;
  729. align-items: center;
  730. image {
  731. width: 30px;
  732. height: 30px;
  733. }
  734. }
  735. .store-content {
  736. width: 90%;
  737. padding-bottom: 13px;
  738. .h-row {
  739. display: flex;
  740. align-items: center;
  741. justify-content: space-between;
  742. .store-desc {
  743. width: 90%;
  744. display: flex;
  745. line-height: 30px;
  746. font-size: 14px;
  747. .store-name {
  748. }
  749. }
  750. .arrow-right {
  751. text-align: right;
  752. margin: 0 auto;
  753. cursor: pointer;
  754. padding-top: 3px;
  755. width: 100px;
  756. display: flex;
  757. font-size: 14px;
  758. .change-store {
  759. text-align: right;
  760. color: #666;
  761. }
  762. image {
  763. width: 18px;
  764. height: 18px;
  765. }
  766. }
  767. .address {
  768. color: #999999;
  769. font-size: 12px;
  770. padding-right: 12px;
  771. }
  772. }
  773. }
  774. }
  775. .adress {
  776. font-size: 22rpx;
  777. white-space: nowrap;
  778. overflow: hidden;
  779. text-overflow: ellipsis;
  780. padding-left: 80rpx;
  781. color: #666;
  782. }
  783. }
  784. }
  785. }
  786. }
  787. }
  788. /* 上次订单 */
  789. .nav-wrap {
  790. background: #fff;
  791. border-radius: 8px;
  792. margin-top: 16px;
  793. .upper-order-wrap {
  794. display: flex;
  795. border-radius: 6px;
  796. justify-content: center;
  797. .left-content {
  798. margin-top: 20px;
  799. width: 50%;
  800. font-size: 12px;
  801. text-align: center;
  802. border-radius: 10px;
  803. .title {
  804. font-size: 18px;
  805. text-align: center;
  806. }
  807. .desc {
  808. padding-top: 6px;
  809. color: #999999;
  810. }
  811. .bg-img {
  812. text-align: center;
  813. height: 100px;
  814. display: flex;
  815. justify-content: center;
  816. align-items: center;
  817. image {
  818. width: 78px;
  819. height: 78px;
  820. }
  821. }
  822. }
  823. .right-content {
  824. margin-top: 20px;
  825. width: 50%;
  826. font-size: 12px;
  827. text-align: center;
  828. .title {
  829. font-size: 18px;
  830. text-align: center;
  831. }
  832. .desc {
  833. padding-top: 6px;
  834. color: #999999;
  835. }
  836. .bg-img {
  837. height: 100px;
  838. text-align: center;
  839. display: flex;
  840. justify-content: center;
  841. align-items: center;
  842. image {
  843. width: 78px;
  844. height: 78px;
  845. }
  846. }
  847. }
  848. }
  849. .menu-tab {
  850. display: flex;
  851. justify-content: space-around; // 平均分布
  852. justify-content: center;
  853. padding-bottom: 8px;
  854. .button-wrap {
  855. flex: 1;
  856. display: flex;
  857. align-items: center;
  858. justify-content: center;
  859. margin-top: 16px;
  860. margin-bottom: 18px;
  861. .name {
  862. padding-top: 3px;
  863. font-size: 12px;
  864. color: #666666;
  865. }
  866. .btn {
  867. padding-left: 12px;
  868. padding-right: 12px;
  869. height: 36px;
  870. border-radius: 18px;
  871. .icon {
  872. display: flex;
  873. padding-right: 6px;
  874. align-items: center;
  875. justify-content: center;
  876. image {
  877. height: 14px;
  878. width: 14px;
  879. }
  880. }
  881. }
  882. }
  883. }
  884. }
  885. /* 为你推荐 */
  886. .recommend-wrap {
  887. margin-top: 16px;
  888. background: #fff;
  889. border-radius: 8px;
  890. .recommend-nav {
  891. display: flex;
  892. margin-left: 12px;
  893. padding-top: 8px;
  894. padding-bottom: 4px;
  895. align-items: center;
  896. .icon {
  897. padding-right: 4px;
  898. image {
  899. height: 26px;
  900. width: 26px;
  901. }
  902. }
  903. .title {
  904. font-size: 16px;
  905. }
  906. }
  907. /* 门店列表 */
  908. .store-wrap {
  909. margin: 12px;
  910. height: 100px;
  911. .store-list {
  912. margin-top: 16px;
  913. .store-content {
  914. display: flex;
  915. .store-img {
  916. width: 30%;
  917. image {
  918. width: 100%;
  919. height: 78px;
  920. border-radius: 6px;
  921. }
  922. }
  923. .h-store-content {
  924. width: 70%;
  925. padding-left: 8px;
  926. padding-top: 4px;
  927. .title {
  928. font-size: 18px;
  929. font-family: "黑体", sans-serif;
  930. }
  931. .adress {
  932. font-size: 28rpx;
  933. line-height: 36rpx;
  934. -webkit-box-orient: vertical;
  935. -webkit-line-clamp:1 ;
  936. white-space: nowrap;
  937. overflow: hidden;
  938. text-overflow: ellipsis;
  939. color: #666;
  940. }
  941. .price {
  942. color: #666;
  943. width: 60%;
  944. font-size: 14px;
  945. line-height: 22px;
  946. .red {
  947. color: red;
  948. font-size: 16px;
  949. }
  950. }
  951. .desc {
  952. display: flex;
  953. padding-top: 3px;
  954. .price {
  955. width: 60%;
  956. font-size: 14px;
  957. line-height: 22px;
  958. }
  959. .order-btn {
  960. width: 100%;
  961. .btn {
  962. background: #FFE05C;
  963. text-align: center;
  964. border-radius: 14px;
  965. height: 26px;
  966. line-height: 26px;
  967. color: #333;
  968. font-size: 12px;
  969. }
  970. }
  971. }
  972. }
  973. }
  974. }
  975. }
  976. }
  977. /* 底部 */
  978. .footer {
  979. margin-top: 30px;
  980. height: 60px;
  981. font-size: 12px;
  982. text-align: center;
  983. color: #666;
  984. margin-bottom: 40px;
  985. background-color:#FFE05C ;
  986. }
  987. .tabBarView {
  988. position: fixed;
  989. bottom: 0;
  990. }
  991. </style>