cbwarn.vue 19 KB

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