index.vue 25 KB

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