cbwarn.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840
  1. <template>
  2. <view class="content">
  3. <view class="cbwtop">
  4. <image :src="bannersrc" mode="" class="image">
  5. </image>
  6. <view class="tab-box">
  7. <view v-for="(item, index) in equipArr" :key="index" @click="tabClick(index)"
  8. :class="['tab-item', active == index ? 'active' : '']">
  9. <text>{{ item }}</text>
  10. <text class="bottom-line"></text>
  11. </view>
  12. </view>
  13. <view class="timeandtype" v-if="active==0 && wranlistdata.length > 0">
  14. <view class="timebox">
  15. <view class="firsttime" @click="timeshow=true">
  16. {{start_time==""?'请选择开始时间':start_time}}
  17. </view>
  18. <view class="jiange">
  19. -
  20. </view>
  21. <view class="endtime" @click="timeshow=true">
  22. {{end_time==""?'请选择结束时间':end_time}}
  23. </view>
  24. <view class="jiange" @click="closetime">
  25. <u-icon name="close-circle" color="#999999"></u-icon>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="" v-show="active==0">
  31. <view class="warmlistbox" v-if="wranlistdata.length > 0">
  32. <view class="warmlistbox_item" v-for="item in wranlistdata" :key="item.id" @click="singleread(item)">
  33. <view class="warmlistbox_item_title" :style="{'border-color':item.status==1?'#14A478':'#fd4646'}">
  34. <!-- {{recordtypelist[item.warning_type].label}} -->
  35. {{device_type == 5 ? '气象' : '墒情'}}预警
  36. </view>
  37. <view class="warmlistbox_item_text">
  38. <view class="item_text_item">
  39. <view class="item_text_item_f">
  40. 设备编号:
  41. </view>
  42. <view class="item_text_item_e">
  43. {{item.device_id}}
  44. </view>
  45. </view>
  46. <view class="item_text_item">
  47. <view class="item_text_item_f">
  48. 设备位置:
  49. </view>
  50. <view class="item_text_item_e" style="display: flex;">
  51. <u-icon name="map-fill" color="#14A478" @click.stop="tomap(item)"></u-icon>
  52. <view class="" style="margin-left: 10rpx;color: #14A478;" @click.stop="tomap(item)">
  53. 查看
  54. </view>
  55. </view>
  56. </view>
  57. <view class="item_text_item">
  58. <view class="item_text_item_f">
  59. 设备预警:
  60. </view>
  61. <view class="item_text_item_e">
  62. {{item.warning_content}}
  63. </view>
  64. </view>
  65. <view class="item_text_sta">
  66. <view class="" style="color: #959699;">
  67. {{item.upl_time | timeFormat()}}
  68. </view>
  69. <view class="" :style="{'margin-left':'10rpx','color':item.status==1?'#959699':'#FD4646'}">
  70. {{item.status==1?'已读':'未读'}}
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="warmlistbox empty" v-else>
  77. 暂无数据
  78. </view>
  79. </view>
  80. <view class="warmissuebox" v-show="active == 1">
  81. <view class="warmissue">
  82. <view class="warmissue_itemone">
  83. <view class="">
  84. 短信剩余条数:
  85. </view>
  86. <view class="">
  87. {{total_sms_counts}}
  88. </view>
  89. </view>
  90. <view class="warmissue_item">
  91. <view class="warmissue_item_title">
  92. 短信内容:
  93. </view>
  94. <view class="warmissue_item_text">
  95. <view class="">
  96. 尊敬的用户您好,管理员 提醒您,结合近期设备上报的数据,
  97. </view>
  98. <view class="" style="margin: 20rpx 0 ;">
  99. <u-input v-model="wormvalue" type="textarea" :border="true" maxlength="30" />
  100. </view>
  101. <view class="">
  102. 请注意防范。
  103. </view>
  104. </view>
  105. </view>
  106. <view class="">
  107. <view class="warmissue_itemone">
  108. <view class="">
  109. 短信接受人:
  110. </view>
  111. <view class="" style="color: #14A478;" @click="tobook">
  112. 预警通讯录编辑
  113. </view>
  114. </view>
  115. <view class="warmissue_itemtwo" @click="accServiceShow = true">
  116. <view class="itemtwo_left" v-show="!userphone.length">
  117. 请选择短信接收人
  118. </view>
  119. <view class="itemtwo_left" v-show="userphone.length">
  120. <view class="" style="margin-right: 20rpx;" v-for="item in userphone" :key="item.value">
  121. {{item.name}}
  122. </view>
  123. </view>
  124. <u-icon name="arrow-down" class="icon" color="#999999"></u-icon>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="sendbox" @click="send">
  129. 发送预警
  130. </view>
  131. </view>
  132. <view class="wornsetbox" v-show="active == 2">
  133. <view class="empty" v-if="configlist.length == 0">
  134. 暂无数据
  135. </view>
  136. <u-swipe-action :show="item.show" :index="index" v-for="(item, index) in configlist" :key="item.id"
  137. @click="delconfig(item.id)" :options="options" style="margin-bottom: 30rpx;">
  138. <view class="wornsetbox_item" @click="toset(item.id)">
  139. <view class="">
  140. {{item.title}}
  141. </view>
  142. <view class="" @click.stop>
  143. <u-switch v-model="item.statustf" size="40" style="margin-top: 13rpx;"
  144. @change="swichchange($event,item.id)"></u-switch>
  145. </view>
  146. </view>
  147. </u-swipe-action>
  148. </view>
  149. <view class="addwarnlist" v-show="active == 2" @click="addwarning_config">
  150. 添 加
  151. </view>
  152. <view class="">
  153. <u-mask :show="accServiceShow" z-index="998"></u-mask>
  154. <u-calendar v-model="timeshow" :mode="mode" @change="timechange"></u-calendar>
  155. <multiple-select v-model="accServiceShow" :value="accServiceShow" :data="serviceList"
  156. :default-selected="defaultSelected" @confirm="accServiceConfirm"></multiple-select>
  157. <u-modal v-model="modalshow" title="短信预警详情" :content="content" @confirm="singlereadsure"></u-modal>
  158. <u-modal v-model="addshow" title="添加预警" :show-cancel-button="true" @confirm="addwarning_config">
  159. <view class="addinfobox">
  160. <view class="addinfobox_title">
  161. <span>*</span>
  162. <span>预警名称</span>
  163. </view>
  164. <u-input v-model="addvalue" maxlength="10" />
  165. </view>
  166. </u-modal>
  167. </view>
  168. <view class="top" v-if="active!=1">
  169. <view class="backtop" @click="top" v-if="isTop">
  170. <image :src="src" mode=""></image>
  171. </view>
  172. <view class="more" @click="allread" v-show="active==0">
  173. <view class="">
  174. 一键
  175. </view>
  176. <view class="">
  177. 已读
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </template>
  183. <script>
  184. import multipleSelect from "../../components/multiple-select.vue";
  185. export default {
  186. components: {
  187. multipleSelect,
  188. },
  189. data() {
  190. return {
  191. bannersrc:this.$imageURL+'/bigdata_app/image/cbyj/banner2.png',
  192. device_type:'',
  193. date: "",
  194. active: 0,
  195. equipArr: ["预警记录", "预警发布", "预警设置"],
  196. timeshow: false,
  197. mode: 'range',
  198. start_time: "",
  199. end_time: "",
  200. wranlistdata: [],
  201. listpage: 1,
  202. defaultSelected: [], //默认选中项
  203. serviceList: [{
  204. value: "1",
  205. name: "目标种类预警",
  206. },
  207. {
  208. value: "2",
  209. name: "指定害虫数量预警",
  210. },
  211. {
  212. value: "3",
  213. name: "害虫数量总和预警",
  214. },
  215. {
  216. value: "4",
  217. name: "综合预警",
  218. },
  219. ], //传递给子组件的数据
  220. accServiceShow: false,
  221. wormvalue: "",
  222. userphone: [],
  223. total_sms_counts: "",
  224. isTop: false,
  225. src: '../../static/images/1.png',
  226. src1: '../../static/images/b0bcdb0e3fe8690520f743aa8303bf2.png',
  227. filtrateTF: false,
  228. modalshow: false,
  229. content: '',
  230. warmstatus: {
  231. },
  232. //预警设置
  233. configlist: [],
  234. addvalue: "",
  235. addshow: false,
  236. options: [{
  237. text: '删除',
  238. style: {
  239. backgroundColor: '#dd524d'
  240. }
  241. }],
  242. confpage:1
  243. }
  244. },
  245. methods: {
  246. tabClick(index) {
  247. this.active = index
  248. if (index == 0) {
  249. this.listpage = 1
  250. this.wranlistdata = []
  251. this.getwranlistdata()
  252. } else if (index == 1) {
  253. this.getmessagescounts()
  254. } else if (index == 2) {
  255. this.confpage = 1
  256. this.configlist = []
  257. this.getconfiglist()
  258. }
  259. },
  260. timechange(e) {
  261. console.log(e)
  262. this.start_time = e.startDate
  263. this.end_time = e.endDate
  264. this.listpage = 1
  265. this.wranlistdata = []
  266. this.getwranlistdata()
  267. },
  268. closetime() {
  269. this.start_time = ""
  270. this.end_time = ""
  271. this.listpage = 1
  272. this.wranlistdata = []
  273. this.getwranlistdata()
  274. },
  275. async getwranlistdata() {
  276. var end_time = ""
  277. var start_time = ""
  278. if(this.end_time!=""){
  279. end_time = Math.floor(+new Date(this.end_time)/1000)
  280. }else{
  281. end_time = ""
  282. }
  283. if(this.start_time!=""){
  284. start_time = Math.floor(+new Date(this.start_time)/1000)
  285. }else{
  286. start_time = ""
  287. }
  288. const res = await this.$myRequest({
  289. url: '/api/api_gateway?method=device.device_sms_alert.user_qxz_warning_list',
  290. data: {
  291. end_time: end_time,
  292. page: this.listpage,
  293. page_size: "10",
  294. start_time: start_time,
  295. device_type: this.device_type
  296. }
  297. })
  298. console.log(res)
  299. this.wranlistdata = this.wranlistdata.concat(res.data)
  300. },
  301. tomap(data) {
  302. uni.navigateTo({
  303. url: "../cbqxyj/basemap?device_id=" + data.device_id,
  304. })
  305. },
  306. accServiceConfirm(e) {
  307. console.log(e)
  308. this.userphone = e
  309. },
  310. async getuseriphonelist() {
  311. const res = await this.$myRequest({
  312. url: '/api/api_gateway?method=device.device_sms_alert.user_warning_liaisons_list',
  313. data: {
  314. page: 1,
  315. device_type: this.device_type,
  316. page_size: 9999999,
  317. }
  318. })
  319. console.log(res)
  320. this.serviceList = []
  321. for (var i = 0; i < res.data.length; i++) {
  322. var obj = {
  323. value: res.data[i].d_id,
  324. name: res.data[i].liaisons + "/" + res.data[i].phone,
  325. }
  326. this.serviceList.push(obj)
  327. }
  328. },
  329. async getmessagescounts() {
  330. const res = await this.$myRequest({
  331. url: '/api/api_gateway?method=device.device_sms_alert.remaining_messages_counts',
  332. data: {
  333. device_type: this.device_type
  334. }
  335. })
  336. console.log(res)
  337. this.total_sms_counts = res.total_sms_counts
  338. },
  339. async send() {
  340. if (this.wormvalue == "") {
  341. uni.showToast({
  342. title: "请填写短信预警信息",
  343. icon: "none"
  344. })
  345. } else if (this.userphone.length == 0) {
  346. uni.showToast({
  347. title: "请选择短信接收人",
  348. icon: "none"
  349. })
  350. } else {
  351. var list = []
  352. for (var i = 0; i < this.userphone.length; i++) {
  353. list.push(this.userphone[i].value)
  354. }
  355. const res = await this.$myRequest({
  356. url: '/api/api_gateway?method=device.device_sms_alert.user_pest_warning_release',
  357. data: {
  358. send_user: list.join(","),
  359. content: this.wormvalue,
  360. device_type_id: this.device_type,
  361. device_type: this.device_type
  362. }
  363. })
  364. console.log(res)
  365. if (res) {
  366. uni.showToast({
  367. title: "发送成功",
  368. icon: "none"
  369. })
  370. } else {
  371. uni.showToast({
  372. title: "发送失败",
  373. icon: "none"
  374. })
  375. }
  376. }
  377. },
  378. tobook() {
  379. uni.navigateTo({
  380. url: "../cbqxyj/addressbook"
  381. })
  382. },
  383. async allread() {
  384. const res = await this.$myRequest({
  385. url: '/api/api_gateway?method=device.device_sms_alert.user_qxz_warning_record_read',
  386. data: {
  387. req: "all",
  388. device_type: this.device_type
  389. }
  390. })
  391. if (res) {
  392. uni.showToast({
  393. title: "已完成一键已读",
  394. icon: "none"
  395. })
  396. }
  397. },
  398. singleread(data) {
  399. console.log(data)
  400. this.modalshow = true
  401. this.content = data.warning_content
  402. this.warmstatus = data
  403. },
  404. async singlereadsure() {
  405. if (this.warmstatus.status == 0) {
  406. const res = await this.$myRequest({
  407. url: '/api/api_gateway?method=device.device_sms_alert.user_qxz_warning_record_read',
  408. data: {
  409. id: this.warmstatus.id
  410. }
  411. })
  412. if (res) {
  413. uni.showToast({
  414. title: "此条预警已读",
  415. icon: "none"
  416. })
  417. this.listpage = 1
  418. this.wranlistdata = []
  419. this.getwranlistdata()
  420. }
  421. }
  422. },
  423. top() {
  424. uni.pageScrollTo({
  425. scrollTop: 0,
  426. duration: 500,
  427. });
  428. },
  429. async getconfiglist() {
  430. const res = await this.$myRequest({
  431. url: '/api/api_gateway?method=device.device_sms_alert.user_warning_config_list',
  432. data: {
  433. device_type_id: this.device_type,
  434. page: this.confpage,
  435. device_type: this.device_type,
  436. page_size: "10",
  437. }
  438. })
  439. console.log(res.data)
  440. this.configlist = []
  441. for (var i = 0; i < res.data.length; i++) {
  442. res.data[i]["statustf"] = res.data[i].status == 1 ? true : false
  443. }
  444. this.configlist = this.configlist.concat(res.data)
  445. console.log(this.configlist)
  446. },
  447. async swichchange(e, id) {
  448. // console.log(e, id)
  449. // console.log(this.configlist)
  450. const res = await this.$myRequest({
  451. url: '/api/api_gateway?method=device.device_sms_alert.modify_user_warning_config_status',
  452. data: {
  453. id: id,
  454. status: e ? 1 : 0,
  455. }
  456. })
  457. if (res) {
  458. uni.showToast({
  459. title: "状态修改成功",
  460. icon: "none"
  461. })
  462. }
  463. this.confpage = 1
  464. this.getconfiglist()
  465. },
  466. toset(id) {
  467. console.log(id)
  468. uni.navigateTo({
  469. url: "./warnset?id=" + id + '&typeId=' + this.device_type
  470. })
  471. },
  472. async addwarning_config() {
  473. uni.navigateTo({
  474. url: "./warnset?type=new" + '&typeId=' + this.device_type
  475. })
  476. // this.addshow = true
  477. // if (this.addvalue == "") {
  478. // uni.showToast({
  479. // title: "请填写预警名称",
  480. // icon: "none"
  481. // })
  482. // } else {
  483. // const res = await this.$myRequest({
  484. // url: '/api/api_gateway?method=device.device_sms_alert.create_user_warning_config',
  485. // data: {
  486. // title: this.addvalue,
  487. // device_type: this.device_type,
  488. // device_type_id: this.device_type
  489. // }
  490. // })
  491. // console.log(res)
  492. // if (res) {
  493. // this.addshow = false
  494. // this.configlist = []
  495. // this.confpage = 1
  496. // this.getconfiglist()
  497. // }
  498. // }
  499. },
  500. async delconfig(id){
  501. const res = await this.$myRequest({
  502. url: '/api/api_gateway?method=device.device_sms_alert.del_user_warning_config_status',
  503. data: {
  504. id:id
  505. }
  506. })
  507. console.log(res)
  508. if (res) {
  509. this.configlist = []
  510. this.confpage = 1
  511. this.getconfiglist()
  512. }
  513. }
  514. },
  515. onLoad(option) {
  516. console.log(option)
  517. this.device_type = option.typeId;
  518. if(option.typeId == 15) {
  519. uni.setNavigationBarTitle({title:'墒情预警'})
  520. this.bannersrc = 'https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/image/cbyj/banner15.png'
  521. }
  522. this.getwranlistdata()
  523. // this.getmessagescounts()
  524. // this.getconfiglist()
  525. },
  526. onShow() {
  527. this.getuseriphonelist();
  528. this.getconfiglist();
  529. },
  530. onReachBottom() {
  531. if (this.active == 0) {
  532. this.listpage++
  533. this.getwranlistdata()
  534. } else if (this.ctive == 2) {
  535. this.confpage++
  536. this.getconfiglist()
  537. }
  538. },
  539. onPageScroll(e) {
  540. //nvue暂不支持滚动监听,可用bindingx代替
  541. if (e.scrollTop > 200) {
  542. //距离大于200时显示
  543. this.isTop = true;
  544. } else {
  545. //距离小于200时隐藏
  546. this.isTop = false;
  547. }
  548. },
  549. }
  550. </script>
  551. <style lang="less">
  552. page {
  553. background-color: #F6F6FB;
  554. }
  555. .cbwtop {
  556. position: fixed;
  557. top: 0px;
  558. width: 100%;
  559. z-index: 555;
  560. background-color: #fff;
  561. .image {
  562. width: 100%;
  563. height: 160rpx;
  564. }
  565. .tab-box {
  566. font-size: 30rpx;
  567. line-height: 80rpx;
  568. background-color: #ffffff;
  569. width: 100%;
  570. overflow: hidden;
  571. overflow-x: scroll;
  572. white-space: nowrap;
  573. .tab-item {
  574. cursor: pointer;
  575. position: relative;
  576. width: 25%;
  577. text-align: center;
  578. display: inline-block;
  579. }
  580. .tab-item.active {
  581. .bottom-line {
  582. bottom: 0;
  583. position: absolute;
  584. display: inline-block;
  585. width: 90rpx;
  586. height: 6rpx;
  587. left: 0;
  588. right: 0;
  589. margin: auto;
  590. background: #57C878;
  591. }
  592. }
  593. }
  594. .timeandtype {
  595. background-color: #F6F6FB;
  596. padding: 20rpx;
  597. box-sizing: border-box;
  598. .timebox {
  599. display: flex;
  600. background-color: #fff;
  601. padding: 10px;
  602. border-top-right-radius: 5px;
  603. border-top-left-radius: 5px;
  604. .jiange {
  605. width: 5%;
  606. text-align: center;
  607. }
  608. .firsttime,
  609. .endtime {
  610. width: 45%;
  611. text-align: center;
  612. }
  613. }
  614. .warntypebox {
  615. display: flex;
  616. justify-content: space-between;
  617. background-color: #fff;
  618. padding: 10px;
  619. border-top: 1px solid #F6F6FB;
  620. border-bottom-right-radius: 5px;
  621. border-bottom-left-radius: 5px;
  622. }
  623. }
  624. }
  625. .warmlistbox {
  626. width: 95%;
  627. margin: 0 auto;
  628. padding-top: 370rpx;
  629. .warmlistbox_item {
  630. padding: 20rpx 0;
  631. box-sizing: border-box;
  632. background-color: #fff;
  633. border-radius: 10rpx;
  634. margin-bottom: 20rpx;
  635. .warmlistbox_item_title {
  636. border-left: 8rpx solid #14A478;
  637. padding-left: 30rpx;
  638. }
  639. .warmlistbox_item_text {
  640. width: 90%;
  641. margin: 0 auto;
  642. margin-top: 20rpx;
  643. border-top: 1px solid #F2F2F2;
  644. padding: 20rpx 0;
  645. .item_text_item {
  646. margin-bottom: 7px;
  647. display: flex;
  648. .item_text_item_f {
  649. width: 140rpx;
  650. }
  651. .item_text_item_e {
  652. width: calc(100% - 140rpx);
  653. display: -webkit-box; //谷歌
  654. -webkit-box-orient: vertical;
  655. -webkit-line-clamp: 4; //显示几行
  656. overflow: hidden;
  657. }
  658. }
  659. .item_text_sta {
  660. display: flex;
  661. justify-content: flex-end;
  662. }
  663. }
  664. }
  665. }
  666. .empty{
  667. display: flex;
  668. justify-content: center;
  669. align-items: center;
  670. }
  671. .warmissuebox {
  672. width: 95%;
  673. margin: 0 auto;
  674. padding-top: 270rpx;
  675. .warmissue {
  676. width: 95%;
  677. margin: 0 auto;
  678. padding: 20rpx;
  679. background-color: #fff;
  680. border-radius: 5px;
  681. .warmissue_itemone {
  682. margin-bottom: 60rpx;
  683. display: flex;
  684. justify-content: space-between;
  685. }
  686. .warmissue_item {
  687. margin-bottom: 60rpx;
  688. display: flex;
  689. .warmissue_item_title {
  690. width: 160rpx;
  691. }
  692. .warmissue_item_text {
  693. width: calc(100% - 160rpx);
  694. }
  695. }
  696. .warmissue_itemtwo {
  697. display: flex;
  698. .itemtwo_left {
  699. width: calc(100% - 40rpx);
  700. display: flex;
  701. flex-wrap: wrap;
  702. }
  703. .icon {
  704. width: 40rpx;
  705. }
  706. }
  707. }
  708. .sendbox {
  709. margin: 40rpx auto;
  710. width: 80%;
  711. background-color: #14A478;
  712. padding: 20rpx 0;
  713. border-radius: 59px;
  714. text-align: center;
  715. color: #fff;
  716. }
  717. }
  718. .wornsetbox {
  719. width: 95%;
  720. margin: 0 auto;
  721. padding-top: 270rpx;
  722. .wornsetbox_item {
  723. padding: 30rpx 20rpx;
  724. background-color: #fff;
  725. width: 100%;
  726. display: flex;
  727. justify-content: space-between;
  728. box-sizing: border-box;
  729. line-height: 64rpx;
  730. height: 124rpx;
  731. // margin-bottom: 30rpx;
  732. }
  733. }
  734. .addwarnlist {
  735. position: absolute;
  736. bottom: 20rpx;
  737. left: 10%;
  738. margin: 40rpx auto;
  739. width: 80%;
  740. background-color: #14A478;
  741. padding: 20rpx 0;
  742. border-radius: 59px;
  743. text-align: center;
  744. color: #fff;
  745. }
  746. .addinfobox {
  747. display: flex;
  748. margin: 30rpx 0;
  749. .addinfobox_title {
  750. line-height: 70rpx;
  751. width: 30%;
  752. text-align: center;
  753. span:first-child {
  754. color: red;
  755. }
  756. }
  757. /deep/.u-input__right-icon {
  758. line-height: 35px;
  759. }
  760. }
  761. /deep/.u-calendar__action {
  762. display: flex;
  763. justify-content: space-around;
  764. .u-calendar__action__text {
  765. line-height: 25px;
  766. }
  767. }
  768. .top {
  769. position: fixed;
  770. right: 10px;
  771. bottom: 40px;
  772. z-index: 100;
  773. image {
  774. width: 100rpx;
  775. height: 100rpx;
  776. }
  777. .backtop {
  778. display: flex;
  779. justify-content: flex-end;
  780. margin-bottom: 10rpx;
  781. }
  782. .more {
  783. width: 100rpx;
  784. height: 100rpx;
  785. background-color: rgba(161, 161, 161, 0.45);
  786. border-radius: 50%;
  787. text-align: center;
  788. padding-top: 10rpx;
  789. line-height: 40rpx;
  790. box-sizing: border-box;
  791. margin: 14rpx 0 0 0;
  792. color: #fff;
  793. }
  794. }
  795. </style>