index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. <template>
  2. <view class="page" :style="{'padding-top':mt+'px'}">
  3. <c-nav-bar title="房态" :showIcon="false" :titleStyle="titleStyle" bgColor="transparent"></c-nav-bar>
  4. <view class="leftFixed" v-if="leftData.length!=0" :style="{'top':(mt+2)+'px'}">
  5. <view class="tj" :style="{'top':mt+'px'}"></view>
  6. <view class="year">
  7. <u-icon name="calendar-fill" color="#B9C2D2" size="40" style="margin-bottom:10rpx;"></u-icon>
  8. <text style="font-size: 24rpx;">2024</text>
  9. </view>
  10. <view v-for="(item,key,i) in leftData" :key="i"
  11. :class="indexArr[i]!=key.split('-')[0]?'mg0 fixedItem':'fixedItem'">
  12. <view class="head" v-if="indexArr[i]==key.split('-')[0]" style="margin-top: 16rpx;">
  13. <!-- <text>{{key.split('-')[0]}}F</text> -->
  14. <view class="roomType" :style="{'left':scrollLeft+'px'}">{{indexHouseNameArr[i]}}</view>
  15. <view class="rightIcon" @click="open(i,key.split('-')[0],false)" v-if="opens[i]">
  16. <text>收起</text>
  17. <u-icon name="arrow-up-fill" size="18" style="margin-left: 10rpx;"></u-icon>
  18. </view>
  19. <view class="rightIcon" @click="open(i,key.split('-')[0],true)" v-else>
  20. <text>展开</text>
  21. <u-icon name="arrow-down-fill" size="18" style="margin-left: 10rpx;"></u-icon>
  22. </view>
  23. </view>
  24. <template v-if="opens[i]">
  25. <!-- <view class="roomType" :style="{'left':scrollLeft+'px'}">{{key.split('-')[1]}}</view> -->
  26. <text v-for="(item2,index2) in item" class="roomNumber">
  27. {{item2.roomNumber}}
  28. </text>
  29. </template>
  30. </view>
  31. </view>
  32. <view>
  33. <view class="content">
  34. <view class="tj" :style="{'top':mt+'px'}">
  35. <view class="item">
  36. <text class="label">{{info.bookRooms||0}}</text>
  37. <text>待入住</text>
  38. </view>
  39. <view class="item">
  40. <text class="label">{{info.checkinRooms||0}}</text>
  41. <text>已入住</text>
  42. </view>
  43. <view class="item">
  44. <text class="label">{{info.checkoutRooms||0}}</text>
  45. <text>已退房</text>
  46. </view>
  47. </view>
  48. <view class="date">
  49. <view class="item">
  50. <u-icon name="calendar-fill" color="#B9C2D2" size="40" style="margin-bottom:10rpx;"></u-icon>
  51. <text style="font-size: 24rpx;">2024</text>
  52. </view>
  53. <view class="item" v-for="(item,keynme,index) in xdata" :key="index">
  54. <text>{{item.rentDate.substring(5)}}</text>
  55. <text>{{weeks[item.rentWeek]}}</text>
  56. <text>剩{{item.spareRooms||0}}间</text>
  57. </view>
  58. </view>
  59. <view style="height:18rpx"></view>
  60. <view class="floorData" v-if="leftData.length!=0">
  61. <view v-for="(item,key,i) in leftData" :key="i">
  62. <view class="head" v-if="indexArr[i]==key.split('-')[0]" style="opacity: 0;">
  63. <!-- <text>{{key.split('-')[0]}}F</text> -->
  64. <view class="roomType" :style="{'left':scrollLeft+'px'}">{{indexHouseNameArr[i]}}</view>
  65. <view class="rightIcon" @click="open(i,key.split('-')[0],false)" v-if="opens[i]">
  66. <text>收起</text>
  67. <u-icon name="arrow-up-fill" size="18" style="margin-left: 10rpx;"></u-icon>
  68. </view>
  69. <view class="rightIcon" @click="open(i,key.split('-')[0],true)" v-else>
  70. <text>展开</text>
  71. <u-icon name="arrow-down-fill" size="18" style="margin-left: 10rpx;"></u-icon>
  72. </view>
  73. </view>
  74. <template v-if="opens[i]">
  75. <!-- <view class="roomType" style="opacity: 0;">{{key.split('-')[1]}}</view> -->
  76. <view class="table">
  77. <view class="tr" v-for="(item2,index2) in item" :key="index2">
  78. <view class="td" :style="{'left':scrollLeft+'px'}">{{item2.roomNumber}}</view>
  79. <view class="td" v-for="(roomData,ind) in xdata" :key="ind"
  80. :class="'s'+delDataStatus(item2.roomNumber,item2.houseBaseId,roomData.roomDataList,'status')">
  81. <!-- 空置房-->
  82. <template
  83. v-if="delDataStatus(item2.roomNumber,item2.houseBaseId,roomData.roomDataList,'status') == 1">
  84. <view v-if="disTabCli(roomData) == 1" class="cellBox disT">
  85. ¥{{item2.roomNumber|delDataStatus(item2.houseBaseId,roomData.roomDataList,'price')}}
  86. </view>
  87. <view v-else
  88. @click="check(item2.roomNumber,item2.houseBaseId,roomData,i + '-'+index2+ '-'+ ind)"
  89. class="cellBox">
  90. ¥{{item2.roomNumber|delDataStatus(item2.houseBaseId,roomData.roomDataList,'price')}}
  91. </view>
  92. </template>
  93. <template v-else>
  94. <view
  95. @click="tabCli(item2.roomNumber,item2.houseBaseId,roomData.roomDataList)"
  96. class="tdP">
  97. <text>{{item2.roomNumber|delDataStatus(item2.houseBaseId,roomData.roomDataList,'guestName')}}</text>
  98. <text>{{item2.roomNumber|delDataStatus(item2.houseBaseId,roomData.roomDataList,'status')}}</text>
  99. </view>
  100. </template>
  101. <!-- 点击时状态 -->
  102. <view class="cover" v-if="checkPosition.indexOf(i + '-'+index2+ '-'+ ind) > -1"
  103. @click="check(item2.roomNumber,item2.houseBaseId,roomData,i + '-'+index2+ '-'+ ind)">
  104. <u-icon name="checkbox-mark" size="36" color="#fff"></u-icon>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </template>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="opration" v-if="checkDataRoomId.length!=0">
  114. <text @click="areaShow=true">关房</text>
  115. <text @click="createOrder()">预订</text>
  116. </view>
  117. </view>
  118. <Tabbar :tabbarIndex="1"></Tabbar>
  119. <!-- 关房 -->
  120. <u-picker :itemHeight="88" :immediateChange="true" :show="areaShow" :columns="areaTxt" title="房态选择"
  121. :defaultIndex="passengerDefault" @cancel="areaShow=false;clearData();"
  122. @confirm="passengerConfirm"></u-picker>
  123. </view>
  124. </template>
  125. <script>
  126. var that;
  127. export default {
  128. data() {
  129. return {
  130. homestayId: uni.getStorageSync('homestayId') || 0,
  131. areaShow: false,
  132. passengerDefault: [0],
  133. info: {},
  134. areaTxt: [
  135. ['清洁中', '暂停使用', '保留房', '空置房']
  136. ],
  137. area: [{
  138. label: '清洁中',
  139. id: 4
  140. }, {
  141. label: '暂停使用',
  142. id: 5
  143. }, {
  144. label: '保留房',
  145. id: 6
  146. }, {
  147. label: '空置房',
  148. id: 0
  149. }],
  150. titleStyle: {
  151. fontSize: '34rpx',
  152. fontWeight: "bold",
  153. },
  154. dateArr: [1, 2, 3, 4, 5],
  155. xdata: [], //纵向列
  156. leftData: [], //横向列,
  157. indexArr: [], //楼层索引,
  158. indexHouseBaseIdArr:[],
  159. indexHouseNameArr:[],
  160. indexNameArr: [], //楼层Id索引,
  161. opens: [],
  162. statusTxt: {
  163. '-2': '待支付',
  164. '-1': '待确定',
  165. '1': '已预订',
  166. '2': '已入住',
  167. '3': '已退房',
  168. '4': '清洁中',
  169. '5': '暂停使用',
  170. '6': '保留房',
  171. },
  172. weeks: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
  173. checkPosition: [],
  174. checkDataDate: [],
  175. checkPrice: [],
  176. checkDataRoomId: [],
  177. checkStatus: '',
  178. scrollLeft: 0
  179. }
  180. },
  181. mounted() {
  182. that = this;
  183. this.getLeftData();
  184. this.getData();
  185. this.getTj();
  186. },
  187. filters: {
  188. delDataStatus(roomNumber, id, roomId, name) {
  189. for (let i = 0; i < roomId.length; i++) {
  190. if (id == roomId[i].houseBaseId && roomNumber == roomId[i].roomNumber) {
  191. if (name == "status") {
  192. return that.statusTxt[roomId[i][name]]
  193. } else {
  194. return roomId[i][name] || ''
  195. }
  196. }
  197. }
  198. },
  199. },
  200. methods: {
  201. init() {
  202. this.getLeftData();
  203. this.getData();
  204. this.$forceUpdate();
  205. },
  206. getTj() {
  207. this.$api.get('/merchant/hotel/room/state/getRoomStateCount', {
  208. homestayId: this.homestayId
  209. }).then(res => {
  210. if (res.data.code == 0) {
  211. this.info = res.data.data;
  212. }
  213. })
  214. },
  215. scroll(e) {
  216. //this.scrollLeft = e.detail.scrollLeft; // div 到左边的距离
  217. },
  218. //关房
  219. tabCli(roomNumber, id, roomId) {
  220. if (roomNumber) {
  221. let obj = {};
  222. for (let i = 0; i < roomId.length; i++) {
  223. if (id == roomId[i].houseBaseId && roomNumber == roomId[i].roomNumber) {
  224. obj = roomId[i];
  225. }
  226. }
  227. //已预订,已入住 待确认 待支付
  228. if (obj.status == 1 || obj.status == 2 || obj.status == -1 || obj.status == -2) {
  229. let orderId = obj.orderId;
  230. uni.navigateTo({
  231. url: "/pages/house/orderInfo?orderId=" + orderId
  232. })
  233. //到详情
  234. } else {
  235. //更改状态
  236. this.areaShow = true;
  237. this.checkDataRoomId = [obj.id];
  238. this.checkStatus = obj.status;
  239. }
  240. }
  241. },
  242. //确定关房
  243. passengerConfirm(e) {
  244. let status = this.area[e.indexs[0]].id;
  245. this.$api.post('/merchant/hotel/room/state/updRoomState', {
  246. roomIds: this.checkDataRoomId,
  247. status: status
  248. }).then(res => {
  249. if (res.data.code == 0) {
  250. this.clearData();
  251. this.areaShow = false;
  252. this.init()
  253. } else {
  254. this.$showToast(res.data.msg);
  255. }
  256. })
  257. },
  258. //新增订单
  259. createOrder() {
  260. this.clearData()
  261. uni.navigateTo({
  262. url: '/pages/house/createOrder?roomId=' + this.checkDataRoomId
  263. })
  264. },
  265. //展开收起
  266. open(i, F, val) {
  267. this.opens[i] = !this.opens[i];
  268. let list = this.leftData;
  269. for (var i = 0; i < Object.keys(list).length; i++) {
  270. var index = i; // 索引
  271. var key = Object.keys(list)[i].split('-')[0]; // key
  272. if (F == key) {
  273. this.opens[index] = val;
  274. }
  275. }
  276. this.$forceUpdate();
  277. },
  278. delDataStatus(roomNumber, id, roomId, name) {
  279. for (let i = 0; i < roomId.length; i++) {
  280. if (id == roomId[i].houseBaseId && roomNumber == roomId[i].roomNumber) {
  281. return roomId[i][name] + 1;
  282. }
  283. }
  284. },
  285. disTabCli(roomData) {
  286. if (new Date(roomData.rentDate).Format('yyyy-MM-dd') < new Date().Format('yyyy-MM-dd')) {
  287. return 1
  288. }
  289. },
  290. clearData() {
  291. setTimeout(() => {
  292. this.checkDataDate = [];
  293. this.checkPrice = [];
  294. this.checkDataRoomId = [];
  295. this.checkPosition = [];
  296. }, 1500);
  297. },
  298. //选择房间
  299. check(roomNumber, id, item, position) {
  300. for (let i = 0; i < item.roomDataList.length; i++) {
  301. if (
  302. id == item.roomDataList[i].houseBaseId &&
  303. roomNumber == item.roomDataList[i].roomNumber
  304. ) {
  305. //宫格位置标识
  306. if (item.roomDataList[i].status == 0) {
  307. if (this.checkPosition.indexOf(position) < 0) {
  308. this.checkPosition.push(position);
  309. } else {
  310. let index = this.checkPosition.findIndex(
  311. (pos) => pos == position
  312. ); //选中的索引位置
  313. this.checkPosition.splice(index, 1);
  314. }
  315. //房间id
  316. if (this.checkDataRoomId.indexOf(item.roomDataList[i].id) < 0) {
  317. this.checkDataRoomId.push(item.roomDataList[i].id);
  318. } else {
  319. let index = this.checkDataRoomId.findIndex(
  320. (roomId) => roomId == item.roomDataList[i].id
  321. );
  322. this.checkDataRoomId.splice(index, 1);
  323. }
  324. //日期
  325. if (this.checkPosition.indexOf(position) > -1) {
  326. this.checkDataDate.push(item.rentDate);
  327. this.checkPrice.push(item.roomDataList[i].price)
  328. } else {
  329. let index = this.checkDataDate.findIndex(
  330. (date) => date == item.rentDate
  331. );
  332. this.checkDataDate.splice(index, 1);
  333. //价格
  334. let index2 = this.checkPrice.findIndex(
  335. (price) => price == item.price
  336. );
  337. this.checkPrice.splice(index2, 1);
  338. }
  339. if (this.checkPosition.length == 0) {
  340. this.checkDataDate = [];
  341. this.checkPrice = [];
  342. }
  343. }
  344. }
  345. }
  346. },
  347. getLeftData() {
  348. this.$api.get(`/merchant/hotel/room/state/getHouseCategoryData/${this.homestayId}`).then(res => {
  349. if (res.data.code == 0) {
  350. for (let i in res.data.data) {
  351. let F = i.split('-')[0];
  352. let houseBaseId=res.data.data[i][0].houseBaseId;
  353. let name=res.data.data[i][0].name;
  354. if (this.indexHouseBaseIdArr.indexOf(houseBaseId) < 0) {
  355. this.indexArr.push(F);
  356. this.indexHouseBaseIdArr.push(houseBaseId)
  357. this.indexHouseNameArr.push(name)
  358. this.opens.push(true)
  359. } else {
  360. this.indexArr.push('');
  361. this.indexHouseNameArr.push('')
  362. this.opens.push(true)
  363. }
  364. }
  365. this.leftData = res.data.data;
  366. }
  367. })
  368. },
  369. getData() {
  370. this.$api.get('/merchant/hotel/room/state/getDateRoomList', {
  371. homestayId: this.homestayId,
  372. nowDate: '',
  373. status: ''
  374. }).then(res => {
  375. if (res.data.code == 0) {
  376. this.xdata = res.data.data;
  377. }
  378. })
  379. }
  380. }
  381. }
  382. </script>
  383. <style scoped lang="less">
  384. .opration {
  385. height: 140rpx;
  386. padding: 0 30rpx;
  387. background-color: #fff;
  388. position: fixed;
  389. bottom: 0;
  390. left: 0;
  391. width: 100%;
  392. z-index: 9;
  393. display: flex;
  394. align-items: center;
  395. justify-content: space-between;
  396. box-sizing: border-box;
  397. text {
  398. display: inline-block;
  399. width: 160rpx;
  400. text-align: center;
  401. line-height: 56rpx;
  402. border: 1rpx solid #D1D1D1;
  403. height: 56rpx;
  404. border-radius: 64rpx;
  405. font-size: 24rpx;
  406. color: #999;
  407. &:last-child {
  408. background-color: #1372FF;
  409. color: #fff;
  410. border: 0;
  411. }
  412. }
  413. }
  414. .page {
  415. background: #F3F4F4;
  416. padding-bottom: 40rpx;
  417. box-sizing: border-box;
  418. overflow-x: auto;
  419. .content {}
  420. }
  421. .tj {
  422. padding: 30rpx 0;
  423. text-align: center;
  424. height: 140rpx;
  425. box-sizing: border-box;
  426. position: absolute;
  427. width: 750rpx;
  428. left: 0;
  429. display: flex;
  430. justify-content: space-between;
  431. background-color: #fff;
  432. .item {
  433. display: flex;
  434. flex-direction: column;
  435. align-items: center;
  436. width: 100px;
  437. flex: 1;
  438. }
  439. text {
  440. font-size: 24rpx;
  441. color: #999;
  442. &.label {
  443. font-size: 40rpx;
  444. color: #333;
  445. font-weight: bold;
  446. }
  447. }
  448. }
  449. .date {
  450. display: flex;
  451. position: relative;
  452. border: 1rpx solid #E9F0F5;
  453. // padding-bottom: 19rpx;
  454. margin-top: 140rpx;
  455. .item {
  456. min-width: 140rpx;
  457. width: 140rpx;
  458. height: 136rpx;
  459. display: flex;
  460. flex-direction: column;
  461. align-items: center;
  462. justify-content: center;
  463. font-size: 20rpx;
  464. border-right: 1rpx solid #E9F0F5;
  465. background-color: #fff;
  466. &:last-child {
  467. border: 0;
  468. }
  469. text {
  470. &:nth-child(2) {
  471. margin: 6rpx 0;
  472. }
  473. }
  474. }
  475. }
  476. .head,
  477. .roomType {
  478. padding: 0 30rpx 0 0;
  479. display: flex;
  480. width: 400rpx;
  481. // justify-content: space-between;
  482. }
  483. .head {
  484. // position: absolute;
  485. // top: 0;
  486. // left: 0;
  487. margin-top: 16rpx;
  488. width: 750rpx;
  489. display: flex;
  490. box-sizing: border-box;
  491. justify-content: space-between;
  492. &>text {
  493. &:first-child {
  494. font-size: 32rpx;
  495. margin-right: 30rpx;
  496. }
  497. }
  498. .rightIcon {
  499. display: flex;
  500. align-items: center;
  501. font-size: 24rpx;
  502. color: #1F2425;
  503. }
  504. }
  505. .roomType {
  506. // position: absolute;
  507. // top: 40rpx;
  508. // left: 0;
  509. color: #333;
  510. font-size: 24rpx;
  511. position: relative;
  512. padding-left: 34rpx;
  513. margin: 20rpx 0 16rpx;
  514. &::after {
  515. position: absolute;
  516. content: "";
  517. height: 24rpx;
  518. width: 5rpx;
  519. background-color: #1372FF;
  520. left: 20rpx;
  521. top: 4rpx;
  522. z-index: 1;
  523. }
  524. }
  525. .floorData {
  526. .table {
  527. // border: 1rpx solid #E9F0F5;
  528. width: auto;
  529. min-width: 100%;
  530. .tr {
  531. display: flex;
  532. align-items: center;
  533. background-color: #fff;
  534. position: relative;
  535. &:last-child {
  536. border: 0;
  537. }
  538. .td {
  539. display: flex;
  540. align-items: center;
  541. justify-content: center;
  542. position: relative;
  543. width: 140rpx;
  544. min-width: 140rpx;
  545. height: 110rpx;
  546. border-right: 1rpx solid #E9F0F5;
  547. background-color: #fff;
  548. color: #1F2425;
  549. font-size: 24rpx;
  550. box-sizing: border-box;
  551. border-bottom: 1rpx solid #E9F0F5;
  552. .tdP,
  553. .cellBox {
  554. display: flex;
  555. width: 100%;
  556. height: 100%;
  557. flex-direction: column;
  558. align-items: center;
  559. justify-content: center;
  560. &.disT {
  561. color: #ccc;
  562. }
  563. }
  564. // &:last-child {
  565. // border: 0;
  566. // }
  567. //已预订
  568. &.s2 {
  569. background-color: rgba(29, 202, 104, 0.1);
  570. color: rgb(29, 202, 104);
  571. text {
  572. &:first-child {
  573. margin-bottom: 6rpx;
  574. color: #1F2425;
  575. }
  576. }
  577. }
  578. // 已入住
  579. &.s3 {
  580. color: rgb(19, 114, 255);
  581. background-color: rgba(19, 114, 255, 0.1);
  582. text {
  583. &:first-child {
  584. margin-bottom: 6rpx;
  585. color: #1F2425;
  586. }
  587. }
  588. }
  589. // 已退房
  590. &.s4 {
  591. color: rgb(219, 41, 195);
  592. background-color: rgba(219, 41, 195, 0.1);
  593. }
  594. //待确定
  595. &.s0 {
  596. color: rgb(25, 185, 197);
  597. background-color: rgba(25, 185, 197, 0.1);
  598. }
  599. //清洁中
  600. &.s5 {
  601. color: rgb(237, 86, 86);
  602. background-color: rgba(237, 86, 86, 0.1);
  603. }
  604. //暂停使用
  605. &.s6 {
  606. color: rgb(41, 60, 115);
  607. background-color: rgba(41, 60, 115, 0.1);
  608. }
  609. //保留房
  610. &.s7 {
  611. color: rgb(132, 68, 244);
  612. background-color: rgba(132, 68, 244, 0.1);
  613. }
  614. }
  615. }
  616. .cover {
  617. position: absolute;
  618. top: 0;
  619. left: 0;
  620. bottom: 0;
  621. right: 0;
  622. background-color: #1372FF;
  623. color: #fff;
  624. text-align: center;
  625. display: flex;
  626. flex-direction: column;
  627. justify-content: center;
  628. align-items: center;
  629. }
  630. }
  631. }
  632. .small {
  633. padding-top: 68rpx !important;
  634. .roomType {
  635. top: 0 !important;
  636. }
  637. }
  638. .pd0 {
  639. padding: 0 !important;
  640. }
  641. .leftFixed {
  642. width: 72rpx;
  643. position: absolute;
  644. left: 0;
  645. // top: 232rpx;
  646. z-index: 1;
  647. .tj {
  648. width: 0;
  649. position: relative;
  650. }
  651. .year {
  652. min-width: 140rpx;
  653. width: 140rpx;
  654. height: 136rpx;
  655. display: flex;
  656. flex-direction: column;
  657. align-items: center;
  658. justify-content: center;
  659. font-size: 20rpx;
  660. border-right: 1rpx solid #E9F0F5;
  661. background-color: #fff;
  662. margin-bottom: 18rpx;
  663. }
  664. .fixedItem {
  665. display: flex;
  666. flex-direction: column;
  667. .roomNumber {
  668. height: 110rpx;
  669. display: flex;
  670. align-items: center;
  671. border-bottom: 1rpx solid #E9F0F5;
  672. width: 140rpx;
  673. background-color: #fff;
  674. box-shadow: 3px 0 10px #efefef;
  675. box-sizing: border-box;
  676. justify-content: center;
  677. text-align: center;
  678. // &:first-child{height: 84rpx;border-top: 1rpx solid #E9F0F5;}
  679. }
  680. }
  681. }
  682. </style>