precise-match.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. <template>
  2. <view class="precise-match">
  3. <!-- 顶部导航栏 -->
  4. <view class="header">
  5. <view class="back-icon" @click="handleBack"></view>
  6. <text class="header-title">精准匹配</text>
  7. <view class="header-right"></view>
  8. </view>
  9. <!-- 加载中 -->
  10. <view class="loading-container" v-if="loading">
  11. <text class="loading-text">正在匹配中...</text>
  12. </view>
  13. <!-- 匹配客户列表 -->
  14. <scroll-view scroll-y class="match-list" v-if="!loading">
  15. <view class="match-client" v-for="(client, index) in matchClients" :key="client.id || index">
  16. <!-- 匹配度标签 -->
  17. <view class="match-score-badge" v-if="client.matchScore">
  18. <text class="score-text">匹配度: {{ Math.round(client.matchScore) }}%</text>
  19. </view>
  20. <view class="client-info">
  21. <image :src="client.avatar" class="client-avatar" mode="aspectFill"></image>
  22. <view class="info-content">
  23. <view class="client-name">
  24. <text class="name-text">{{ client.name }}</text>
  25. <text class="client-gender">{{ client.gender }}</text>
  26. <text class="client-status">{{ client.status }}</text>
  27. </view>
  28. <view class="client-tags">
  29. <text class="tag" v-for="(tag, tagIndex) in client.tags" :key="tagIndex">{{ tag }}</text>
  30. </view>
  31. <view class="user-details" v-if="client.age || client.height || client.diploma">
  32. <text class="detail-item" v-if="client.age">{{ client.age }}岁</text>
  33. <text class="detail-item" v-if="client.height">{{ client.height }}cm</text>
  34. <text class="detail-item" v-if="client.diploma">{{ client.diploma }}</text>
  35. <text class="detail-item" v-if="client.income">{{ client.income }}</text>
  36. <text class="detail-item" v-if="client.occupation">{{ client.occupation }}</text>
  37. </view>
  38. <view class="requirement">
  39. <text class="requirement-label">择偶要求:</text>
  40. <text class="requirement-content">{{ client.requirement }}</text>
  41. </view>
  42. <view class="contact-info">
  43. <text class="contact-label">联系方式:</text>
  44. <text class="contact-number">{{ client.contact || '暂无' }}</text>
  45. <text class="copy-btn" @click="handleCopy(index)">复制</text>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="action-btn" @click="handleChat(index)">牵线聊聊</view>
  50. </view>
  51. </scroll-view>
  52. <!-- 底部导航 -->
  53. <view class="tabbar">
  54. <view class="tabbar-item" @click="handleHome">
  55. <view class="tabbar-icon home"></view>
  56. <text class="tabbar-text">工作台</text>
  57. </view>
  58. <view class="tabbar-item active" @click="handleMyResources">
  59. <view class="tabbar-icon resources"></view>
  60. <text class="tabbar-text">我的资源</text>
  61. </view>
  62. <view class="tabbar-item" @click="handleRanking">
  63. <view class="tabbar-icon trophy"></view>
  64. <text class="tabbar-text">排行榜</text>
  65. </view>
  66. <!-- <view class="tabbar-item" @click="handleMessage">
  67. <view class="tabbar-icon message">
  68. <text class="badge">3</text>
  69. </view>
  70. <text class="tabbar-text">消息</text>
  71. </view> -->
  72. <view class="tabbar-item" @click="handleMine">
  73. <view class="tabbar-icon mine"></view>
  74. <text class="tabbar-text">我的</text>
  75. </view>
  76. </view>
  77. </view>
  78. </template>
  79. <script>
  80. export default {
  81. name: 'precise-match',
  82. data() {
  83. return {
  84. resourceId: null,
  85. matchClients: [],
  86. loading: false
  87. }
  88. },
  89. onLoad(options) {
  90. if (options.resourceId) {
  91. this.loadMatchClients(options.resourceId)
  92. } else if (options.id) {
  93. this.loadMatchClients(options.id)
  94. } else {
  95. uni.showToast({
  96. title: '缺少资源ID参数',
  97. icon: 'none'
  98. })
  99. setTimeout(() => {
  100. uni.navigateBack()
  101. }, 1500)
  102. }
  103. },
  104. methods: {
  105. // 返回上一页
  106. handleBack() {
  107. uni.navigateBack()
  108. },
  109. // 复制联系方式
  110. handleCopy(index) {
  111. // 从matchClients数组中获取client对象
  112. if (index === undefined || index === null || index < 0 || index >= this.matchClients.length) {
  113. uni.showToast({
  114. title: '数据错误',
  115. icon: 'none'
  116. })
  117. return
  118. }
  119. const client = this.matchClients[index]
  120. if (!client) {
  121. uni.showToast({
  122. title: '数据错误',
  123. icon: 'none'
  124. })
  125. return
  126. }
  127. // 优先使用完整手机号(originalPhone),如果没有则使用脱敏的手机号
  128. let phoneToCopy = ''
  129. // 优先使用originalPhone(完整手机号)
  130. const originalPhone = client.originalPhone || client.original_phone || client.originalphone
  131. if (originalPhone && typeof originalPhone === 'string' && originalPhone.trim() !== '') {
  132. phoneToCopy = originalPhone.trim()
  133. } else {
  134. // 如果没有originalPhone,尝试从脱敏的手机号中提取(但这样无法获取完整号码)
  135. if (client.contact) {
  136. try {
  137. const contactStr = String(client.contact || '')
  138. if (contactStr && contactStr.trim() !== '') {
  139. // 去除星号(但这样只能得到部分号码,不是完整号码)
  140. const extracted = contactStr.replace(/\*+/g, '').trim()
  141. if (extracted.length >= 11) {
  142. phoneToCopy = extracted
  143. }
  144. }
  145. } catch (e) {
  146. }
  147. }
  148. }
  149. // 检查是否为空
  150. if (!phoneToCopy || phoneToCopy === '') {
  151. uni.showToast({
  152. title: '联系方式为空',
  153. icon: 'none'
  154. })
  155. return
  156. }
  157. // 复制到剪贴板
  158. uni.setClipboardData({
  159. data: phoneToCopy,
  160. success: () => {
  161. uni.showToast({
  162. title: '复制成功',
  163. icon: 'success'
  164. })
  165. },
  166. fail: () => {
  167. uni.showToast({
  168. title: '复制失败',
  169. icon: 'none'
  170. })
  171. }
  172. })
  173. },
  174. // 牵线聊聊
  175. handleChat(index) {
  176. // 验证 index 是否有效
  177. if (index === null || index === undefined || index < 0 || index >= this.matchClients.length) {
  178. uni.showToast({
  179. title: '数据索引错误',
  180. icon: 'none'
  181. })
  182. return
  183. }
  184. // 从数组中获取 client 对象
  185. const client = this.matchClients[index]
  186. // 验证 client 对象是否存在
  187. if (!client) {
  188. uni.showToast({
  189. title: '客户信息为空,请刷新重试',
  190. icon: 'none',
  191. duration: 3000
  192. })
  193. return
  194. }
  195. // 尝试多种方式获取用户ID
  196. let targetUserId = null
  197. // 方式1: 使用 id 字段
  198. if (client.id !== null && client.id !== undefined && client.id !== '') {
  199. targetUserId = String(client.id)
  200. }
  201. // 方式2: 使用 userId 字段(后端原始字段)
  202. else if (client.userId !== null && client.userId !== undefined && client.userId !== '') {
  203. targetUserId = String(client.userId)
  204. }
  205. // 方式3: 使用 user_id 字段(下划线格式)
  206. else if (client.user_id !== null && client.user_id !== undefined && client.user_id !== '') {
  207. targetUserId = String(client.user_id)
  208. }
  209. // 如果仍然没有获取到用户ID
  210. if (!targetUserId || targetUserId === 'null' || targetUserId === 'undefined' || targetUserId === '') {
  211. uni.showToast({
  212. title: '无法获取用户ID,请刷新重试',
  213. icon: 'none',
  214. duration: 3000
  215. })
  216. return
  217. }
  218. // 获取其他必要信息
  219. const targetUserName = client.name || client.nickname || '用户'
  220. const targetUserAvatar = client.avatar || client.avatarUrl || '/static/default-avatar.svg'
  221. // 跳转到聊天页面
  222. // 注意:fromMatchmaker=1 表示来自红娘工作台,会跳过消息限制和审核
  223. uni.navigateTo({
  224. url: `/pages/message/chat?targetUserId=${targetUserId}&targetUserName=${encodeURIComponent(targetUserName)}&targetUserAvatar=${encodeURIComponent(targetUserAvatar)}&fromMatchmaker=1`,
  225. success: () => {
  226. },
  227. fail: (err) => {
  228. uni.showToast({
  229. title: '跳转失败,请重试',
  230. icon: 'none'
  231. })
  232. }
  233. })
  234. },
  235. // 从API加载匹配客户信息
  236. async loadMatchClients(resourceId) {
  237. if (!resourceId) {
  238. return
  239. }
  240. this.resourceId = resourceId
  241. this.loading = true
  242. try {
  243. const baseUrl = process.env.NODE_ENV === 'development'
  244. ? 'https://api.zhongruanke.cn/api' // 开发环境 - 通过网关
  245. : 'https://your-domain.com/api' // 生产环境
  246. // 加载匹配结果
  247. const [matchError, matchRes] = await uni.request({
  248. url: `${baseUrl}/my-resource/precise-match/${resourceId}`,
  249. method: 'GET'
  250. })
  251. this.loading = false
  252. if (matchError) {
  253. uni.showToast({
  254. title: '加载失败',
  255. icon: 'none'
  256. })
  257. return
  258. }
  259. if (matchRes.statusCode === 200 && matchRes.data && matchRes.data.code === 200) {
  260. const matchList = matchRes.data.data || []
  261. // 转换数据格式
  262. this.matchClients = matchList.map((item, index) => {
  263. // 确保 originalPhone 被正确映射
  264. let originalPhoneValue = ''
  265. if (item.originalPhone !== null && item.originalPhone !== undefined) {
  266. originalPhoneValue = String(item.originalPhone).trim()
  267. } else if (item.original_phone !== null && item.original_phone !== undefined) {
  268. originalPhoneValue = String(item.original_phone).trim()
  269. }
  270. // 获取用户ID,支持多种字段名
  271. let userId = null
  272. if (item.userId !== null && item.userId !== undefined) {
  273. userId = item.userId
  274. } else if (item.user_id !== null && item.user_id !== undefined) {
  275. userId = item.user_id
  276. } else if (item.id !== null && item.id !== undefined) {
  277. userId = item.id
  278. }
  279. const mappedItem = {
  280. id: userId, // 使用获取到的userId
  281. userId: userId, // 同时保留原始字段,方便容错
  282. name: item.nickname || item.name || '未知',
  283. nickname: item.nickname || item.name, // 保留原始字段
  284. gender: item.gender === 1 ? '男' : item.gender === 2 ? '女' : '未知',
  285. status: '未匹配',
  286. tags: item.tags || [],
  287. avatar: item.avatarUrl || item.avatar || 'https://via.placeholder.com/150',
  288. avatarUrl: item.avatarUrl || item.avatar, // 保留原始字段
  289. requirement: item.requirement || '暂无要求',
  290. contact: (item.phone && typeof item.phone === 'string') ? item.phone : (item.phone ? String(item.phone) : ''),
  291. originalPhone: originalPhoneValue,
  292. matchScore: item.matchScore || 0,
  293. age: item.age,
  294. height: item.height,
  295. diploma: item.diploma,
  296. income: item.income,
  297. occupation: item.occupation,
  298. address: item.address
  299. }
  300. return mappedItem
  301. })
  302. if (this.matchClients.length === 0) {
  303. uni.showToast({
  304. title: '未找到匹配的用户',
  305. icon: 'none'
  306. })
  307. }
  308. } else {
  309. const errorMsg = matchRes.data?.message || '加载失败'
  310. uni.showToast({
  311. title: errorMsg,
  312. icon: 'none'
  313. })
  314. }
  315. } catch (e) {
  316. this.loading = false
  317. uni.showToast({
  318. title: '加载失败,请稍后重试',
  319. icon: 'none'
  320. })
  321. }
  322. },
  323. // 底部导航 - 工作台
  324. handleHome() {
  325. uni.navigateTo({
  326. url: '/pages/matchmaker-workbench/index'
  327. })
  328. },
  329. // 底部导航 - 我的资源
  330. handleMyResources() {
  331. uni.navigateTo({
  332. url: '/pages/matchmaker-workbench/my-resources'
  333. })
  334. },
  335. // 底部导航 - 排行榜
  336. handleRanking() {
  337. uni.navigateTo({
  338. url: '/pages/matchmaker-workbench/ranking'
  339. })
  340. },
  341. // 底部导航 - 消息
  342. handleMessage() {
  343. uni.navigateTo({
  344. url: '/pages/matchmaker-workbench/message'
  345. })
  346. },
  347. // 底部导航 - 我的
  348. handleMine() {
  349. uni.navigateTo({
  350. url: '/pages/matchmaker-workbench/mine'
  351. })
  352. }
  353. }
  354. }
  355. </script>
  356. <style lang="scss" scoped>
  357. .precise-match {
  358. min-height: 100vh;
  359. background-color: #FFF9F9;
  360. padding-top: 90rpx;
  361. }
  362. /* 顶部导航栏 */
  363. .header {
  364. position: fixed;
  365. top: 0;
  366. left: 0;
  367. right: 0;
  368. height: 90rpx;
  369. display: flex;
  370. align-items: center;
  371. justify-content: space-between;
  372. padding: 0 20rpx;
  373. background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
  374. z-index: 999;
  375. .back-icon {
  376. width: 44rpx;
  377. height: 44rpx;
  378. 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>');
  379. background-size: contain;
  380. background-repeat: no-repeat;
  381. background-position: center;
  382. }
  383. .header-title {
  384. font-size: 38rpx;
  385. font-weight: bold;
  386. color: #333;
  387. }
  388. .header-right {
  389. width: 44rpx;
  390. }
  391. }
  392. /* 匹配客户列表 */
  393. .match-list {
  394. padding: 20rpx;
  395. padding-bottom: 120rpx;
  396. .match-client {
  397. background-color: #FFFFFF;
  398. border-radius: 20rpx;
  399. margin-bottom: 20rpx;
  400. padding: 25rpx;
  401. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  402. .client-info {
  403. display: flex;
  404. align-items: flex-start;
  405. margin-bottom: 20rpx;
  406. .client-avatar {
  407. width: 120rpx;
  408. height: 120rpx;
  409. border-radius: 50%;
  410. margin-right: 20rpx;
  411. background-color: #F5F5F5;
  412. }
  413. .info-content {
  414. flex: 1;
  415. .client-name {
  416. display: flex;
  417. align-items: center;
  418. gap: 15rpx;
  419. margin-bottom: 10rpx;
  420. .name-text {
  421. font-size: 32rpx;
  422. font-weight: bold;
  423. color: #333;
  424. }
  425. .client-gender {
  426. font-size: 26rpx;
  427. color: #666;
  428. }
  429. .client-status {
  430. font-size: 24rpx;
  431. color: #FF6B8A;
  432. background-color: #FFF3F5;
  433. padding: 4rpx 12rpx;
  434. border-radius: 15rpx;
  435. }
  436. }
  437. .client-tags {
  438. display: flex;
  439. flex-wrap: wrap;
  440. gap: 10rpx;
  441. margin-bottom: 15rpx;
  442. .tag {
  443. padding: 6rpx 16rpx;
  444. background-color: #F3E5F5;
  445. color: #9C27B0;
  446. border-radius: 15rpx;
  447. font-size: 22rpx;
  448. }
  449. }
  450. .requirement {
  451. display: flex;
  452. margin-bottom: 15rpx;
  453. .requirement-label {
  454. font-size: 26rpx;
  455. color: #666;
  456. margin-right: 10rpx;
  457. }
  458. .requirement-content {
  459. font-size: 26rpx;
  460. color: #333;
  461. }
  462. }
  463. .user-details {
  464. display: flex;
  465. flex-wrap: wrap;
  466. gap: 10rpx;
  467. margin-bottom: 15rpx;
  468. font-size: 24rpx;
  469. color: #999;
  470. .detail-item {
  471. display: flex;
  472. align-items: center;
  473. &::after {
  474. content: '|';
  475. margin: 0 10rpx;
  476. color: #ddd;
  477. }
  478. &:last-child::after {
  479. display: none;
  480. }
  481. }
  482. }
  483. .contact-info {
  484. display: flex;
  485. align-items: center;
  486. .contact-label {
  487. font-size: 26rpx;
  488. color: #666;
  489. margin-right: 10rpx;
  490. }
  491. .contact-number {
  492. font-size: 26rpx;
  493. color: #333;
  494. margin-right: 15rpx;
  495. }
  496. .copy-btn {
  497. font-size: 24rpx;
  498. color: #9C27B0;
  499. padding: 6rpx 16rpx;
  500. background-color: #F3E5F5;
  501. border-radius: 15rpx;
  502. }
  503. }
  504. }
  505. }
  506. .action-btn {
  507. width: 200rpx;
  508. height: 60rpx;
  509. display: flex;
  510. align-items: center;
  511. justify-content: center;
  512. background-color: #9C27B0;
  513. color: #FFFFFF;
  514. border-radius: 30rpx;
  515. font-size: 28rpx;
  516. font-weight: bold;
  517. margin-left: auto;
  518. }
  519. .match-score-badge {
  520. position: absolute;
  521. top: 20rpx;
  522. right: 20rpx;
  523. background: linear-gradient(135deg, #FF6B8A 0%, #FF8E9B 100%);
  524. color: #FFFFFF;
  525. padding: 8rpx 16rpx;
  526. border-radius: 20rpx;
  527. font-size: 22rpx;
  528. font-weight: bold;
  529. z-index: 10;
  530. .score-text {
  531. color: #FFFFFF;
  532. }
  533. }
  534. }
  535. }
  536. /* 加载中 */
  537. .loading-container {
  538. display: flex;
  539. justify-content: center;
  540. align-items: center;
  541. padding: 100rpx 0;
  542. .loading-text {
  543. font-size: 28rpx;
  544. color: #999;
  545. }
  546. }
  547. /* 资源跟进状态区域 */
  548. .follow-status-section {
  549. background-color: #FFFFFF;
  550. margin: 20rpx;
  551. padding: 30rpx;
  552. border-radius: 20rpx;
  553. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  554. display: flex;
  555. justify-content: space-around;
  556. align-items: center;
  557. }
  558. .follow-status-group {
  559. display: flex;
  560. flex-direction: column;
  561. align-items: center;
  562. gap: 12rpx;
  563. }
  564. .status-label {
  565. font-size: 26rpx;
  566. color: #666;
  567. font-weight: 500;
  568. }
  569. .status-tags {
  570. display: flex;
  571. gap: 10rpx;
  572. }
  573. .status-tag {
  574. padding: 8rpx 20rpx;
  575. border-radius: 20rpx;
  576. font-size: 24rpx;
  577. background-color: #FAF5FF;
  578. color: #9C27B0;
  579. border: 2rpx solid #E1BEE7;
  580. &.active {
  581. background-color: #F8BBD0;
  582. border-color: #F06292;
  583. color: #FFFFFF;
  584. }
  585. }
  586. /* 底部导航 */
  587. .tabbar {
  588. position: fixed;
  589. bottom: 0;
  590. left: 0;
  591. right: 0;
  592. height: 100rpx;
  593. background: #FFFFFF;
  594. border-top: 1rpx solid #F0F0F0;
  595. display: flex;
  596. justify-content: space-around;
  597. align-items: center;
  598. padding-bottom: env(safe-area-inset-bottom);
  599. .tabbar-item {
  600. display: flex;
  601. flex-direction: column;
  602. align-items: center;
  603. gap: 8rpx;
  604. padding: 10rpx 0;
  605. .tabbar-icon {
  606. width: 44rpx;
  607. height: 44rpx;
  608. background-size: contain;
  609. background-repeat: no-repeat;
  610. background-position: center;
  611. position: relative;
  612. .badge {
  613. position: absolute;
  614. top: -8rpx;
  615. right: -8rpx;
  616. width: 32rpx;
  617. height: 32rpx;
  618. display: flex;
  619. align-items: center;
  620. justify-content: center;
  621. background-color: #FF4444;
  622. color: #FFFFFF;
  623. font-size: 20rpx;
  624. font-weight: bold;
  625. border-radius: 50%;
  626. }
  627. }
  628. .tabbar-text {
  629. font-size: 20rpx;
  630. color: #999;
  631. }
  632. &.active {
  633. .tabbar-text {
  634. color: #9C27B0;
  635. font-weight: bold;
  636. }
  637. }
  638. &.home .tabbar-icon {
  639. 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>');
  640. }
  641. &.resources .tabbar-icon {
  642. 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>');
  643. }
  644. &.trophy .tabbar-icon {
  645. 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>');
  646. }
  647. &.message .tabbar-icon {
  648. 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>');
  649. }
  650. &.mine .tabbar-icon {
  651. 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>');
  652. }
  653. }
  654. }
  655. </style>