cbwarn.vue 22 KB

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