ranking.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. <template>
  2. <view class="matchmaker-ranking">
  3. <!-- 顶部导航栏 -->
  4. <view class="header">
  5. <view class="back-btn" @click="goBack"></view>
  6. <text class="header-title">红娘排行榜</text>
  7. <view class="placeholder"></view>
  8. </view>
  9. <!-- 更新提示 -->
  10. <view class="update-info">
  11. <text class="update-text">每天17点自动更新数据</text>
  12. </view>
  13. <!-- 本周最佳榜标题 -->
  14. <view class="section-title-wrapper">
  15. <text class="section-title">
  16. <text class="title-icon">👩‍❤️‍💋‍👨</text>
  17. 本周最佳榜
  18. <text class="title-icon">👩‍❤️‍💋‍👨</text>
  19. </text>
  20. </view>
  21. <!-- 榜说明 -->
  22. <view class="ranking-description">
  23. <text class="description-text">榜单综合万粉以下红娘的日牵线数,用户好评数 等综合因素,上榜为前20的红娘</text>
  24. </view>
  25. <!-- 前三名展示 -->
  26. <view class="top-three-container" v-if="topThree.length >= 3">
  27. <view class="top-three-item second">
  28. <text class="rank-number">2</text>
  29. <image class="avatar-large" :src="topThree[1].avatar_url || defaultAvatar" mode="aspectFill"></image>
  30. <text class="matchmaker-name">{{ topThree[1].real_name }}</text>
  31. <text class="success-count">成功人数: {{ topThree[1].success_couples || 0 }}</text>
  32. <view class="like-btn" :class="{ liked: topThree[1].hasLiked }" @click="handleLike(topThree[1])">
  33. {{ topThree[1].hasLiked ? '已点赞' : '点赞' }}
  34. </view>
  35. </view>
  36. <view class="top-three-item first">
  37. <text class="rank-number">1</text>
  38. <image class="avatar-large" :src="topThree[0].avatar_url || defaultAvatar" mode="aspectFill"></image>
  39. <text class="matchmaker-name">{{ topThree[0].real_name }}</text>
  40. <text class="success-count">成功人数: {{ topThree[0].success_couples || 0 }}</text>
  41. <view class="like-btn" :class="{ liked: topThree[0].hasLiked }" @click="handleLike(topThree[0])">
  42. {{ topThree[0].hasLiked ? '已点赞' : '点赞' }}
  43. </view>
  44. </view>
  45. <view class="top-three-item third">
  46. <text class="rank-number">3</text>
  47. <image class="avatar-large" :src="topThree[2].avatar_url || defaultAvatar" mode="aspectFill"></image>
  48. <text class="matchmaker-name">{{ topThree[2].real_name }}</text>
  49. <text class="success-count">成功人数: {{ topThree[2].success_couples || 0 }}</text>
  50. <view class="like-btn" :class="{ liked: topThree[2].hasLiked }" @click="handleLike(topThree[2])">
  51. {{ topThree[2].hasLiked ? '已点赞' : '点赞' }}
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 排行榜列表 -->
  56. <scroll-view scroll-y class="ranking-list">
  57. <view class="ranking-item" v-for="(item, index) in restList" :key="item.matchmaker_id">
  58. <text class="rank-number-normal">{{ index + 4 }}</text>
  59. <image class="avatar-small" :src="item.avatar_url || defaultAvatar" mode="aspectFill"></image>
  60. <view class="matchmaker-info">
  61. <text class="matchmaker-name-normal">{{ item.real_name }}</text>
  62. <text class="success-count-normal">成功: {{ item.success_couples || 0 }} | 点赞: {{ item.weeklyLikes || 0 }}</text>
  63. <text class="user-rating">等级: {{ item.level_name || '青铜红娘' }}</text>
  64. </view>
  65. <view class="like-btn-small" :class="{ liked: item.hasLiked }" @click="handleLike(item)">
  66. {{ item.hasLiked ? '已赞' : '点赞' }}
  67. </view>
  68. </view>
  69. <view v-if="loading" class="loading-tip">加载中...</view>
  70. <view v-if="!loading && restList.length === 0" class="empty-tip">暂无更多红娘</view>
  71. </scroll-view>
  72. <!-- 底部导航 -->
  73. <view class="tabbar">
  74. <view class="tabbar-item home" @click="navigateToWorkbench">
  75. <view class="tabbar-icon"></view>
  76. <text class="tabbar-text">工作台</text>
  77. </view>
  78. <view class="tabbar-item resources" @click="navigateToMyResources">
  79. <view class="tabbar-icon"></view>
  80. <text class="tabbar-text">我的资源</text>
  81. </view>
  82. <view class="tabbar-item trophy active" @click="navigateToRanking">
  83. <view class="tabbar-icon"></view>
  84. <text class="tabbar-text">排行榜</text>
  85. </view>
  86. <view class="tabbar-item message" @click="navigateToMessage">
  87. <view class="tabbar-icon">
  88. <view class="badge">3</view>
  89. </view>
  90. <text class="tabbar-text">消息</text>
  91. </view>
  92. <view class="tabbar-item mine" @click="navigateToMine">
  93. <view class="tabbar-icon"></view>
  94. <text class="tabbar-text">我的</text>
  95. </view>
  96. </view>
  97. </view>
  98. </template>
  99. <script>
  100. import api from '@/utils/api.js'
  101. export default {
  102. data() {
  103. return {
  104. loading: false,
  105. rankingList: [],
  106. defaultAvatar: '/static/default-avatar.svg',
  107. userId: null
  108. }
  109. },
  110. computed: {
  111. // 前三名
  112. topThree() {
  113. return this.rankingList.slice(0, 3)
  114. },
  115. // 第4名及以后
  116. restList() {
  117. return this.rankingList.slice(3)
  118. }
  119. },
  120. onLoad() {
  121. // 获取当前用户ID
  122. const userInfo = uni.getStorageSync('userInfo')
  123. if (userInfo && userInfo.userId) {
  124. this.userId = userInfo.userId
  125. }
  126. // 加载排行榜数据
  127. this.loadRankingData()
  128. },
  129. methods: {
  130. // 返回上一页
  131. goBack() {
  132. uni.navigateBack()
  133. },
  134. // 加载排行榜数据(使用本周排行榜API)
  135. async loadRankingData() {
  136. this.loading = true
  137. try {
  138. // 使用本周排行榜API,传入userId以获取点赞状态
  139. const res = await api.matchmaker.getWeeklyRanking({
  140. limit: 20,
  141. userId: this.userId
  142. })
  143. if (res && Array.isArray(res)) {
  144. this.rankingList = res.map(item => this.formatMatchmaker(item))
  145. } else if (res && res.data && Array.isArray(res.data)) {
  146. this.rankingList = res.data.map(item => this.formatMatchmaker(item))
  147. }
  148. console.log('本周排行榜数据:', this.rankingList)
  149. } catch (e) {
  150. console.error('加载排行榜数据失败:', e)
  151. uni.showToast({
  152. title: '加载失败',
  153. icon: 'none'
  154. })
  155. } finally {
  156. this.loading = false
  157. }
  158. },
  159. // 格式化红娘数据(统一字段名)
  160. formatMatchmaker(item) {
  161. return {
  162. ...item,
  163. matchmaker_id: item.matchmakerId || item.matchmaker_id,
  164. real_name: item.realName || item.real_name,
  165. avatar_url: item.avatarUrl || item.avatar_url,
  166. success_couples: item.successCouples || item.success_couples,
  167. level_name: item.levelName || item.level_name,
  168. weeklyLikes: item.weeklyLikes || 0,
  169. hasLiked: item.hasLiked || false
  170. }
  171. },
  172. // 点赞
  173. async handleLike(matchmaker) {
  174. // 检查是否已点赞
  175. if (matchmaker.hasLiked) {
  176. uni.showToast({
  177. title: '本周已点赞过该红娘',
  178. icon: 'none'
  179. })
  180. return
  181. }
  182. // 检查是否登录
  183. if (!this.userId) {
  184. uni.showToast({
  185. title: '请先登录',
  186. icon: 'none'
  187. })
  188. return
  189. }
  190. try {
  191. const matchmakerId = matchmaker.matchmaker_id || matchmaker.matchmakerId
  192. const res = await api.matchmaker.likeMatchmaker(this.userId, matchmakerId)
  193. if (res && (res.code === 200 || res.liked)) {
  194. uni.showToast({
  195. title: '点赞成功',
  196. icon: 'success'
  197. })
  198. // 更新本地状态
  199. matchmaker.hasLiked = true
  200. matchmaker.weeklyLikes = (matchmaker.weeklyLikes || 0) + 1
  201. // 刷新列表
  202. this.loadRankingData()
  203. } else {
  204. uni.showToast({
  205. title: res.message || '点赞失败',
  206. icon: 'none'
  207. })
  208. }
  209. } catch (e) {
  210. console.error('点赞失败:', e)
  211. uni.showToast({
  212. title: e.message || '点赞失败',
  213. icon: 'none'
  214. })
  215. }
  216. },
  217. // 导航到工作台
  218. navigateToWorkbench() {
  219. uni.redirectTo({
  220. url: '/pages/matchmaker-workbench/index'
  221. })
  222. },
  223. // 导航到我的资源
  224. navigateToMyResources() {
  225. uni.redirectTo({
  226. url: '/pages/matchmaker-workbench/my-resources'
  227. })
  228. },
  229. // 导航到排行榜
  230. navigateToRanking() {
  231. // 已在排行榜页面,无需跳转
  232. },
  233. // 导航到消息
  234. navigateToMessage() {
  235. uni.redirectTo({
  236. url: '/pages/matchmaker-workbench/message'
  237. })
  238. },
  239. // 导航到我的
  240. navigateToMine() {
  241. uni.redirectTo({
  242. url: '/pages/matchmaker-workbench/mine'
  243. })
  244. }
  245. }
  246. }
  247. </script>
  248. <style lang="scss" scoped>
  249. .matchmaker-ranking {
  250. min-height: 100vh;
  251. background: linear-gradient(135deg, #FFF3F6 0%, #FFE4E8 100%);
  252. display: flex;
  253. flex-direction: column;
  254. }
  255. /* 顶部导航栏 */
  256. .header {
  257. display: flex;
  258. align-items: center;
  259. justify-content: space-between;
  260. padding: 25rpx 30rpx;
  261. padding-top: calc(25rpx + env(safe-area-inset-top));
  262. background: #FFF9F9;
  263. border-bottom: 1rpx solid #F0F0F0;
  264. .back-btn {
  265. width: 70rpx;
  266. height: 70rpx;
  267. display: flex;
  268. align-items: center;
  269. justify-content: center;
  270. background: rgba(240, 240, 240, 0.5);
  271. border-radius: 50%;
  272. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>');
  273. background-size: 40rpx 40rpx;
  274. background-repeat: no-repeat;
  275. background-position: center;
  276. }
  277. .header-title {
  278. font-size: 38rpx;
  279. font-weight: bold;
  280. color: #333;
  281. }
  282. .placeholder {
  283. width: 70rpx;
  284. }
  285. }
  286. /* 更新提示 */
  287. .update-info {
  288. background: #FFF3E0;
  289. padding: 15rpx;
  290. text-align: center;
  291. .update-text {
  292. font-size: 24rpx;
  293. color: #FF9800;
  294. }
  295. }
  296. /* 本周最佳榜标题 */
  297. .section-title-wrapper {
  298. text-align: center;
  299. margin: 30rpx 0 15rpx;
  300. .section-title {
  301. display: inline-block;
  302. font-size: 36rpx;
  303. font-weight: bold;
  304. color: #E91E63;
  305. line-height: 1.4;
  306. .title-icon {
  307. font-size: 40rpx;
  308. margin: 0 10rpx;
  309. }
  310. }
  311. }
  312. /* 榜说明 */
  313. .ranking-description {
  314. padding: 0 30rpx 25rpx;
  315. .description-text {
  316. display: block;
  317. font-size: 26rpx;
  318. color: #666;
  319. line-height: 1.5;
  320. text-align: center;
  321. }
  322. }
  323. /* 前三名展示 */
  324. .top-three-container {
  325. display: flex;
  326. justify-content: space-around;
  327. align-items: flex-end;
  328. padding: 0 20rpx 40rpx;
  329. background: #FFF9F9;
  330. border-radius: 20rpx;
  331. margin: 0 20rpx 20rpx;
  332. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  333. .top-three-item {
  334. display: flex;
  335. flex-direction: column;
  336. align-items: center;
  337. padding: 20rpx;
  338. border-radius: 20rpx;
  339. position: relative;
  340. &.first {
  341. background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  342. width: 280rpx;
  343. height: 400rpx;
  344. order: 2;
  345. margin-bottom: 30rpx;
  346. }
  347. &.second {
  348. background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
  349. width: 240rpx;
  350. height: 350rpx;
  351. order: 1;
  352. }
  353. &.third {
  354. background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
  355. width: 240rpx;
  356. height: 350rpx;
  357. order: 3;
  358. }
  359. .rank-number {
  360. position: absolute;
  361. top: 20rpx;
  362. left: 20rpx;
  363. font-size: 48rpx;
  364. font-weight: bold;
  365. color: #FFFFFF;
  366. }
  367. .avatar-large {
  368. width: 120rpx;
  369. height: 120rpx;
  370. border-radius: 50%;
  371. background: rgba(255, 255, 255, 0.3);
  372. margin: 40rpx 0 20rpx;
  373. }
  374. .matchmaker-name {
  375. font-size: 32rpx;
  376. font-weight: bold;
  377. color: #FFFFFF;
  378. margin-bottom: 15rpx;
  379. }
  380. .success-count {
  381. font-size: 28rpx;
  382. color: #FFFFFF;
  383. margin-bottom: 30rpx;
  384. }
  385. .like-btn {
  386. padding: 12rpx 35rpx;
  387. background: rgba(255, 255, 255, 0.2);
  388. color: #FFFFFF;
  389. border-radius: 25rpx;
  390. font-size: 26rpx;
  391. font-weight: bold;
  392. border: 2rpx solid #FFFFFF;
  393. &.liked {
  394. background: rgba(255, 255, 255, 0.5);
  395. color: rgba(255, 255, 255, 0.8);
  396. border-color: rgba(255, 255, 255, 0.5);
  397. }
  398. }
  399. }
  400. }
  401. .ranking-list {
  402. flex: 1;
  403. padding: 0 20rpx 120rpx;
  404. .ranking-item {
  405. display: flex;
  406. align-items: center;
  407. background: #FFFFFF;
  408. border-radius: 20rpx;
  409. padding: 25rpx;
  410. margin-bottom: 20rpx;
  411. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  412. .rank-number-normal {
  413. width: 50rpx;
  414. height: 50rpx;
  415. display: flex;
  416. align-items: center;
  417. justify-content: center;
  418. font-size: 28rpx;
  419. font-weight: bold;
  420. color: #999;
  421. border-radius: 50%;
  422. background: #F0F0F0;
  423. margin-right: 20rpx;
  424. }
  425. .avatar-small {
  426. width: 80rpx;
  427. height: 80rpx;
  428. border-radius: 50%;
  429. background: #F0F0F0;
  430. margin-right: 20rpx;
  431. }
  432. .matchmaker-info {
  433. flex: 1;
  434. .matchmaker-name-normal {
  435. display: block;
  436. font-size: 32rpx;
  437. font-weight: bold;
  438. color: #333;
  439. margin-bottom: 8rpx;
  440. }
  441. .success-count-normal,
  442. .user-rating {
  443. display: block;
  444. font-size: 24rpx;
  445. color: #666;
  446. margin-bottom: 4rpx;
  447. }
  448. }
  449. .like-btn-small {
  450. padding: 10rpx 30rpx;
  451. background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  452. color: #FFFFFF;
  453. border-radius: 25rpx;
  454. font-size: 26rpx;
  455. font-weight: bold;
  456. &.liked {
  457. background: #CCCCCC;
  458. color: #999999;
  459. }
  460. }
  461. }
  462. .loading-tip,
  463. .empty-tip {
  464. text-align: center;
  465. padding: 40rpx;
  466. font-size: 28rpx;
  467. color: #999;
  468. }
  469. }
  470. /* 底部导航 */
  471. .tabbar {
  472. position: fixed;
  473. bottom: 0;
  474. left: 0;
  475. right: 0;
  476. height: 100rpx;
  477. background: #FFFFFF;
  478. border-top: 1rpx solid #F0F0F0;
  479. display: flex;
  480. justify-content: space-around;
  481. align-items: center;
  482. padding-bottom: env(safe-area-inset-bottom);
  483. .tabbar-item {
  484. display: flex;
  485. flex-direction: column;
  486. align-items: center;
  487. gap: 8rpx;
  488. padding: 10rpx 0;
  489. .tabbar-icon {
  490. width: 44rpx;
  491. height: 44rpx;
  492. background-size: contain;
  493. background-repeat: no-repeat;
  494. background-position: center;
  495. position: relative;
  496. .badge {
  497. position: absolute;
  498. top: -8rpx;
  499. right: -8rpx;
  500. background: #FF4444;
  501. color: #FFFFFF;
  502. font-size: 20rpx;
  503. font-weight: bold;
  504. width: 32rpx;
  505. height: 32rpx;
  506. display: flex;
  507. align-items: center;
  508. justify-content: center;
  509. border-radius: 16rpx;
  510. }
  511. }
  512. .tabbar-text {
  513. font-size: 20rpx;
  514. color: #999;
  515. }
  516. &.active .tabbar-text {
  517. color: #9C27B0;
  518. font-weight: bold;
  519. }
  520. &.home .tabbar-icon {
  521. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
  522. }
  523. &.home.active .tabbar-icon {
  524. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
  525. }
  526. &.resources .tabbar-icon {
  527. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>');
  528. }
  529. &.resources.active .tabbar-icon {
  530. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>');
  531. }
  532. &.trophy .tabbar-icon {
  533. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z"/></svg>');
  534. }
  535. &.trophy.active .tabbar-icon {
  536. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z"/></svg>');
  537. }
  538. &.message .tabbar-icon {
  539. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>');
  540. }
  541. &.message.active .tabbar-icon {
  542. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>');
  543. }
  544. &.mine .tabbar-icon {
  545. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  546. }
  547. &.mine.active .tabbar-icon {
  548. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  549. }
  550. }
  551. }
  552. </style>