index.vue 28 KB

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