cbwarn.vue 22 KB

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