cbwarn.vue 22 KB

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