detail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. <template>
  2. <view class="device-detail" v-show="!loading">
  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-if="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-if="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. loading: false,
  120. isShowTab: 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/equipList/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,
  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. this.loading = true;
  390. const res = await this.$myRequest({
  391. url: '/api/api_gateway?method=forecast.worm_lamp.device_polyline_data',
  392. method: 'POST',
  393. data: {
  394. device_type_id: this.deviceInfo.type_id,
  395. d_id: this.deviceInfo.d_id,
  396. start_time: new Date(this.startDate + ' 00:00:00').getTime()/1000,// 转成毫秒
  397. end_time: new Date(this.endDate + ' 23:59:59').getTime()/1000,
  398. },
  399. });
  400. this.loading = false;
  401. const data = res || [];
  402. this.polylineList = data
  403. },
  404. async getDeviceHistoryData(){
  405. const res = await this.$myRequest({
  406. url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
  407. method: 'POST',
  408. data: {
  409. device_type_id: this.deviceInfo.type_id,
  410. device_id: this.deviceInfo.id,
  411. start_time: new Date(this.startDate + ' 00:00:00').getTime()/1000,
  412. end_time: new Date(this.endDate + ' 23:59:59').getTime()/1000,
  413. page: this.page,
  414. page_size: this.page_size,
  415. },
  416. });
  417. const data = res?.data || [];
  418. this.totalPage = res.counts;
  419. this.deviceHistoryList = data
  420. },
  421. async getPestAnalysis(){
  422. const res = await this.$myRequest({
  423. url: '/api/api_gateway?method=forecast.cbd_analysis.analysis_pest_result',
  424. method: 'POST',
  425. data: {
  426. d_id: this.deviceInfo.d_id,
  427. start: this.startDate,
  428. end: this.endDate,
  429. model: 'B'
  430. },
  431. });
  432. const pest_order = res?.pest_order;
  433. this.getInfo({});
  434. let total = 0;
  435. this.pests = [];
  436. for(let key in pest_order){
  437. total += pest_order[key] || 0;
  438. this.pests.push({
  439. name: key,
  440. percent: (pest_order[key] / total) * 100
  441. })
  442. }
  443. this.pest_order = pest_order;
  444. this.day = res?.day || [];
  445. const pest = res?.pest || [];
  446. this.pest = pest;
  447. // pest.forEach(p =>{
  448. // for(let i = 0;i< p.length;i++){
  449. // this.pest.push(p[i]);
  450. // }
  451. // })
  452. this.total = total;
  453. }
  454. }
  455. }
  456. </script>
  457. <style scoped lang="scss">
  458. ::v-deep .u-calendar__action{
  459. display:flex;
  460. justify-content: space-between;
  461. }
  462. ::v-deep .u-hover-class{
  463. .u-calendar__content__item__inner{
  464. color:#aaa !important;
  465. }
  466. }
  467. .operation-container{
  468. position: fixed;
  469. right: 0;
  470. top: 0;
  471. width: 100%;
  472. height: 100%;
  473. z-index: 99;
  474. }
  475. .operation{
  476. position: fixed;
  477. top: 260rpx;
  478. right: 0;
  479. z-index: 999;
  480. width:48rpx;
  481. height: 100rpx;
  482. line-height: 50rpx;
  483. border-radius: 8px 0 0 8px;
  484. border-top: 4rpx solid #FFF;
  485. border-bottom: 4rpx solid #FFF;
  486. border-left: 4rpx solid #FFF;
  487. background: #dddfe6a3;
  488. color: #515153;
  489. text-align: center;
  490. font-family: "Source Han Sans CN VF";
  491. font-size: 24rpx;
  492. font-weight: 500;
  493. writing-mode: vertical-rl;
  494. }
  495. .operation-background{
  496. position: fixed;
  497. right: 0;
  498. top: 0;
  499. width: 100%;
  500. height: 100%;
  501. z-index: 998;
  502. background: #00000040;
  503. }
  504. .operation-content{
  505. position: fixed;
  506. top: 240rpx;
  507. right: 80rpx;
  508. height: 126rpx;
  509. display: flex;
  510. padding: 16rpx 32rpx;
  511. align-items: center;
  512. gap: 64rpx;
  513. z-index: 999;
  514. border-radius: 32rpx;
  515. border: 2rpx solid #FFF;
  516. background: #FFF;
  517. backdrop-filter: blur(8rpx);
  518. .operation-item{
  519. display: flex;
  520. flex-direction: column;
  521. align-items: center;
  522. justify-content: center;
  523. color: #333333;
  524. text-align: center;
  525. font-family: "Source Han Sans CN VF";
  526. font-size: 24rpx;
  527. font-weight: 400;
  528. }
  529. .operation-icon{
  530. width: 58rpx;
  531. height: 58rpx;
  532. }
  533. }
  534. .device-detail {
  535. display: flex;
  536. width: 100%;
  537. height: calc(100vh - 112rpx);
  538. padding-top: 112rpx;
  539. flex-direction: column;
  540. align-items: center;
  541. overflow-y: scroll;
  542. background: linear-gradient(180deg, #ffffff00 0%, #F5F6FA 23.64%, #F5F6FA 100%), linear-gradient(102deg, #BFEADD 6.77%, #B8F1E7 40.15%, #B9EEF5 84.02%);
  543. .device-detail__header {
  544. width: 100%;
  545. font-size: 28rpx;
  546. color: #999;
  547. color: #042118;
  548. font-family: 'Source Han Sans CN VF';
  549. font-weight: 700;
  550. position: relative;
  551. text-align: center;
  552. .arrow-left {
  553. position: absolute;
  554. left: 32rpx;
  555. margin-right: 12rpx;
  556. }
  557. }
  558. .device-detail__body {
  559. width: calc(100% - 64rpx);
  560. margin: 0 auto;
  561. border-radius: 16rpx;
  562. overflow-x: hidden;
  563. overflow-y: auto;
  564. // 隐藏滚动条
  565. -ms-overflow-style: none;
  566. scrollbar-width: none;
  567. }
  568. .tab-content{
  569. width: 100%;
  570. padding-bottom: 32rpx;
  571. }
  572. .tabs {
  573. background: #ffffff;
  574. margin: 24rpx 0;
  575. border-radius: 16rpx;
  576. padding: 16rpx 0;
  577. padding-top: 0;
  578. .tab-container{
  579. display: flex;
  580. width: 100%;
  581. height: 88rpx;
  582. line-height: 88rpx;
  583. text-align: center;
  584. font-size: 28rpx;
  585. font-weight: 700;
  586. color: #042118;
  587. font-family: 'Source Han Sans CN VF';
  588. }
  589. .select-timer-container{
  590. display:flex;
  591. align-items: center;
  592. padding-left: 32rpx;
  593. .select-year{
  594. width: 110rpx;
  595. text-align: center;
  596. height: 64rpx;
  597. border-radius: 32rpx;
  598. font-family: 'Source Han Sans CN VF';
  599. line-height: 64rpx;
  600. background: #F1F4F8;
  601. padding: 0 32rpx;
  602. .select-year-item{
  603. color: #656565;
  604. font-size: 24rpx;
  605. display: flex;
  606. align-items: center;
  607. justify-content: space-around;
  608. }
  609. }
  610. }
  611. .tabs-timer-container{
  612. display: flex;
  613. align-items: center;
  614. width: calc(100% - 256rpx);
  615. height: 64rpx;
  616. line-height: 64rpx;
  617. text-align: center;
  618. font-size: 24rpx;
  619. font-weight: 500;
  620. font-family: 'Source Han Sans CN VF';
  621. border-radius: 32rpx;
  622. background: #F1F4F8;
  623. padding: 0 32rpx;
  624. color: #656565;
  625. margin: 16rpx;
  626. position: relative;
  627. .tabs-timer-item{
  628. width: 42%;
  629. color: #656565;
  630. text-align: center;
  631. font-family: "Source Han Sans CN VF";
  632. font-size: 24rpx;
  633. font-weight: 400;
  634. }
  635. .calendar-icon{
  636. margin-left: 24rpx;
  637. }
  638. }
  639. .tab-item {
  640. flex: 1;
  641. color: #999999;
  642. text-align: center;
  643. font-family: "Source Han Sans CN VF";
  644. font-size: 28rpx;
  645. font-weight: 400;
  646. }
  647. .active{
  648. position: relative;
  649. color: #303133;
  650. text-align: center;
  651. font-family: "Source Han Sans CN VF";
  652. font-size: 28rpx;
  653. font-weight: 700;
  654. &::after {
  655. content: '';
  656. position: absolute;
  657. bottom: 0;
  658. left: 50%;
  659. -webkit-transform: translateX(-50%);
  660. transform: translateX(-50%);
  661. width: 36rpx;
  662. height: 36rpx;
  663. border: 6rpx solid #0bbc58;
  664. border-radius: 50%;
  665. border-color: transparent;
  666. border-bottom-color: #0bbc58;
  667. }
  668. }
  669. }
  670. }
  671. </style>