mine.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  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 home" @click="navigateToWorkbench">
  83. <view class="tabbar-icon"></view>
  84. <text class="tabbar-text">工作台</text>
  85. </view>
  86. <view class="tabbar-item resources" @click="navigateToMyResources">
  87. <view class="tabbar-icon"></view>
  88. <text class="tabbar-text">我的资源</text>
  89. </view>
  90. <view class="tabbar-item trophy" @click="navigateToRanking">
  91. <view class="tabbar-icon"></view>
  92. <text class="tabbar-text">排行榜</text>
  93. </view>
  94. <view class="tabbar-item message" @click="navigateToMessage">
  95. <view class="tabbar-icon">
  96. <view class="badge">3</view>
  97. </view>
  98. <text class="tabbar-text">消息</text>
  99. </view>
  100. <view class="tabbar-item mine active" @click="navigateToMine">
  101. <view class="tabbar-icon"></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. console.log('积分商城')
  149. uni.showToast({
  150. title: '积分商城开发中',
  151. icon: 'none'
  152. })
  153. },
  154. // 编辑资料
  155. handleEditProfile() {
  156. console.log('编辑资料')
  157. uni.navigateTo({
  158. url: '/pages/matchmaker-workbench/edit-profile'
  159. })
  160. },
  161. // 账户设置
  162. handleAccountSettings() {
  163. console.log('账户设置')
  164. uni.showToast({
  165. title: '账户设置开发中',
  166. icon: 'none'
  167. })
  168. },
  169. // 退出登录
  170. handleLogout() {
  171. uni.showModal({
  172. title: '退出登录',
  173. content: '确定要退出登录吗?',
  174. success: (res) => {
  175. if (res.confirm) {
  176. // 清除本地存储
  177. uni.removeStorageSync('token')
  178. uni.removeStorageSync('userInfo')
  179. // 跳转到登录页
  180. uni.navigateTo({
  181. url: '/pages/page3/page3'
  182. })
  183. }
  184. }
  185. })
  186. },
  187. // 导航到工作台
  188. navigateToWorkbench() {
  189. uni.navigateTo({
  190. url: '/pages/matchmaker-workbench/index'
  191. })
  192. },
  193. // 导航到我的资源
  194. navigateToMyResources() {
  195. uni.navigateTo({
  196. url: '/pages/matchmaker-workbench/my-resources'
  197. })
  198. },
  199. // 导航到排行榜
  200. navigateToRanking() {
  201. uni.navigateTo({
  202. url: '/pages/matchmaker-workbench/ranking'
  203. })
  204. },
  205. // 导航到消息
  206. navigateToMessage() {
  207. uni.navigateTo({
  208. url: '/pages/matchmaker-workbench/message'
  209. })
  210. },
  211. // 导航到我的
  212. navigateToMine() {
  213. // 已在我的页面,无需跳转
  214. }
  215. }
  216. }
  217. </script>
  218. <style lang="scss" scoped>
  219. .matchmaker-mine {
  220. min-height: 100vh;
  221. background: #FFF9F9;
  222. display: flex;
  223. flex-direction: column;
  224. }
  225. /* 顶部导航栏 */
  226. .header {
  227. display: flex;
  228. align-items: center;
  229. justify-content: space-between;
  230. padding: 25rpx 30rpx;
  231. padding-top: calc(25rpx + env(safe-area-inset-top));
  232. background: #FFF9F9;
  233. border-bottom: 1rpx solid #F0F0F0;
  234. .back-btn {
  235. width: 70rpx;
  236. height: 70rpx;
  237. display: flex;
  238. align-items: center;
  239. justify-content: center;
  240. background: rgba(240, 240, 240, 0.5);
  241. border-radius: 50%;
  242. 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>');
  243. background-size: 40rpx 40rpx;
  244. background-repeat: no-repeat;
  245. background-position: center;
  246. }
  247. .header-title {
  248. font-size: 38rpx;
  249. font-weight: bold;
  250. color: #333;
  251. }
  252. .placeholder {
  253. width: 70rpx;
  254. }
  255. }
  256. .content {
  257. flex: 1;
  258. padding: 20rpx 20rpx 120rpx;
  259. }
  260. /* 个人信息卡片 */
  261. .profile-card {
  262. background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  263. border-radius: 25rpx;
  264. padding: 35rpx;
  265. margin-bottom: 25rpx;
  266. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
  267. }
  268. .profile-header {
  269. display: flex;
  270. align-items: center;
  271. margin-bottom: 30rpx;
  272. .profile-avatar {
  273. width: 120rpx;
  274. height: 120rpx;
  275. border-radius: 50%;
  276. background: rgba(255, 255, 255, 0.5);
  277. 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>');
  278. background-size: 80rpx 80rpx;
  279. background-repeat: no-repeat;
  280. background-position: center;
  281. margin-right: 25rpx;
  282. }
  283. .profile-info {
  284. flex: 1;
  285. .profile-name {
  286. display: block;
  287. font-size: 36rpx;
  288. font-weight: bold;
  289. color: #333;
  290. margin-bottom: 10rpx;
  291. }
  292. .profile-badge {
  293. display: inline-block;
  294. background: #FFD700;
  295. color: #FFFFFF;
  296. font-size: 24rpx;
  297. font-weight: bold;
  298. padding: 6rpx 16rpx;
  299. border-radius: 15rpx;
  300. margin-bottom: 10rpx;
  301. }
  302. .profile-rating {
  303. display: block;
  304. font-size: 28rpx;
  305. color: #666;
  306. }
  307. }
  308. }
  309. /* 等级和积分 */
  310. .level-points {
  311. display: flex;
  312. align-items: center;
  313. justify-content: space-between;
  314. margin-bottom: 30rpx;
  315. .level-info {
  316. display: flex;
  317. align-items: center;
  318. gap: 10rpx;
  319. .level-icon {
  320. width: 44rpx;
  321. height: 44rpx;
  322. 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>');
  323. background-size: contain;
  324. background-repeat: no-repeat;
  325. background-position: center;
  326. }
  327. .level-name {
  328. font-size: 32rpx;
  329. font-weight: bold;
  330. color: #FF9800;
  331. }
  332. }
  333. .points-value {
  334. font-size: 48rpx;
  335. font-weight: bold;
  336. color: #E91E63;
  337. }
  338. .points-label {
  339. font-size: 28rpx;
  340. color: #666;
  341. }
  342. }
  343. /* 等级进度 */
  344. .level-progress {
  345. .progress-label {
  346. display: block;
  347. font-size: 26rpx;
  348. color: #333;
  349. margin-bottom: 15rpx;
  350. }
  351. .progress-bar {
  352. width: 100%;
  353. height: 12rpx;
  354. background: rgba(255, 255, 255, 0.5);
  355. border-radius: 6rpx;
  356. margin-bottom: 10rpx;
  357. .progress-fill {
  358. height: 100%;
  359. background: #FFB74D;
  360. border-radius: 6rpx;
  361. }
  362. }
  363. .progress-values {
  364. display: flex;
  365. justify-content: space-between;
  366. margin-bottom: 15rpx;
  367. .current-value,
  368. .target-value {
  369. font-size: 24rpx;
  370. color: #666;
  371. }
  372. }
  373. .upgrade-tip {
  374. display: block;
  375. background: rgba(255, 255, 255, 0.3);
  376. color: #E91E63;
  377. font-size: 26rpx;
  378. font-weight: bold;
  379. padding: 15rpx;
  380. border-radius: 15rpx;
  381. text-align: center;
  382. }
  383. }
  384. /* 功能菜单 */
  385. .function-grid {
  386. display: grid;
  387. grid-template-columns: repeat(4, 1fr);
  388. gap: 20rpx;
  389. background: #FFFFFF;
  390. border-radius: 25rpx;
  391. padding: 30rpx;
  392. margin-bottom: 25rpx;
  393. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  394. .function-item {
  395. display: flex;
  396. flex-direction: column;
  397. align-items: center;
  398. gap: 15rpx;
  399. .function-icon {
  400. width: 80rpx;
  401. height: 80rpx;
  402. border-radius: 20rpx;
  403. background-size: 50rpx 50rpx;
  404. background-repeat: no-repeat;
  405. background-position: center;
  406. display: flex;
  407. align-items: center;
  408. justify-content: center;
  409. font-size: 32rpx;
  410. font-weight: bold;
  411. color: #FFFFFF;
  412. }
  413. .function-icon.calendar {
  414. background: linear-gradient(135deg, #6BC5F8 0%, #87CEEB 100%);
  415. }
  416. .function-icon.resources {
  417. background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  418. 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>');
  419. }
  420. .function-icon.heart-book {
  421. background: linear-gradient(135deg, #FF6B9D 0%, #FF8EAB 100%);
  422. 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>');
  423. }
  424. .function-icon.money {
  425. background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  426. 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>');
  427. }
  428. .function-text {
  429. font-size: 26rpx;
  430. color: #333;
  431. }
  432. }
  433. }
  434. /* 设置选项 */
  435. .settings-section {
  436. background: #FFFFFF;
  437. border-radius: 25rpx;
  438. padding: 10rpx;
  439. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  440. .settings-item {
  441. display: flex;
  442. align-items: center;
  443. justify-content: space-between;
  444. padding: 25rpx;
  445. margin-bottom: 10rpx;
  446. background: #FFFFFF;
  447. border-radius: 15rpx;
  448. &:last-child {
  449. margin-bottom: 0;
  450. }
  451. .settings-icon {
  452. width: 44rpx;
  453. height: 44rpx;
  454. background-size: contain;
  455. background-repeat: no-repeat;
  456. background-position: center;
  457. margin-right: 20rpx;
  458. }
  459. .settings-icon.user {
  460. 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>');
  461. }
  462. .settings-icon.gear {
  463. 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>');
  464. }
  465. .settings-icon.logout {
  466. 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>');
  467. }
  468. .settings-text {
  469. flex: 1;
  470. font-size: 30rpx;
  471. color: #333;
  472. }
  473. .arrow-right {
  474. width: 24rpx;
  475. height: 24rpx;
  476. 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>');
  477. background-size: contain;
  478. background-repeat: no-repeat;
  479. background-position: center;
  480. }
  481. }
  482. }
  483. /* 底部导航 */
  484. .tabbar {
  485. position: fixed;
  486. bottom: 0;
  487. left: 0;
  488. right: 0;
  489. height: 100rpx;
  490. background: #FFFFFF;
  491. border-top: 1rpx solid #F0F0F0;
  492. display: flex;
  493. justify-content: space-around;
  494. align-items: center;
  495. padding-bottom: env(safe-area-inset-bottom);
  496. .tabbar-item {
  497. display: flex;
  498. flex-direction: column;
  499. align-items: center;
  500. gap: 8rpx;
  501. padding: 10rpx 0;
  502. .tabbar-icon {
  503. width: 44rpx;
  504. height: 44rpx;
  505. background-size: contain;
  506. background-repeat: no-repeat;
  507. background-position: center;
  508. position: relative;
  509. .badge {
  510. position: absolute;
  511. top: -8rpx;
  512. right: -8rpx;
  513. background: #FF4444;
  514. color: #FFFFFF;
  515. font-size: 20rpx;
  516. font-weight: bold;
  517. width: 32rpx;
  518. height: 32rpx;
  519. display: flex;
  520. align-items: center;
  521. justify-content: center;
  522. border-radius: 16rpx;
  523. }
  524. }
  525. .tabbar-text {
  526. font-size: 20rpx;
  527. color: #999;
  528. }
  529. &.active {
  530. .tabbar-text {
  531. color: #9C27B0;
  532. font-weight: bold;
  533. }
  534. }
  535. &.home .tabbar-icon {
  536. 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>');
  537. }
  538. &.active.home .tabbar-icon {
  539. 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>');
  540. }
  541. &.resources .tabbar-icon {
  542. 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>');
  543. }
  544. &.active.resources .tabbar-icon {
  545. 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>');
  546. }
  547. &.trophy .tabbar-icon {
  548. 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>');
  549. }
  550. &.active.trophy .tabbar-icon {
  551. 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>');
  552. }
  553. &.message .tabbar-icon {
  554. 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>');
  555. }
  556. &.active.message .tabbar-icon {
  557. 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>');
  558. }
  559. &.mine .tabbar-icon {
  560. 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>');
  561. }
  562. &.mine.active .tabbar-icon {
  563. 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>');
  564. }
  565. }
  566. }
  567. </style>