index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. <template>
  2. <view class="content">
  3. <view class="page-section-spacing" style="width: 100%; position: relative">
  4. <swiper
  5. class="swiper"
  6. indicator-dots="false"
  7. autoplay="true"
  8. duration="500"
  9. style="height: 400rpx"
  10. @change="swiperChange"
  11. >
  12. <swiper-item
  13. v-for="(item, index) in swiperList"
  14. :key="index"
  15. class="swiper-content"
  16. >
  17. <image
  18. :src="item.pic_path"
  19. mode="aspectFill"
  20. style="width: 100%; height: 100%"
  21. ></image>
  22. </swiper-item>
  23. </swiper>
  24. <image src="../../static/Intersect.svg" class="groove-img"></image>
  25. <view class="rowDot">
  26. <view v-for="(item, index) in swiperList" :key="index" class="dots">
  27. <view
  28. :class="['dot', index === swiperCurrent ? 'active' : '']"
  29. ></view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="page-nav-box">
  34. <navigator
  35. v-for="(item, index) in navList"
  36. :key="index"
  37. :url="item.path"
  38. open-type="navigate"
  39. class="nav-content"
  40. >
  41. <image
  42. :src="item.url"
  43. mode="aspectFit"
  44. style="width: 38px; height: 38px"
  45. ></image>
  46. <view>{{ item.content }}</view>
  47. </navigator>
  48. </view>
  49. <view class="notice-box">
  50. <view class="notice-title-box">
  51. <view class="notice-font">通知公告</view>
  52. <view class="notice-more-font">
  53. <view style="margin-right: 8rpx; font-size: 22rpx" @click="goNotice"
  54. >更多</view
  55. >
  56. <image
  57. src="../../static/right-arrow-blue.png"
  58. mode="aspectFill"
  59. style="width: 12rpx; height: 16rpx"
  60. ></image>
  61. </view>
  62. </view>
  63. <view
  64. class="notice-content-box"
  65. style="justify-content: flex-start"
  66. v-for="(item, index) in noticeList"
  67. :key="index"
  68. @click="goNoticeDeatil(item.id)"
  69. >
  70. <image
  71. :src="item.icon"
  72. mode="aspectFit"
  73. style="width: 34px; height: 34px"
  74. ></image>
  75. <view class="notice-content display-around-column">
  76. <view class="notice-content-font" style="margin-left: 40rpx">{{
  77. item.title
  78. }}</view>
  79. <view class="notice-content-time" style="margin-left: 40rpx">{{
  80. item.publish_time | globalTime
  81. }}</view>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="notice-box" style="margin-top: 40rpx">
  86. <view class="notice-title-box">
  87. <view class="notice-font">推荐园区</view>
  88. <navigator
  89. class="notice-more-font"
  90. url="../park/index"
  91. open-type="navigate"
  92. >
  93. <view style="margin-right: 8rpx; font-size: 22rpx">更多</view>
  94. <image
  95. src="/static/right-arrow-blue.png"
  96. mode="aspectFill"
  97. style="width: 12rpx; height: 16rpx"
  98. ></image>
  99. </navigator>
  100. </view>
  101. <view
  102. class="display-flex-start"
  103. style="overflow-x: scroll; overflow-y: hidden; position: relative"
  104. >
  105. <view
  106. class="park-box"
  107. v-for="(item, index) in parkList"
  108. :key="item.id"
  109. @click="goParkDetailFn(item.id)"
  110. >
  111. <image
  112. :src="item.park_pics[0].pic_path || '/static/park/1.png'"
  113. mode="aspectFill"
  114. style="
  115. width: 452rpx;
  116. height: 250rpx;
  117. border-radius: 32rpx 32rpx 0 0;
  118. "
  119. ></image>
  120. <view class="park-content-box">
  121. <view class="park-title">{{ item.name }}</view>
  122. <view class="park-address display-flex-start">
  123. <view class="display-flex-start" style="margin-right: 10rpx"
  124. ><image
  125. src="/static/park/park-time.png"
  126. mode="aspectFill"
  127. class="park-title-img"
  128. ></image
  129. >{{ item.addtime | globalTime }}建成</view
  130. >
  131. <view class="display-flex-start"
  132. ><image
  133. src="/static/park/park-name.png"
  134. mode="aspectFill"
  135. class="park-title-img"
  136. ></image
  137. >{{ item.manager }}</view
  138. >
  139. </view>
  140. <view class="park-footer-box display-between">
  141. <view class="display-between-column width-30">
  142. <view class="display-flex-start"
  143. ><image
  144. src="/static/park/park-num.png"
  145. mode="aspectFill"
  146. class="park-footer-img"
  147. ></image
  148. >{{ item.company_count }}</view
  149. >
  150. <view class="park-footer-font">企业数量</view>
  151. </view>
  152. <view class="display-between-column width-30">
  153. <view class="display-flex-start">
  154. <image
  155. src="/static/park/park-area.png"
  156. mode="aspectFill"
  157. class="park-footer-img"
  158. ></image>
  159. {{ item.cover_area
  160. }}<text style="font-size: 12rpx">万㎡</text></view
  161. >
  162. <view class="park-footer-font">占地面积</view>
  163. </view>
  164. <view class="display-between-column width-30">
  165. <view class="display-flex-start">
  166. <image
  167. src="/static/park/park-area2.png"
  168. mode="aspectFill"
  169. class="park-footer-img"
  170. ></image>
  171. {{ item.building_area
  172. }}<text style="font-size: 12rpx">万㎡</text></view
  173. >
  174. <view class="park-footer-font">建设面积</view>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. <view class="notice-box" style="margin-top: 20rpx">
  182. <view class="notice-title-box">
  183. <view class="notice-font">招商专区</view>
  184. <view class="notice-more-font">
  185. <view style="margin-right: 8rpx; font-size: 22rpx" @click="goAttract"
  186. >更多</view
  187. >
  188. <image
  189. src="/static/right-arrow-blue.png"
  190. mode="aspectFill"
  191. style="width: 12rpx; height: 16rpx"
  192. ></image>
  193. </view>
  194. </view>
  195. <view
  196. class="notice-content-box"
  197. v-for="(item, index) in attractList"
  198. :key="index"
  199. style="justify-content: start"
  200. @click="goAttractDeatil(item.id)"
  201. >
  202. <image
  203. :src="item.url"
  204. mode="aspectFit"
  205. style="width: 112rpx; height: 112rpx; margin-right: 20rpx"
  206. ></image>
  207. <view class="notice-content">
  208. <view class="notice-content-font">{{ item.title }}</view>
  209. <view class="attract-content">{{ item.subtitle }}</view>
  210. <view class="notice-content-time" style="margin-top: 20rpx">{{
  211. item.time
  212. }}</view>
  213. </view>
  214. </view>
  215. </view>
  216. <view class="notice-box" style="margin-top: 20rpx">
  217. <view class="notice-title-box">
  218. <view class="notice-font">区内活动</view>
  219. <view class="notice-more-font">
  220. <view style="margin-right: 8rpx; font-size: 22rpx">更多</view>
  221. <image
  222. src="/static/right-arrow-blue.png"
  223. mode="aspectFill"
  224. style="width: 12rpx; height: 16rpx"
  225. ></image>
  226. </view>
  227. </view>
  228. <view
  229. class="notice-content-box"
  230. v-for="(item, index) in activityList"
  231. :key="index"
  232. style="justify-content: start; padding: 30rpx 0 30rpx 30rpx"
  233. >
  234. <image
  235. :src="item.url"
  236. mode="aspectFit"
  237. style="width: 128rpx; height: 128rpx; margin-right: 20rpx"
  238. ></image>
  239. <view class="notice-content" style="width: 70%">
  240. <view class="notice-content-font" style="white-space: break-spaces">{{
  241. item.title
  242. }}</view>
  243. <view class="display-flex-start" style="margin-top: 20rpx">
  244. <view
  245. class="notice-content-time display-flex-start color-a7adba"
  246. v-show="item.isOnline"
  247. ><view class="online-box"></view>线上</view
  248. >
  249. <view
  250. class="notice-content-time display-flex-start color-a7adba"
  251. v-show="!item.isOnline"
  252. ><view class="offline-box"></view>线下</view
  253. >
  254. <view class="notice-content-time color-a7adba">{{
  255. item.department
  256. }}</view>
  257. <view class="notice-content-time color-a7adba">{{
  258. item.time
  259. }}</view>
  260. </view>
  261. <view class="display-flex-end" style="margin-top: 20rpx">
  262. <view class="notice-content-time">浏览 {{ item.browe }}</view>
  263. <view class="notice-content-time">分享 {{ item.share }}</view>
  264. </view>
  265. </view>
  266. </view>
  267. </view>
  268. <foot-tabs></foot-tabs>
  269. </view>
  270. </template>
  271. <script>
  272. import md5 from "@/common/md5.js";
  273. export default {
  274. data() {
  275. return {
  276. swiperList: [
  277. {
  278. img: "/static/swiper/swiper1.jpg",
  279. },
  280. {
  281. img: "/static/swiper/swiper2.jpg",
  282. },
  283. ],
  284. swiperCurrent: 0,
  285. navList: [
  286. {
  287. url: "/static/navList/appeal.png",
  288. path: "/pages/appeal/index",
  289. content: "提诉求",
  290. },
  291. {
  292. url: "/static/navList/policy.png",
  293. path: "/pages/policy/index",
  294. content: "搜政策",
  295. },
  296. {
  297. url: "/static/navList/park.png",
  298. path: "/pages/park/index",
  299. content: "找园区",
  300. },
  301. {
  302. url: "/static/navList/activity.png",
  303. path: "/pages/activity/index",
  304. content: "找活动",
  305. },
  306. {
  307. url: "/static/navList/supply.png",
  308. path: "/pages/supply/index",
  309. content: "发供需",
  310. },
  311. {
  312. url: "/static/navList/enterprise.png",
  313. path: "/pages/enterprise/index",
  314. content: "查企业",
  315. },
  316. {
  317. url: "/static/navList/service.png",
  318. path: "/pages/service/index",
  319. content: "找服务",
  320. },
  321. ],
  322. noticeList: [
  323. // {
  324. // url: "/static/navList/policy-icon.png",
  325. // title: "政策速览 | 小微企业、个体工商户税费...",
  326. // time: "2021-08-05",
  327. // },
  328. // {
  329. // url: "/static/navList/activity-icon.png",
  330. // title: "活动预告 | 想了解跨境电商?8月5日带...",
  331. // time: "2021-08-04",
  332. // },
  333. // {
  334. // url: "/static/navList/notice-icon.png",
  335. // title: "通知公告 | 2022年首批次重点新材料扶...",
  336. // time: "2021-08-03",
  337. // },
  338. ],
  339. parkList: [
  340. // {
  341. // url:'/static/park/1.png',
  342. // title:'华潮科技产业园',
  343. // time:'2015-10-25',
  344. // num:484,
  345. // area1:1.72,
  346. // area2:1.01
  347. // },
  348. // {
  349. // url:'/static/park/1.png',
  350. // title:'华潮科技产业园',
  351. // time:'2015-10-25',
  352. // num:484,
  353. // area1:1.72,
  354. // area2:1.01
  355. // },
  356. // {
  357. // url:'/static/park/1.png',
  358. // title:'华潮科技产业园',
  359. // time:'2015-10-25',
  360. // num:484,
  361. // area1:1.72,
  362. // area2:1.01
  363. // },
  364. ],
  365. attractList: [
  366. {
  367. url: "/static/attract/1.png",
  368. title: "工业互联网",
  369. subtitle: "工业互联网是全球工业系统与高级计算、分析、...",
  370. time: "2021-09-05",
  371. },
  372. {
  373. url: "/static/attract/2.png",
  374. title: "生产性服务业",
  375. subtitle: "生产性服务业是指为保持工业生产过程的连续性...",
  376. time: "2021-09-05",
  377. },
  378. ],
  379. activityList: [
  380. {
  381. url: "/static/activity/2.png",
  382. title: "400场讲座,200门课程,免费送上门!就等你申请",
  383. isOnline: 1,
  384. department: "区人力资源局",
  385. time: "2021-09-05",
  386. browe: "322",
  387. share: "2",
  388. },
  389. {
  390. url: "/static/activity/1.png",
  391. title: "智能制造商标品牌培育系列培训活动",
  392. isOnline: 0,
  393. department: "市场监督管理局",
  394. time: "2021-09-05",
  395. browe: "322",
  396. share: "2",
  397. },
  398. ],
  399. };
  400. },
  401. onLoad() {
  402. this.getSwiperList();
  403. this.getPark();
  404. this.getNotice();
  405. // this.loginLoad();
  406. },
  407. methods: {
  408. swiperChange(e) {
  409. this.swiperCurrent = e.detail.current;
  410. },
  411. getSwiperList() {
  412. let md5Sign = md5(
  413. "method=" +
  414. "common" +
  415. "&timestamp=" +
  416. getApp().globalData.globalTimestamp +
  417. "&secret=" +
  418. getApp().globalData.secret
  419. );
  420. let url =
  421. getApp().globalData.shareUrl +
  422. "api/api.php" +
  423. "?method=common&source=main_pics&action=list&timestamp=" +
  424. getApp().globalData.globalTimestamp +
  425. "&sign=" +
  426. md5Sign;
  427. uni.request({
  428. url: url,
  429. method: "POST",
  430. header: {
  431. "content-type": "application/x-www-form-urlencoded",
  432. },
  433. data: {
  434. order_by: "weight desc",
  435. s_status: 1,
  436. page: 1,
  437. page_size: 7,
  438. },
  439. success: (res) => {
  440. console.log(res);
  441. if (res.data.code === 200) {
  442. res.data.data.list.forEach((item) => {
  443. item.pic_path = getApp().globalData.shareUrl + item.pic_path;
  444. });
  445. this.swiperList = res.data.data.list;
  446. }
  447. },
  448. fail: () => {
  449. console.log("连接失败");
  450. },
  451. });
  452. },
  453. getPark() {
  454. let md5Sign = md5(
  455. "method=" +
  456. "park" +
  457. "&timestamp=" +
  458. getApp().globalData.globalTimestamp +
  459. "&secret=" +
  460. getApp().globalData.secret
  461. );
  462. let url =
  463. getApp().globalData.shareUrl +
  464. "api/api.php" +
  465. "?method=park&source=park&action=list&timestamp=" +
  466. getApp().globalData.globalTimestamp +
  467. "&sign=" +
  468. md5Sign;
  469. uni.request({
  470. url: url,
  471. method: "POST",
  472. header: {
  473. "content-type": "application/x-www-form-urlencoded",
  474. },
  475. data: {
  476. order_by: "weight desc",
  477. s_show: 1,
  478. page: 1,
  479. page_size: 5,
  480. },
  481. success: (res) => {
  482. if (res.data.code === 200) {
  483. res.data.data.list.forEach((item) => {
  484. if (item.park_pics.length) {
  485. item.park_pics[0].pic_path =
  486. getApp().globalData.shareUrl + item.park_pics[0].pic_path;
  487. }
  488. });
  489. this.parkList = res.data.data.list;
  490. }
  491. },
  492. fail: () => {
  493. console.log("连接失败");
  494. },
  495. });
  496. },
  497. getNotice() {
  498. let md5Sign = md5(
  499. "method=" +
  500. "common" +
  501. "&timestamp=" +
  502. getApp().globalData.globalTimestamp +
  503. "&secret=" +
  504. getApp().globalData.secret
  505. );
  506. let url =
  507. getApp().globalData.shareUrl +
  508. "api/api.php" +
  509. "?method=common&source=notice&action=list&timestamp=" +
  510. getApp().globalData.globalTimestamp +
  511. "&sign=" +
  512. md5Sign;
  513. uni.request({
  514. url: url,
  515. method: "POST",
  516. header: {
  517. "content-type": "application/x-www-form-urlencoded",
  518. },
  519. data: {
  520. // order_by: "weight desc",
  521. // s_show: 1,
  522. // page: 1,
  523. // page_size: 5,
  524. },
  525. success: (res) => {
  526. if (res.data.code === 200) {
  527. // console.log(res.data.data.list);
  528. this.noticeList = res.data.data.list.map((item) => {
  529. switch (item.type) {
  530. case "1":
  531. item.icon = "/static/navList/activity-icon.png";
  532. item.title = "活动预告 | " + item.title;
  533. break;
  534. case "2":
  535. item.icon = "/static/navList/policy-icon.png";
  536. item.title = "政策速览 | " + item.title;
  537. break;
  538. case "3":
  539. item.icon = "/static/navList/notice-icon.png";
  540. item.title = "通知公告 | " + item.title;
  541. break;
  542. }
  543. return item;
  544. });
  545. }
  546. },
  547. fail: () => {
  548. console.log("连接失败");
  549. },
  550. });
  551. },
  552. goParkDetailFn(id) {
  553. uni.navigateTo({
  554. url: "/pages/park/park_deatil?id=" + id,
  555. });
  556. },
  557. goNoticeDeatil(id) {
  558. uni.navigateTo({
  559. url: "/pages/notice/notice_deatil?id=" + id,
  560. });
  561. },
  562. goAttractDeatil(id) {
  563. uni.navigateTo({
  564. url: "/pages/attract/attract_deatil?id=" + id,
  565. });
  566. },
  567. goAttract() {
  568. uni.navigateTo({
  569. url: "/pages/attract/index",
  570. });
  571. },
  572. goNotice() {
  573. uni.navigateTo({
  574. url: "/pages/notice/index",
  575. });
  576. },
  577. },
  578. };
  579. </script>
  580. <style>
  581. .content {
  582. display: flex;
  583. flex-direction: column;
  584. align-items: center;
  585. justify-content: center;
  586. }
  587. .logo {
  588. height: 200rpx;
  589. width: 200rpx;
  590. margin-top: 200rpx;
  591. margin-left: auto;
  592. margin-right: auto;
  593. margin-bottom: 50rpx;
  594. }
  595. .text-area {
  596. display: flex;
  597. justify-content: center;
  598. }
  599. .title {
  600. font-size: 36rpx;
  601. color: #8f8f94;
  602. }
  603. .groove-img {
  604. width: 100%;
  605. height: 100rpx;
  606. bottom: -22rpx;
  607. position: absolute;
  608. }
  609. .rowDot {
  610. display: flex;
  611. position: absolute;
  612. top: 270rpx;
  613. left: 80rpx;
  614. }
  615. .dots {
  616. flex-direction: row;
  617. justify-content: center;
  618. align-items: center;
  619. align-content: center;
  620. }
  621. .dot {
  622. margin-right: 8rpx;
  623. width: 40rpx;
  624. height: 8rpx;
  625. opacity: 1;
  626. border-radius: 6rpx;
  627. background: #fff5f9;
  628. }
  629. .dot.active {
  630. background: #ff4e54;
  631. }
  632. .swiper-content {
  633. /* border-radius: 0 0 10% 10%; */
  634. }
  635. .page-nav-box {
  636. width: 80%;
  637. /* height: 320rpx; */
  638. display: flex;
  639. flex-wrap: wrap;
  640. padding: 20rpx 10rpx 30rpx 10rpx;
  641. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  642. border-radius: 32rpx;
  643. position: absolute;
  644. top: 300rpx;
  645. background-color: #fff;
  646. }
  647. .nav-content {
  648. width: 25%;
  649. height: 130rpx;
  650. display: flex;
  651. flex-direction: column;
  652. align-items: center;
  653. margin-top: 20rpx;
  654. font-size: 22rpx;
  655. justify-content: space-around;
  656. letter-spacing: 0.02em;
  657. color: #0d1937;
  658. font-family: PingFang SC;
  659. font-style: normal;
  660. font-weight: 600;
  661. }
  662. .notice-box {
  663. width: 83%;
  664. margin-top: 300rpx;
  665. margin-bottom: 20rpx;
  666. }
  667. .notice-title-box {
  668. width: 100%;
  669. display: flex;
  670. justify-content: space-between;
  671. align-items: center;
  672. margin-bottom: 40rpx;
  673. }
  674. .notice-font {
  675. font-family: PingFang SC;
  676. font-style: normal;
  677. font-weight: 600;
  678. font-size: 32rpx;
  679. letter-spacing: 0.02em;
  680. color: #0d1937;
  681. }
  682. .notice-more-font {
  683. font-size: 24rpx;
  684. color: #146afb;
  685. display: flex;
  686. align-items: center;
  687. }
  688. .notice-content-box {
  689. display: flex;
  690. padding: 30rpx;
  691. background-color: #ffffff;
  692. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  693. border-radius: 32rpx;
  694. margin-top: 20rpx;
  695. justify-content: space-between;
  696. }
  697. .notice-content-font {
  698. font-size: 26rpx;
  699. color: #0d1937;
  700. font-weight: 600;
  701. overflow: hidden;
  702. text-overflow: ellipsis;
  703. white-space: nowrap;
  704. }
  705. .notice-content-time {
  706. font-size: 18rpx;
  707. letter-spacing: 0.02em;
  708. color: #cfcfcf;
  709. margin-right: 14rpx;
  710. }
  711. .park-box {
  712. border-radius: 32rpx;
  713. margin-right: 20rpx;
  714. position: relative;
  715. height: 450rpx;
  716. }
  717. .park-content-box {
  718. width: 394rpx;
  719. background-color: #ffffff;
  720. border-radius: 56rpx 0px 32rpx 32rpx;
  721. position: absolute;
  722. top: 210rpx;
  723. font-size: 24rpx;
  724. padding: 30rpx;
  725. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  726. }
  727. .park-title {
  728. font-weight: 600;
  729. line-height: 36rpx;
  730. letter-spacing: 0.02em;
  731. color: #0d1937;
  732. }
  733. .park-address {
  734. font-weight: 600;
  735. font-size: 19rpx;
  736. letter-spacing: 0.02em;
  737. color: #cfcfcf;
  738. margin-top: 10rpx;
  739. }
  740. .park-title-img {
  741. width: 16rpx;
  742. height: 16rpx;
  743. margin-right: 4rpx;
  744. }
  745. .park-footer-box {
  746. margin-top: 30rpx;
  747. }
  748. .park-footer-img {
  749. width: 24rpx;
  750. height: 24rpx;
  751. margin-right: 6rpx;
  752. }
  753. .park-footer-font {
  754. color: #cfcfcf;
  755. font-size: 19rpx;
  756. margin-top: 10rpx;
  757. }
  758. .width-30 {
  759. width: 30%;
  760. }
  761. .attract-content {
  762. color: #697594;
  763. font-weight: 600;
  764. font-size: 20rpx;
  765. margin-top: 8rpx;
  766. overflow: hidden;
  767. text-overflow: ellipsis;
  768. white-space: nowrap;
  769. }
  770. .online-box {
  771. width: 12rpx;
  772. height: 12rpx;
  773. border-radius: 50%;
  774. background-color: #589cff;
  775. margin-right: 5rpx;
  776. }
  777. .offline-box {
  778. width: 12rpx;
  779. height: 12rpx;
  780. border-radius: 50%;
  781. background-color: #ffcf86;
  782. margin-right: 5rpx;
  783. }
  784. .color-a7adba {
  785. color: #a7adba;
  786. }
  787. </style>