index.vue 19 KB

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