index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065
  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 :circular="true" :list="bannerList" :height="340"></u-swiper>
  8. </view>
  9. <view class="content">
  10. <!-- 通知栏 -->
  11. <view v-if="noticeList.length > 0" class="h-notice-bar">
  12. <scroll-notice :dataList="noticeList" :type="2" :interval="3000" :height="46" :fontSize="12"
  13. color="#666666" @click="handleNoticeClick"></scroll-notice>
  14. </view>
  15. <!-- 个人信息、钱包、商店 -->
  16. <view class="h-content-wrap">
  17. <!-- 欢迎语 -->
  18. <view class="welcome-wrap">
  19. <view class="logo">
  20. <image :src="userInfo.selfPhotoUrl || '/static/me/ud4.png'" mode=""></image>
  21. </view>
  22. <view class="text">
  23. <view class="phone">{{ userInfo.ncikName || ''}}</view>
  24. <!-- <view class="welcome">尊敬的{{ userInfo.ncikName || ''}},下午好~</view>-->
  25. </view>
  26. <view @click="goQrCode" class="arrow-right">
  27. <!-- <image v-if="userInfo.wxQrCode" class="qrcode" :src="userInfo.qrcode" mode=""></image> -->
  28. <!-- <image class="qrcode" src="../../static/index/qrcode.png" mode=""></image>
  29. <view class="h-text">会员码</view> -->
  30. <view class="coupon-wrap">
  31. <u-icon name="/static/me/u5.png" color="#ffb83d" size="22"></u-icon>
  32. <text>会员码</text>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 余额信息 -->
  37. <!-- <view class="balance-info">-->
  38. <!-- <view @click="gotoRechargeService()" class="balance-amount">-->
  39. <!-- <text class="number" v-if="userInfo.balance">¥{{ userInfo.balance }}</text>-->
  40. <!-- <text class="number" v-else>¥0.00</text>-->
  41. <!-- <view class="">余额</view>-->
  42. <!-- </view>-->
  43. <!-- <view class="score-info">-->
  44. <!-- <text class="number" v-if="userInfo.integral">{{ userInfo.integral }}</text>-->
  45. <!-- <text class="number" v-else>0</text>-->
  46. <!-- <view class="">积分</view>-->
  47. <!-- </view>-->
  48. <!-- <view @click="gotoCoupon()" class="coupon-info">-->
  49. <!-- <text class="number" v-if="userInfo.coupon">{{ userInfo.coupon }}</text>-->
  50. <!-- <text class="number" v-else>0</text>-->
  51. <!-- <view class="">优惠券</view>-->
  52. <!-- </view>-->
  53. <!-- <view class="e-currency-info">-->
  54. <!-- <text class="number" v-if="userInfo.electronicCurrency">{{ userInfo.electronicCurrency }}</text>-->
  55. <!-- <text class="number" v-else>0</text>-->
  56. <!-- <view class="">电子币</view>-->
  57. <!-- </view>-->
  58. <!-- </view>-->
  59. <view class="custom-line"></view>
  60. <view class="store-wrap">
  61. <view class="store-info">
  62. <view class="logo">
  63. <image src="../../static/index/u55.png" mode=""></image>
  64. </view>
  65. <view @click="gotoStoreChoose()" class="store-content">
  66. <view class="h-row">
  67. <view class="store-desc">
  68. <view class="store-name">
  69. <view class="">{{ storeInfo.storeName }}</view>
  70. </view>
  71. </view>
  72. <view class="arrow-right">
  73. <view class="change-store">更换门店</view>
  74. <u-icon name="arrow-right" color="#333" size="16"></u-icon>
  75. </view>
  76. </view>
  77. <view class="h-row">
  78. <text class="address">地址:{{ storeInfo.address }}</text>
  79. <text class="address1">{{storeInfo.distanceDesc}}</text>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 上次订单 -->
  86. <view class="nav-wrap ">
  87. <view class="upper-order-wrap">
  88. <!-- 左边内容 -->
  89. <view @click="gotoServiceOrder()" class="left-content">
  90. <view class="title">
  91. 当日排队
  92. </view>
  93. <view class="desc">
  94. <!-- 多种服务模式任您选择-->
  95. </view>
  96. <view class="bg-img">
  97. <image src="../../static/index/2.png" mode=""></image>
  98. </view>
  99. </view>
  100. <!-- 右边内容 -->
  101. <view class="right-content" @click="goBookService()">
  102. <view class="title">
  103. 明日预约
  104. </view>
  105. <view class="desc">
  106. <!-- 拼命研发中敬请期待...-->
  107. </view>
  108. <view class="bg-img">
  109. <image src="../../static/index/1.png" mode=""></image>
  110. </view>
  111. </view>
  112. </view>
  113. <!-- 导航菜单 -->
  114. <view class="horizontal-dashed-line"></view>
  115. <view class="menu-tab">
  116. <!-- <view class="button-wrap">-->
  117. <!-- <view @click="gotoComeOrder()" class="btn">-->
  118. <!-- <view class="icon">-->
  119. <!-- <u-icon name="/static/index/u213.png" color="red" size="30"></u-icon>-->
  120. <!-- </view>-->
  121. <!-- <view class="name">-->
  122. <!-- 再来一单-->
  123. <!-- </view>-->
  124. <!-- </view>-->
  125. <!-- </view>-->
  126. <view class="button-wrap">
  127. <view @click="gotoRechargeService()" class="btn">
  128. <view class="icon">
  129. <u-icon name="/static/index/u215.png" color="red" size="30"></u-icon>
  130. </view>
  131. <view class="name">
  132. 储值服务
  133. </view>
  134. </view>
  135. </view>
  136. <!-- <view class="button-wrap">-->
  137. <!-- <view @click="gotoOrder()" class="btn">-->
  138. <!-- <view class="icon">-->
  139. <!-- <u-icon name="/static/index/u217.png" color="red" size="30"></u-icon>-->
  140. <!-- </view>-->
  141. <!-- <view class="name">-->
  142. <!-- 当前订单-->
  143. <!-- </view>-->
  144. <!-- </view>-->
  145. <!-- </view>-->
  146. <view class="button-wrap">
  147. <view @click="gotoReceiveCoupons()" class="btn">
  148. <view class="icon">
  149. <u-icon name="/static/index/u247.png" color="red" size="30"></u-icon>
  150. </view>
  151. <view class="name">
  152. 领券中心
  153. </view>
  154. </view>
  155. </view>
  156. <view class="button-wrap">
  157. <view @click="goRights()" class="btn">
  158. <view class="icon">
  159. <u-icon name="/static/index/equity_card.png" color="red" size="30"></u-icon>
  160. </view>
  161. <view class="name">
  162. 权益卡
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. <!-- 为你推荐 -->
  169. <!-- <view class="recommend-wrap">-->
  170. <!-- <view class="recommend-nav">-->
  171. <!-- <view class="icon">-->
  172. <!-- <image src="/static/index/u87.png" mode=""></image>-->
  173. <!-- </view>-->
  174. <!-- <view class="title">-->
  175. <!-- 为你推荐-->
  176. <!-- </view>-->
  177. <!-- </view>-->
  178. <!-- &lt;!&ndash; 分割线 &ndash;&gt;-->
  179. <!-- <view class="custom-line"></view>-->
  180. <!-- &lt;!&ndash; 门店列表 &ndash;&gt;-->
  181. <!-- <view class="store-wrap ">-->
  182. <!-- <view class="store-list">-->
  183. <!-- <view class="store-content">-->
  184. <!-- <view class="store-img">-->
  185. <!-- <image src="../../static/logo.png" mode=""></image>-->
  186. <!-- </view>-->
  187. <!-- <view class="h-store-content">-->
  188. <!-- <view class="title">-->
  189. <!-- <text>{{ storeInfo.storeName }}</text>-->
  190. <!-- </view>-->
  191. <!-- <view class="adress">-->
  192. <!-- 地址:{{ storeInfo.address }}-->
  193. <!-- </view>-->
  194. <!-- <view class="desc">-->
  195. <!-- <view class="price">-->
  196. <!-- </view>-->
  197. <!-- <view @click="gotoGoods()" class="order-btn">-->
  198. <!-- <view class="btn">去下单</view>-->
  199. <!-- </view>-->
  200. <!-- </view>-->
  201. <!-- </view>-->
  202. <!-- </view>-->
  203. <!-- </view>-->
  204. <!-- </view>-->
  205. <!-- </view>-->
  206. <!-- <view class="footer ">-->
  207. <!-- <view class="">-&#45;&#45;到底了-&#45;&#45;</view>-->
  208. <!-- </view>-->
  209. </view>
  210. </view>
  211. </view>
  212. <!-- <view class="tabBarView">-->
  213. <!-- <tab-bar :tabIndex="tabIndex"></tab-bar>-->
  214. <!-- </view>-->
  215. </view>
  216. </template>
  217. <script>
  218. import tabBar from "../../components/tabBar/tabBar";
  219. import ScrollNotice from '../../components/scroll-notice/ScrollNotice.vue';
  220. export default {
  221. components: {
  222. ScrollNotice,
  223. tabBar
  224. },
  225. data() {
  226. return {
  227. isGetAddress:true, //是否获取到了经纬度
  228. noticeList: [],
  229. notice: '',
  230. userInfo: {},
  231. bannerList: [],
  232. reqParm: {
  233. auth: true,
  234. appid: 46,
  235. telphone: '',
  236. latitude: 26.5737,
  237. longitude: 106.7135,
  238. },
  239. storeList: [],
  240. storeInfo: {},
  241. };
  242. },
  243. onShow() {
  244. this.updateApp()
  245. this.userInfo = uni.getStorageSync('userInfo');
  246. if (this.userInfo.selfPhoto) {
  247. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  248. }
  249. // 查询门店信息
  250. const data = uni.getStorageSync('storeInfo');
  251. if (!data) {
  252. setTimeout(e=>{
  253. console.log('定时器要执行了 isGetAddress =>',this.isGetAddress)
  254. if (this.isGetAddress){
  255. console.log('定时器执行了isGetAddress =>',this.isGetAddress)
  256. this.isGetAddress = !this.isGetAddress
  257. this.getStoreListData(this.reqParm)
  258. }
  259. },3000)
  260. // 获取位置信息查询门店列表数据
  261. this.getLocation();
  262. } else {
  263. this.storeInfo = data;
  264. }
  265. },
  266. onLoad(e) {
  267. if (e.shareUserId) {
  268. //用户点击分享到好友或者朋友圈传递过来的参数
  269. uni.setStorageSync('shareUserId', e.shareUserId)
  270. }
  271. // if (e.scene) {
  272. // //用户扫用户的会员吗进入小程序
  273. // uni.setStorageSync('shareUserId', e.scene)
  274. // }
  275. if (e.q) {
  276. //用户扫技师端或者拓客端二维码传递过来的参数
  277. const q = decodeURIComponent(e.q)
  278. let a = q.split('?')
  279. let b = a[1].split('&')
  280. let param = {} //技师端分享过来的参数
  281. for (let i = 0; i < b.length; i++) {
  282. param[b[i].split('=')[0]] = b[i].split('=')[1]
  283. }
  284. if (param.expandUserId) { //从拓客端进来的用户
  285. uni.setStorageSync('expandParam', param)
  286. }else if (param.scene){
  287. //用户扫用户的会员吗进入小程序
  288. uni.setStorageSync('shareUserId', param.scene)
  289. }else { //从技师端进来的用户
  290. uni.setStorageSync('promotionParam', param)
  291. }
  292. console.log("用户扫技师端或者拓客端二维码传递过来的参数",param)
  293. }
  294. //公告信息
  295. this.getNoticeListData();
  296. // 获取banner图列表
  297. this.getSlideshowList();
  298. // 用户信息
  299. setTimeout(() => {
  300. this.userInfo = uni.getStorageSync('userInfo');
  301. if (this.userInfo.selfPhoto) {
  302. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  303. }
  304. }, 2000)
  305. },
  306. //分享到朋友圈
  307. onShareTimeline(option) {
  308. return {
  309. title: '娇骄儿造型',
  310. imageUrl: '/static/logo.png',
  311. query: `shareUserId='${this.userInfo.id}`,
  312. success(res) {
  313. uni.showToast({
  314. title: '分享成功'
  315. })
  316. },
  317. fail(res) {
  318. uni.showToast({
  319. title: '分享失败',
  320. icon: 'none'
  321. })
  322. }
  323. };
  324. },
  325. //分享到好友
  326. onShareAppMessage: function(res) {
  327. return {
  328. title: '娇骄儿造型',
  329. imageUrl: '/static/logo.png',
  330. path: `/pages/index/index?shareUserId=${this.userInfo.id}`,
  331. success(res) {
  332. uni.showToast({
  333. title: '分享成功'
  334. })
  335. },
  336. fail(res) {
  337. uni.showToast({
  338. title: '分享失败',
  339. icon: 'none'
  340. })
  341. }
  342. };
  343. },
  344. methods: {
  345. goQrCode() {
  346. uni.navigateTo({
  347. url: '/pages/qrCode/index'
  348. })
  349. },
  350. goRights() {
  351. uni.navigateTo({
  352. url: '/storePages/rights/index'
  353. })
  354. },
  355. // 去服务点单页面
  356. gotoServiceOrder() {
  357. uni.navigateTo({
  358. url: '/orderPages/storeService/index'
  359. })
  360. },
  361. goBookService() {
  362. uni.navigateTo({
  363. url: '/orderPages/bookService/index'
  364. })
  365. },
  366. //点击通知
  367. handleNoticeClick(e) {
  368. console.log(e)
  369. uni.navigateTo({
  370. url: '/storePages/notice/index?noticeId=' + e.noticeId,
  371. })
  372. },
  373. // 去优惠劵大厅
  374. gotoReceiveCoupons() {
  375. uni.navigateTo({
  376. url: '/orderPages/receiveCoupons/index'
  377. })
  378. },
  379. // 去我的优惠劵页面
  380. gotoCoupon() {
  381. uni.navigateTo({
  382. url: '/orderPages/myCoupon/index'
  383. })
  384. },
  385. // 储值服务
  386. gotoRechargeService() {
  387. uni.navigateTo({
  388. url: '/myPages/recharge/index?name=lisa',
  389. })
  390. },
  391. // 获取banner图片
  392. getSlideshowList() {
  393. let that = this;
  394. this.$api.getSlideshowList({
  395. data: this.reqParm
  396. }).then((res) => {
  397. this.getImgUrlByBannerOssId(res.data.data);
  398. })
  399. },
  400. async getImgUrlByBannerOssId(items) {
  401. for (let i = 0; i < items.length; i++) {
  402. if (items[i].slideshowId) {
  403. this.$api.getImage(items[i].slideshowId).then(res => {
  404. this.bannerList.push(res.data.data[0].url.replace(/^http:/, "https:"))
  405. })
  406. }
  407. }
  408. },
  409. // 获取门店列表数据
  410. getStoreListData(data) {
  411. let that = this;
  412. // 用户绑定门店
  413. this.$api.storeList(data).then((res) => {
  414. console.log(res.data.data[0])
  415. that.storeInfo = res.data.data[0]
  416. // 更新用户选择的门店信息
  417. uni.setStorageSync('storeInfo', res.data.data[0])
  418. })
  419. },
  420. getNoticeListData() {
  421. let req = {
  422. auth: true,
  423. noticeType: 2,
  424. status: 0
  425. }
  426. this.$api.noticeList(req).then((res) => {
  427. if (res.data.rows.length === 1) {
  428. this.noticeList.push(res.data.rows[0])
  429. this.noticeList.push(res.data.rows[0])
  430. } else {
  431. this.noticeList = res.data.rows;
  432. }
  433. })
  434. },
  435. getImgUrlByOssId(ossId) {
  436. if (ossId) {
  437. this.$api.getImage(ossId).then(res => {
  438. this.userInfo.selfPhotoUrl = res.data.data[0].url.replace(/^http:/, "https:")
  439. this.$set(this.userInfo)
  440. })
  441. }
  442. },
  443. // 获取经纬度信息
  444. getLocation() {
  445. let that = this
  446. console.log('+++++++++++++开始获取位置信息++++++++++++++++')
  447. uni.getLocation({
  448. type: 'gcj02',
  449. success: function(res) {
  450. console.log(res)
  451. let latitude = res.latitude; // 纬度
  452. let longitude = res.longitude; // 经度
  453. let speed = res.speed; // 速度
  454. let accuracy = res.accuracy; // 精确度
  455. // 在这里可以对位置信息进行处理
  456. console.log("纬度:" + latitude + ";经度" + longitude)
  457. that.reqParm.latitude = latitude
  458. that.reqParm.longitude = longitude
  459. uni.setStorageSync('location', that.reqParm)
  460. },
  461. fail: function(fail) {
  462. console.log('获取用户地址失败==》', fail)
  463. },
  464. complete: function(complete) {
  465. console.log('获取用户地址失败or成功==》', complete)
  466. if (that.isGetAddress){
  467. console.log("根据位置获取门店执行了 isGetAddress =>",that.isGetAddress)
  468. that.isGetAddress = !that.isGetAddress
  469. that.getStoreListData(that.reqParm)
  470. }
  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: 100vh;
  550. background: #FFE05C;
  551. overflow: auto;
  552. .content-info {
  553. position: relative;
  554. .h-bg {
  555. height: 680rpx;
  556. }
  557. .content {
  558. position: absolute;
  559. top: 460rpx;
  560. left: 24rpx;
  561. right: 24rpx;
  562. border-radius: 12rpx;
  563. padding-bottom: 40rpx;
  564. .h-notice-bar {
  565. padding-left: 20rpx;
  566. background: #FFFFFF;
  567. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  568. border-radius: 20rpx;
  569. }
  570. .noticeCard {
  571. margin-top: 10rpx;
  572. padding: 10rpx;
  573. background: #FFFFFF;
  574. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  575. border-radius: 10px;
  576. }
  577. .h-content-wrap {
  578. background: #fff;
  579. border-radius: 10px;
  580. /* 欢迎语 */
  581. .welcome-wrap {
  582. padding-top: 12px;
  583. display: flex;
  584. margin-left: 12px;
  585. margin-right: 12px;
  586. margin-top: 16px;
  587. align-items: center;
  588. .logo {
  589. width: 13%;
  590. image {
  591. border-radius: 18px;
  592. width: 36px;
  593. height: 36px;
  594. }
  595. }
  596. .text {
  597. width: 60%;
  598. font-size: 14px;
  599. .welcome-wrap {
  600. font-size: 12px;
  601. color: #999999;
  602. }
  603. .welcome {
  604. font-size: 12px;
  605. color: #999999;
  606. }
  607. }
  608. .arrow-right {
  609. width: 30%;
  610. text-align: center;
  611. cursor: pointer;
  612. display: flex;
  613. justify-content: center;
  614. background: #fff8db;
  615. // background: red;
  616. height: 32px;
  617. align-items: center;
  618. border-radius: 16px;
  619. .qrcode {
  620. height: 20px;
  621. width: 20px;
  622. }
  623. .h-text {
  624. font-size: 12px;
  625. color: #999999;
  626. }
  627. .coupon-wrap {
  628. display: flex;
  629. font-size: 14px;
  630. align-items: center;
  631. }
  632. }
  633. }
  634. /* 钱包信息 */
  635. .balance-info {
  636. font-size: 12px;
  637. padding-left: 12px;
  638. margin-bottom: 16px;
  639. margin-top: 12px;
  640. color: #666;
  641. display: flex;
  642. justify-content: space-around;
  643. text-align: center;
  644. .balance-amount {
  645. padding-right: 4px;
  646. }
  647. .score-info {
  648. padding-right: 4px;
  649. }
  650. .coupon-info {
  651. padding-right: 4px;
  652. }
  653. .e-currency-info {
  654. padding-right: 4px;
  655. }
  656. .number {
  657. color: #333333;
  658. font-size: 14px;
  659. }
  660. }
  661. /* 商店信息 */
  662. .store-wrap {
  663. margin: 10px;
  664. .store-info {
  665. display: flex;
  666. .logo {
  667. width: 10%;
  668. text-align: center;
  669. display: flex;
  670. justify-content: center;
  671. align-items: center;
  672. image {
  673. width: 30px;
  674. height: 30px;
  675. }
  676. }
  677. .store-content {
  678. width: 90%;
  679. padding-bottom: 13px;
  680. .h-row {
  681. display: flex;
  682. align-items: center;
  683. justify-content: space-between;
  684. .store-desc {
  685. width: 90%;
  686. display: flex;
  687. line-height: 30px;
  688. font-size: 14px;
  689. .store-name {}
  690. }
  691. .arrow-right {
  692. text-align: right;
  693. margin: 0 auto;
  694. cursor: pointer;
  695. padding-top: 3px;
  696. width: 100px;
  697. display: flex;
  698. font-size: 14px;
  699. .change-store {
  700. text-align: right;
  701. color: #666;
  702. }
  703. image {
  704. width: 18px;
  705. height: 18px;
  706. }
  707. }
  708. .address {
  709. width: 400rpx;
  710. color: #999999;
  711. font-size: 12px;
  712. padding-right: 12px;
  713. }
  714. .address1 {
  715. color: #999999;
  716. font-size: 12px;
  717. padding-right: 12px;
  718. }
  719. }
  720. }
  721. }
  722. .adress {
  723. font-size: 22rpx;
  724. white-space: nowrap;
  725. overflow: hidden;
  726. text-overflow: ellipsis;
  727. padding-left: 80rpx;
  728. color: #666;
  729. }
  730. }
  731. }
  732. }
  733. }
  734. }
  735. /* 上次订单 */
  736. .nav-wrap {
  737. background: #fff;
  738. border-radius: 8px;
  739. margin-top: 16px;
  740. .upper-order-wrap {
  741. display: flex;
  742. border-radius: 6px;
  743. justify-content: center;
  744. .left-content {
  745. margin-top: 20px;
  746. width: 50%;
  747. font-size: 12px;
  748. text-align: center;
  749. border-radius: 10px;
  750. .title {
  751. font-size: 18px;
  752. text-align: center;
  753. }
  754. .desc {
  755. padding-top: 6px;
  756. color: #999999;
  757. }
  758. .bg-img {
  759. text-align: center;
  760. height: 100px;
  761. display: flex;
  762. justify-content: center;
  763. align-items: center;
  764. image {
  765. width: 78px;
  766. height: 78px;
  767. }
  768. }
  769. }
  770. .right-content {
  771. margin-top: 20px;
  772. width: 50%;
  773. font-size: 12px;
  774. text-align: center;
  775. .title {
  776. font-size: 18px;
  777. text-align: center;
  778. }
  779. .desc {
  780. padding-top: 6px;
  781. color: #999999;
  782. }
  783. .bg-img {
  784. height: 100px;
  785. text-align: center;
  786. display: flex;
  787. justify-content: center;
  788. align-items: center;
  789. image {
  790. width: 78px;
  791. height: 78px;
  792. }
  793. }
  794. }
  795. }
  796. .menu-tab {
  797. display: flex;
  798. justify-content: space-around; // 平均分布
  799. justify-content: center;
  800. padding-bottom: 8px;
  801. .button-wrap {
  802. flex: 1;
  803. display: flex;
  804. align-items: center;
  805. justify-content: center;
  806. margin-top: 16px;
  807. margin-bottom: 18px;
  808. .name {
  809. padding-top: 3px;
  810. font-size: 12px;
  811. color: #666666;
  812. }
  813. .btn {
  814. padding-left: 12px;
  815. padding-right: 12px;
  816. height: 36px;
  817. border-radius: 18px;
  818. .icon {
  819. display: flex;
  820. padding-right: 6px;
  821. align-items: center;
  822. justify-content: center;
  823. image {
  824. height: 14px;
  825. width: 14px;
  826. }
  827. }
  828. }
  829. }
  830. }
  831. }
  832. /* 为你推荐 */
  833. .recommend-wrap {
  834. margin-top: 16px;
  835. background: #fff;
  836. border-radius: 8px;
  837. .recommend-nav {
  838. display: flex;
  839. margin-left: 12px;
  840. padding-top: 8px;
  841. padding-bottom: 4px;
  842. align-items: center;
  843. .icon {
  844. padding-right: 4px;
  845. image {
  846. height: 26px;
  847. width: 26px;
  848. }
  849. }
  850. .title {
  851. font-size: 16px;
  852. }
  853. }
  854. /* 门店列表 */
  855. .store-wrap {
  856. margin: 12px;
  857. height: 100px;
  858. .store-list {
  859. margin-top: 16px;
  860. .store-content {
  861. display: flex;
  862. .store-img {
  863. width: 30%;
  864. image {
  865. width: 100%;
  866. height: 78px;
  867. border-radius: 6px;
  868. }
  869. }
  870. .h-store-content {
  871. width: 70%;
  872. padding-left: 8px;
  873. padding-top: 4px;
  874. .title {
  875. font-size: 18px;
  876. font-family: "黑体", sans-serif;
  877. }
  878. .adress {
  879. font-size: 28rpx;
  880. line-height: 36rpx;
  881. -webkit-box-orient: vertical;
  882. -webkit-line-clamp: 1;
  883. white-space: nowrap;
  884. overflow: hidden;
  885. text-overflow: ellipsis;
  886. color: #666;
  887. }
  888. .price {
  889. color: #666;
  890. width: 60%;
  891. font-size: 14px;
  892. line-height: 22px;
  893. .red {
  894. color: red;
  895. font-size: 16px;
  896. }
  897. }
  898. .desc {
  899. display: flex;
  900. padding-top: 3px;
  901. .price {
  902. width: 60%;
  903. font-size: 14px;
  904. line-height: 22px;
  905. }
  906. .order-btn {
  907. width: 100%;
  908. .btn {
  909. background: #FFE05C;
  910. text-align: center;
  911. border-radius: 14px;
  912. height: 26px;
  913. line-height: 26px;
  914. color: #333;
  915. font-size: 12px;
  916. }
  917. }
  918. }
  919. }
  920. }
  921. }
  922. }
  923. }
  924. /* 底部 */
  925. .footer {
  926. margin-top: 30px;
  927. height: 60px;
  928. font-size: 12px;
  929. text-align: center;
  930. color: #666;
  931. margin-bottom: 40px;
  932. background-color: #FFE05C;
  933. }
  934. .tabBarView {
  935. position: fixed;
  936. bottom: 0;
  937. }
  938. </style>