cbwarn.vue 19 KB

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