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