cbwarn.vue 19 KB

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