detail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. <template>
  2. <view class="device-detail">
  3. <view class="device-detail__header">
  4. <u-icon
  5. size="36"
  6. class="arrow-left"
  7. name="arrow-left"
  8. @click="handleBack"
  9. ></u-icon>
  10. {{ deviceInfo.name }}
  11. </view>
  12. <view class="operation" @click.stop="isShowOperation = !isShowOperation">操作</view>
  13. <view class="operation-container" v-if="isShowOperation" @click="closeOperationHandler">
  14. <view class="operation-background"></view>
  15. <view class="operation-content">
  16. <view class="operation-item" v-if="isShowPhoto" @click="handlePhotoClick">
  17. <image :src="photoIcon" class="operation-icon"></image>
  18. 拍照
  19. </view>
  20. <!-- <view class="operation-item" @click="handleServiceClick">
  21. <image :src="serviceIcon" class="operation-icon"></image>
  22. 维修
  23. </view> -->
  24. <view class="operation-item" @click="handleSettingClick">
  25. <image :src="settingIcon" class="operation-icon"></image>
  26. 设置
  27. </view>
  28. <view class="operation-item" @click="handleSimClick">
  29. <image :src="simIcon" class="operation-icon"></image>
  30. SIM卡
  31. </view>
  32. <view class="operation-item" @click="modification">
  33. <image :src="editIcon" class="operation-icon"></image>
  34. 修改
  35. </view>
  36. </view>
  37. </view>
  38. <view class="device-detail__body">
  39. <DeviceCard
  40. :dataSource="deviceInfo"
  41. :collectTime="time"
  42. :title="deviceInfo.name"
  43. :deviceType="deviceType"
  44. />
  45. <view class="tabs">
  46. <view class="tab-container" v-if="isShowTab">
  47. <view class="tab-item" :class="activeTab === 'viewImage'?'active':''" @click="handleTabClick('viewImage')">
  48. 查看图片
  49. </view>
  50. <view class="tab-item" :class="activeTab === 'deviceData'?'active':''" @click="handleTabClick('deviceData')">
  51. 设备数据
  52. </view>
  53. </view>
  54. <view class="select-timer-container">
  55. <view class="select-year">
  56. <view class="select-year-item" @click="showPicker = true">
  57. {{ currentYear }}
  58. <u-icon name="arrow-down" size="18" class="arrow-down"></u-icon>
  59. </view>
  60. </view>
  61. <view class="tabs-timer-container" @click="showCalendar">
  62. <view class="tabs-timer-item">
  63. {{startDate}}
  64. </view>
  65. 至
  66. <view class="tabs-timer-item">
  67. {{endDate}}
  68. </view>
  69. <u-icon name="calendar" size="36" class="calendar-icon"></u-icon>
  70. </view>
  71. </view>
  72. </view>
  73. <view v-show="activeTab === 'viewImage'">
  74. <photoImage
  75. :images="imageList"
  76. :pestList="pestList"
  77. :disableShow="disableShow"
  78. @changeTab="changeTab"
  79. :currentYear="currentYear"
  80. :deviceInfo="deviceInfo"
  81. />
  82. </view>
  83. <view v-show="activeTab === 'deviceData'">
  84. <DeviceData
  85. :deviceStatic="deviceStatic"
  86. :deviceInfo="deviceInfo"
  87. :polylineList="polylineList"
  88. :deviceHistoryList="deviceHistoryList"
  89. :totalPage="totalPage"
  90. :currentPage="page"
  91. :page_size="page_size"
  92. @prevPage="prevPage"
  93. @nextPage="nextPage"
  94. />
  95. </view>
  96. </view>
  97. <u-calendar v-model="show" :mode="mode" range-color="#999" btn-type="success" active-bg-color="#0bbc58" range-bg-color="rgba(11,188,88,0.13)" @change="handleChange" :max-date="maxDate" :min-date="minDate"></u-calendar>
  98. <u-picker v-model="showPicker" mode="selector" :range="selectorRange" range-key="id" :default-selector="[0]" @confirm="confirmHandler"></u-picker>
  99. </view>
  100. </template>
  101. <script>
  102. import DeviceCard from './components/DeviceCard.vue';
  103. import PestDiscern from './components/pestDiscern.vue';
  104. import PestEchart from './components/pestEchart.vue';
  105. import PestArchive from './components/pestArchive.vue';
  106. import photoImage from './components/photoImage.vue';
  107. import DeviceData from './components/deviceData.vue';
  108. export default {
  109. components: {
  110. DeviceCard,
  111. PestDiscern,
  112. PestEchart,
  113. PestArchive,
  114. photoImage,
  115. DeviceData,
  116. },
  117. data(){
  118. return {
  119. isShowTab:false,
  120. showPicker: false,
  121. disableShow: false,
  122. isShowOperation: false,
  123. photoIcon:'https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newImg/home/photoIcon.png',
  124. editIcon:'https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newImg/home/editIcon.png',
  125. serviceIcon:'https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newImg/home/serviceIcon.png',
  126. simIcon:'https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newImg/home/simIcon.png',
  127. settingIcon:'https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newImg/home/settingIcon.png',
  128. totalPage:0,
  129. currentYear: new Date().getFullYear(),
  130. selectorRange: [],
  131. maxDate: this.formatDate(new Date()),
  132. minDate: this.formatDate(new Date(new Date().getFullYear(), 0, 1)),
  133. show: false,
  134. showSim: false,
  135. // 当前日期向前推30天 格式2026-01-01 月份和日期小于10的时候前面加个0
  136. startDate: this.formatDate(new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000)),
  137. endDate: this.formatDate(new Date()),
  138. mode: 'range',
  139. imageList: [],
  140. pest_order:{},
  141. deviceInfo: {},
  142. pestInfo: {},
  143. time: '',
  144. activeTab: 'viewImage',
  145. deviceType: '',
  146. location: '',
  147. total: 0,
  148. day: [],
  149. pest: [],
  150. page:1,
  151. is_pest:'',
  152. page_size:24,
  153. pestList:[],
  154. pest_names:'',
  155. pests:[],
  156. polylineList:[],
  157. isShowPhoto:false,
  158. deviceHistoryList:[],
  159. deviceStatic:{}
  160. }
  161. },
  162. onLoad(options){
  163. this.deviceInfo = JSON.parse(options.info);
  164. const newVal = this.deviceInfo;
  165. if (newVal.device_model == '11'){
  166. this.isShowPhoto = true
  167. } else if(newVal.device_model == '12'){
  168. this.isShowPhoto = false
  169. } else if(newVal.device_model == '13'){
  170. this.isShowPhoto = true
  171. } else if(newVal.device_model == '14'){
  172. this.isShowPhoto = true
  173. } else if(newVal.device_model == '15'){
  174. this.isShowPhoto = false
  175. } else{
  176. this.isShowPhoto = true
  177. }
  178. // this.getPestAnalysis();
  179. this.isShow();
  180. const currentYear = new Date().getFullYear();
  181. this.selectorRange = [];
  182. for(let i = 0;i<50;i++){
  183. const item = {
  184. label: currentYear - i,
  185. id: currentYear - i
  186. }
  187. this.selectorRange.push(item);
  188. }
  189. },
  190. methods: {
  191. handleSimClick(){
  192. // this.showSim = true;
  193. //`/pages/deviceDetails/weatherStation/${type}?deviceInfo=${encodeURIComponent(JSON.stringify(this.deviceInfo))}`
  194. uni.navigateTo({
  195. url:
  196. '/pages/deviceDetails/weatherStation/simDetail?deviceInfo=' +
  197. encodeURIComponent(JSON.stringify(this.deviceInfo))
  198. });
  199. },
  200. modification() {
  201. uni.navigateTo({
  202. url:
  203. '/pages/equipList2/seabox/modification?data=' +
  204. JSON.stringify(this.deviceInfo) +
  205. '&id=' +
  206. this.deviceInfo.type,
  207. });
  208. },
  209. async handlePhotoClick(){
  210. const res = await this.$myRequest({
  211. url: '/api/api_gateway?method=forecast.send_control.admin_device_control',
  212. method: 'POST',
  213. data: {
  214. device_type_id: this.deviceInfo.type,
  215. d_id: this.deviceInfo.d_id,
  216. cmd: 'takephoto',
  217. },
  218. });
  219. if(res){
  220. this.$u.toast('拍照成功')
  221. }
  222. },
  223. handleServiceClick(){
  224. uni.navigateTo({
  225. url: '/pages/afterSale/addafter?d_id=' + this.deviceInfo.d_id +'&device_id='+this.deviceInfo.id + '&device_type=' + this.deviceInfo.type,
  226. })
  227. },
  228. handleSettingClick(){
  229. uni.navigateTo({
  230. url: '/pages/bzy/deviceControl?deviceId=' + this.deviceInfo.id + '&d_id=' + this.deviceInfo.d_id + '&device_model=' + this.deviceInfo.device_model,
  231. });
  232. },
  233. closeOperationHandler(){
  234. this.isShowOperation = false;
  235. },
  236. isShow(){
  237. // disable == 0 或者 device_model == 15 表示不可以查看
  238. if(!this.deviceInfo.d_id){
  239. return false;
  240. }
  241. let showStatus = true;
  242. if(this.deviceInfo.device_model == 15 || this.deviceInfo.device_model == 12){
  243. showStatus = false;
  244. }
  245. if(showStatus){
  246. this.activeTab = 'viewImage';
  247. }else{
  248. this.activeTab = 'deviceData';
  249. }
  250. this.initAction();
  251. this.isShowTab = showStatus;
  252. if(this.deviceInfo.disable == 0){
  253. this.disableShow = false;
  254. if(showStatus){
  255. this.activeTab = 'viewImage';
  256. this.handleTabClick('viewImage');
  257. }
  258. }else{
  259. this.disableShow = true;
  260. }
  261. },
  262. prevPage(e){
  263. if(e == 1){
  264. return
  265. }
  266. this.page = e-=1;
  267. this.getDeviceHistoryData();
  268. },
  269. nextPage(e){
  270. if(e * this.page_size >= this.totalPage){
  271. return
  272. }
  273. this.page = e+=1;
  274. this.getDeviceHistoryData();
  275. },
  276. changeTab(pestList){
  277. let pest_names = pestList.map(item => item.pest_name);
  278. this.pest_names = pest_names.join(',');
  279. this.initImageList();
  280. },
  281. confirmHandler(e){
  282. this.currentYear = this.selectorRange[e].id;
  283. if(this.currentYear == new Date().getFullYear()){
  284. // 结束日期为this.endDate的月份和日期加上选择的年份
  285. const timeDate = this.currentYear + '-' + this.endDate.split('-')[1] + '-' + this.endDate.split('-')[2];
  286. this.endDate = this.formatDate(new Date(timeDate));
  287. // 开始日期为结束日期前30天
  288. this.startDate = this.formatDate(new Date(new Date(this.endDate).getTime() - 30 * 24 * 60 * 60 * 1000));
  289. this.maxDate = this.formatDate(new Date());
  290. this.minDate = this.formatDate(new Date(new Date().getFullYear(), 0, 1));
  291. }else{
  292. // 结束日期为this.endDate的月份和日期加上选择的年份
  293. const timeDate = this.currentYear + '-' + this.endDate.split('-')[1] + '-' + this.endDate.split('-')[2];
  294. this.endDate = this.formatDate(new Date(timeDate));
  295. // 开始日期为结束日期前30天
  296. this.startDate = this.formatDate(new Date(new Date(this.endDate).getTime() - 30 * 24 * 60 * 60 * 1000));
  297. this.maxDate = this.formatDate(new Date(this.currentYear, 11, 31));
  298. this.minDate = this.formatDate(new Date(this.currentYear, 0, 1));
  299. }
  300. this.initAction();
  301. this.showPicker = false;
  302. },
  303. getInfo(info){
  304. this.pestInfo = info;
  305. },
  306. // 格式化日期为YYYY-MM-DD格式,月份和日期小于10时前面加0
  307. formatDate(date) {
  308. const year = date.getFullYear();
  309. const month = String(date.getMonth() + 1).padStart(2, '0');
  310. const day = String(date.getDate()).padStart(2, '0');
  311. return `${year}-${month}-${day}`;
  312. },
  313. formatTime(date){
  314. const time = new Date(date).getTime() / 1000;
  315. return time.toFixed(0);
  316. },
  317. handleChange(e){
  318. this.startDate = e.startDate;
  319. this.endDate = e.endDate;
  320. this.page = 1;
  321. this.initAction();
  322. },
  323. showCalendar(){
  324. this.show = true;
  325. },
  326. handleBack() {
  327. uni.navigateBack({
  328. delta: 1
  329. });
  330. },
  331. initAction(){
  332. this.pest_order = {}
  333. if(this.activeTab === 'viewImage'){
  334. // this.initPest();
  335. this.initImageList();
  336. }else if(this.activeTab === 'deviceData'){
  337. // this.getDeviceData();
  338. this.getPolylineData();
  339. this.getDeviceHistoryData();
  340. }
  341. },
  342. handleTabClick(tab) {
  343. this.activeTab = tab;
  344. this.initAction();
  345. },
  346. async getDeviceData(){
  347. const res = await this.$myRequest({
  348. url: '/api/api_gateway?method=forecast.worm_lamp.device_status_data',
  349. method: 'POST',
  350. data: {
  351. device_id: this.deviceInfo.id,
  352. },
  353. });
  354. this.deviceStatic = res;
  355. },
  356. async initImageList(){
  357. const res = await this.$myRequest({
  358. url: '/api/api_gateway?method=forecast.forecast_system.equip_photo',
  359. method: 'POST',
  360. data: {
  361. page:this.page,
  362. page_number:this.page_size,
  363. device_id: this.deviceInfo.id,
  364. ret:'list',
  365. time_begin: this.formatTime(this.formatDate(new Date(this.startDate)) + ' 00:00:00'),// 格式化开始时间YYYY-MM-DD HH:MM:SS
  366. time_end: this.formatTime(this.formatDate(new Date(this.endDate)) + ' 23:59:59'),// 格式化结束时间YYYY-MM-DD HH:MM:SS
  367. },
  368. });
  369. const data = res?.data || [];
  370. this.imageList = data
  371. },
  372. async initPest(){
  373. const res = await this.$myRequest({
  374. url: '/api/api_gateway?method=forecast.new_cbd.pest_type_list',
  375. method: 'POST',
  376. data:{
  377. page:1,
  378. page_size:999999,
  379. device_id: this.deviceInfo.id,
  380. identify_model: 'B',
  381. time_begin: this.formatTime(this.formatDate(new Date(this.startDate)) + ' 00:00:00'),// 格式化开始时间YYYY-MM-DD HH:MM:SS
  382. time_end: this.formatTime(this.formatDate(new Date(this.endDate)) + ' 23:59:59'),// 格式化结束时间YYYY-MM-DD HH:MM:SS
  383. },
  384. });
  385. const data = res?.data || [];
  386. this.pestList = data
  387. },
  388. async getPolylineData(){
  389. const res = await this.$myRequest({
  390. url: '/api/api_gateway?method=forecast.worm_lamp.device_polyline_data',
  391. method: 'POST',
  392. data: {
  393. device_type_id: this.deviceInfo.type_id,
  394. d_id: this.deviceInfo.d_id,
  395. start_time: new Date(this.startDate + ' 00:00:00').getTime()/1000,// 转成毫秒
  396. end_time: new Date(this.endDate + ' 23:59:59').getTime()/1000,// 转成毫秒
  397. },
  398. });
  399. const data = res || [];
  400. this.polylineList = data
  401. },
  402. async getDeviceHistoryData(){
  403. const res = await this.$myRequest({
  404. url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
  405. method: 'POST',
  406. data: {
  407. device_type_id: this.deviceInfo.type_id,
  408. device_id: this.deviceInfo.id,
  409. start_time: new Date(this.startDate + ' 00:00:00').getTime()/1000,
  410. end_time: new Date(this.endDate + ' 23:59:59').getTime()/1000,
  411. page: this.page,
  412. page_size: this.page_size,
  413. },
  414. });
  415. const data = res?.data || [];
  416. this.totalPage = res.counts;
  417. this.deviceHistoryList = data
  418. },
  419. async getPestAnalysis(){
  420. const res = await this.$myRequest({
  421. url: '/api/api_gateway?method=forecast.cbd_analysis.analysis_pest_result',
  422. method: 'POST',
  423. data: {
  424. d_id: this.deviceInfo.d_id,
  425. start: this.startDate,
  426. end: this.endDate,
  427. model: 'B'
  428. },
  429. });
  430. const pest_order = res?.pest_order;
  431. this.getInfo({});
  432. let total = 0;
  433. this.pests = [];
  434. for(let key in pest_order){
  435. total += pest_order[key] || 0;
  436. this.pests.push({
  437. name: key,
  438. percent: (pest_order[key] / total) * 100
  439. })
  440. }
  441. this.pest_order = pest_order;
  442. this.day = res?.day || [];
  443. const pest = res?.pest || [];
  444. this.pest = pest;
  445. // pest.forEach(p =>{
  446. // for(let i = 0;i< p.length;i++){
  447. // this.pest.push(p[i]);
  448. // }
  449. // })
  450. this.total = total;
  451. }
  452. }
  453. }
  454. </script>
  455. <style scoped lang="scss">
  456. ::v-deep .u-calendar__action{
  457. display:flex;
  458. justify-content: space-between;
  459. }
  460. ::v-deep .u-hover-class{
  461. .u-calendar__content__item__inner{
  462. color:#aaa !important;
  463. }
  464. }
  465. .operation-container{
  466. position: fixed;
  467. right: 0;
  468. top: 0;
  469. width: 100%;
  470. height: 100%;
  471. z-index: 99;
  472. }
  473. .operation{
  474. position: fixed;
  475. top: 260rpx;
  476. right: 0;
  477. z-index: 999;
  478. width:48rpx;
  479. height: 100rpx;
  480. line-height: 50rpx;
  481. border-radius: 8px 0 0 8px;
  482. border-top: 4rpx solid #FFF;
  483. border-bottom: 4rpx solid #FFF;
  484. border-left: 4rpx solid #FFF;
  485. background: #dddfe6a3;
  486. color: #515153;
  487. text-align: center;
  488. font-family: "Source Han Sans CN VF";
  489. font-size: 24rpx;
  490. font-weight: 500;
  491. writing-mode: vertical-rl;
  492. }
  493. .operation-background{
  494. position: fixed;
  495. right: 0;
  496. top: 0;
  497. width: 100%;
  498. height: 100%;
  499. z-index: 998;
  500. background: #00000040;
  501. }
  502. .operation-content{
  503. position: fixed;
  504. top: 240rpx;
  505. right: 80rpx;
  506. height: 126rpx;
  507. display: flex;
  508. padding: 16rpx 32rpx;
  509. align-items: center;
  510. gap: 64rpx;
  511. z-index: 999;
  512. border-radius: 32rpx;
  513. border: 2rpx solid #FFF;
  514. background: #FFF;
  515. backdrop-filter: blur(8rpx);
  516. .operation-item{
  517. display: flex;
  518. flex-direction: column;
  519. align-items: center;
  520. justify-content: center;
  521. color: #333333;
  522. text-align: center;
  523. font-family: "Source Han Sans CN VF";
  524. font-size: 24rpx;
  525. font-weight: 400;
  526. }
  527. .operation-icon{
  528. width: 58rpx;
  529. height: 58rpx;
  530. }
  531. }
  532. .device-detail {
  533. display: flex;
  534. width: 100%;
  535. height: calc(100vh - 112rpx);
  536. padding-top: 112rpx;
  537. flex-direction: column;
  538. align-items: center;
  539. overflow-y: scroll;
  540. background: linear-gradient(180deg, #ffffff00 0%, #F5F6FA 23.64%, #F5F6FA 100%), linear-gradient(102deg, #BFEADD 6.77%, #B8F1E7 40.15%, #B9EEF5 84.02%);
  541. .device-detail__header {
  542. width: 100%;
  543. font-size: 28rpx;
  544. color: #999;
  545. color: #042118;
  546. font-family: 'Source Han Sans CN VF';
  547. font-weight: 700;
  548. position: relative;
  549. text-align: center;
  550. .arrow-left {
  551. position: absolute;
  552. left: 32rpx;
  553. margin-right: 12rpx;
  554. }
  555. }
  556. .device-detail__body {
  557. width: calc(100% - 64rpx);
  558. margin: 0 auto;
  559. border-radius: 16rpx;
  560. overflow-x: hidden;
  561. overflow-y: auto;
  562. // 隐藏滚动条
  563. -ms-overflow-style: none;
  564. scrollbar-width: none;
  565. }
  566. .tab-content{
  567. width: 100%;
  568. padding-bottom: 32rpx;
  569. }
  570. .tabs {
  571. background: #ffffff;
  572. margin: 24rpx 0;
  573. border-radius: 16rpx;
  574. padding: 16rpx 0;
  575. padding-top: 0;
  576. .tab-container{
  577. display: flex;
  578. width: 100%;
  579. height: 88rpx;
  580. line-height: 88rpx;
  581. text-align: center;
  582. font-size: 28rpx;
  583. font-weight: 700;
  584. color: #042118;
  585. font-family: 'Source Han Sans CN VF';
  586. }
  587. .select-timer-container{
  588. display:flex;
  589. align-items: center;
  590. padding-left: 32rpx;
  591. .select-year{
  592. width: 110rpx;
  593. text-align: center;
  594. height: 64rpx;
  595. border-radius: 32rpx;
  596. font-family: 'Source Han Sans CN VF';
  597. line-height: 64rpx;
  598. background: #F1F4F8;
  599. padding: 0 32rpx;
  600. .select-year-item{
  601. color: #656565;
  602. font-size: 24rpx;
  603. display: flex;
  604. align-items: center;
  605. justify-content: space-around;
  606. }
  607. }
  608. }
  609. .tabs-timer-container{
  610. display: flex;
  611. align-items: center;
  612. width: calc(100% - 256rpx);
  613. height: 64rpx;
  614. line-height: 64rpx;
  615. text-align: center;
  616. font-size: 24rpx;
  617. font-weight: 500;
  618. font-family: 'Source Han Sans CN VF';
  619. border-radius: 32rpx;
  620. background: #F1F4F8;
  621. padding: 0 32rpx;
  622. color: #656565;
  623. margin: 16rpx;
  624. position: relative;
  625. .tabs-timer-item{
  626. width: 42%;
  627. color: #656565;
  628. text-align: center;
  629. font-family: "Source Han Sans CN VF";
  630. font-size: 24rpx;
  631. font-weight: 400;
  632. }
  633. .calendar-icon{
  634. margin-left: 24rpx;
  635. }
  636. }
  637. .tab-item {
  638. flex: 1;
  639. color: #999999;
  640. text-align: center;
  641. font-family: "Source Han Sans CN VF";
  642. font-size: 28rpx;
  643. font-weight: 400;
  644. }
  645. .active{
  646. position: relative;
  647. color: #303133;
  648. text-align: center;
  649. font-family: "Source Han Sans CN VF";
  650. font-size: 28rpx;
  651. font-weight: 700;
  652. &::after {
  653. content: '';
  654. position: absolute;
  655. bottom: 0;
  656. left: 50%;
  657. -webkit-transform: translateX(-50%);
  658. transform: translateX(-50%);
  659. width: 36rpx;
  660. height: 36rpx;
  661. border: 6rpx solid #0bbc58;
  662. border-radius: 50%;
  663. border-color: transparent;
  664. border-bottom-color: #0bbc58;
  665. }
  666. }
  667. }
  668. }
  669. </style>