index.vue 26 KB

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