index.vue 19 KB

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