cbwarn.vue 18 KB

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