cbwarn.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
  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:'http://www.hnyfwlw.com:8006/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. uni.showLoading({
  277. title: '加载中'
  278. });
  279. var end_time = ""
  280. var start_time = ""
  281. if(this.end_time!=""){
  282. end_time = Math.floor(+new Date(this.end_time)/1000)
  283. }else{
  284. end_time = ""
  285. }
  286. if(this.start_time!=""){
  287. start_time = Math.floor(+new Date(this.start_time)/1000)
  288. }else{
  289. start_time = ""
  290. }
  291. const res = await this.$myRequest({
  292. url: '/api/api_gateway?method=device.device_sms_alert.user_qxz_warning_list',
  293. data: {
  294. end_time: end_time,
  295. page: this.listpage,
  296. page_size: "10",
  297. start_time: start_time,
  298. device_type: this.device_type
  299. }
  300. })
  301. console.log(res)
  302. uni.hideLoading()
  303. this.wranlistdata = this.wranlistdata.concat(res.data)
  304. },
  305. tomap(data) {
  306. uni.navigateTo({
  307. url: "../cbqxyj/basemap?device_id=" + data.device_id,
  308. })
  309. },
  310. accServiceConfirm(e) {
  311. console.log(e)
  312. this.userphone = e
  313. },
  314. async getuseriphonelist() {
  315. const res = await this.$myRequest({
  316. url: '/api/api_gateway?method=device.device_sms_alert.user_warning_liaisons_list',
  317. data: {
  318. page: 1,
  319. device_type: this.device_type,
  320. page_size: 9999999,
  321. }
  322. })
  323. console.log(res)
  324. this.serviceList = []
  325. for (var i = 0; i < res.data.length; i++) {
  326. var obj = {
  327. value: res.data[i].d_id,
  328. name: res.data[i].liaisons + "/" + res.data[i].phone,
  329. }
  330. this.serviceList.push(obj)
  331. }
  332. },
  333. async getmessagescounts() {
  334. const res = await this.$myRequest({
  335. url: '/api/api_gateway?method=device.device_sms_alert.remaining_messages_counts',
  336. data: {
  337. device_type: this.device_type
  338. }
  339. })
  340. console.log(res)
  341. this.total_sms_counts = res.total_sms_counts
  342. },
  343. async send() {
  344. if (this.wormvalue == "") {
  345. uni.showToast({
  346. title: "请填写短信预警信息",
  347. icon: "none"
  348. })
  349. } else if (this.userphone.length == 0) {
  350. uni.showToast({
  351. title: "请选择短信接收人",
  352. icon: "none"
  353. })
  354. } else {
  355. var list = []
  356. for (var i = 0; i < this.userphone.length; i++) {
  357. list.push(this.userphone[i].value)
  358. }
  359. const res = await this.$myRequest({
  360. url: '/api/api_gateway?method=device.device_sms_alert.user_pest_warning_release',
  361. data: {
  362. send_user: list.join(","),
  363. content: this.wormvalue,
  364. device_type_id: this.device_type,
  365. device_type: this.device_type
  366. }
  367. })
  368. console.log(res)
  369. if (res) {
  370. uni.showToast({
  371. title: "发送成功",
  372. icon: "none"
  373. })
  374. } else {
  375. uni.showToast({
  376. title: "发送失败",
  377. icon: "none"
  378. })
  379. }
  380. }
  381. },
  382. tobook() {
  383. uni.navigateTo({
  384. url: "../cbqxyj/addressbook"
  385. })
  386. },
  387. async allread() {
  388. uni.showLoading({
  389. title: '加载中'
  390. });
  391. const res = await this.$myRequest({
  392. url: '/api/api_gateway?method=device.device_sms_alert.user_qxz_warning_record_read',
  393. data: {
  394. req: "all",
  395. device_type: this.device_type
  396. }
  397. })
  398. uni.hideLoading()
  399. if (res) {
  400. uni.showToast({
  401. title: "已完成一键已读",
  402. icon: "none"
  403. })
  404. }
  405. },
  406. singleread(data) {
  407. console.log(data)
  408. this.modalshow = true
  409. this.content = data.warning_content
  410. this.warmstatus = data
  411. },
  412. async singlereadsure() {
  413. uni.showLoading({
  414. title: '加载中'
  415. });
  416. if (this.warmstatus.status == 0) {
  417. const res = await this.$myRequest({
  418. url: '/api/api_gateway?method=device.device_sms_alert.user_qxz_warning_record_read',
  419. data: {
  420. id: this.warmstatus.id
  421. }
  422. })
  423. uni.hideLoading()
  424. if (res) {
  425. uni.showToast({
  426. title: "此条预警已读",
  427. icon: "none"
  428. })
  429. this.listpage = 1
  430. this.wranlistdata = []
  431. this.getwranlistdata()
  432. }
  433. }
  434. },
  435. top() {
  436. uni.pageScrollTo({
  437. scrollTop: 0,
  438. duration: 500,
  439. });
  440. },
  441. async getconfiglist() {
  442. uni.showLoading({
  443. title: '加载中'
  444. });
  445. const res = await this.$myRequest({
  446. url: '/api/api_gateway?method=device.device_sms_alert.user_warning_config_list',
  447. data: {
  448. device_type_id: this.device_type,
  449. page: this.confpage,
  450. device_type: this.device_type,
  451. page_size: "10",
  452. }
  453. })
  454. uni.hideLoading()
  455. console.log(res.data)
  456. this.configlist = []
  457. for (var i = 0; i < res.data.length; i++) {
  458. res.data[i]["statustf"] = res.data[i].status == 1 ? true : false
  459. }
  460. this.configlist = this.configlist.concat(res.data)
  461. console.log(this.configlist)
  462. },
  463. async swichchange(e, id) {
  464. uni.showLoading({
  465. title: '加载中'
  466. });
  467. // console.log(e, id)
  468. // console.log(this.configlist)
  469. const res = await this.$myRequest({
  470. url: '/api/api_gateway?method=device.device_sms_alert.modify_user_warning_config_status',
  471. data: {
  472. id: id,
  473. status: e ? 1 : 0,
  474. }
  475. })
  476. uni.hideLoading()
  477. if (res) {
  478. uni.showToast({
  479. title: "状态修改成功",
  480. icon: "none"
  481. })
  482. }
  483. this.confpage = 1
  484. this.getconfiglist()
  485. },
  486. toset(id) {
  487. console.log(id)
  488. uni.navigateTo({
  489. url: "./warnset?id=" + id + '&typeId=' + this.device_type
  490. })
  491. },
  492. async addwarning_config() {
  493. uni.navigateTo({
  494. url: "./warnset?type=new" + '&typeId=' + this.device_type
  495. })
  496. // this.addshow = true
  497. // if (this.addvalue == "") {
  498. // uni.showToast({
  499. // title: "请填写预警名称",
  500. // icon: "none"
  501. // })
  502. // } else {
  503. // const res = await this.$myRequest({
  504. // url: '/api/api_gateway?method=device.device_sms_alert.create_user_warning_config',
  505. // data: {
  506. // title: this.addvalue,
  507. // device_type: this.device_type,
  508. // device_type_id: this.device_type
  509. // }
  510. // })
  511. // console.log(res)
  512. // if (res) {
  513. // this.addshow = false
  514. // this.configlist = []
  515. // this.confpage = 1
  516. // this.getconfiglist()
  517. // }
  518. // }
  519. },
  520. async delconfig(id){
  521. const res = await this.$myRequest({
  522. url: '/api/api_gateway?method=device.device_sms_alert.del_user_warning_config_status',
  523. data: {
  524. id:id
  525. }
  526. })
  527. console.log(res)
  528. if (res) {
  529. this.configlist = []
  530. this.confpage = 1
  531. this.getconfiglist()
  532. }
  533. }
  534. },
  535. onLoad(option) {
  536. console.log(option)
  537. this.device_type = option.typeId;
  538. if(option.typeId == 15) {
  539. uni.setNavigationBarTitle({title:'墒情预警'})
  540. this.bannersrc = 'https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/image/cbyj/banner15.png'
  541. }
  542. this.getwranlistdata()
  543. // this.getmessagescounts()
  544. // this.getconfiglist()
  545. },
  546. onShow() {
  547. this.getuseriphonelist();
  548. this.getconfiglist();
  549. },
  550. onReachBottom() {
  551. if (this.active == 0) {
  552. this.listpage++
  553. this.getwranlistdata()
  554. } else if (this.ctive == 2) {
  555. this.confpage++
  556. this.getconfiglist()
  557. }
  558. },
  559. onPageScroll(e) {
  560. //nvue暂不支持滚动监听,可用bindingx代替
  561. if (e.scrollTop > 200) {
  562. //距离大于200时显示
  563. this.isTop = true;
  564. } else {
  565. //距离小于200时隐藏
  566. this.isTop = false;
  567. }
  568. },
  569. }
  570. </script>
  571. <style lang="less">
  572. page {
  573. background-color: #F6F6FB;
  574. }
  575. .cbwtop {
  576. position: fixed;
  577. top: 0px;
  578. width: 100%;
  579. z-index: 555;
  580. background-color: #fff;
  581. .image {
  582. width: 100%;
  583. height: 160rpx;
  584. }
  585. .tab-box {
  586. font-size: 30rpx;
  587. line-height: 80rpx;
  588. background-color: #ffffff;
  589. width: 100%;
  590. overflow: hidden;
  591. overflow-x: scroll;
  592. white-space: nowrap;
  593. .tab-item {
  594. cursor: pointer;
  595. position: relative;
  596. width: 25%;
  597. text-align: center;
  598. display: inline-block;
  599. }
  600. .tab-item.active {
  601. .bottom-line {
  602. bottom: 0;
  603. position: absolute;
  604. display: inline-block;
  605. width: 90rpx;
  606. height: 6rpx;
  607. left: 0;
  608. right: 0;
  609. margin: auto;
  610. background: #57C878;
  611. }
  612. }
  613. }
  614. .timeandtype {
  615. background-color: #F6F6FB;
  616. padding: 20rpx;
  617. box-sizing: border-box;
  618. .timebox {
  619. display: flex;
  620. background-color: #fff;
  621. padding: 10px;
  622. border-top-right-radius: 5px;
  623. border-top-left-radius: 5px;
  624. .jiange {
  625. width: 5%;
  626. text-align: center;
  627. }
  628. .firsttime,
  629. .endtime {
  630. width: 45%;
  631. text-align: center;
  632. }
  633. }
  634. .warntypebox {
  635. display: flex;
  636. justify-content: space-between;
  637. background-color: #fff;
  638. padding: 10px;
  639. border-top: 1px solid #F6F6FB;
  640. border-bottom-right-radius: 5px;
  641. border-bottom-left-radius: 5px;
  642. }
  643. }
  644. }
  645. .warmlistbox {
  646. width: 95%;
  647. margin: 0 auto;
  648. padding-top: 370rpx;
  649. .warmlistbox_item {
  650. padding: 20rpx 0;
  651. box-sizing: border-box;
  652. background-color: #fff;
  653. border-radius: 10rpx;
  654. margin-bottom: 20rpx;
  655. .warmlistbox_item_title {
  656. border-left: 8rpx solid #14A478;
  657. padding-left: 30rpx;
  658. }
  659. .warmlistbox_item_text {
  660. width: 90%;
  661. margin: 0 auto;
  662. margin-top: 20rpx;
  663. border-top: 1px solid #F2F2F2;
  664. padding: 20rpx 0;
  665. .item_text_item {
  666. margin-bottom: 7px;
  667. display: flex;
  668. .item_text_item_f {
  669. width: 140rpx;
  670. }
  671. .item_text_item_e {
  672. width: calc(100% - 140rpx);
  673. display: -webkit-box; //谷歌
  674. -webkit-box-orient: vertical;
  675. -webkit-line-clamp: 4; //显示几行
  676. overflow: hidden;
  677. }
  678. }
  679. .item_text_sta {
  680. display: flex;
  681. justify-content: flex-end;
  682. }
  683. }
  684. }
  685. }
  686. .empty{
  687. display: flex;
  688. justify-content: center;
  689. align-items: center;
  690. }
  691. .warmissuebox {
  692. width: 95%;
  693. margin: 0 auto;
  694. padding-top: 270rpx;
  695. .warmissue {
  696. width: 95%;
  697. margin: 0 auto;
  698. padding: 20rpx;
  699. background-color: #fff;
  700. border-radius: 5px;
  701. .warmissue_itemone {
  702. margin-bottom: 60rpx;
  703. display: flex;
  704. justify-content: space-between;
  705. }
  706. .warmissue_item {
  707. margin-bottom: 60rpx;
  708. display: flex;
  709. .warmissue_item_title {
  710. width: 160rpx;
  711. }
  712. .warmissue_item_text {
  713. width: calc(100% - 160rpx);
  714. }
  715. }
  716. .warmissue_itemtwo {
  717. display: flex;
  718. .itemtwo_left {
  719. width: calc(100% - 40rpx);
  720. display: flex;
  721. flex-wrap: wrap;
  722. }
  723. .icon {
  724. width: 40rpx;
  725. }
  726. }
  727. }
  728. .sendbox {
  729. margin: 40rpx auto;
  730. width: 80%;
  731. background-color: #14A478;
  732. padding: 20rpx 0;
  733. border-radius: 59px;
  734. text-align: center;
  735. color: #fff;
  736. }
  737. }
  738. .wornsetbox {
  739. width: 95%;
  740. margin: 0 auto;
  741. padding-top: 270rpx;
  742. .wornsetbox_item {
  743. padding: 30rpx 20rpx;
  744. background-color: #fff;
  745. width: 100%;
  746. display: flex;
  747. justify-content: space-between;
  748. box-sizing: border-box;
  749. line-height: 64rpx;
  750. height: 124rpx;
  751. // margin-bottom: 30rpx;
  752. }
  753. }
  754. .addwarnlist {
  755. position: absolute;
  756. bottom: 20rpx;
  757. left: 10%;
  758. margin: 40rpx auto;
  759. width: 80%;
  760. background-color: #14A478;
  761. padding: 20rpx 0;
  762. border-radius: 59px;
  763. text-align: center;
  764. color: #fff;
  765. }
  766. .addinfobox {
  767. display: flex;
  768. margin: 30rpx 0;
  769. .addinfobox_title {
  770. line-height: 70rpx;
  771. width: 30%;
  772. text-align: center;
  773. span:first-child {
  774. color: red;
  775. }
  776. }
  777. /deep/.u-input__right-icon {
  778. line-height: 35px;
  779. }
  780. }
  781. /deep/.u-calendar__action {
  782. display: flex;
  783. justify-content: space-around;
  784. .u-calendar__action__text {
  785. line-height: 25px;
  786. }
  787. }
  788. .top {
  789. position: fixed;
  790. right: 10px;
  791. bottom: 40px;
  792. z-index: 100;
  793. image {
  794. width: 100rpx;
  795. height: 100rpx;
  796. }
  797. .backtop {
  798. display: flex;
  799. justify-content: flex-end;
  800. margin-bottom: 10rpx;
  801. }
  802. .more {
  803. width: 100rpx;
  804. height: 100rpx;
  805. background-color: rgba(161, 161, 161, 0.45);
  806. border-radius: 50%;
  807. text-align: center;
  808. padding-top: 10rpx;
  809. line-height: 40rpx;
  810. box-sizing: border-box;
  811. margin: 14rpx 0 0 0;
  812. color: #fff;
  813. }
  814. }
  815. </style>