index.vue 59 KB

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