index.vue 28 KB

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