mine.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. <template>
  2. <view class="matchmaker-mine">
  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. <scroll-view scroll-y class="content">
  10. <!-- 个人信息卡片 -->
  11. <view class="profile-card">
  12. <view class="profile-header">
  13. <view class="profile-avatar"></view>
  14. <view class="profile-info">
  15. <text class="profile-name">高红娘</text>
  16. <view class="profile-badge">兼职红娘</view>
  17. <text class="profile-rating">红娘评分 5.0分</text>
  18. </view>
  19. </view>
  20. <!-- 等级和积分 -->
  21. <view class="level-points">
  22. <view class="level-info">
  23. <view class="level-icon"></view>
  24. <text class="level-name">青铜</text>
  25. </view>
  26. <text class="points-value">23</text>
  27. <text class="points-label">积分</text>
  28. </view>
  29. <!-- 等级进度 -->
  30. <view class="level-progress">
  31. <text class="progress-label">距离下一等级</text>
  32. <view class="progress-bar">
  33. <view class="progress-fill" style="width: 23%;"></view>
  34. </view>
  35. <view class="progress-values">
  36. <text class="current-value">当前23</text>
  37. <text class="target-value">目标100</text>
  38. </view>
  39. <view class="upgrade-tip">再获得77积分即可晋升白银等级</view>
  40. </view>
  41. </view>
  42. <!-- 功能菜单 -->
  43. <view class="function-grid">
  44. <view class="function-item" @click="handleSignIn">
  45. <view class="function-icon calendar">22</view>
  46. <text class="function-text">签到</text>
  47. </view>
  48. <view class="function-item" @click="handleMyResources">
  49. <view class="function-icon resources"></view>
  50. <text class="function-text">我的资源</text>
  51. </view>
  52. <view class="function-item" @click="handleActivityCenter">
  53. <view class="function-icon heart-book"></view>
  54. <text class="function-text">活动中心</text>
  55. </view>
  56. <view class="function-item" @click="handlePointsMall">
  57. <view class="function-icon money"></view>
  58. <text class="function-text">积分商城</text>
  59. </view>
  60. </view>
  61. <!-- 设置选项 -->
  62. <view class="settings-section">
  63. <view class="settings-item" @click="handleEditProfile">
  64. <view class="settings-icon user"></view>
  65. <text class="settings-text">编辑资料</text>
  66. <view class="arrow-right"></view>
  67. </view>
  68. <view class="settings-item" @click="handleAccountSettings">
  69. <view class="settings-icon gear"></view>
  70. <text class="settings-text">账户设置</text>
  71. <view class="arrow-right"></view>
  72. </view>
  73. <view class="settings-item" @click="handleLogout">
  74. <view class="settings-icon logout"></view>
  75. <text class="settings-text">退出登录</text>
  76. <view class="arrow-right"></view>
  77. </view>
  78. </view>
  79. </scroll-view>
  80. <!-- 底部导航 -->
  81. <view class="tabbar">
  82. <view class="tabbar-item" @click="navigateToWorkbench">
  83. <view class="tabbar-icon home"></view>
  84. <text class="tabbar-text">工作台</text>
  85. </view>
  86. <view class="tabbar-item" @click="navigateToMyResources">
  87. <view class="tabbar-icon resources"></view>
  88. <text class="tabbar-text">我的资源</text>
  89. </view>
  90. <view class="tabbar-item" @click="navigateToRanking">
  91. <view class="tabbar-icon trophy"></view>
  92. <text class="tabbar-text">排行榜</text>
  93. </view>
  94. <view class="tabbar-item" @click="navigateToMessage">
  95. <view class="tabbar-icon message">
  96. <view class="badge">3</view>
  97. </view>
  98. <text class="tabbar-text">消息</text>
  99. </view>
  100. <view class="tabbar-item active" @click="navigateToMine">
  101. <view class="tabbar-icon mine"></view>
  102. <text class="tabbar-text">我的</text>
  103. </view>
  104. </view>
  105. </view>
  106. </template>
  107. <script>
  108. export default {
  109. data() {
  110. return {
  111. profile: {
  112. name: '高红娘',
  113. badge: '兼职红娘',
  114. rating: 5.0,
  115. level: '青铜',
  116. points: 23,
  117. targetPoints: 100
  118. }
  119. }
  120. },
  121. methods: {
  122. // 返回上一页
  123. goBack() {
  124. uni.navigateBack()
  125. },
  126. // 签到
  127. handleSignIn() {
  128. console.log('签到')
  129. uni.showToast({
  130. title: '签到成功',
  131. icon: 'success'
  132. })
  133. },
  134. // 我的资源
  135. handleMyResources() {
  136. uni.navigateTo({
  137. url: '/pages/matchmaker-workbench/my-resources'
  138. })
  139. },
  140. // 活动中心
  141. handleActivityCenter() {
  142. uni.navigateTo({
  143. url: '/pages/activities/list'
  144. })
  145. },
  146. // 积分商城
  147. handlePointsMall() {
  148. uni.navigateTo({
  149. url: '/pages/matchmaker-workbench/points-mall'
  150. })
  151. },
  152. // 编辑资料
  153. handleEditProfile() {
  154. console.log('编辑资料')
  155. uni.navigateTo({
  156. url: '/pages/matchmaker-workbench/edit-profile'
  157. })
  158. },
  159. // 账户设置
  160. handleAccountSettings() {
  161. console.log('账户设置')
  162. uni.showToast({
  163. title: '账户设置开发中',
  164. icon: 'none'
  165. })
  166. },
  167. // 退出登录
  168. handleLogout() {
  169. uni.showModal({
  170. title: '退出登录',
  171. content: '确定要退出登录吗?',
  172. success: (res) => {
  173. if (res.confirm) {
  174. // 清除本地存储
  175. uni.removeStorageSync('token')
  176. uni.removeStorageSync('userInfo')
  177. // 跳转到登录页,使用redirectTo确保无法返回
  178. uni.redirectTo({
  179. url: '/pages/page3/page3'
  180. })
  181. }
  182. }
  183. })
  184. },
  185. // 导航到工作台
  186. navigateToWorkbench() {
  187. uni.navigateTo({
  188. url: '/pages/matchmaker-workbench/index'
  189. })
  190. },
  191. // 导航到我的资源
  192. navigateToMyResources() {
  193. uni.navigateTo({
  194. url: '/pages/matchmaker-workbench/my-resources'
  195. })
  196. },
  197. // 导航到排行榜
  198. navigateToRanking() {
  199. uni.navigateTo({
  200. url: '/pages/matchmaker-workbench/ranking'
  201. })
  202. },
  203. // 导航到消息
  204. navigateToMessage() {
  205. uni.navigateTo({
  206. url: '/pages/matchmaker-workbench/message'
  207. })
  208. },
  209. // 导航到我的
  210. navigateToMine() {
  211. // 已在我的页面,无需跳转
  212. }
  213. }
  214. }
  215. </script>
  216. <style lang="scss" scoped>
  217. .matchmaker-mine {
  218. min-height: 100vh;
  219. background: #FFF9F9;
  220. display: flex;
  221. flex-direction: column;
  222. }
  223. /* 顶部导航栏 */
  224. .header {
  225. display: flex;
  226. align-items: center;
  227. justify-content: space-between;
  228. padding: 25rpx 30rpx;
  229. padding-top: calc(25rpx + env(safe-area-inset-top));
  230. background: #FFF9F9;
  231. border-bottom: 1rpx solid #F0F0F0;
  232. .back-btn {
  233. width: 70rpx;
  234. height: 70rpx;
  235. display: flex;
  236. align-items: center;
  237. justify-content: center;
  238. background: rgba(240, 240, 240, 0.5);
  239. border-radius: 50%;
  240. 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>');
  241. background-size: 40rpx 40rpx;
  242. background-repeat: no-repeat;
  243. background-position: center;
  244. }
  245. .header-title {
  246. font-size: 38rpx;
  247. font-weight: bold;
  248. color: #333;
  249. }
  250. .placeholder {
  251. width: 70rpx;
  252. }
  253. }
  254. .content {
  255. flex: 1;
  256. padding: 20rpx 20rpx 120rpx;
  257. }
  258. /* 个人信息卡片 */
  259. .profile-card {
  260. background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  261. border-radius: 25rpx;
  262. padding: 35rpx;
  263. margin-bottom: 25rpx;
  264. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
  265. }
  266. .profile-header {
  267. display: flex;
  268. align-items: center;
  269. margin-bottom: 30rpx;
  270. .profile-avatar {
  271. width: 120rpx;
  272. height: 120rpx;
  273. border-radius: 50%;
  274. background: rgba(255, 255, 255, 0.5);
  275. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E91E63"><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>');
  276. background-size: 80rpx 80rpx;
  277. background-repeat: no-repeat;
  278. background-position: center;
  279. margin-right: 25rpx;
  280. }
  281. .profile-info {
  282. flex: 1;
  283. .profile-name {
  284. display: block;
  285. font-size: 36rpx;
  286. font-weight: bold;
  287. color: #333;
  288. margin-bottom: 10rpx;
  289. }
  290. .profile-badge {
  291. display: inline-block;
  292. background: #FFD700;
  293. color: #FFFFFF;
  294. font-size: 24rpx;
  295. font-weight: bold;
  296. padding: 6rpx 16rpx;
  297. border-radius: 15rpx;
  298. margin-bottom: 10rpx;
  299. }
  300. .profile-rating {
  301. display: block;
  302. font-size: 28rpx;
  303. color: #666;
  304. }
  305. }
  306. }
  307. /* 等级和积分 */
  308. .level-points {
  309. display: flex;
  310. align-items: center;
  311. justify-content: space-between;
  312. margin-bottom: 30rpx;
  313. .level-info {
  314. display: flex;
  315. align-items: center;
  316. gap: 10rpx;
  317. .level-icon {
  318. width: 44rpx;
  319. height: 44rpx;
  320. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><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>');
  321. background-size: contain;
  322. background-repeat: no-repeat;
  323. background-position: center;
  324. }
  325. .level-name {
  326. font-size: 32rpx;
  327. font-weight: bold;
  328. color: #FF9800;
  329. }
  330. }
  331. .points-value {
  332. font-size: 48rpx;
  333. font-weight: bold;
  334. color: #E91E63;
  335. }
  336. .points-label {
  337. font-size: 28rpx;
  338. color: #666;
  339. }
  340. }
  341. /* 等级进度 */
  342. .level-progress {
  343. .progress-label {
  344. display: block;
  345. font-size: 26rpx;
  346. color: #333;
  347. margin-bottom: 15rpx;
  348. }
  349. .progress-bar {
  350. width: 100%;
  351. height: 12rpx;
  352. background: rgba(255, 255, 255, 0.5);
  353. border-radius: 6rpx;
  354. margin-bottom: 10rpx;
  355. .progress-fill {
  356. height: 100%;
  357. background: #FFB74D;
  358. border-radius: 6rpx;
  359. }
  360. }
  361. .progress-values {
  362. display: flex;
  363. justify-content: space-between;
  364. margin-bottom: 15rpx;
  365. .current-value,
  366. .target-value {
  367. font-size: 24rpx;
  368. color: #666;
  369. }
  370. }
  371. .upgrade-tip {
  372. display: block;
  373. background: rgba(255, 255, 255, 0.3);
  374. color: #E91E63;
  375. font-size: 26rpx;
  376. font-weight: bold;
  377. padding: 15rpx;
  378. border-radius: 15rpx;
  379. text-align: center;
  380. }
  381. }
  382. /* 功能菜单 */
  383. .function-grid {
  384. display: grid;
  385. grid-template-columns: repeat(4, 1fr);
  386. gap: 20rpx;
  387. background: #FFFFFF;
  388. border-radius: 25rpx;
  389. padding: 30rpx;
  390. margin-bottom: 25rpx;
  391. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  392. .function-item {
  393. display: flex;
  394. flex-direction: column;
  395. align-items: center;
  396. gap: 15rpx;
  397. .function-icon {
  398. width: 80rpx;
  399. height: 80rpx;
  400. border-radius: 20rpx;
  401. background-size: 50rpx 50rpx;
  402. background-repeat: no-repeat;
  403. background-position: center;
  404. display: flex;
  405. align-items: center;
  406. justify-content: center;
  407. font-size: 32rpx;
  408. font-weight: bold;
  409. color: #FFFFFF;
  410. }
  411. .function-icon.calendar {
  412. background: linear-gradient(135deg, #6BC5F8 0%, #87CEEB 100%);
  413. }
  414. .function-icon.resources {
  415. background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  416. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><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>');
  417. }
  418. .function-icon.heart-book {
  419. background: linear-gradient(135deg, #FF6B9D 0%, #FF8EAB 100%);
  420. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
  421. }
  422. .function-icon.money {
  423. background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  424. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
  425. }
  426. .function-text {
  427. font-size: 26rpx;
  428. color: #333;
  429. }
  430. }
  431. }
  432. /* 设置选项 */
  433. .settings-section {
  434. background: #FFFFFF;
  435. border-radius: 25rpx;
  436. padding: 10rpx;
  437. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  438. .settings-item {
  439. display: flex;
  440. align-items: center;
  441. justify-content: space-between;
  442. padding: 25rpx;
  443. margin-bottom: 10rpx;
  444. background: #FFFFFF;
  445. border-radius: 15rpx;
  446. &:last-child {
  447. margin-bottom: 0;
  448. }
  449. .settings-icon {
  450. width: 44rpx;
  451. height: 44rpx;
  452. background-size: contain;
  453. background-repeat: no-repeat;
  454. background-position: center;
  455. margin-right: 20rpx;
  456. }
  457. .settings-icon.user {
  458. 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>');
  459. }
  460. .settings-icon.gear {
  461. 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="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>');
  462. }
  463. .settings-icon.logout {
  464. 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="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>');
  465. }
  466. .settings-text {
  467. flex: 1;
  468. font-size: 30rpx;
  469. color: #333;
  470. }
  471. .arrow-right {
  472. width: 24rpx;
  473. height: 24rpx;
  474. 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>');
  475. background-size: contain;
  476. background-repeat: no-repeat;
  477. background-position: center;
  478. }
  479. }
  480. }
  481. /* 底部导航 */
  482. .tabbar {
  483. position: fixed;
  484. bottom: 0;
  485. left: 0;
  486. right: 0;
  487. height: 100rpx;
  488. background: #FFFFFF;
  489. border-top: 1rpx solid #F0F0F0;
  490. display: flex;
  491. justify-content: space-around;
  492. align-items: center;
  493. padding-bottom: env(safe-area-inset-bottom);
  494. .tabbar-item {
  495. display: flex;
  496. flex-direction: column;
  497. align-items: center;
  498. gap: 8rpx;
  499. padding: 10rpx 0;
  500. .tabbar-icon {
  501. width: 44rpx;
  502. height: 44rpx;
  503. background-size: contain;
  504. background-repeat: no-repeat;
  505. background-position: center;
  506. position: relative;
  507. .badge {
  508. position: absolute;
  509. top: -8rpx;
  510. right: -8rpx;
  511. background: #FF4444;
  512. color: #FFFFFF;
  513. font-size: 20rpx;
  514. font-weight: bold;
  515. width: 32rpx;
  516. height: 32rpx;
  517. display: flex;
  518. align-items: center;
  519. justify-content: center;
  520. border-radius: 16rpx;
  521. }
  522. }
  523. .tabbar-text {
  524. font-size: 20rpx;
  525. color: #999;
  526. }
  527. &.active {
  528. .tabbar-text {
  529. color: #9C27B0;
  530. font-weight: bold;
  531. }
  532. }
  533. &.home .tabbar-icon {
  534. 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="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
  535. }
  536. &.active.home .tabbar-icon {
  537. 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>');
  538. }
  539. &.resources .tabbar-icon {
  540. 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>');
  541. }
  542. &.active.resources .tabbar-icon {
  543. 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>');
  544. }
  545. &.trophy .tabbar-icon {
  546. 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>');
  547. }
  548. &.active.trophy .tabbar-icon {
  549. 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>');
  550. }
  551. &.message .tabbar-icon {
  552. 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>');
  553. }
  554. &.active.message .tabbar-icon {
  555. 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>');
  556. }
  557. &.mine .tabbar-icon {
  558. 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>');
  559. }
  560. }
  561. }
  562. </style>