index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. <template>
  2. <view class="matchmaker-workbench">
  3. <!-- 顶部导航栏 -->
  4. <view class="header">
  5. <text class="header-title">红娘工作台</text>
  6. <view class="header-right">
  7. <view class="search-icon" @click="handleSearch"></view>
  8. <!-- 退出红娘工作台按钮 -->
  9. <view class="exit-workbench-btn" @click="openExitPopup">
  10. <view class="arrow-container">
  11. <view class="arrow arrow-top"></view>
  12. <view class="arrow arrow-bottom"></view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <scroll-view scroll-y class="content">
  18. <!-- 欢迎卡片 -->
  19. <view class="welcome-card">
  20. <view class="welcome-text">
  21. <text class="welcome-title">欢迎回来</text>
  22. <text class="heart-icon">❤️</text>
  23. <text class="matchmaker-name">高红娘</text>
  24. </view>
  25. <view class="avatar"></view>
  26. </view>
  27. <!-- 统计卡片 -->
  28. <view class="stats-cards">
  29. <view class="stats-card success">
  30. <text class="stats-number">520</text>
  31. <text class="stats-label">成功撮合</text>
  32. <text class="stats-subtitle">匹配数</text>
  33. </view>
  34. <view class="stats-card points">
  35. <text class="stats-number">23</text>
  36. <text class="stats-label">积分可兑礼</text>
  37. <text class="stats-subtitle">我的积分</text>
  38. <text class="stats-extra">可兑换</text>
  39. </view>
  40. </view>
  41. <!-- 公告卡片 -->
  42. <view class="announcement-card" @click="handleAnnouncement">
  43. <text class="announcement-tag">公告</text>
  44. <text class="announcement-content">恭喜高红娘成功助力丁先生和贾女士牵手成功!</text>
  45. <view class="arrow-right"></view>
  46. </view>
  47. <!-- 功能菜单 -->
  48. <view class="menu-grid">
  49. <view class="menu-item" @click="navigateToMyResources">
  50. <view class="menu-icon resources"></view>
  51. <text class="menu-text">我的资源</text>
  52. </view>
  53. <view class="menu-item" @click="navigateToQualityResources">
  54. <view class="menu-icon quality"></view>
  55. <text class="menu-text">优质资源</text>
  56. </view>
  57. <view class="menu-item" @click="navigateToCourses">
  58. <view class="menu-icon courses"></view>
  59. <text class="menu-text">课程培训</text>
  60. </view>
  61. <view class="menu-item" @click="navigateToPointsMall">
  62. <view class="menu-icon mall"></view>
  63. <text class="menu-text">积分商城</text>
  64. </view>
  65. <view class="menu-item" @click="navigateToActivityCenter">
  66. <view class="menu-icon activity"></view>
  67. <text class="menu-text">活动中心</text>
  68. </view>
  69. </view>
  70. <!-- 本周最佳红娘 -->
  71. <view class="best-matchmaker-section">
  72. <view class="section-header">
  73. <text class="section-title">
  74. <text class="crown-icon">👑</text>
  75. 本周最佳红娘
  76. </text>
  77. <text class="section-more" @click="navigateToRanking">排行榜 ></text>
  78. </view>
  79. <view class="best-matchmaker-list">
  80. <view class="best-matchmaker-item" v-for="(item, index) in bestMatchmakers" :key="index">
  81. <text class="rank-number">{{ item.rank }}</text>
  82. <view class="avatar-small"></view>
  83. <view class="matchmaker-info">
  84. <text class="matchmaker-name-small">{{ item.name }}</text>
  85. <text class="success-count">成功人数: {{ item.successCount }}</text>
  86. </view>
  87. <view class="likes-info">
  88. <text class="heart-small">❤️</text>
  89. <text class="like-count">{{ item.likes }}</text>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </scroll-view>
  95. <!-- 底部导航 -->
  96. <view class="tabbar">
  97. <view class="tabbar-item active" @click="navigateToWorkbench">
  98. <view class="tabbar-icon home"></view>
  99. <text class="tabbar-text">工作台</text>
  100. </view>
  101. <view class="tabbar-item" @click="navigateToMyResources">
  102. <view class="tabbar-icon resources"></view>
  103. <text class="tabbar-text">我的资源</text>
  104. </view>
  105. <view class="tabbar-item" @click="navigateToRanking">
  106. <view class="tabbar-icon trophy"></view>
  107. <text class="tabbar-text">排行榜</text>
  108. </view>
  109. <view class="tabbar-item" @click="navigateToMessage">
  110. <view class="tabbar-icon message">
  111. <view class="badge">3</view>
  112. </view>
  113. <text class="tabbar-text">消息</text>
  114. </view>
  115. <view class="tabbar-item" @click="navigateToMine">
  116. <view class="tabbar-icon mine"></view>
  117. <text class="tabbar-text">我的</text>
  118. </view>
  119. </view>
  120. </view>
  121. </template>
  122. <script>
  123. import api from '@/utils/api.js'
  124. export default {
  125. data() {
  126. return {
  127. bestMatchmakers: [
  128. { rank: 1, name: '小超超', successCount: 12, likes: 28 },
  129. { rank: 2, name: '小颖颖', successCount: 11, likes: 25 },
  130. { rank: 3, name: '小魏魏', successCount: 10, likes: 22 }
  131. ]
  132. }
  133. },
  134. onLoad() {
  135. // 加载工作台数据
  136. this.loadWorkbenchData()
  137. },
  138. methods: {
  139. // 加载工作台数据
  140. async loadWorkbenchData() {
  141. try {
  142. const res = await api.matchmaker.getWorkbenchData()
  143. // 处理返回数据
  144. } catch (e) {
  145. console.error('加载工作台数据失败:', e)
  146. }
  147. },
  148. // 搜索
  149. handleSearch() {
  150. // 实现搜索功能
  151. },
  152. // 设置
  153. handleSettings() {
  154. // 实现设置功能
  155. },
  156. // 公告点击
  157. handleAnnouncement() {
  158. // 跳转到公告详情
  159. },
  160. // 导航到我的资源
  161. navigateToMyResources() {
  162. uni.navigateTo({
  163. url: '/pages/matchmaker-workbench/my-resources'
  164. })
  165. },
  166. // 导航到优质资源
  167. navigateToQualityResources() {
  168. uni.navigateTo({
  169. url: '/pages/matchmaker-workbench/quality-resources'
  170. })
  171. },
  172. // 导航到课程培训
  173. navigateToCourses() {
  174. uni.navigateTo({
  175. url: '/pages/courses/list'
  176. })
  177. },
  178. // 导航到积分商城
  179. navigateToPointsMall() {
  180. uni.navigateTo({
  181. url: '/pages/matchmaker-workbench/points-mall'
  182. })
  183. },
  184. // 导航到活动中心
  185. navigateToActivityCenter() {
  186. uni.navigateTo({
  187. url: '/pages/activities/list'
  188. })
  189. },
  190. // 导航到排行榜
  191. navigateToRanking() {
  192. uni.navigateTo({
  193. url: '/pages/matchmaker-workbench/ranking'
  194. })
  195. },
  196. // 导航到工作台
  197. navigateToWorkbench() {
  198. // 已在工作台,无需跳转
  199. },
  200. // 导航到消息
  201. navigateToMessage() {
  202. uni.navigateTo({
  203. url: '/pages/matchmaker-workbench/message'
  204. })
  205. },
  206. // 导航到我的
  207. navigateToMine() {
  208. uni.navigateTo({
  209. url: '/pages/matchmaker-workbench/mine'
  210. })
  211. }
  212. }
  213. }
  214. </script>
  215. <style lang="scss" scoped>
  216. .matchmaker-workbench {
  217. min-height: 100vh;
  218. background: #FFF9F9;
  219. display: flex;
  220. flex-direction: column;
  221. }
  222. /* 顶部导航栏 */
  223. .header {
  224. display: flex;
  225. align-items: center;
  226. justify-content: space-between;
  227. padding: 25rpx 30rpx;
  228. padding-top: calc(25rpx + env(safe-area-inset-top));
  229. background: #FFF9F9;
  230. border-bottom: 1rpx solid #F0F0F0;
  231. .header-title {
  232. font-size: 38rpx;
  233. font-weight: bold;
  234. color: #9C27B0;
  235. }
  236. .header-right {
  237. display: flex;
  238. align-items: center;
  239. gap: 20rpx;
  240. .search-icon,
  241. .settings-icon {
  242. width: 44rpx;
  243. height: 44rpx;
  244. background-size: contain;
  245. background-repeat: no-repeat;
  246. background-position: center;
  247. }
  248. .search-icon {
  249. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
  250. }
  251. .settings-icon {
  252. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"/></svg>');
  253. }
  254. }
  255. }
  256. .content {
  257. flex: 1;
  258. padding-bottom: 120rpx;
  259. }
  260. /* 欢迎卡片 */
  261. .welcome-card {
  262. display: flex;
  263. justify-content: space-between;
  264. align-items: center;
  265. padding: 30rpx;
  266. background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
  267. border-radius: 20rpx;
  268. margin: 20rpx;
  269. .welcome-text {
  270. display: flex;
  271. align-items: center;
  272. gap: 10rpx;
  273. .welcome-title {
  274. font-size: 32rpx;
  275. color: #333;
  276. }
  277. .heart-icon {
  278. font-size: 28rpx;
  279. }
  280. .matchmaker-name {
  281. font-size: 34rpx;
  282. font-weight: bold;
  283. color: #333;
  284. }
  285. }
  286. .avatar {
  287. width: 100rpx;
  288. height: 100rpx;
  289. border-radius: 50%;
  290. background: rgba(255, 255, 255, 0.3);
  291. }
  292. }
  293. /* 统计卡片 */
  294. .stats-cards {
  295. display: flex;
  296. gap: 20rpx;
  297. padding: 0 20rpx;
  298. margin-bottom: 20rpx;
  299. .stats-card {
  300. flex: 1;
  301. padding: 25rpx;
  302. border-radius: 15rpx;
  303. background: #FFFFFF;
  304. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  305. .stats-number {
  306. display: block;
  307. font-size: 48rpx;
  308. font-weight: bold;
  309. margin-bottom: 8rpx;
  310. }
  311. .stats-label {
  312. display: block;
  313. font-size: 28rpx;
  314. margin-bottom: 8rpx;
  315. }
  316. .stats-subtitle {
  317. display: block;
  318. font-size: 24rpx;
  319. color: #999;
  320. }
  321. .stats-extra {
  322. display: block;
  323. font-size: 22rpx;
  324. color: #999;
  325. margin-top: 8rpx;
  326. }
  327. &.success {
  328. .stats-number {
  329. color: #FF6B8A;
  330. }
  331. .stats-label {
  332. color: #333;
  333. }
  334. }
  335. &.points {
  336. .stats-number {
  337. color: #9C27B0;
  338. }
  339. .stats-label {
  340. color: #333;
  341. }
  342. }
  343. }
  344. }
  345. /* 公告卡片 */
  346. .announcement-card {
  347. display: flex;
  348. align-items: center;
  349. justify-content: space-between;
  350. padding: 25rpx;
  351. background: #FFF3E0;
  352. border-radius: 15rpx;
  353. margin: 0 20rpx 20rpx;
  354. position: relative;
  355. .announcement-tag {
  356. display: inline-block;
  357. background: #FF9800;
  358. color: #FFFFFF;
  359. font-size: 22rpx;
  360. padding: 6rpx 16rpx;
  361. border-radius: 12rpx;
  362. margin-right: 15rpx;
  363. font-weight: bold;
  364. }
  365. .announcement-content {
  366. flex: 1;
  367. font-size: 26rpx;
  368. color: #333;
  369. line-height: 1.4;
  370. }
  371. .arrow-right {
  372. width: 24rpx;
  373. height: 24rpx;
  374. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>');
  375. background-size: contain;
  376. background-repeat: no-repeat;
  377. background-position: center;
  378. margin-left: 15rpx;
  379. }
  380. }
  381. /* 功能菜单 */
  382. .menu-grid {
  383. display: grid;
  384. grid-template-columns: repeat(5, 1fr);
  385. gap: 20rpx;
  386. padding: 20rpx;
  387. background: #FFFFFF;
  388. border-radius: 15rpx;
  389. margin: 0 20rpx 20rpx;
  390. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  391. .menu-item {
  392. display: flex;
  393. flex-direction: column;
  394. align-items: center;
  395. gap: 12rpx;
  396. .menu-icon {
  397. width: 64rpx;
  398. height: 64rpx;
  399. border-radius: 50%;
  400. background-size: 40rpx 40rpx;
  401. background-repeat: no-repeat;
  402. background-position: center;
  403. }
  404. .menu-text {
  405. font-size: 24rpx;
  406. color: #333;
  407. }
  408. &.resources .menu-icon {
  409. background-color: #E8F5E8;
  410. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><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>');
  411. }
  412. &.quality .menu-icon {
  413. background-color: #FFF3E0;
  414. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF9800"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
  415. }
  416. &.courses .menu-icon {
  417. background-color: #E3F2FD;
  418. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232196F3"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 14H7v-2h8v2zm3-4H7v-2h11v2zm0-4H7V7h11v2z"/></svg>');
  419. }
  420. &.mall .menu-icon {
  421. background-color: #F3E5F5;
  422. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"/></svg>');
  423. }
  424. &.activity .menu-icon {
  425. background-color: #FFEBEE;
  426. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F44336"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>');
  427. }
  428. }
  429. }
  430. /* 本周最佳红娘 */
  431. .best-matchmaker-section {
  432. padding: 20rpx;
  433. background: #FFFFFF;
  434. border-radius: 15rpx;
  435. margin: 0 20rpx 20rpx;
  436. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  437. .section-header {
  438. display: flex;
  439. justify-content: space-between;
  440. align-items: center;
  441. margin-bottom: 25rpx;
  442. .section-title {
  443. display: flex;
  444. align-items: center;
  445. font-size: 30rpx;
  446. font-weight: bold;
  447. color: #333;
  448. .crown-icon {
  449. font-size: 32rpx;
  450. margin-right: 10rpx;
  451. }
  452. }
  453. .section-more {
  454. font-size: 24rpx;
  455. color: #9C27B0;
  456. }
  457. }
  458. .best-matchmaker-list {
  459. .display: flex;
  460. flex-direction: column;
  461. gap: 20rpx;
  462. .best-matchmaker-item {
  463. display: flex;
  464. align-items: center;
  465. gap: 20rpx;
  466. .rank-number {
  467. width: 40rpx;
  468. height: 40rpx;
  469. display: flex;
  470. align-items: center;
  471. justify-content: center;
  472. font-size: 24rpx;
  473. font-weight: bold;
  474. color: #FFF;
  475. border-radius: 50%;
  476. background: #FFD700;
  477. }
  478. .avatar-small {
  479. width: 60rpx;
  480. height: 60rpx;
  481. border-radius: 50%;
  482. background: #F0F0F0;
  483. }
  484. .matchmaker-info {
  485. flex: 1;
  486. .matchmaker-name-small {
  487. display: block;
  488. font-size: 28rpx;
  489. font-weight: bold;
  490. color: #333;
  491. margin-bottom: 4rpx;
  492. }
  493. .success-count {
  494. display: block;
  495. font-size: 22rpx;
  496. color: #999;
  497. }
  498. }
  499. .likes-info {
  500. display: flex;
  501. align-items: center;
  502. gap: 8rpx;
  503. .heart-small {
  504. font-size: 24rpx;
  505. }
  506. .like-count {
  507. font-size: 24rpx;
  508. color: #333;
  509. }
  510. }
  511. }
  512. }
  513. }
  514. /* 底部导航 */
  515. .tabbar {
  516. position: fixed;
  517. bottom: 0;
  518. left: 0;
  519. right: 0;
  520. height: 100rpx;
  521. background: #FFFFFF;
  522. border-top: 1rpx solid #F0F0F0;
  523. display: flex;
  524. justify-content: space-around;
  525. align-items: center;
  526. padding-bottom: env(safe-area-inset-bottom);
  527. .tabbar-item {
  528. display: flex;
  529. flex-direction: column;
  530. align-items: center;
  531. gap: 8rpx;
  532. padding: 10rpx 0;
  533. .tabbar-icon {
  534. width: 44rpx;
  535. height: 44rpx;
  536. background-size: contain;
  537. background-repeat: no-repeat;
  538. background-position: center;
  539. position: relative;
  540. .badge {
  541. position: absolute;
  542. top: -8rpx;
  543. right: -8rpx;
  544. background: #FF4444;
  545. color: #FFFFFF;
  546. font-size: 20rpx;
  547. font-weight: bold;
  548. width: 32rpx;
  549. height: 32rpx;
  550. display: flex;
  551. align-items: center;
  552. justify-content: center;
  553. border-radius: 16rpx;
  554. }
  555. }
  556. .tabbar-text {
  557. font-size: 20rpx;
  558. color: #999;
  559. }
  560. &.active {
  561. .tabbar-text {
  562. color: #9C27B0;
  563. font-weight: bold;
  564. }
  565. }
  566. &.home .tabbar-icon {
  567. background-image: url('data:image/svg+xml;utf8,<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>');
  568. }
  569. &.resources .tabbar-icon {
  570. background-image: url('data:image/svg+xml;utf8,<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>');
  571. }
  572. &.active.resources .tabbar-icon {
  573. background-image: url('data:image/svg+xml;utf8,<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>');
  574. }
  575. &.trophy .tabbar-icon {
  576. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M18 6l-1.42 1.42-1.59-1.59L13 8.17l-1.42-1.42L9 8.17l-1.59-1.59L6 6l3 3V18c0 1.1.9 2 2 2h4c1.1 0 2-.9 2-2V9l3-3zm-4 12H8v-7.5l4-4 4 4V18z"/></svg>');
  577. }
  578. &.active.trophy .tabbar-icon {
  579. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M18 6l-1.42 1.42-1.59-1.59L13 8.17l-1.42-1.42L9 8.17l-1.59-1.59L6 6l3 3V18c0 1.1.9 2 2 2h4c1.1 0 2-.9 2-2V9l3-3zm-4 12H8v-7.5l4-4 4 4V18z"/></svg>');
  580. }
  581. &.message .tabbar-icon {
  582. background-image: url('data:image/svg+xml;utf8,<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>');
  583. }
  584. &.active.message .tabbar-icon {
  585. background-image: url('data:image/svg+xml;utf8,<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>');
  586. }
  587. &.mine .tabbar-icon {
  588. background-image: url('data:image/svg+xml;utf8,<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>');
  589. }
  590. &.active.mine .tabbar-icon {
  591. background-image: url('data:image/svg+xml;utf8,<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>');
  592. }
  593. }
  594. }
  595. </style>