precise-match.vue 19 KB

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