index.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225
  1. <template>
  2. <view class="mine-page">
  3. <!-- 用户信息区域 -->
  4. <view class="user-section">
  5. <view class="user-info">
  6. <image class="avatar" :src="userInfo.avatar" mode="aspectFill"></image>
  7. <view class="user-details">
  8. <view class="nickname-row">
  9. <text class="nickname">{{ userInfo.nickname }}</text>
  10. <!-- VIP标志 -->
  11. <view class="vip-badge" v-if="userInfo.isVip">
  12. <text class="vip-badge-text">VIP</text>
  13. </view>
  14. <view class="verify-badge" @click="goVerify" v-if="!userInfo.isVerified">
  15. <text class="verify-text">未实名,立即认证</text>
  16. </view>
  17. </view>
  18. <!-- 基本信息展示 -->
  19. <view class="user-basic-info">
  20. <view class="info-item" v-if="userInfo.gender">
  21. <text class="info-icon">{{ userInfo.gender === 1 ? '👨' : '👩' }}</text>
  22. <text class="info-text">{{ userInfo.genderText }}</text>
  23. </view>
  24. <view class="info-item" v-if="userInfo.age">
  25. <text class="info-icon">🎂</text>
  26. <text class="info-text">{{ userInfo.age }}岁</text>
  27. </view>
  28. <view class="info-item" v-if="userInfo.height">
  29. <text class="info-icon">📏</text>
  30. <text class="info-text">{{ userInfo.height }}cm</text>
  31. </view>
  32. <!-- <view class="info-item" v-if="userInfo.educationText">-->
  33. <!-- <text class="info-icon">🎓</text>-->
  34. <!-- <text class="info-text">{{ userInfo.educationText }}</text>-->
  35. <!-- </view>-->
  36. </view>
  37. <view class="progress-row">
  38. <view class="progress-bar">
  39. <view class="progress-fill" :style="{ width: userInfo.profileProgress + '%' }"></view>
  40. </view>
  41. <text class="progress-text" @click="goCompleteProfile">完善资料 ></text>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 统计数据展示 -->
  46. <view class="user-stats">
  47. <view class="stats-item" @click="goToLikedByMe">
  48. <text class="stats-number">{{ stats.myConnection }}</text>
  49. <text class="stats-label">我喜欢的</text>
  50. </view>
  51. <view class="stats-item" @click="goToLikedMe">
  52. <text class="stats-number">{{ stats.myFavorites }}</text>
  53. <text class="stats-label">喜欢我的</text>
  54. </view>
  55. <view class="stats-item" @click="goToVisitedByMe">
  56. <text class="stats-number">{{ stats.iViewed }}</text>
  57. <text class="stats-label">我浏览的</text>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- VIP会员卡片 -->
  62. <view class="vip-card" @click="goVip" v-if="!userInfo.isVip">
  63. <view class="vip-content">
  64. <view class="vip-icon">👑</view>
  65. <view class="vip-info">
  66. <text class="vip-title">VIP会员未开通</text>
  67. <text class="vip-subtitle">开通会员可享受尊贵服务哦</text>
  68. </view>
  69. </view>
  70. <view class="vip-button">立即开通</view>
  71. </view>
  72. <!-- 快捷入口 -->
  73. <view class="quick-actions">
  74. <view class="action-item" @click="goToPage('basicInfo')">
  75. <view class="action-icon calendar-icon">🆔</view>
  76. <text class="action-label">基本资料</text>
  77. </view>
  78. <view class="action-item" @click="goToPage('partnerRequirement')">
  79. <view class="action-icon heart-icon">💜</view>
  80. <text class="action-label">对象要求</text>
  81. </view>
  82. <view class="action-item" @click="goToPage('verifyRealName')">
  83. <view class="action-icon phone-icon">🪪</view>
  84. <text class="action-label">实名认证</text>
  85. </view>
  86. <view class="action-item" @click="goToPage('verifyEducation')">
  87. <view class="action-icon phone-icon">🎓</view>
  88. <text class="action-label">学历认证</text>
  89. </view>
  90. </view>
  91. <!-- 签到弹窗 -->
  92. <uni-popup ref="checkinPopup" type="center" :mask-click="true">
  93. <view class="checkin-popup">
  94. <view class="popup-header">
  95. <text class="popup-title">每日签到</text>
  96. <view class="close-btn" @click="closeCheckinPopup">
  97. <text class="close-icon">✕</text>
  98. </view>
  99. </view>
  100. <view class="checkin-info">
  101. <view class="info-item">
  102. <text class="info-label">已连续签到</text>
  103. <text class="info-value">{{ checkinData.continuousDays }} 天</text>
  104. </view>
  105. <view class="info-item">
  106. <text class="info-label">累计签到</text>
  107. <text class="info-value">{{ checkinData.totalDays }} 天</text>
  108. </view>
  109. </view>
  110. <scroll-view scroll-y class="checkin-content">
  111. <view class="checkin-calendar">
  112. <view class="calendar-header">
  113. <text class="month-text">{{ currentMonth }}</text>
  114. </view>
  115. <view class="week-header">
  116. <text class="week-day" v-for="day in weekDays" :key="day">{{ day }}</text>
  117. </view>
  118. <view class="calendar-body">
  119. <view
  120. class="calendar-day"
  121. v-for="(day, index) in calendarDays"
  122. :key="index"
  123. :class="{
  124. 'empty': !day.date,
  125. 'checked': day.checked,
  126. 'today': day.isToday
  127. }"
  128. >
  129. <text class="day-num" v-if="day.date">{{ day.date }}</text>
  130. <view class="check-mark" v-if="day.checked">✓</view>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="checkin-rewards">
  135. <text class="rewards-title">签到奖励</text>
  136. <view class="rewards-list">
  137. <view
  138. class="reward-item"
  139. v-for="(reward, index) in checkinRewards"
  140. :key="index"
  141. :class="{ 'received': reward.received, 'current': reward.isCurrent }"
  142. >
  143. <view class="reward-icon">{{ reward.icon }}</view>
  144. <text class="reward-day">第{{ reward.day }}天</text>
  145. <text class="reward-text">{{ reward.reward }}</text>
  146. <view class="received-mark" v-if="reward.received">✓</view>
  147. </view>
  148. </view>
  149. </view>
  150. </scroll-view>
  151. <view class="checkin-button-wrapper">
  152. <button
  153. class="checkin-btn"
  154. :class="{ 'disabled': checkinData.todayChecked }"
  155. @click="handleCheckin"
  156. :disabled="checkinData.todayChecked"
  157. >
  158. {{ checkinData.todayChecked ? '今日已签到' : '立即签到' }}
  159. </button>
  160. </view>
  161. </view>
  162. </uni-popup>
  163. <!-- 功能菜单列表 -->
  164. <view class="menu-list">
  165. <view class="menu-item" @click="showCheckinPopup">
  166. <view class="menu-left">
  167. <text class="menu-icon">📅</text>
  168. <text class="menu-text">签到</text>
  169. </view>
  170. <text class="menu-arrow">›</text>
  171. </view>
  172. <view class="menu-item" @click="goToPage('myDynamics')">
  173. <view class="menu-left">
  174. <text class="menu-icon">📝</text>
  175. <text class="menu-text">我的动态</text>
  176. </view>
  177. <text class="menu-arrow">›</text>
  178. </view>
  179. <view class="menu-item" @click="goToPage('myActivity')">
  180. <view class="menu-left">
  181. <text class="menu-icon">📷</text>
  182. <text class="menu-text">课程活动</text>
  183. </view>
  184. <text class="menu-arrow">›</text>
  185. </view>
  186. <view class="menu-item" @click="goToPage('partTimeMatchmaker')">
  187. <view class="menu-left">
  188. <text class="menu-icon">💎</text>
  189. <text class="menu-text">兼职红娘</text>
  190. </view>
  191. <text class="menu-arrow">›</text>
  192. </view>
  193. <view class="menu-item" @click="goToPage('feedback')">
  194. <view class="menu-left">
  195. <text class="menu-icon">💬</text>
  196. <text class="menu-text">用户反馈</text>
  197. </view>
  198. <text class="menu-arrow">›</text>
  199. </view>
  200. <view class="menu-item" @click="goToPage('blacklist')">
  201. <view class="menu-left">
  202. <text class="menu-icon">📋</text>
  203. <text class="menu-text">黑名单</text>
  204. </view>
  205. <text class="menu-arrow">›</text>
  206. </view>
  207. <view class="menu-item" @click="goToPage('settings')">
  208. <view class="menu-left">
  209. <text class="menu-icon">⚙️</text>
  210. <text class="menu-text">设置</text>
  211. </view>
  212. <text class="menu-arrow">›</text>
  213. </view>
  214. </view>
  215. <!-- 底部导航栏 -->
  216. <view class="tabbar">
  217. <view class="tabbar-item active" @click="switchTab('index')">
  218. <image src="https://api.zhongruanke.cn/minio/static-images/首页 (1).png" class="first-icon"/>
  219. <text class="tabbar-text">首页</text>
  220. </view>
  221. <view class="tabbar-item" @click="switchTab('plaza')">
  222. <image src="https://api.zhongruanke.cn/minio/static-images/动态(1).png" class="first-icon"/>
  223. <text class="tabbar-text">动态</text>
  224. </view>
  225. <view class="tabbar-item" @click="switchTab('recommend')">
  226. <text class="tabbar-icon">👍</text>
  227. <text class="tabbar-text">推荐</text>
  228. </view>
  229. <!-- <view class="tabbar-item" @click="switchTab('message')">
  230. <text class="tabbar-icon">💬</text>
  231. <text class="tabbar-text">消息</text>
  232. <view v-if="unreadCount > 0" class="tabbar-badge">{{ unreadCount }}</view>
  233. </view> -->
  234. <view class="tabbar-item active" @click="switchTab('mine')">
  235. <text class="tabbar-icon">👤</text>
  236. <text class="tabbar-text">我的</text>
  237. </view>
  238. </view>
  239. </view>
  240. </template>
  241. <script>
  242. import api from '@/utils/api.js'
  243. export default {
  244. data() {
  245. return {
  246. // 网关地址
  247. gatewayURL: 'https://api.zhongruanke.cn',
  248. // 用户ID(如果没有登录,默认为1)
  249. currentUserId: null,
  250. // 用户信息(从后端获取)
  251. userInfo: {
  252. userId: null,
  253. nickname: '准备加载...',
  254. avatar: 'https://via.placeholder.com/100',
  255. phone: '',
  256. email: '',
  257. gender: null,
  258. genderText: '未知',
  259. birthDate: null,
  260. age: null,
  261. isVerified: false,
  262. profileProgress: 0,
  263. isVip: false
  264. },
  265. stats: {
  266. myConnection: 0,
  267. myFavorites: 0,
  268. whoViewedMe: 0,
  269. iViewed: 0
  270. },
  271. matchmaker: {
  272. code: 'xxxxx',
  273. phone: '99*******99'
  274. },
  275. // 签到数据
  276. checkinData: {
  277. continuousDays: 0,
  278. totalDays: 0,
  279. todayChecked: false,
  280. checkedDates: []
  281. },
  282. weekDays: ['日', '一', '二', '三', '四', '五', '六'],
  283. currentMonth: '',
  284. calendarDays: [],
  285. checkinRewards: []
  286. }
  287. },
  288. computed: {
  289. unreadCount() {
  290. return this.$store.getters.getTotalUnread || 0;
  291. }
  292. },
  293. onLoad() {
  294. // 立即检查登录状态
  295. const token = uni.getStorageSync('token')
  296. const userInfo = uni.getStorageSync('userInfo')
  297. if (!token || !userInfo) {
  298. // 未登录,立即强制跳转到登录页
  299. uni.showModal({
  300. title: '需要登录',
  301. content: '请先登录后查看个人信息',
  302. showCancel: false, // 不允许取消
  303. confirmText: '去登录',
  304. success: () => {
  305. uni.navigateTo({
  306. url: '/pages/page3/page3'
  307. })
  308. }
  309. })
  310. return
  311. }
  312. // 已登录,同步登录状态
  313. this.syncLoginStatus()
  314. // 监听VIP购买成功事件
  315. uni.$on('vipPurchased', this.handleVipPurchased)
  316. },
  317. onUnload() {
  318. // 页面卸载时移除事件监听
  319. uni.$off('vipPurchased', this.handleVipPurchased)
  320. },
  321. onShow() {
  322. // 检查登录状态
  323. const token = uni.getStorageSync('token')
  324. const userInfo = uni.getStorageSync('userInfo')
  325. if (!token || !userInfo) {
  326. // 未登录,直接跳转(不显示弹窗,因为onLoad已经显示过了)
  327. uni.navigateTo({
  328. url: '/pages/page3/page3'
  329. })
  330. return
  331. }
  332. // 已登录,同步登录状态
  333. this.syncLoginStatus()
  334. },
  335. methods: {
  336. // 同步登录状态并更新页面数据
  337. syncLoginStatus() {
  338. // 获取最新的登录信息
  339. const token = uni.getStorageSync('token')
  340. const userInfo = uni.getStorageSync('userInfo')
  341. const userId = uni.getStorageSync('userId')
  342. if (token && userInfo && userId) {
  343. this.currentUserId = parseInt(userId)
  344. // 直接使用存储的用户信息更新页面
  345. this.userInfo = {
  346. userId: userInfo.userId || userId,
  347. nickname: userInfo.nickname || '用户',
  348. avatar: userInfo.avatarUrl || userInfo.avatar || 'https://via.placeholder.com/100',
  349. phone: this.maskPhone(userInfo.phone) || '',
  350. email: userInfo.email || '',
  351. gender: userInfo.gender,
  352. genderText: this.getGenderText(userInfo.gender),
  353. birthDate: userInfo.birthDate,
  354. age: this.calculateAge(userInfo.birthDate),
  355. isVerified: false,
  356. profileProgress: userInfo.profileProgress || 0,
  357. isVip: false
  358. }
  359. // 强制页面刷新
  360. this.$forceUpdate()
  361. // 设置统计数据
  362. this.stats = {
  363. myConnection: 0,
  364. myFavorites: Math.floor(Math.random() * 15) + 5,
  365. whoViewedMe: Math.floor(Math.random() * 12) + 3,
  366. iViewed: Math.floor(Math.random() * 20) + 8
  367. }
  368. // 获取我喜欢的用户真实数量
  369. this.getLikedUsersCount()
  370. // 立即加载最新用户信息(不延迟)
  371. this.loadUserInfo()
  372. } else {
  373. this.currentUserId = null
  374. // 设置未登录状态的用户信息
  375. this.userInfo = {
  376. userId: null,
  377. nickname: '未登录',
  378. avatar: 'https://via.placeholder.com/100?text=未登录',
  379. phone: '',
  380. email: '',
  381. gender: 0,
  382. genderText: '未知',
  383. birthDate: null,
  384. age: null,
  385. isVerified: false,
  386. profileProgress: 0,
  387. isVip: false
  388. }
  389. // 清空统计数据
  390. this.stats = {
  391. myConnection: 0,
  392. myFavorites: 0,
  393. whoViewedMe: 0,
  394. iViewed: 0
  395. }
  396. // 强制页面更新
  397. this.$forceUpdate()
  398. // 提示需要登录
  399. setTimeout(() => {
  400. uni.showModal({
  401. title: '需要登录',
  402. content: '请先登录后查看完整功能',
  403. showCancel: false,
  404. confirmText: '去登录',
  405. success: () => {
  406. uni.navigateTo({
  407. url: '/pages/page3/page3'
  408. })
  409. }
  410. })
  411. }, 500)
  412. }
  413. },
  414. // 简单的手机号脱敏
  415. maskPhone(phone) {
  416. if (!phone || phone.length < 11) return phone
  417. return phone.substring(0, 3) + '****' + phone.substring(7)
  418. },
  419. // 获取性别文字
  420. getGenderText(gender) {
  421. switch (gender) {
  422. case 1:
  423. return '男'
  424. case 2:
  425. return '女'
  426. default:
  427. return '未知'
  428. }
  429. },
  430. // 计算年龄
  431. calculateAge(birthDate) {
  432. if (!birthDate) return null
  433. const birth = new Date(birthDate)
  434. const today = new Date()
  435. let age = today.getFullYear() - birth.getFullYear()
  436. const monthDiff = today.getMonth() - birth.getMonth()
  437. if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birth.getDate())) {
  438. age--
  439. }
  440. return age
  441. },
  442. // 从后端加载用户信息(通过网关)
  443. loadUserInfo() {
  444. // 检查是否真正登录(必须有token和userInfo)
  445. const token = uni.getStorageSync('token')
  446. const userInfo = uni.getStorageSync('userInfo')
  447. if (!token || !userInfo) {
  448. console.warn('未登录,不加载用户信息')
  449. return
  450. }
  451. // 检查用户ID是否有效
  452. if (!this.currentUserId || this.currentUserId <= 0) {
  453. console.warn('无有效用户ID,无法加载用户信息')
  454. this.setDefaultUserInfo()
  455. return
  456. }
  457. // 获取用户基本信息
  458. uni.request({
  459. url: this.gatewayURL + '/api/user/info?userId=' + this.currentUserId,
  460. method: 'GET',
  461. success: (res) => {
  462. if (res.data && res.data.code === 200) {
  463. const data = res.data.data
  464. // 更新用户信息
  465. this.userInfo = {
  466. userId: data.userId,
  467. nickname: data.nickname || '用户',
  468. avatar: data.avatar || 'https://via.placeholder.com/100',
  469. phone: data.phone,
  470. email: data.email,
  471. gender: data.gender,
  472. genderText: data.genderText,
  473. birthDate: data.birthDate,
  474. age: data.age,
  475. isVerified: data.isVerified || false,
  476. profileProgress: data.profileProgress || 0,
  477. isVip: data.isVip || false,
  478. // 扩展信息
  479. height: data.height,
  480. weight: data.weight,
  481. star: data.star,
  482. animal: data.animal,
  483. educationLevel: data.educationLevel,
  484. educationText: data.educationText,
  485. schoolName: data.schoolName,
  486. company: data.company,
  487. jobTitle: data.jobTitle,
  488. salaryRange: data.salaryRange,
  489. salaryText: data.salaryText,
  490. maritalStatus: data.maritalStatus,
  491. maritalText: data.maritalText,
  492. house: data.house,
  493. houseText: data.houseText,
  494. car: data.car,
  495. carText: data.carText,
  496. hobby: data.hobby,
  497. authenticityScore: data.authenticityScore
  498. }
  499. // 强制页面更新
  500. this.$forceUpdate()
  501. // 加载签到信息
  502. this.loadCheckinInfo()
  503. } else {
  504. console.error('获取用户信息失败:', res.data)
  505. const errorMsg = res.data?.message || '获取用户信息失败'
  506. // 如果是用户不存在的错误,给出特殊提示
  507. if (errorMsg.includes('用户不存在') || errorMsg.includes('用户ID无效')) {
  508. uni.showModal({
  509. title: '用户不存在',
  510. content: `当前用户ID(${this.currentUserId})在数据库中不存在,登录信息有误,请重新登录`,
  511. showCancel: false,
  512. confirmText: '重新登录',
  513. success: () => {
  514. // 清除登录信息并跳转登录页
  515. uni.clearStorageSync()
  516. uni.navigateTo({
  517. url: '/pages/page3/page3?redirect=' + encodeURIComponent('/pages/mine/index')
  518. })
  519. }
  520. })
  521. } else {
  522. uni.showToast({
  523. title: errorMsg,
  524. icon: 'none'
  525. })
  526. // 设置默认用户信息
  527. this.setDefaultUserInfo()
  528. }
  529. }
  530. },
  531. fail: (err) => {
  532. console.error('获取用户信息失败:', err)
  533. // API失败时,提示用户网络错误
  534. uni.showModal({
  535. title: '网络错误',
  536. content: '无法连接到服务器,请检查网络连接或稍后重试',
  537. showCancel: true,
  538. cancelText: '返回',
  539. confirmText: '重试',
  540. success: (modalRes) => {
  541. if (modalRes.confirm) {
  542. // 重试加载
  543. this.loadUserInfo()
  544. }
  545. }
  546. })
  547. // 设置默认用户信息以避免页面空白
  548. this.setDefaultUserInfo()
  549. uni.showToast({
  550. title: '网络连接失败',
  551. icon: 'none',
  552. duration: 2000
  553. })
  554. }
  555. })
  556. },
  557. // 设置默认用户信息(未登录或加载失败时)
  558. setDefaultUserInfo() {
  559. this.userInfo = {
  560. userId: null,
  561. nickname: '未登录用户',
  562. avatar: 'https://via.placeholder.com/100?text=未登录',
  563. phone: '',
  564. email: '',
  565. gender: null,
  566. genderText: '未知',
  567. birthDate: null,
  568. age: null,
  569. isVerified: false,
  570. profileProgress: 0,
  571. isVip: false,
  572. height: null,
  573. weight: null,
  574. star: null,
  575. animal: null,
  576. educationLevel: null,
  577. schoolName: null,
  578. company: null,
  579. jobTitle: null,
  580. salaryRange: null,
  581. maritalStatus: null,
  582. house: null,
  583. car: null,
  584. hobby: null,
  585. authenticityScore: 0
  586. }
  587. // 显示登录提示(仅在没有登录时显示)
  588. const token = uni.getStorageSync('token')
  589. if (!token) {
  590. setTimeout(() => {
  591. uni.showModal({
  592. title: '提示',
  593. content: '请先登录以查看完整功能',
  594. showCancel: true,
  595. cancelText: '稍后',
  596. confirmText: '去登录',
  597. success: (res) => {
  598. if (res.confirm) {
  599. uni.navigateTo({
  600. url: '/pages/page3/page3?redirect=' + encodeURIComponent('/pages/mine/index')
  601. })
  602. }
  603. }
  604. })
  605. }, 1000) // 延迟1秒显示,避免页面刚加载就弹窗
  606. }
  607. },
  608. // 加载签到信息
  609. async loadCheckinInfo() {
  610. // 确保有用户ID
  611. if (!this.userInfo.userId) {
  612. console.error('用户ID不存在,无法加载签到信息')
  613. return
  614. }
  615. try {
  616. // 检查用户是否为红娘
  617. const matchmakerStatusRes = await api.user.getMatchmakerStatus(this.userInfo.userId)
  618. console.log(matchmakerStatusRes)
  619. if (matchmakerStatusRes && matchmakerStatusRes.isMatchmaker == 1) {
  620. // 获取当前年月
  621. const today = new Date()
  622. const year = today.getFullYear()
  623. const month = today.getMonth() + 1
  624. // 调用红娘签到信息接口
  625. const checkinInfoRes = await api.matchmaker.checkinInfo(
  626. this.userInfo.userId,
  627. year,
  628. month
  629. )
  630. // 更新签到数据
  631. this.checkinData = {
  632. continuousDays: checkinInfoRes.continuousDays,
  633. totalDays: checkinInfoRes.totalDays,
  634. todayChecked: checkinInfoRes.todayChecked,
  635. checkedDates: checkinInfoRes.checkedDates
  636. }
  637. // 生成日历
  638. this.generateCalendarFromBackend(checkinInfoRes.checkedDates)
  639. // 简单的奖励列表
  640. this.checkinRewards = [
  641. { day: 7, icon: '👑', reward: '积分+10', received: checkinInfoRes.continuousDays >= 7, isCurrent: checkinInfoRes.continuousDays < 7 },
  642. { day: 14, icon: '💎', reward: '积分+20', received: checkinInfoRes.continuousDays >= 14, isCurrent: checkinInfoRes.continuousDays >= 7 && checkinInfoRes.continuousDays < 14 },
  643. { day: 30, icon: '🏆', reward: '积分+50', received: checkinInfoRes.continuousDays >= 30, isCurrent: checkinInfoRes.continuousDays >= 14 && checkinInfoRes.continuousDays < 30 }
  644. ]
  645. } else {
  646. }
  647. } catch (err) {
  648. console.error('加载签到信息失败:', err)
  649. uni.showToast({
  650. title: '加载签到信息失败',
  651. icon: 'none'
  652. })
  653. }
  654. },
  655. // 根据后端数据生成日历(修复版本)
  656. generateCalendarFromBackend(checkedDates) {
  657. const today = new Date()
  658. const year = today.getFullYear()
  659. const month = today.getMonth() // 0-11
  660. // 格式化当前月份显示
  661. this.currentMonth = `${year}年${month + 1}月`
  662. // 获取本月第一天是星期几(0=周日, 1=周一, ..., 6=周六)
  663. const firstDay = new Date(year, month, 1).getDay()
  664. // 获取本月总天数
  665. const daysInMonth = new Date(year, month + 1, 0).getDate()
  666. // 今天的日期字符串(用于比较)
  667. const todayStr = this.formatDate(today)
  668. const days = []
  669. // 添加空白占位(月初前的空白)
  670. for (let i = 0; i < firstDay; i++) {
  671. days.push({ date: null, checked: false, isToday: false })
  672. }
  673. // 添加本月的每一天
  674. for (let i = 1; i <= daysInMonth; i++) {
  675. const date = new Date(year, month, i)
  676. const dateStr = this.formatDate(date)
  677. const isToday = dateStr === todayStr
  678. const checked = checkedDates.includes(dateStr)
  679. days.push({
  680. date: i,
  681. checked: checked,
  682. isToday: isToday,
  683. dateStr: dateStr
  684. })
  685. }
  686. this.calendarDays = days
  687. },
  688. // 格式化日期
  689. formatDate(date) {
  690. const year = date.getFullYear()
  691. const month = String(date.getMonth() + 1).padStart(2, '0')
  692. const day = String(date.getDate()).padStart(2, '0')
  693. return `${year}-${month}-${day}`
  694. },
  695. // 显示签到弹窗
  696. showCheckinPopup() {
  697. this.$refs.checkinPopup.open()
  698. },
  699. // 关闭签到弹窗
  700. closeCheckinPopup() {
  701. this.$refs.checkinPopup.close()
  702. },
  703. // 处理签到(通过网关)
  704. async handleCheckin() {
  705. if (this.checkinData.todayChecked) {
  706. uni.showToast({
  707. title: '今日已签到',
  708. icon: 'none'
  709. })
  710. return
  711. }
  712. // 确保有用户ID
  713. if (!this.userInfo.userId) {
  714. uni.showToast({ title: '请先登录', icon: 'none' })
  715. return
  716. }
  717. try {
  718. // 检查用户是否为红娘
  719. const matchmakerStatusRes = await api.user.getMatchmakerStatus(this.userInfo.userId)
  720. if (matchmakerStatusRes && matchmakerStatusRes.isMatchmaker) {
  721. // 是红娘,使用红娘签到接口
  722. // 调用红娘签到接口,直接使用userId作为makerId
  723. const signRes = await api.matchmaker.doCheckin(this.userInfo.userId)
  724. // 签到成功后更新状态
  725. this.checkinData.todayChecked = true
  726. this.checkinData.totalDays++
  727. this.checkinData.continuousDays++
  728. // 获取当前日期字符串
  729. const today = new Date()
  730. const todayStr = this.formatDate(today)
  731. // 更新签到日期列表
  732. if (!this.checkinData.checkedDates.includes(todayStr)) {
  733. this.checkinData.checkedDates.push(todayStr)
  734. }
  735. // 重新生成日历
  736. this.generateCalendarFromBackend(this.checkinData.checkedDates)
  737. uni.showToast({
  738. title: '签到成功 +5积分',
  739. icon: 'success',
  740. duration: 2500
  741. })
  742. // 重新加载签到信息,确保数据最新
  743. await this.loadCheckinInfo()
  744. } else {
  745. uni.showToast({
  746. title: '功能开发中,敬请期待',
  747. icon: 'none'
  748. })
  749. }
  750. } catch (err) {
  751. console.error('签到失败:', err)
  752. uni.showToast({
  753. title: err.message || '签到失败,请稍后重试',
  754. icon: 'none'
  755. })
  756. }
  757. },
  758. goVerify() {
  759. uni.showToast({
  760. title: '前往实名认证',
  761. icon: 'none'
  762. })
  763. },
  764. goCompleteProfile() {
  765. this.goToPage('basicInfo')
  766. },
  767. goVip() {
  768. uni.navigateTo({
  769. url: '/pages/vip/index'
  770. })
  771. },
  772. goToPage(page) {
  773. try {
  774. if (page === 'basicInfo') {
  775. uni.navigateTo({
  776. url: '/pages/profile/index',
  777. success: () => {
  778. },
  779. fail: (err) => {
  780. console.error('❌ 基本资料页面跳转失败:', err)
  781. uni.showToast({
  782. title: '页面跳转失败',
  783. icon: 'none'
  784. })
  785. }
  786. })
  787. } else if (page === 'verifyRealName') {
  788. // 跳转到实名认证页面
  789. uni.navigateTo({
  790. url: '/pages/settings/id-verification',
  791. success: () => {
  792. },
  793. fail: (err) => {
  794. console.error('❌ 实名认证页面跳转失败:', err)
  795. uni.showToast({
  796. title: '页面跳转失败',
  797. icon: 'none'
  798. })
  799. }
  800. })
  801. } else if (page === 'verifyEducation') {
  802. // 跳转到实名认证页面
  803. uni.navigateTo({
  804. url: '/pages/settings/id-verification',
  805. success: () => {
  806. },
  807. fail: (err) => {
  808. console.error('❌ 学历认证页面跳转失败:', err)
  809. uni.showToast({
  810. title: '页面跳转失败',
  811. icon: 'none'
  812. })
  813. }
  814. })
  815. } else if (page === 'partTimeMatchmaker') {
  816. // 跳转到兼职红娘页面
  817. uni.navigateTo({
  818. url: '/pages/part-time-matchmaker/index',
  819. success: () => {
  820. },
  821. fail: (err) => {
  822. console.error('❌ 兼职红娘页面跳转失败:', err)
  823. uni.showToast({
  824. title: '页面跳转失败',
  825. icon: 'none'
  826. })
  827. }
  828. })
  829. } else if (page === 'blacklist') {
  830. // 跳转到黑名单页面
  831. uni.navigateTo({
  832. url: '/pages/blacklist/index',
  833. success: () => {
  834. },
  835. fail: (err) => {
  836. console.error('❌ 黑名单页面跳转失败:', err)
  837. uni.showToast({
  838. title: '页面跳转失败',
  839. icon: 'none'
  840. })
  841. }
  842. })
  843. } else if (page === 'partnerRequirement') {
  844. // 跳转到对象要求页面
  845. uni.navigateTo({
  846. url: '/pages/partner-requirement/index',
  847. success: () => {
  848. },
  849. fail: (err) => {
  850. console.error('❌ 对象要求页面跳转失败:', err)
  851. uni.showToast({
  852. title: '页面跳转失败',
  853. icon: 'none'
  854. })
  855. }
  856. })
  857. } else if (page === 'feedback') {
  858. uni.navigateTo({
  859. url: '/pages/feedback/index',
  860. success: () => {
  861. },
  862. fail: (err) => {
  863. console.error('❌ 用户反馈页面跳转失败:', err)
  864. uni.showToast({
  865. title: '页面跳转失败',
  866. icon: 'none'
  867. })
  868. }
  869. })
  870. } else if (page === 'settings') {
  871. uni.navigateTo({
  872. url: '/pages/settings/index',
  873. success: () => {
  874. },
  875. fail: (err) => {
  876. console.error('❌ 设置页面跳转失败:', err)
  877. uni.showToast({
  878. title: '页面跳转失败',
  879. icon: 'none'
  880. })
  881. }
  882. })
  883. }
  884. else if (page === 'part-time-matchmaker') {
  885. uni.navigateTo({
  886. url: '/pages/part-time-matchmaker/index',
  887. success: () => {
  888. },
  889. fail: (err) => {
  890. console.error('❌ 加入红娘页面跳转失败:', err)
  891. uni.showToast({
  892. title: '页面跳转失败',
  893. icon: 'none'
  894. })
  895. }
  896. })
  897. } else if (page === 'myActivity') {
  898. uni.navigateTo({
  899. url: '/pages/mine/my-activities',
  900. success: () => {
  901. },
  902. fail: (err) => {
  903. console.error('❌ 我的活动页面跳转失败:', err)
  904. uni.showToast({
  905. title: '页面跳转失败',
  906. icon: 'none'
  907. })
  908. }
  909. })
  910. } else if (page === 'myDynamics') {
  911. uni.navigateTo({
  912. url: '/pages/mine/my-dynamics',
  913. success: () => {
  914. },
  915. fail: (err) => {
  916. console.error('❌ 我的动态页面跳转失败:', err)
  917. uni.showToast({
  918. title: '页面跳转失败',
  919. icon: 'none'
  920. })
  921. }
  922. })
  923. } else {
  924. uni.showToast({
  925. title: '功能开发中',
  926. icon: 'none'
  927. })
  928. }
  929. } catch (error) {
  930. console.error('❌ goToPage 执行出错:', error)
  931. uni.showToast({
  932. title: '页面跳转异常',
  933. icon: 'none'
  934. })
  935. }
  936. },
  937. switchTab(tab) {
  938. if (tab === 'mine') return
  939. const tabPages = {
  940. index: '/pages/index/index',
  941. plaza: '/pages/plaza/index',
  942. recommend: '/pages/recommend/index',
  943. message: '/pages/message/index'
  944. }
  945. if (tabPages[tab]) {
  946. uni.redirectTo({
  947. url: tabPages[tab]
  948. })
  949. }
  950. },
  951. // 处理退出登录
  952. handleLogout() {
  953. uni.showModal({
  954. title: '退出登录',
  955. content: '确定要退出登录吗?',
  956. showCancel: true,
  957. cancelText: '取消',
  958. confirmText: '确定',
  959. success: (res) => {
  960. if (res.confirm) {
  961. this.executeLogout()
  962. }
  963. }
  964. })
  965. },
  966. // 执行退出登录(最可靠的方式)
  967. executeLogout() {
  968. // 立即显示加载状态
  969. uni.showLoading({
  970. title: '退出中...',
  971. mask: true
  972. })
  973. // 延迟执行,确保UI更新
  974. setTimeout(() => {
  975. try {
  976. // 断开在线状态WebSocket
  977. try {
  978. const timPresenceManager = require('@/utils/tim-presence-manager.js').default;
  979. if (timPresenceManager) {
  980. timPresenceManager.disconnect();
  981. }
  982. } catch (error) {
  983. console.error('❌ 断开在线状态WebSocket失败:', error);
  984. }
  985. // 断开TIM WebSocket
  986. try {
  987. const timManager = require('@/utils/tim-manager.js').default;
  988. if (timManager && timManager.isLogin) {
  989. timManager.logout();
  990. }
  991. } catch (error) {
  992. console.error('❌ TIM登出失败:', error);
  993. }
  994. // 方法1: 逐个清除
  995. uni.removeStorageSync('token')
  996. uni.removeStorageSync('userInfo')
  997. uni.removeStorageSync('userId')
  998. uni.removeStorageSync('rememberedAccount')
  999. const remainToken = uni.getStorageSync('token')
  1000. const remainUser = uni.getStorageSync('userInfo')
  1001. // 如果还有残留数据,使用强制清除
  1002. if (remainToken || remainUser) {
  1003. uni.clearStorageSync()
  1004. }
  1005. this.currentUserId = null
  1006. this.userInfo = {
  1007. userId: null,
  1008. nickname: '未登录用户',
  1009. avatar: 'https://via.placeholder.com/100?text=未登录'
  1010. }
  1011. // 隐藏加载,显示成功
  1012. uni.hideLoading()
  1013. uni.showToast({
  1014. title: '退出成功!',
  1015. icon: 'success',
  1016. duration: 1500
  1017. })
  1018. // 延迟跳转
  1019. setTimeout(() => {
  1020. uni.reLaunch({
  1021. url: '/pages/page3/page3'
  1022. })
  1023. }, 1500)
  1024. } catch (error) {
  1025. console.error('退出过程出错:', error)
  1026. uni.hideLoading()
  1027. // 强制退出
  1028. uni.clearStorageSync()
  1029. uni.showModal({
  1030. title: '退出完成',
  1031. content: '已清除登录信息,请重新打开应用',
  1032. showCancel: false,
  1033. confirmText: '知道了'
  1034. })
  1035. }
  1036. }, 300) // 300毫秒延迟确保UI响应
  1037. },
  1038. // 设置测试用户数据(基于数据库真实数据)
  1039. // ⚠️ 已弃用:此方法仅供调试使用,正常流程不再调用测试数据
  1040. setTestUserData() {
  1041. console.warn('⚠️ 警告:正在使用测试数据,这不应该在生产环境中发生')
  1042. // 根据当前用户ID设置对应的数据库用户信息
  1043. const userId = this.currentUserId || 1
  1044. let userData = {}
  1045. // 设置用户信息
  1046. this.userInfo = userData
  1047. // 设置统计数据
  1048. this.stats = {
  1049. myConnection: Math.floor(Math.random() * 10),
  1050. myFavorites: Math.floor(Math.random() * 20),
  1051. whoViewedMe: Math.floor(Math.random() * 15),
  1052. iViewed: Math.floor(Math.random() * 25)
  1053. }
  1054. // 显示提示
  1055. uni.showToast({
  1056. title: '使用测试数据: ' + this.userInfo.nickname,
  1057. icon: 'success',
  1058. duration: 2000
  1059. })
  1060. },
  1061. // 处理VIP购买成功事件
  1062. handleVipPurchased() {
  1063. // 延迟刷新,确保后端数据已更新
  1064. setTimeout(() => {
  1065. this.loadUserInfo()
  1066. }, 500)
  1067. },
  1068. // 统计数据板块点击事件
  1069. goToLikedByMe() {
  1070. // 跳转到我喜欢的页面
  1071. uni.navigateTo({
  1072. url: '/pages/mine/liked-by-me',
  1073. fail: (err) => {
  1074. console.error('跳转我喜欢的页面失败:', err)
  1075. uni.showToast({
  1076. title: '页面跳转失败',
  1077. icon: 'none'
  1078. })
  1079. }
  1080. })
  1081. },
  1082. // 获取我喜欢的用户真实数量
  1083. async getLikedUsersCount() {
  1084. try {
  1085. const userId = this.currentUserId
  1086. if (userId) {
  1087. // 调用后端API获取真实的喜欢用户数量
  1088. const count = await api.recommend.getLikedUsersCount(userId)
  1089. // 更新统计数据
  1090. this.stats.myConnection = count || 0
  1091. }
  1092. } catch (error) {
  1093. console.error('获取喜欢的用户数量失败:', error)
  1094. // 如果获取失败,使用默认值
  1095. this.stats.myConnection = 0
  1096. }
  1097. },
  1098. goToLikedMe() {
  1099. // 跳转到喜欢我的页面
  1100. uni.navigateTo({
  1101. url: '/pages/mine/liked-me',
  1102. fail: (err) => {
  1103. console.error('跳转喜欢我的页面失败:', err)
  1104. uni.showToast({
  1105. title: '页面跳转失败',
  1106. icon: 'none'
  1107. })
  1108. }
  1109. })
  1110. },
  1111. goToVisitedByMe() {
  1112. // 跳转到我浏览的页面
  1113. uni.navigateTo({
  1114. url: '/pages/mine/visited-by-me',
  1115. fail: (err) => {
  1116. console.error('跳转我浏览的页面失败:', err)
  1117. uni.showToast({
  1118. title: '页面跳转失败',
  1119. icon: 'none'
  1120. })
  1121. }
  1122. })
  1123. }
  1124. }
  1125. }
  1126. </script>
  1127. <style lang="scss" scoped>
  1128. /* 扁平化设计风格 */
  1129. .mine-page {
  1130. min-height: 100vh;
  1131. background: #F5F5F5;
  1132. padding-bottom: 120rpx;
  1133. }
  1134. /* 用户信息内的统计数据样式 */
  1135. .user-stats {
  1136. display: flex;
  1137. justify-content: space-around;
  1138. margin: 20rpx 0 0;
  1139. padding: 0;
  1140. background: transparent;
  1141. border-radius: 0;
  1142. box-shadow: none;
  1143. border: none;
  1144. }
  1145. .stats-item {
  1146. flex: 1;
  1147. display: flex;
  1148. flex-direction: column;
  1149. align-items: center;
  1150. justify-content: center;
  1151. padding: 15rpx 20rpx;
  1152. border-radius: 0;
  1153. transition: all 0.3s ease;
  1154. &:not(:last-child) {
  1155. border-right: none;
  1156. }
  1157. .stats-number {
  1158. font-size: 40rpx;
  1159. font-weight: bold;
  1160. color: #FFFFFF;
  1161. margin-bottom: 5rpx;
  1162. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  1163. }
  1164. .stats-label {
  1165. font-size: 22rpx;
  1166. color: rgba(255, 255, 255, 0.9);
  1167. font-weight: 500;
  1168. text-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.1);
  1169. }
  1170. }
  1171. /* 用户信息区域 - 优化版 */
  1172. .user-section {
  1173. margin: 0;
  1174. margin-top: env(safe-area-inset-top);
  1175. padding: 30rpx;
  1176. background: linear-gradient(135deg, #FF8A9B 0%, #FFB4C0 100%);
  1177. box-shadow: 0 4rpx 20rpx rgba(255, 138, 155, 0.2);
  1178. .user-info {
  1179. display: flex;
  1180. align-items: flex-start;
  1181. margin-bottom: 0;
  1182. .avatar {
  1183. width: 140rpx;
  1184. height: 140rpx;
  1185. border-radius: 50%;
  1186. margin-right: 30rpx;
  1187. background-color: #FFFFFF;
  1188. border: 4rpx solid rgba(255, 255, 255, 0.8);
  1189. box-shadow: 0 8rpx 30rpx rgba(255, 138, 155, 0.3);
  1190. transition: transform 0.3s ease;
  1191. overflow: hidden;
  1192. }
  1193. .avatar:active {
  1194. transform: scale(1.05);
  1195. }
  1196. .user-details {
  1197. flex: 1;
  1198. .nickname-row {
  1199. display: flex;
  1200. align-items: center;
  1201. margin-bottom: 20rpx;
  1202. margin-top: 0;
  1203. .nickname {
  1204. font-size: 44rpx;
  1205. font-weight: bold;
  1206. color: #FFFFFF;
  1207. margin-right: 16rpx;
  1208. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  1209. }
  1210. /* VIP标志样式 - 精致版 */
  1211. .vip-badge {
  1212. margin-right: 12rpx;
  1213. display: flex;
  1214. align-items: center;
  1215. justify-content: center;
  1216. background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  1217. color: #FFFFFF;
  1218. padding: 6rpx 16rpx;
  1219. border-radius: 20rpx;
  1220. font-size: 24rpx;
  1221. font-weight: bold;
  1222. box-shadow:
  1223. 0 4rpx 15rpx rgba(255, 215, 0, 0.4),
  1224. 0 0 0 2rpx rgba(255, 255, 255, 0.9);
  1225. transition: all 0.3s ease;
  1226. letter-spacing: 1rpx;
  1227. text-transform: uppercase;
  1228. position: relative;
  1229. overflow: hidden;
  1230. z-index: 1;
  1231. &:before {
  1232. content: '';
  1233. position: absolute;
  1234. top: 0;
  1235. left: -100%;
  1236. width: 100%;
  1237. height: 100%;
  1238. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  1239. transition: left 0.4s ease;
  1240. z-index: -1;
  1241. }
  1242. &:active {
  1243. transform: scale(0.95);
  1244. box-shadow:
  1245. 0 3rpx 10rpx rgba(255, 215, 0, 0.3),
  1246. 0 0 0 2rpx rgba(255, 255, 255, 0.9);
  1247. }
  1248. &:active:before {
  1249. left: 100%;
  1250. }
  1251. }
  1252. .verify-badge {
  1253. background: rgba(255, 255, 255, 0.9);
  1254. padding: 8rpx 22rpx;
  1255. border-radius: 20rpx;
  1256. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  1257. transition: all 0.3s ease;
  1258. .verify-text {
  1259. font-size: 24rpx;
  1260. color: #FF6B8A;
  1261. font-weight: 600;
  1262. }
  1263. }
  1264. .verify-badge:active {
  1265. transform: scale(0.95);
  1266. background: rgba(255, 255, 255, 1);
  1267. }
  1268. }
  1269. /* 基本信息展示 - 优化版 */
  1270. .user-basic-info {
  1271. display: flex;
  1272. flex-wrap: wrap;
  1273. gap: 18rpx;
  1274. margin-bottom: 24rpx;
  1275. .info-item {
  1276. display: flex;
  1277. align-items: center;
  1278. gap: 10rpx;
  1279. padding: 10rpx 22rpx;
  1280. background: rgba(255, 255, 255, 0.9);
  1281. border-radius: 25rpx;
  1282. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
  1283. backdrop-filter: blur(10rpx);
  1284. transition: all 0.3s ease;
  1285. .info-icon {
  1286. font-size: 30rpx;
  1287. }
  1288. .info-text {
  1289. font-size: 26rpx;
  1290. color: #333333;
  1291. font-weight: 500;
  1292. }
  1293. }
  1294. .info-item:active {
  1295. transform: scale(0.98);
  1296. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.12);
  1297. }
  1298. }
  1299. .progress-row {
  1300. display: flex;
  1301. align-items: center;
  1302. gap: 20rpx;
  1303. .progress-bar {
  1304. flex: 1;
  1305. height: 14rpx;
  1306. background-color: rgba(255, 255, 255, 0.3);
  1307. border-radius: 7rpx;
  1308. overflow: hidden;
  1309. box-shadow: inset 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  1310. .progress-fill {
  1311. height: 100%;
  1312. background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
  1313. border-radius: 7rpx;
  1314. transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  1315. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15);
  1316. }
  1317. }
  1318. .progress-text {
  1319. font-size: 26rpx;
  1320. color: rgba(255, 255, 255, 0.95);
  1321. font-weight: 500;
  1322. white-space: nowrap;
  1323. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  1324. transition: color 0.3s ease;
  1325. }
  1326. .progress-text:active {
  1327. color: #FFFFFF;
  1328. }
  1329. }
  1330. }
  1331. }
  1332. }
  1333. /* VIP会员卡片 - 优化版 */
  1334. .vip-card {
  1335. margin: 20rpx 30rpx;
  1336. background: linear-gradient(135deg, #F0E6FF 0%, #E8DFFF 100%);
  1337. border-radius: 20rpx;
  1338. padding: 35rpx;
  1339. display: flex;
  1340. align-items: center;
  1341. justify-content: space-between;
  1342. box-shadow: 0 4rpx 20rpx rgba(153, 102, 255, 0.15);
  1343. transition: all 0.3s ease;
  1344. border: none;
  1345. &:active {
  1346. transform: translateY(2rpx);
  1347. box-shadow: 0 2rpx 10rpx rgba(153, 102, 255, 0.1);
  1348. }
  1349. .vip-content {
  1350. display: flex;
  1351. align-items: center;
  1352. .vip-icon {
  1353. font-size: 70rpx;
  1354. margin-right: 25rpx;
  1355. filter: drop-shadow(0 4rpx 15rpx rgba(218, 112, 214, 0.4));
  1356. }
  1357. .vip-info {
  1358. display: flex;
  1359. flex-direction: column;
  1360. gap: 8rpx;
  1361. .vip-title {
  1362. font-size: 34rpx;
  1363. font-weight: bold;
  1364. color: #6B4EA3;
  1365. }
  1366. .vip-subtitle {
  1367. font-size: 24rpx;
  1368. color: #8B7BAA;
  1369. background: rgba(255, 255, 255, 0.6);
  1370. padding: 6rpx 18rpx;
  1371. border-radius: 15rpx;
  1372. }
  1373. }
  1374. }
  1375. .vip-button {
  1376. background: linear-gradient(135deg, #9575CD 0%, #7E57C2 100%);
  1377. color: #FFFFFF;
  1378. padding: 18rpx 35rpx;
  1379. border-radius: 30rpx;
  1380. font-size: 28rpx;
  1381. white-space: nowrap;
  1382. font-weight: 600;
  1383. box-shadow: 0 4rpx 15rpx rgba(149, 117, 205, 0.3);
  1384. transition: all 0.3s ease;
  1385. }
  1386. .vip-button:active {
  1387. transform: scale(0.95);
  1388. box-shadow: 0 2rpx 10rpx rgba(149, 117, 205, 0.2);
  1389. }
  1390. }
  1391. /* 专属红娘 - 优化版 */
  1392. .matchmaker-card {
  1393. margin: 20rpx 30rpx;
  1394. background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  1395. border-radius: 20rpx;
  1396. padding: 25rpx;
  1397. text-align: center;
  1398. box-shadow: 0 4rpx 20rpx rgba(255, 193, 7, 0.15);
  1399. border: none;
  1400. .matchmaker-text {
  1401. font-size: 28rpx;
  1402. color: #F57C00;
  1403. font-weight: 500;
  1404. display: flex;
  1405. align-items: center;
  1406. justify-content: center;
  1407. gap: 10rpx;
  1408. }
  1409. }
  1410. /* 快捷入口 - 优化版 */
  1411. .quick-actions {
  1412. margin: 20rpx 30rpx;
  1413. background: rgba(255, 255, 255, 0.95);
  1414. backdrop-filter: blur(10rpx);
  1415. border-radius: 20rpx;
  1416. padding: 45rpx 30rpx;
  1417. display: flex;
  1418. justify-content: space-around;
  1419. box-shadow: 0 4rpx 25rpx rgba(0, 0, 0, 0.08);
  1420. border: none;
  1421. .action-item {
  1422. display: flex;
  1423. flex-direction: column;
  1424. align-items: center;
  1425. gap: 15rpx;
  1426. transition: all 0.3s ease;
  1427. padding: 15rpx;
  1428. border-radius: 15rpx;
  1429. &:active {
  1430. transform: translateY(2rpx);
  1431. background: rgba(255, 255, 255, 0.8);
  1432. }
  1433. .action-icon {
  1434. width: 110rpx;
  1435. height: 110rpx;
  1436. border-radius: 20rpx;
  1437. display: flex;
  1438. align-items: center;
  1439. justify-content: center;
  1440. font-size: 55rpx;
  1441. box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.1);
  1442. transition: all 0.3s ease;
  1443. border: none;
  1444. }
  1445. .action-icon:active {
  1446. transform: scale(0.95);
  1447. }
  1448. .calendar-icon {
  1449. background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
  1450. color: #4CAF50;
  1451. }
  1452. .phone-icon {
  1453. background: linear-gradient(135deg, #FFF3CD 0%, #FFEEBA 100%);
  1454. color: #FFA726;
  1455. }
  1456. .heart-icon {
  1457. background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  1458. color: #F44336;
  1459. }
  1460. .action-label {
  1461. font-size: 28rpx;
  1462. color: #333333;
  1463. font-weight: 500;
  1464. }
  1465. }
  1466. }
  1467. /* 功能菜单列表 - 优化版 */
  1468. .menu-list {
  1469. margin: 20rpx 30rpx 30rpx;
  1470. background: rgba(255, 255, 255, 0.95);
  1471. backdrop-filter: blur(10rpx);
  1472. border-radius: 20rpx;
  1473. overflow: hidden;
  1474. box-shadow: 0 4rpx 25rpx rgba(0, 0, 0, 0.08);
  1475. border: none;
  1476. .menu-item {
  1477. display: flex;
  1478. align-items: center;
  1479. justify-content: space-between;
  1480. padding: 40rpx 35rpx;
  1481. border-bottom: 1rpx solid rgba(0, 0, 0, 0.05);
  1482. transition: all 0.3s ease;
  1483. position: relative;
  1484. overflow: hidden;
  1485. &:before {
  1486. content: '';
  1487. position: absolute;
  1488. left: 0;
  1489. top: 0;
  1490. width: 5rpx;
  1491. height: 100%;
  1492. background: linear-gradient(135deg, #FF8A9B 0%, #FFB4C0 100%);
  1493. transform: scaleY(0);
  1494. transition: transform 0.3s ease;
  1495. }
  1496. &:last-child {
  1497. border-bottom: none;
  1498. }
  1499. &:active {
  1500. background: linear-gradient(135deg, #FFF8FA 0%, #FFF0F2 100%);
  1501. transform: translateX(5rpx);
  1502. &:before {
  1503. transform: scaleY(1);
  1504. }
  1505. }
  1506. .menu-left {
  1507. display: flex;
  1508. align-items: center;
  1509. gap: 25rpx;
  1510. .menu-icon {
  1511. font-size: 48rpx;
  1512. transition: transform 0.3s ease;
  1513. }
  1514. .menu-text {
  1515. font-size: 32rpx;
  1516. color: #333333;
  1517. font-weight: 500;
  1518. transition: color 0.3s ease;
  1519. }
  1520. }
  1521. .menu-arrow {
  1522. font-size: 48rpx;
  1523. color: #E0E0E0;
  1524. font-weight: 300;
  1525. transition: color 0.3s ease;
  1526. }
  1527. &:active .menu-arrow {
  1528. color: #FF8A9B;
  1529. transform: translateX(5rpx);
  1530. }
  1531. }
  1532. /* 退出登录特殊样式 - 优化版 */
  1533. .menu-item.logout-item {
  1534. border-top: 3rpx solid rgba(255, 99, 132, 0.2);
  1535. background: linear-gradient(135deg, #FFF8F8 0%, #FFF0F0 100%);
  1536. .menu-left .menu-icon {
  1537. color: #F44336;
  1538. font-size: 50rpx;
  1539. }
  1540. .menu-left .menu-text {
  1541. color: #F44336;
  1542. font-weight: bold;
  1543. font-size: 34rpx;
  1544. }
  1545. .menu-arrow {
  1546. color: #F44336;
  1547. }
  1548. &:active {
  1549. background: linear-gradient(135deg, #FFEEEE 0%, #FFDDDD 100%);
  1550. }
  1551. &:before {
  1552. background: linear-gradient(135deg, #F44336 0%, #FF6B8A 100%);
  1553. }
  1554. }
  1555. }
  1556. /* 签到弹窗样式 - 优化版 */
  1557. .checkin-popup {
  1558. width: 680rpx;
  1559. max-height: 90vh;
  1560. background: rgba(255, 255, 255, 0.98);
  1561. backdrop-filter: blur(20rpx);
  1562. border-radius: 25rpx;
  1563. overflow: hidden;
  1564. display: flex;
  1565. flex-direction: column;
  1566. box-shadow: 0 10rpx 50rpx rgba(0, 0, 0, 0.15);
  1567. border: none;
  1568. .popup-header {
  1569. display: flex;
  1570. align-items: center;
  1571. justify-content: center;
  1572. padding: 40rpx 30rpx 30rpx;
  1573. position: relative;
  1574. background: linear-gradient(135deg, #FF8A9B 0%, #FFB4C0 100%);
  1575. flex-shrink: 0;
  1576. .popup-title {
  1577. font-size: 36rpx;
  1578. font-weight: bold;
  1579. color: #FFFFFF;
  1580. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  1581. }
  1582. .close-btn {
  1583. position: absolute;
  1584. right: 25rpx;
  1585. top: 30rpx;
  1586. width: 60rpx;
  1587. height: 60rpx;
  1588. display: flex;
  1589. align-items: center;
  1590. justify-content: center;
  1591. background: rgba(255, 255, 255, 0.2);
  1592. border-radius: 50%;
  1593. transition: all 0.3s ease;
  1594. &:active {
  1595. transform: scale(0.9);
  1596. background: rgba(255, 255, 255, 0.3);
  1597. }
  1598. .close-icon {
  1599. font-size: 40rpx;
  1600. color: #FFFFFF;
  1601. line-height: 1;
  1602. }
  1603. }
  1604. }
  1605. .checkin-info {
  1606. display: flex;
  1607. justify-content: space-around;
  1608. padding: 30rpx;
  1609. background: linear-gradient(135deg, #FFF8FA 0%, #FFF0F2 100%);
  1610. flex-shrink: 0;
  1611. .info-item {
  1612. display: flex;
  1613. flex-direction: column;
  1614. align-items: center;
  1615. gap: 12rpx;
  1616. .info-label {
  1617. font-size: 24rpx;
  1618. color: #999999;
  1619. font-weight: 500;
  1620. }
  1621. .info-value {
  1622. font-size: 42rpx;
  1623. font-weight: bold;
  1624. color: #FF6B8A;
  1625. text-shadow: 0 2rpx 8rpx rgba(255, 107, 138, 0.2);
  1626. }
  1627. }
  1628. }
  1629. .checkin-content {
  1630. flex: 1;
  1631. overflow-y: auto;
  1632. max-height: 55vh;
  1633. }
  1634. .checkin-calendar {
  1635. padding: 30rpx;
  1636. .calendar-header {
  1637. text-align: center;
  1638. margin-bottom: 25rpx;
  1639. .month-text {
  1640. font-size: 30rpx;
  1641. font-weight: bold;
  1642. color: #333333;
  1643. background: linear-gradient(135deg, #FF8A9B 0%, #FFB4C0 100%);
  1644. -webkit-background-clip: text;
  1645. -webkit-text-fill-color: transparent;
  1646. background-clip: text;
  1647. }
  1648. }
  1649. .week-header {
  1650. display: flex;
  1651. margin-bottom: 15rpx;
  1652. .week-day {
  1653. flex: 1;
  1654. text-align: center;
  1655. font-size: 24rpx;
  1656. color: #666666;
  1657. font-weight: 600;
  1658. }
  1659. }
  1660. .calendar-body {
  1661. display: grid;
  1662. grid-template-columns: repeat(7, 1fr);
  1663. gap: 12rpx;
  1664. .calendar-day {
  1665. height: 80rpx;
  1666. display: flex;
  1667. align-items: center;
  1668. justify-content: center;
  1669. position: relative;
  1670. box-sizing: border-box;
  1671. border-radius: 15rpx;
  1672. transition: all 0.3s ease;
  1673. background: rgba(255, 255, 255, 0.5);
  1674. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  1675. .day-num {
  1676. font-size: 26rpx;
  1677. color: #333333;
  1678. font-weight: 500;
  1679. }
  1680. .check-mark {
  1681. position: absolute;
  1682. top: 8rpx;
  1683. right: 8rpx;
  1684. font-size: 20rpx;
  1685. color: #FFFFFF;
  1686. background: linear-gradient(135deg, #FF6B8A 0%, #FF8A9B 100%);
  1687. width: 30rpx;
  1688. height: 30rpx;
  1689. border-radius: 50%;
  1690. display: flex;
  1691. align-items: center;
  1692. justify-content: center;
  1693. box-shadow: 0 2rpx 8rpx rgba(255, 107, 138, 0.3);
  1694. }
  1695. &.empty {
  1696. visibility: hidden;
  1697. }
  1698. &.checked {
  1699. background: linear-gradient(135deg, #FFE0E6 0%, #FFCCD5 100%);
  1700. box-shadow: 0 4rpx 15rpx rgba(255, 107, 138, 0.2);
  1701. .day-num {
  1702. color: #FF6B8A;
  1703. font-weight: bold;
  1704. }
  1705. }
  1706. &.today {
  1707. background: linear-gradient(135deg, #FF6B8A 0%, #FF8A9B 100%);
  1708. box-shadow: 0 6rpx 20rpx rgba(255, 107, 138, 0.3);
  1709. .day-num {
  1710. color: #FFFFFF;
  1711. font-weight: bold;
  1712. font-size: 28rpx;
  1713. }
  1714. }
  1715. &.today.checked {
  1716. .check-mark {
  1717. background: rgba(255, 255, 255, 0.9);
  1718. color: #FF6B8A;
  1719. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  1720. }
  1721. }
  1722. }
  1723. }
  1724. }
  1725. .checkin-rewards {
  1726. padding: 25rpx 30rpx 30rpx;
  1727. background: linear-gradient(135deg, #FFF8FA 0%, #FFF0F2 100%);
  1728. flex-shrink: 0;
  1729. .rewards-title {
  1730. font-size: 30rpx;
  1731. font-weight: bold;
  1732. color: #333333;
  1733. margin-bottom: 20rpx;
  1734. display: block;
  1735. }
  1736. .rewards-list {
  1737. display: flex;
  1738. justify-content: space-between;
  1739. gap: 18rpx;
  1740. .reward-item {
  1741. flex: 1;
  1742. background: rgba(255, 255, 255, 0.9);
  1743. border-radius: 18rpx;
  1744. padding: 25rpx 15rpx;
  1745. display: flex;
  1746. flex-direction: column;
  1747. align-items: center;
  1748. position: relative;
  1749. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.08);
  1750. transition: all 0.3s ease;
  1751. .reward-icon {
  1752. font-size: 60rpx;
  1753. margin-bottom: 15rpx;
  1754. filter: drop-shadow(0 4rpx 15rpx rgba(0, 0, 0, 0.1));
  1755. }
  1756. .reward-day {
  1757. font-size: 26rpx;
  1758. color: #666666;
  1759. margin-bottom: 12rpx;
  1760. font-weight: 500;
  1761. }
  1762. .reward-text {
  1763. font-size: 28rpx;
  1764. color: #333333;
  1765. font-weight: bold;
  1766. }
  1767. .received-mark {
  1768. position: absolute;
  1769. top: 15rpx;
  1770. right: 15rpx;
  1771. width: 36rpx;
  1772. height: 36rpx;
  1773. background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  1774. color: #FFFFFF;
  1775. border-radius: 50%;
  1776. display: flex;
  1777. align-items: center;
  1778. justify-content: center;
  1779. font-size: 22rpx;
  1780. box-shadow: 0 2rpx 8rpx rgba(76, 175, 80, 0.3);
  1781. }
  1782. &.received {
  1783. opacity: 0.7;
  1784. transform: scale(0.95);
  1785. }
  1786. &.current {
  1787. background: linear-gradient(135deg, #FFE0E6 0%, #FFCCD5 100%);
  1788. box-shadow: 0 6rpx 20rpx rgba(255, 107, 138, 0.2);
  1789. .reward-text {
  1790. color: #FF6B8A;
  1791. }
  1792. .reward-icon {
  1793. transform: scale(1.1);
  1794. }
  1795. }
  1796. }
  1797. }
  1798. }
  1799. .checkin-button-wrapper {
  1800. padding: 0 30rpx 40rpx;
  1801. flex-shrink: 0;
  1802. .checkin-btn {
  1803. width: 100%;
  1804. background: linear-gradient(135deg, #FF6B8A 0%, #FF8A9B 100%);
  1805. color: #FFFFFF;
  1806. font-size: 34rpx;
  1807. font-weight: bold;
  1808. border-radius: 35rpx;
  1809. padding: 25rpx;
  1810. border: none;
  1811. transition: all 0.3s ease;
  1812. box-shadow: 0 6rpx 25rpx rgba(255, 107, 138, 0.3);
  1813. &:active:not(.disabled) {
  1814. transform: translateY(2rpx);
  1815. box-shadow: 0 4rpx 15rpx rgba(255, 107, 138, 0.2);
  1816. }
  1817. &.disabled {
  1818. background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
  1819. box-shadow: none;
  1820. }
  1821. &::after {
  1822. border: none;
  1823. }
  1824. }
  1825. }
  1826. }
  1827. /* 底部导航栏 - 优化版 */
  1828. .tabbar {
  1829. position: fixed;
  1830. bottom: 0;
  1831. left: 0;
  1832. right: 0;
  1833. display: flex;
  1834. background: rgba(255, 255, 255, 0.95);
  1835. backdrop-filter: blur(20rpx);
  1836. border-top: 1rpx solid rgba(255, 138, 155, 0.2);
  1837. padding-bottom: calc(15rpx + env(safe-area-inset-bottom));
  1838. padding-top: 15rpx;
  1839. z-index: 999;
  1840. box-shadow: 0 -4rpx 25rpx rgba(255, 138, 155, 0.15);
  1841. .tabbar-item {
  1842. flex: 1;
  1843. display: flex;
  1844. flex-direction: column;
  1845. align-items: center;
  1846. justify-content: center;
  1847. padding: 10rpx 0;
  1848. position: relative;
  1849. transition: all 0.3s ease;
  1850. .tabbar-icon {
  1851. font-size: 48rpx;
  1852. margin-bottom: 8rpx;
  1853. transition: all 0.3s ease;
  1854. }
  1855. .first-icon{
  1856. width: 25px;
  1857. height: 25px;
  1858. margin-bottom: 5px;
  1859. margin-top: 5px;
  1860. }
  1861. .tabbar-text {
  1862. font-size: 24rpx;
  1863. color: #999999;
  1864. transition: all 0.3s ease;
  1865. font-weight: 500;
  1866. }
  1867. &.active {
  1868. transform: translateY(-5rpx);
  1869. .tabbar-icon {
  1870. color: #FF6B8A;
  1871. transform: scale(1.1);
  1872. filter: drop-shadow(0 4rpx 15rpx rgba(255, 107, 138, 0.3));
  1873. }
  1874. .tabbar-text {
  1875. color: #722F37;
  1876. font-weight: bold;
  1877. }
  1878. .first-icon{
  1879. width: 30px;
  1880. height: 30px;
  1881. margin-bottom: 5px;
  1882. margin-top: 5px;
  1883. }
  1884. }
  1885. &:active:not(.active) {
  1886. transform: translateY(2rpx);
  1887. }
  1888. }
  1889. }
  1890. .tabbar-badge {
  1891. position: absolute;
  1892. top: 8rpx;
  1893. right: 50%;
  1894. margin-right: -40rpx;
  1895. min-width: 36rpx;
  1896. height: 36rpx;
  1897. line-height: 36rpx;
  1898. padding: 0 10rpx;
  1899. background: linear-gradient(135deg, #FF6B8A 0%, #FF8A9B 100%);
  1900. border-radius: 18rpx;
  1901. font-size: 22rpx;
  1902. color: #FFFFFF;
  1903. text-align: center;
  1904. font-weight: bold;
  1905. box-shadow: 0 4rpx 15rpx rgba(255, 107, 138, 0.3);
  1906. transform: scale(1);
  1907. transition: all 0.3s ease;
  1908. }
  1909. .tabbar-item.active .tabbar-badge {
  1910. transform: scale(1.1);
  1911. }
  1912. </style>