index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937
  1. <template>
  2. <view class="index">
  3. <div class="home_banner">
  4. <div class="home_banner_sp">
  5. <div class="home_banner_sp_box">
  6. <swiper class="swiper" indicator-dots="true" indicator-color="#fff" indicator-active-color="#FF5E5E" autoplay="true"
  7. interval="3000" duration="500">
  8. <swiper-item v-for="(item,index) in lb_imgs">
  9. <view class="banner-img">
  10. <!-- {{item+1}} -->
  11. <img :src="item" class="img" alt="" mode="aspectFill">
  12. </view>
  13. </swiper-item>
  14. </swiper>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="home_planting">
  19. <div class="home_planting_item">
  20. <div class="planting_img">
  21. <img src="/static/icon_hp_tz@2x.png" mode="aspectFit" alt="" class="img">
  22. <span>通知公告:</span>
  23. </div>
  24. <div class="planting_box">
  25. <!-- <div class="notice_list_chang" :animation="animationData"> -->
  26. <swiper circular class="flex-item xhjs" :vertical="true" :autoplay="true" interval=3000>
  27. <swiper-item v-for="(item,index) in gti_s" class="ok" wx:key="index">
  28. <text class="iop">{{item.informationTitle}}</text>
  29. </swiper-item>
  30. </swiper>
  31. <!-- </div> -->
  32. <!-- <img src="/static/1@2x.png" alt="" class="img"> -->
  33. </div>
  34. <!-- <div class="planting_btn" @click="notice_more_btn">
  35. 更多
  36. </div> -->
  37. </div>
  38. </div>
  39. <div class="home_consultation">
  40. <div class="home_consultation_box">
  41. <!-- <div class="consultation_item" @click="zg_btn"><img src="/static/zige@2x.png" alt="" class="img">资格申请</div> -->
  42. <div class="consultation_item" @click="fw_btn(0)"><img src="/static/icon_hp_gn_rycj@2x.png" alt="" class="img">绑定学生</div>
  43. <div class="consultation_item" @click="yy_btn(1)"><img src="/static/icon_hp_gn_rygl@2x.png" alt="" class="img">学生管理</div>
  44. <!-- <div class="consultation_item" @click="yz_btn"><img src="/static/icon_hp_gn_db@2x.png" alt="" class="img">待办事项</div> -->
  45. </div>
  46. </div>
  47. </view>
  48. </template>
  49. <script>
  50. import uniPopup from "@/components/popup"
  51. export default {
  52. data() {
  53. return {
  54. list: [],
  55. animationData: '', // 滚动
  56. num: 0,
  57. info_status: false, // 个人中心状态
  58. ual_status: false, // 资格申请弹窗
  59. lb_imgs: [], // 轮播图
  60. gti_s: [], // 公告
  61. info: "", // 个人信息
  62. rooms: [], // 房间
  63. info_room: "", // 用户入住信息
  64. news: "", // 消息
  65. checks: '', // 资格申请状态
  66. animationLeft: '', // 滑动
  67. leftStatus: 0, // 滑动状态
  68. xs: false,
  69. token:''
  70. }
  71. },
  72. components: {
  73. uniPopup,
  74. },
  75. onLoad() {
  76. this.init()
  77. this.token = uni.getStorageSync('token')
  78. },
  79. onPullDownRefresh() {
  80. const token = uni.getStorageSync('token')
  81. // 首页公告
  82. this.$http.post("app_announcement/findAllAnnouncement", {
  83. pageSize: 100,
  84. currenPage: 1
  85. }).then(res => {
  86. // this.gti_s = res.data.list
  87. this.gti_s = [{
  88. title: '欢迎各位家长使用爱心小屋预约系统!'
  89. },{
  90. title: '哈哈啥多久啊是看得见哈萨克就!'
  91. },{
  92. title: '第三是的随口说的艰苦实践的空间里!'
  93. }]
  94. this.fn()
  95. })
  96. },
  97. onShow() {
  98. const token = uni.getStorageSync('token')
  99. const type = uni.getStorageSync('ztype')
  100. console.log(type)
  101. },
  102. methods: {
  103. login_btn() {
  104. uni.navigateTo({
  105. url: '/pages/login/login'
  106. })
  107. },
  108. tz_btn(reservationId, roomType) {
  109. uni.navigateTo({
  110. url: `list_examine?type=3&reservationId=${reservationId}&roomType=${roomType}`
  111. })
  112. },
  113. // btn
  114. btn_zhu() {
  115. if (this.leftStatus == 0) {
  116. this.leftStatus = 1
  117. let animation = uni.createAnimation({
  118. duration: 500,
  119. timingFunction: 'ease',
  120. })
  121. let animate
  122. animate = animation.width('300rpx').step()
  123. setTimeout(res => {
  124. this.xs = true
  125. }, 500)
  126. this.animationLeft = animate.export()
  127. } else {
  128. this.leftStatus = 0
  129. this.xs = false
  130. let animation = uni.createAnimation({
  131. duration: 500,
  132. timingFunction: 'ease',
  133. })
  134. let animate
  135. animate = animation.width('84rpx').step()
  136. this.animationLeft = animate.export()
  137. }
  138. },
  139. changeTuifang() {
  140. if (data !== null) {
  141. showTuifang = true;
  142. }
  143. },
  144. // 时间格式化
  145. formatDateTime(inputTime) {
  146. var date = new Date(inputTime);
  147. var y = date.getFullYear();
  148. var m = date.getMonth() + 1;
  149. m = m < 10 ? ('0' + m) : m;
  150. var d = date.getDate();
  151. d = d < 10 ? ('0' + d) : d;
  152. var h = date.getHours();
  153. h = h < 10 ? ('0' + h) : h;
  154. var minute = date.getMinutes();
  155. var second = date.getSeconds();
  156. minute = minute < 10 ? ('0' + minute) : minute;
  157. second = second < 10 ? ('0' + second) : second;
  158. return y + '/' + m + '/' + d
  159. },
  160. // 消息按钮
  161. is_btn() {
  162. const token = uni.getStorageSync('token')
  163. if (token) {
  164. this.h_xx = false
  165. uni.navigateTo({
  166. url: "h-information"
  167. })
  168. } else {
  169. this.login_btn()
  170. }
  171. },
  172. init() {
  173. // 首页轮播图
  174. this.$http.get("app-api/common/banner", {
  175. }).then(res => {
  176. console.log(res)
  177. this.lb_imgs = res.data
  178. // if(res.code == 200){
  179. // console.log(200)
  180. // uni.navigateTo({
  181. // url: '/pages/login/login'
  182. // })
  183. // }
  184. })
  185. // 首页公告
  186. this.$http.get("app-api/common/inform").then(res => {
  187. console.log(res)
  188. // this.gti_s = res.data.list
  189. this.gti_s = res.data
  190. this.fn()
  191. })
  192. },
  193. // 退出登录
  194. out_btn() {
  195. uni.removeStorageSync("token")
  196. uni.reLaunch({
  197. url: "../login/login"
  198. })
  199. },
  200. // 认证消息
  201. // renzheng_btn() {
  202. // if (!this.checks) {
  203. // uni.navigateTo({
  204. // url: "qual_apply"
  205. // })
  206. // } else if (this.checks == '2') {
  207. // uni.navigateTo({
  208. // url: "auth_info"
  209. // })
  210. // } else {
  211. // uni.navigateTo({
  212. // url: "qual_result"
  213. // })
  214. // }
  215. // },
  216. // 人员管理
  217. yy_btn() {
  218. const type = uni.getStorageSync('ztype')
  219. if (type == 1) {
  220. // if (this.checks == 2) {
  221. uni.navigateTo({
  222. url: "/pages/home/management"
  223. })
  224. // } else {
  225. // uni.showToast({
  226. // title: '您的资格申请还没有通过',
  227. // duration: 1000,
  228. // icon: 'none'
  229. // });
  230. return
  231. // }
  232. } else {
  233. uni.navigateTo({
  234. url: '/pages/login/login'
  235. })
  236. }
  237. },
  238. // // 意见
  239. // yz_btn() {
  240. // const type = uni.getStorageSync('ztype')
  241. // // if (type == 0) {
  242. // // } else {
  243. // // uni.navigateTo({
  244. // // url: '/pages/login/login'
  245. // // })
  246. // // }
  247. // uni.showToast({
  248. // title: '暂未开放',
  249. // duration: 1000,
  250. // icon: 'none'
  251. // });
  252. // },
  253. // 富文本页面 跳转
  254. fw_btn(e) {
  255. const type = uni.getStorageSync('ztype')
  256. // if (type == 1) {
  257. // let title = ''
  258. // if (e == 0) {
  259. // title = '入住须知'
  260. // } else if (e == 1) {
  261. // title = '预约指南'
  262. // }
  263. uni.switchTab({
  264. url: '/pages/tab/fw?studentId=' + e
  265. })
  266. uni.setStorageSync('index', 0)
  267. // } else {
  268. // uni.navigateTo({
  269. // url: '/pages/login/login'
  270. // })
  271. // }
  272. },
  273. // 滚动动画
  274. fn() {
  275. let animation = uni.createAnimation({
  276. duration: 500,
  277. timingFunction: 'ease',
  278. })
  279. console.log(this.gti_s.length,199999)
  280. let animate
  281. let hights
  282. var res = uni.getSystemInfoSync()
  283. if (res.platform == "ios") {
  284. uni.getSystemInfo({
  285. success: res => {
  286. hights = res.screenHeight / 41
  287. }
  288. })
  289. } else {
  290. uni.getSystemInfo({
  291. success: res => {
  292. hights = res.screenHeight / 40
  293. }
  294. })
  295. }
  296. let ss = (this.gti_s.length - 1) * -(hights)
  297. setInterval(() => {
  298. if (this.num <= ss) {
  299. this.num = 0
  300. animate = animation.translate3d(0, this.num, 0).step({
  301. duration: 0
  302. })
  303. } else {
  304. this.num -= hights
  305. animate = animation.translate3d(0, this.num, 0).step()
  306. }
  307. this.animationData = animate.export()
  308. console.log(111)
  309. }, 3000)
  310. }
  311. }
  312. }
  313. </script>
  314. <style lang="scss" scoped>
  315. .xhjs {
  316. width:100%;
  317. position:absolute;
  318. height:40upx;
  319. top:0;
  320. // left:19%;
  321. // margin-left: 20px;
  322. font-size: 30upx;
  323. color: #000;
  324. font-family: 'PingFang-SC-Medium';
  325. }
  326. .index{
  327. background-color: #F0F0F0;
  328. min-height:100vh;
  329. }
  330. // 退房按钮
  331. .index_checkOut_button_right {
  332. float: left;
  333. margin-left: 14upx;
  334. margin-top: 24upx;
  335. }
  336. .index_checkOut_button_right img {
  337. display: block;
  338. width: 30upx;
  339. height: 30upx;
  340. line-height: 84upx;
  341. }
  342. .index_checkOut_button_center {
  343. float: left;
  344. margin-left: 16upx;
  345. margin-top: 10upx;
  346. }
  347. .index_checkOut_button_center_top {
  348. font-size: 26upx;
  349. }
  350. .index_checkOut_button_center_bottom {
  351. font-size: 20upx;
  352. }
  353. .index_checkOut_button_center p {
  354. color: #FFFFFF;
  355. }
  356. .index_checkOut_button_left {
  357. float: left;
  358. display: flex;
  359. align-items: center;
  360. height: 84rpx;
  361. justify-content: center;
  362. width: 84rpx;
  363. }
  364. .index_checkOut_button_left img {
  365. display: block;
  366. position: relative;
  367. width: 80upx;
  368. height: 80upx;
  369. line-height: 84upx;
  370. }
  371. .index_checkOut_button {
  372. position: fixed;
  373. bottom: 80upx;
  374. right: 30upx;
  375. background-color: #FF4878;
  376. width: 84upx;
  377. height: 84upx;
  378. border-radius: 50upx;
  379. box-sizing: border-box;
  380. z-index: 2;
  381. box-shadow: 0px 7px 36px 0px rgba(181, 176, 177, 1);
  382. }
  383. .dialog-content {
  384. background-color: #fff;
  385. width: 620upx;
  386. margin: 0 auto;
  387. border-radius: 12px;
  388. position: relative;
  389. margin-top: 0 !important;
  390. height: auto !important;
  391. padding-top: 20upx;
  392. .wrapper {
  393. padding: 0 30upx;
  394. .title {
  395. text-align: center;
  396. padding: 40upx 0 28upx 0;
  397. font-size: 38upx;
  398. color: #030303;
  399. font-weight: bold;
  400. }
  401. .wrapp_cont {
  402. margin: 0 auto;
  403. font-size: 32upx;
  404. padding: 20upx 10upx 40upx;
  405. line-height: 1.5;
  406. p {
  407. text-align: center;
  408. color: #999999;
  409. }
  410. }
  411. }
  412. .footer-cell {
  413. height: 86upx;
  414. width: 100%;
  415. display: flex;
  416. border-top: 1px solid #f5f5f5;
  417. box-sizing: border-box;
  418. .item {
  419. flex: 1;
  420. text-align: center;
  421. color: #000;
  422. line-height: 86upx;
  423. font-size: 34upx
  424. }
  425. .items {
  426. color: #56CBC5;
  427. }
  428. .confirm-text {
  429. color: #FF568C;
  430. border-left: 1px solid #f5f5f5;
  431. box-sizing: border-box;
  432. }
  433. }
  434. }
  435. .sc_box {
  436. position: relative;
  437. margin: 0 auto;
  438. height: 890upx;
  439. .sc_img {
  440. width: 100%;
  441. height: 100%;
  442. }
  443. .sc_cont_box {
  444. position: absolute;
  445. top: 50%;
  446. height: 450upx;
  447. width: 340upx;
  448. margin-left: -170upx;
  449. left: 50%;
  450. margin-top: -160upx;
  451. .sc_cont_box_title {
  452. font-size: 36upx;
  453. color: #FFE440;
  454. text-shadow: 0 2upx 2upx #B12D39;
  455. }
  456. .sc_cont_box_c {
  457. color: #fff;
  458. margin-top: 40upx;
  459. font-size: 26upx;
  460. letter-spacing: 2upx;
  461. text-align: center;
  462. }
  463. .sc_cont_box_n {
  464. color: #fff;
  465. margin-top: 35upx;
  466. font-size: 26upx;
  467. text-align: left;
  468. letter-spacing: 3upx;
  469. line-height: 1.5;
  470. padding: 0 10upx;
  471. }
  472. .sc_cont_box_btn {
  473. margin-top: 35upx;
  474. background: #FFE92F;
  475. color: #D40B64;
  476. height: 76upx;
  477. line-height: 76upx;
  478. border-radius: 4upx;
  479. width: 100%;
  480. font-size: 30upx;
  481. }
  482. }
  483. }
  484. .info_hei {
  485. width: 100%;
  486. height: 100%;
  487. position: fixed;
  488. top: 0;
  489. left: 0;
  490. background: rgba(0, 0, 0, .8);
  491. .info_box {
  492. width: 522upx;
  493. height: 100%;
  494. background: #fff;
  495. display: flex;
  496. justify-content: left;
  497. flex-direction: column;
  498. .info_title {
  499. height: 384upx;
  500. position: relative;
  501. z-index: 2;
  502. .imgs {
  503. width: 100%;
  504. height: 100%;
  505. }
  506. .info_p {
  507. position: absolute;
  508. top: 0;
  509. width: 100%;
  510. }
  511. .info_cont {
  512. margin-top: 50upx;
  513. height: 100upx;
  514. display: flex;
  515. align-items: center;
  516. padding-left: 32upx;
  517. .info_img {
  518. width: 102upx;
  519. height: 102upx;
  520. border-radius: 50%;
  521. background: rgba(#fff, .5);
  522. display: flex;
  523. justify-content: center;
  524. align-items: center;
  525. .img {
  526. width: 98upx;
  527. height: 98upx;
  528. border-radius: 50%;
  529. }
  530. }
  531. .info_details {
  532. margin-left: 22upx;
  533. height: 90upx;
  534. .info_details_h {
  535. display: flex;
  536. align-items: center;
  537. span {
  538. font-size: 36upx;
  539. color: #fff;
  540. }
  541. .info_details_type {
  542. background: rgba(#fff, .3);
  543. display: flex;
  544. align-items: center;
  545. justify-content: center;
  546. width: 94upx;
  547. height: 44upx;
  548. color: #fff;
  549. border-radius: 22upx;
  550. margin-left: 12upx;
  551. span {
  552. font-size: 26upx;
  553. }
  554. }
  555. }
  556. .info_details_phone {
  557. margin-top: 6upx;
  558. font-size: 24upx;
  559. color: #fff;
  560. }
  561. }
  562. }
  563. .info_is {
  564. padding: 50upx 32upx;
  565. font-size: 34upx;
  566. color: #fff;
  567. }
  568. .info_title_fot {
  569. margin-top: 54upx;
  570. padding-left: 58upx;
  571. width: 100%;
  572. box-sizing: border-box;
  573. display: flex;
  574. justify-content: space-between;
  575. padding-right: 24upx;
  576. div {
  577. display: flex;
  578. text-align: center;
  579. flex-direction: column;
  580. }
  581. p {
  582. font-size: 36upx;
  583. color: #fff;
  584. font-weight: 600;
  585. margin-bottom: 23upx;
  586. }
  587. span {
  588. font-size: 24upx;
  589. opacity: .6;
  590. color: #fff;
  591. }
  592. }
  593. }
  594. .info_tab {
  595. flex: 1;
  596. background: #fff;
  597. padding: 0 32upx;
  598. position: relative;
  599. .info_sign_out {
  600. width: 568upx;
  601. height: 100upx;
  602. box-shadow: 0upx 6upx 16upx 0upx rgba(218, 218, 218, 0.5);
  603. border-radius: 4upx;
  604. border: 2upx solid rgba(222, 222, 222, 1);
  605. position: absolute;
  606. bottom: 76upx;
  607. font-size: 32upx;
  608. color: #333333;
  609. text-align: center;
  610. line-height: 100upx;
  611. // width: ;
  612. }
  613. .img {
  614. width: 64upx;
  615. height: 64upx;
  616. }
  617. .info_tab_item {
  618. height: 128upx;
  619. padding-left: 12upx;
  620. border-bottom: 1upx solid #E5E5E5;
  621. display: flex;
  622. align-items: center;
  623. span {
  624. font-size: 32upx;
  625. color: #333;
  626. margin-left: 28upx;
  627. display: inline-block;
  628. flex: 1;
  629. }
  630. .info_tab_item_icon {
  631. width: 32upx;
  632. height: 32upx;
  633. }
  634. .info_status {
  635. width: 102upx;
  636. height: 42upx;
  637. background: #DBFBE2;
  638. text-align: center;
  639. line-height: 42upx;
  640. color: #4FB259;
  641. font-size: 22upx;
  642. border-radius: 21upx;
  643. margin-right: 28upx;
  644. }
  645. }
  646. }
  647. }
  648. }
  649. .index {
  650. width: 100%;
  651. padding-bottom: 40upx;
  652. overflow-x: hidden;
  653. }
  654. .homes {
  655. padding: 0 32upx;
  656. color: #fff;
  657. .home_item {
  658. width: 100%;
  659. height: 245upx;
  660. margin-bottom: 20upx;
  661. border-radius: 16px;
  662. padding: 16upx 38upx;
  663. box-sizing: border-box;
  664. .home_item_title {
  665. display: flex;
  666. align-items: center;
  667. span {
  668. font-size: 54upx;
  669. font-weight: bold;
  670. }
  671. .home_item_title_btn {
  672. width: 126upx;
  673. height: 48upx;
  674. border-radius: 24upx;
  675. margin-left: 40upx;
  676. font-size: 24upx;
  677. text-align: center;
  678. line-height: 48upx;
  679. border-radius: 24upx;
  680. background: #fff;
  681. }
  682. .home_item_title_btn_f {
  683. color: #5399C1;
  684. }
  685. .home_item_title_btn_m {
  686. color: #FEA97F;
  687. }
  688. .home_item_title_btn_j {
  689. color: #F3C771;
  690. }
  691. }
  692. .home_item_bot {
  693. margin-top: 36upx;
  694. display: flex;
  695. justify-content: left;
  696. .home_item_num {
  697. width: 74upx;
  698. margin-right: 68upx;
  699. text-align: center;
  700. font-size: 24upx;
  701. span {
  702. opacity: .6;
  703. }
  704. .num_box {
  705. font-size: 24upx;
  706. span {
  707. font-size: 40upx;
  708. opacity: 1;
  709. }
  710. }
  711. }
  712. }
  713. }
  714. }
  715. .home_consultation {
  716. // margin-top: 36upx;
  717. padding: 0 120upx;
  718. height: 243upx;
  719. padding-top: 35upx;
  720. box-sizing: border-box;
  721. // margin-bottom: 56upx;
  722. background-color: #fff;
  723. .home_consultation_box {
  724. display: flex;
  725. justify-content: space-between;
  726. .consultation_item {
  727. width: 126upx;
  728. font-size: 28upx;
  729. color: #333333;
  730. text-align: center;
  731. .img {
  732. width: 125upx;
  733. height: 125upx;
  734. margin-bottom: 8upx;
  735. }
  736. }
  737. }
  738. }
  739. .home_planting {
  740. .home_planting_item {
  741. // width: 100%;
  742. height: 90upx;
  743. // box-shadow: 0px 4px 28px 0px rgba(250, 229, 235, 1);
  744. background: #fff;
  745. margin-bottom: 16upx;
  746. display: flex;
  747. align-items: center;
  748. justify-content: space-between;
  749. .planting_img {
  750. display: flex;
  751. align-items: center;
  752. // width: 62upx;
  753. // height: 64upx;
  754. margin-left: 36upx;
  755. height: 100%;
  756. .img {
  757. width: 31upx;
  758. height: 36upx;
  759. margin-right: 15upx;
  760. }
  761. span{
  762. font-size: 30upx;
  763. color: #1678FF;
  764. }
  765. }
  766. .planting_box {
  767. height: 40upx;
  768. overflow: hidden;
  769. position: relative;
  770. flex: 1;
  771. .img {
  772. width: 396upx;
  773. position: absolute;
  774. height: 32upx;
  775. top: 0;
  776. right: 10upx;
  777. }
  778. .notice_list_chang {
  779. width: 100%;
  780. div {
  781. width: 100%;
  782. display: flex;
  783. height: 32upx;
  784. align-items: center;
  785. }
  786. // .planting_box_dian {
  787. // width: 12upx;
  788. // height: 12upx;
  789. // background: #F41E39;
  790. // border-radius: 50%;
  791. // margin-right: 20upx;
  792. // display: inline-block;
  793. // margin-bottom: 0;
  794. // }
  795. span {
  796. font-size: 25upx;
  797. color: #333;
  798. width: 396upx;
  799. overflow: hidden;
  800. text-overflow: ellipsis;
  801. white-space: nowrap;
  802. }
  803. }
  804. }
  805. .planting_btn {
  806. margin-right: 24upx;
  807. font-size: 22upx;
  808. color: #FF5F9A;
  809. }
  810. }
  811. }
  812. .home_banner {
  813. // width: 100%;
  814. // height: 338upx;
  815. position: relative;
  816. // margin-left: -10upx;
  817. .home_banner_sp {
  818. width: 100%;
  819. height: 389upx;
  820. background: #fff;
  821. border-radius: 10upx;
  822. position: relative;
  823. display: flex;
  824. justify-content: center;
  825. align-items: center;
  826. .home_banner_sp_box {
  827. width: 100%;
  828. height: 389upx;
  829. border-radius: 10upx;
  830. .swiper {
  831. height: 100%;
  832. .banner-img {
  833. height: 100%;
  834. }
  835. .img {
  836. width: 100%;
  837. height: 100%;
  838. }
  839. }
  840. }
  841. }
  842. }
  843. </style>