index.vue 20 KB

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