index.vue 30 KB

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