index.vue 27 KB

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