cbwarn.vue 22 KB

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