mine.vue 18 KB

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