mine.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264
  1. <template>
  2. <view class="matchmaker-mine">
  3. <view class="status-bar-placeholder" :style="{height: statusBarHeight + 'px', backgroundColor: '#FFF9F9'}"></view>
  4. <!-- 顶部导航栏 -->
  5. <view class="header">
  6. <view class="back-btn" @click="goBack"></view>
  7. <text class="header-title">我的</text>
  8. <view class="placeholder"></view>
  9. </view>
  10. <scroll-view scroll-y class="content">
  11. <view class="content-container">
  12. <!-- 个人信息卡片 -->
  13. <view class="profile-card">
  14. <view class="profile-header">
  15. <view class="profile-avatar" :style="{ backgroundImage: `url(${profile.avatarUrl})` }"></view>
  16. <view class="profile-info">
  17. <text class="profile-name">{{ profile.realName }}</text>
  18. <view class="profile-badge">{{ profile.badge }}</view>
  19. </view>
  20. </view>
  21. <!-- 等级和积分 -->
  22. <view class="level-points">
  23. <view class="level-info">
  24. <view class="level-icon"></view>
  25. <text class="level-name">{{ profile.levelName }}</text>
  26. </view>
  27. <text class="points-value">{{ profile.points }}</text>
  28. <text class="points-label">积分</text>
  29. </view>
  30. <!-- 等级进度 -->
  31. <view class="level-progress">
  32. <text class="progress-label">距离下一等级</text>
  33. <view class="progress-bar">
  34. <view class="progress-fill" :style="{ width: profile.levelProgress + '%' }"></view>
  35. </view>
  36. <view class="progress-values">
  37. <text class="current-value">当前{{ profile.points }}</text>
  38. <text class="target-value">目标{{ profile.nextLevelPoints }}</text>
  39. </view>
  40. <view class="upgrade-tip">再获得{{ profile.pointsToNextLevel }}积分即可晋升{{ profile.nextLevelName }}等级</view>
  41. </view>
  42. </view>
  43. <!-- 功能菜单 -->
  44. <view class="function-grid">
  45. <view class="function-item" @click="showSignInPopup">
  46. <view class="function-icon calendar">22</view>
  47. <text class="function-text">签到</text>
  48. </view>
  49. <view class="function-item" @click="handleMyResources">
  50. <view class="function-icon resources"></view>
  51. <text class="function-text">我的资源</text>
  52. </view>
  53. <view class="function-item" @click="handleActivityCenter">
  54. <view class="function-icon heart-book"></view>
  55. <text class="function-text">我的活动</text>
  56. </view>
  57. <view class="function-item" @click="handlePointsMall">
  58. <view class="function-icon money"></view>
  59. <text class="function-text">我的积分</text>
  60. </view>
  61. </view>
  62. <!-- 设置选项 -->
  63. <view class="settings-section">
  64. <view class="settings-item" @click="handleEditProfile">
  65. <view class="settings-icon user"></view>
  66. <text class="settings-text">编辑资料</text>
  67. <view class="arrow-right"></view>
  68. </view>
  69. <view class="settings-item" @click="handleSuccessCaseUpload">
  70. <view class="settings-icon success-case"></view>
  71. <text class="settings-text">撮合成功审核</text>
  72. <view class="arrow-right"></view>
  73. </view>
  74. <view class="settings-item" @click="handleAccountSettings">
  75. <view class="settings-icon info"></view>
  76. <text class="settings-text">关于我们</text>
  77. <view class="arrow-right"></view>
  78. </view>
  79. <view class="settings-item" @click="handleLogout">
  80. <view class="settings-icon logout"></view>
  81. <text class="settings-text">退出登录</text>
  82. <view class="arrow-right"></view>
  83. </view>
  84. </view>
  85. </view>
  86. </scroll-view>
  87. <!-- 底部导航 -->
  88. <view class="tabbar">
  89. <view class="tabbar-item home" @click="navigateToWorkbench">
  90. <view class="tabbar-icon"></view>
  91. <text class="tabbar-text">工作台</text>
  92. </view>
  93. <view class="tabbar-item resources" @click="navigateToMyResources">
  94. <view class="tabbar-icon"></view>
  95. <text class="tabbar-text">我的资源</text>
  96. </view>
  97. <view class="tabbar-item trophy" @click="navigateToRanking">
  98. <view class="tabbar-icon"></view>
  99. <text class="tabbar-text">排行榜</text>
  100. </view>
  101. <!-- <view class="tabbar-item message" @click="navigateToMessage">
  102. <view class="tabbar-icon">
  103. <view v-if="unreadCount > 0" class="badge">{{ unreadCount }}</view>
  104. </view>
  105. <text class="tabbar-text">消息</text>
  106. </view> -->
  107. <view class="tabbar-item mine active" @click="navigateToMine">
  108. <view class="tabbar-icon"></view>
  109. <text class="tabbar-text">我的</text>
  110. </view>
  111. </view>
  112. <!-- 签到弹框 -->
  113. <uni-popup ref="signInPopup" type="center" :mask-click="false">
  114. <view class="sign-in-popup">
  115. <view class="popup-header">
  116. <text class="popup-title">每日签到</text>
  117. <view class="close-btn" @click="closeSignInPopup"></view>
  118. </view>
  119. <view class="popup-content">
  120. <!-- 签到统计 -->
  121. <view class="checkin-stats">
  122. <view class="stats-item">
  123. <text class="stats-label">已连续签到</text>
  124. <text class="stats-value">{{ continuousDays }}</text>
  125. <text class="stats-unit">天</text>
  126. </view>
  127. <view class="stats-item">
  128. <text class="stats-label">累计签到</text>
  129. <text class="stats-value">{{ totalDays }}</text>
  130. <text class="stats-unit">天</text>
  131. </view>
  132. </view>
  133. <view class="calendar-container">
  134. <view class="calendar-header">
  135. <text class="calendar-title">{{ calendarTitle }}</text>
  136. </view>
  137. <view class="calendar-week">
  138. <text class="week-day">日</text>
  139. <text class="week-day">一</text>
  140. <text class="week-day">二</text>
  141. <text class="week-day">三</text>
  142. <text class="week-day">四</text>
  143. <text class="week-day">五</text>
  144. <text class="week-day">六</text>
  145. </view>
  146. <view class="calendar-days">
  147. <view
  148. v-for="(day, index) in calendarDays"
  149. :key="index"
  150. :class="[
  151. 'calendar-day',
  152. { 'other-month': !day.isCurrentMonth },
  153. { 'today': day.isToday },
  154. { 'checked': day.isChecked },
  155. { 'today-checked': day.isToday && day.isChecked }
  156. ]"
  157. >
  158. <text class="day-text">{{ day.date }}</text>
  159. <view v-if="day.isChecked" class="check-mark">✓</view>
  160. </view>
  161. </view>
  162. </view>
  163. <view class="sign-in-reward">
  164. <text class="reward-title">签到奖励</text>
  165. <text class="reward-points">+1积分</text>
  166. </view>
  167. </view>
  168. <view class="popup-footer">
  169. <button
  170. :class="['sign-in-btn', { 'signed': isSignedToday }]"
  171. @click="doSignIn"
  172. :disabled="isSignedToday"
  173. >
  174. {{ isSignedToday ? '今日已签到' : '立即签到' }}
  175. </button>
  176. </view>
  177. </view>
  178. </uni-popup>
  179. </view>
  180. </template>
  181. <script>
  182. import api from '../../utils/api.js'
  183. export default {
  184. data() {
  185. return {
  186. statusBarHeight: 0,
  187. profile: {
  188. realName: '',
  189. avatarUrl: '',
  190. badge: '',
  191. rating: 5.0,
  192. level: '',
  193. levelName: '',
  194. nextLevelName: '',
  195. points: 0,
  196. currentLevelPoints: 0,
  197. nextLevelPoints: 100,
  198. pointsToNextLevel: 0,
  199. levelProgress: 0
  200. },
  201. // 签到相关
  202. isSignedToday: false,
  203. continuousDays: 0,
  204. totalDays: 0,
  205. currentDate: new Date(),
  206. calendarTitle: '',
  207. calendarDays: [],
  208. signedDays: [] // 存储本月已签到的日期
  209. }
  210. },
  211. onLoad() {
  212. this.loadProfileData()
  213. this.checkSignInStatus()
  214. this.generateCalendar()
  215. //获取状态栏高度
  216. const systemInfo = uni.getSystemInfoSync()
  217. this.statusBarHeight = systemInfo.statusBarHeight
  218. },
  219. onShow() {
  220. // 从编辑资料页返回时,自动刷新个人资料
  221. this.loadProfileData()
  222. },
  223. computed: {
  224. unreadCount() {
  225. return this.$store.getters.getTotalUnread || 0
  226. }
  227. },
  228. methods: {
  229. // 生成日历数据
  230. generateCalendar() {
  231. const date = this.currentDate || new Date()
  232. const year = date.getFullYear()
  233. const month = date.getMonth()
  234. // 设置日历标题
  235. this.calendarTitle = `${year}年·${month + 1}月`
  236. // 获取当月第一天
  237. const firstDay = new Date(year, month, 1)
  238. // 获取当月第一天是星期几(0-6,0表示周日)
  239. const firstDayWeek = firstDay.getDay()
  240. // 获取当月最后一天
  241. const lastDay = new Date(year, month + 1, 0)
  242. // 获取当月最后一天的日期
  243. const lastDayDate = lastDay.getDate()
  244. // 获取上个月最后一天的日期
  245. const prevMonthLastDay = new Date(year, month, 0).getDate()
  246. const days = []
  247. // 添加上个月的日期
  248. for (let i = firstDayWeek - 1; i >= 0; i--) {
  249. days.push({
  250. date: prevMonthLastDay - i,
  251. isCurrentMonth: false,
  252. isToday: false,
  253. isChecked: false
  254. })
  255. }
  256. // 添加当月的日期
  257. const today = new Date()
  258. const isCurrentMonth = today.getFullYear() === year && today.getMonth() === month
  259. for (let i = 1; i <= lastDayDate; i++) {
  260. const isToday = isCurrentMonth && today.getDate() === i
  261. // 检查该日期是否已签到
  262. const isChecked = isToday && this.isSignedToday || this.signedDays.includes(i)
  263. days.push({
  264. date: i,
  265. isCurrentMonth: true,
  266. isToday: isToday,
  267. isChecked: isChecked
  268. })
  269. }
  270. // 添加下个月的日期,补满6行
  271. const totalDays = 42 // 6行7列
  272. const nextMonthDays = totalDays - days.length
  273. for (let i = 1; i <= nextMonthDays; i++) {
  274. days.push({
  275. date: i,
  276. isCurrentMonth: false,
  277. isToday: false,
  278. isChecked: false
  279. })
  280. }
  281. this.calendarDays = days
  282. },
  283. // 加载个人资料数据
  284. async loadProfileData() {
  285. try {
  286. const userInfo = uni.getStorageSync('userInfo')
  287. // 模拟用户信息,用于测试
  288. const testUserId = 19
  289. const userId = userInfo && userInfo.userId ? userInfo.userId : testUserId
  290. // 调用API获取红娘信息
  291. const matchmakerInfo = await api.matchmaker.getByUserId(userId)
  292. if (matchmakerInfo) {
  293. const levelNames = ['', '青铜', '白银', '黄金', '铂金', '钻石']
  294. const currentLevel = matchmakerInfo.level || 1
  295. const nextLevel = currentLevel < 5 ? currentLevel + 1 : 5
  296. const nextLevelName = levelNames[nextLevel]
  297. const defaultAvatars = {
  298. male: 'http://115.190.125.125:9000/dynamic-comments/dynamics/5c645152-9940-41d3-83a9-69ee6e0c0aaa.png',
  299. female: 'http://115.190.125.125:9000/dynamic-comments/dynamics/c7fb04d7-ee4d-4b3d-bcef-f246da9c841f.png'
  300. }
  301. const avatarUrl = matchmakerInfo.avatarUrl || matchmakerInfo.avatar_url || (matchmakerInfo.gender === 1 ? defaultAvatars.male : defaultAvatars.female)
  302. this.profile = {
  303. realName: matchmakerInfo.real_name || '',
  304. avatarUrl: avatarUrl,
  305. badge: matchmakerInfo.type_name || '',
  306. rating: matchmakerInfo.rating || 5.0,
  307. level: currentLevel,
  308. levelName: matchmakerInfo.level_name || levelNames[currentLevel],
  309. nextLevelName: nextLevelName,
  310. points: matchmakerInfo.points || 0,
  311. currentLevelPoints: matchmakerInfo.current_level_points || 0,
  312. nextLevelPoints: matchmakerInfo.next_level_points || 100,
  313. pointsToNextLevel: matchmakerInfo.points_to_next_level || 0,
  314. levelProgress: matchmakerInfo.level_progress || 0
  315. }
  316. }
  317. } catch (error) {
  318. uni.showToast({
  319. title: '加载失败,请稍后重试: ' + error.message,
  320. icon: 'none'
  321. })
  322. }
  323. },
  324. // 返回上一页
  325. goBack() {
  326. uni.navigateBack()
  327. },
  328. // 检查今日是否已签到
  329. async checkSignInStatus() {
  330. try {
  331. const userInfo = uni.getStorageSync('userInfo')
  332. if (!userInfo || !userInfo.userId) {
  333. this.isSignedToday = false
  334. this.continuousDays = 0
  335. this.totalDays = 0
  336. this.signedDays = []
  337. return
  338. }
  339. // 首先获取红娘信息,以获取makerId
  340. const matchmakerInfo = await api.matchmaker.getByUserId(userInfo.userId)
  341. if (!matchmakerInfo || !matchmakerInfo.matchmakerId && !matchmakerInfo.matchmaker_id) {
  342. this.isSignedToday = false
  343. this.continuousDays = 0
  344. this.totalDays = 0
  345. this.signedDays = []
  346. return
  347. }
  348. const makerId = matchmakerInfo.matchmakerId || matchmakerInfo.matchmaker_id
  349. // 检查今日是否已签到
  350. const res = await api.matchmaker.checkinStatus(makerId)
  351. let signed = false
  352. if (typeof res === 'boolean') {
  353. signed = res
  354. } else if (typeof res === 'string') {
  355. signed = res === 'true'
  356. } else if (typeof res === 'number') {
  357. signed = res === 1
  358. } else if (res && typeof res === 'object') {
  359. if (typeof res.todaySigned === 'boolean') signed = res.todaySigned
  360. else if (typeof res.signed === 'boolean') signed = res.signed
  361. else if (typeof res.isSignedToday === 'boolean') signed = res.isSignedToday
  362. else if (typeof res.data === 'object' && res.data) {
  363. if (typeof res.data.todaySigned === 'boolean') signed = res.data.todaySigned
  364. else if (typeof res.data.signed === 'boolean') signed = res.data.signed
  365. else if (typeof res.data.isSignedToday === 'boolean') signed = res.data.isSignedToday
  366. }
  367. }
  368. this.isSignedToday = !!signed
  369. // 获取签到统计
  370. const stats = await api.matchmaker.checkinStats(makerId)
  371. // 获取当前年月
  372. const today = new Date()
  373. const year = today.getFullYear()
  374. const month = today.getMonth() + 1
  375. // 获取本月所有签到日期
  376. const checkinInfo = await api.matchmaker.checkinInfo(makerId, year, month)
  377. // 初始化签到记录数组
  378. this.signedDays = []
  379. if (stats) {
  380. this.continuousDays = stats.continuousDays || 0
  381. this.totalDays = stats.totalDays || 0
  382. // 从checkinInfo中获取已签到日期列表
  383. let signedDays = []
  384. if (checkinInfo && checkinInfo.checkedDates) {
  385. // 将日期字符串转换为日期的日部分(数字)
  386. signedDays = checkinInfo.checkedDates.map(dateStr => {
  387. const date = new Date(dateStr)
  388. return date.getDate()
  389. })
  390. }
  391. // 检查今日是否已签到,如果已签到但不在signedDays中,添加进去
  392. const todayDate = today.getDate()
  393. if (this.isSignedToday && !signedDays.includes(todayDate)) {
  394. signedDays.push(todayDate)
  395. }
  396. // 去重并排序
  397. this.signedDays = [...new Set(signedDays)].sort((a, b) => a - b)
  398. }
  399. } catch (error) {
  400. this.isSignedToday = false
  401. this.continuousDays = 0
  402. this.totalDays = 0
  403. this.signedDays = []
  404. }
  405. },
  406. // 显示签到弹框
  407. async showSignInPopup() {
  408. // 显示弹窗前刷新签到状态和记录
  409. await this.checkSignInStatus()
  410. this.generateCalendar()
  411. this.$refs.signInPopup.open()
  412. },
  413. // 关闭签到弹框
  414. closeSignInPopup() {
  415. this.$refs.signInPopup.close()
  416. },
  417. // 执行签到
  418. async doSignIn() {
  419. try {
  420. const userInfo = uni.getStorageSync('userInfo')
  421. if (!userInfo || !userInfo.userId) {
  422. uni.showToast({
  423. title: '请先登录',
  424. icon: 'none'
  425. })
  426. setTimeout(() => {
  427. uni.navigateTo({
  428. url: '/pages/page3/page3'
  429. })
  430. }, 1000)
  431. return
  432. }
  433. // 使用userId进行签到(后端会根据userId查询matchmaker并添加积分)
  434. const res = await api.matchmaker.doCheckin(userInfo.userId)
  435. // 判断签到结果
  436. let success = false
  437. let alreadySigned = false
  438. // 后端返回格式: { code: 200, msg: "签到成功", data: true/false }
  439. if (res === true) {
  440. success = true
  441. } else if (res === false) {
  442. alreadySigned = true
  443. } else if (res && typeof res === 'object') {
  444. if (res.data === true) {
  445. success = true
  446. } else if (res.data === false || res.msg === '今日已签到') {
  447. alreadySigned = true
  448. }
  449. }
  450. if (success) {
  451. uni.showToast({
  452. title: '签到成功,+1积分',
  453. icon: 'success'
  454. })
  455. this.isSignedToday = true
  456. // 更新签到记录
  457. const today = new Date()
  458. const todayDate = today.getDate()
  459. if (!this.signedDays.includes(todayDate)) {
  460. this.signedDays.push(todayDate)
  461. this.signedDays.sort((a, b) => a - b)
  462. }
  463. this.generateCalendar()
  464. // 刷新个人资料(包含积分)
  465. await this.loadProfileData()
  466. this.closeSignInPopup()
  467. } else if (alreadySigned) {
  468. this.isSignedToday = true
  469. uni.showToast({
  470. title: '今日已签到',
  471. icon: 'none'
  472. })
  473. } else {
  474. uni.showToast({
  475. title: '签到失败,请稍后重试',
  476. icon: 'none'
  477. })
  478. }
  479. } catch (error) {
  480. if (error.msg && error.msg.includes('已签到')) {
  481. this.isSignedToday = true
  482. uni.showToast({
  483. title: '今日已签到',
  484. icon: 'none'
  485. })
  486. } else {
  487. uni.showToast({
  488. title: error.msg || '签到失败,请稍后重试',
  489. icon: 'none'
  490. })
  491. }
  492. }
  493. },
  494. // 签到(旧方法,保持兼容)
  495. handleSignIn() {
  496. this.showSignInPopup()
  497. },
  498. // 我的资源
  499. handleMyResources() {
  500. uni.navigateTo({
  501. url: '/pages/matchmaker-workbench/my-resources'
  502. })
  503. },
  504. // 我的活动
  505. handleActivityCenter() {
  506. uni.navigateTo({
  507. url: '/pages/matchmaker-workbench/my-activities'
  508. })
  509. },
  510. // 积分商城
  511. handlePointsMall() {
  512. uni.navigateTo({
  513. url: '/pages/matchmaker-workbench/points-mall'
  514. })
  515. },
  516. // 撮合成功审核
  517. handleSuccessCaseUpload() {
  518. uni.navigateTo({
  519. url: '/pages/matchmaker-workbench/success-case-upload'
  520. })
  521. },
  522. // 编辑资料
  523. handleEditProfile() {
  524. uni.navigateTo({
  525. url: '/pages/matchmaker-workbench/edit-profile'
  526. })
  527. },
  528. // 关于我们
  529. handleAccountSettings() {
  530. uni.navigateTo({
  531. url: '/pages/settings/about'
  532. })
  533. },
  534. // 退出登录
  535. handleLogout() {
  536. uni.showModal({
  537. title: '退出登录',
  538. content: '确定要退出登录吗?',
  539. success: (res) => {
  540. if (res.confirm) {
  541. uni.removeStorageSync('token')
  542. uni.removeStorageSync('userInfo')
  543. uni.navigateTo({
  544. url: '/pages/page3/page3'
  545. })
  546. }
  547. }
  548. })
  549. },
  550. // 导航到工作台
  551. navigateToWorkbench() {
  552. uni.navigateTo({
  553. url: '/pages/matchmaker-workbench/index'
  554. })
  555. },
  556. // 导航到我的资源
  557. navigateToMyResources() {
  558. uni.navigateTo({
  559. url: '/pages/matchmaker-workbench/my-resources'
  560. })
  561. },
  562. // 导航到排行榜
  563. navigateToRanking() {
  564. uni.navigateTo({
  565. url: '/pages/matchmaker-workbench/ranking'
  566. })
  567. },
  568. // 导航到消息
  569. navigateToMessage() {
  570. uni.navigateTo({
  571. url: '/pages/matchmaker-workbench/message'
  572. })
  573. },
  574. // 导航到我的
  575. navigateToMine() {
  576. // 已在我的页面,无需跳转
  577. }
  578. }
  579. }
  580. </script>
  581. <style lang="scss" scoped>
  582. .matchmaker-mine {
  583. min-height: 100vh;
  584. background: #FFF9F9;
  585. display: flex;
  586. flex-direction: column;
  587. }
  588. /* 顶部导航栏 */
  589. .header {
  590. display: flex;
  591. align-items: center;
  592. justify-content: space-between;
  593. padding: 25rpx 30rpx;
  594. padding-top: calc(25rpx + env(safe-area-inset-top));
  595. background: #FFF9F9;
  596. border-bottom: 1rpx solid #F0F0F0;
  597. .back-btn {
  598. width: 70rpx;
  599. height: 70rpx;
  600. display: flex;
  601. align-items: center;
  602. justify-content: center;
  603. background: rgba(240, 240, 240, 0.5);
  604. border-radius: 50%;
  605. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>');
  606. background-size: 40rpx 40rpx;
  607. background-repeat: no-repeat;
  608. background-position: center;
  609. }
  610. .header-title {
  611. font-size: 38rpx;
  612. font-weight: bold;
  613. color: #333;
  614. }
  615. .placeholder {
  616. width: 70rpx;
  617. }
  618. }
  619. .content {
  620. flex: 1;
  621. padding: 0;
  622. }
  623. .content-container {
  624. padding: 20rpx 30rpx 120rpx;
  625. }
  626. /* 个人信息卡片 */
  627. .profile-card {
  628. background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  629. border-radius: 25rpx;
  630. padding: 35rpx;
  631. margin-bottom: 25rpx;
  632. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
  633. }
  634. .profile-header {
  635. display: flex;
  636. align-items: center;
  637. margin-bottom: 30rpx;
  638. .profile-avatar {
  639. width: 160rpx;
  640. height: 160rpx;
  641. border-radius: 50%;
  642. background-size: cover;
  643. background-repeat: no-repeat;
  644. background-position: center;
  645. margin-right: 25rpx;
  646. border: 2rpx solid #FFF;
  647. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  648. }
  649. .profile-info {
  650. flex: 1;
  651. .profile-name {
  652. display: block;
  653. font-size: 36rpx;
  654. font-weight: bold;
  655. color: #333;
  656. margin-bottom: 10rpx;
  657. }
  658. .profile-badge {
  659. display: inline-block;
  660. background: #FFD700;
  661. color: #FFFFFF;
  662. font-size: 24rpx;
  663. font-weight: bold;
  664. padding: 6rpx 16rpx;
  665. border-radius: 15rpx;
  666. margin-bottom: 10rpx;
  667. }
  668. .profile-rating {
  669. display: block;
  670. font-size: 28rpx;
  671. color: #666;
  672. }
  673. }
  674. }
  675. /* 等级和积分 */
  676. .level-points {
  677. display: flex;
  678. align-items: center;
  679. justify-content: space-between;
  680. margin-bottom: 30rpx;
  681. .level-info {
  682. display: flex;
  683. align-items: center;
  684. gap: 10rpx;
  685. .level-icon {
  686. width: 44rpx;
  687. height: 44rpx;
  688. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
  689. background-size: contain;
  690. background-repeat: no-repeat;
  691. background-position: center;
  692. }
  693. .level-name {
  694. font-size: 32rpx;
  695. font-weight: bold;
  696. color: #FF9800;
  697. }
  698. }
  699. .points-value {
  700. font-size: 48rpx;
  701. font-weight: bold;
  702. color: #E91E63;
  703. }
  704. .points-label {
  705. font-size: 28rpx;
  706. color: #666;
  707. }
  708. }
  709. /* 等级进度 */
  710. .level-progress {
  711. .progress-label {
  712. display: block;
  713. font-size: 26rpx;
  714. color: #333;
  715. margin-bottom: 15rpx;
  716. }
  717. .progress-bar {
  718. width: 100%;
  719. height: 12rpx;
  720. background: rgba(255, 255, 255, 0.5);
  721. border-radius: 6rpx;
  722. margin-bottom: 10rpx;
  723. .progress-fill {
  724. height: 100%;
  725. background: #FFB74D;
  726. border-radius: 6rpx;
  727. }
  728. }
  729. .progress-values {
  730. display: flex;
  731. justify-content: space-between;
  732. margin-bottom: 15rpx;
  733. .current-value,
  734. .target-value {
  735. font-size: 24rpx;
  736. color: #666;
  737. }
  738. }
  739. .upgrade-tip {
  740. display: block;
  741. background: rgba(255, 255, 255, 0.3);
  742. color: #E91E63;
  743. font-size: 26rpx;
  744. font-weight: bold;
  745. padding: 15rpx;
  746. border-radius: 15rpx;
  747. text-align: center;
  748. }
  749. }
  750. /* 功能菜单 */
  751. .function-grid {
  752. display: grid;
  753. grid-template-columns: repeat(4, 1fr);
  754. gap: 25rpx;
  755. padding: 35rpx;
  756. background: #FFFFFF;
  757. border-radius: 20rpx;
  758. margin-bottom: 20rpx;
  759. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  760. .function-item {
  761. display: flex;
  762. flex-direction: column;
  763. align-items: center;
  764. gap: 15rpx;
  765. .function-icon {
  766. width: 90rpx;
  767. height: 90rpx;
  768. border-radius: 50%;
  769. background-size: 50rpx 50rpx;
  770. background-repeat: no-repeat;
  771. background-position: center;
  772. &.calendar {
  773. background-color: #FFF3E0;
  774. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF9800"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>');
  775. display: flex;
  776. align-items: center;
  777. justify-content: center;
  778. font-size: 32rpx;
  779. font-weight: bold;
  780. color: #FF9800;
  781. }
  782. &.resources {
  783. background-color: #E8F5E9;
  784. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>');
  785. }
  786. &.heart-book {
  787. background-color: #FFEBEE;
  788. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F44336"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>');
  789. }
  790. &.money {
  791. background-color: #F3E5F5;
  792. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"/></svg>');
  793. }
  794. }
  795. .function-text {
  796. font-size: 26rpx;
  797. color: #333;
  798. }
  799. }
  800. }
  801. /* 设置选项 */
  802. .settings-section {
  803. background: #FFFFFF;
  804. border-radius: 20rpx;
  805. padding: 0;
  806. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  807. .settings-item {
  808. display: flex;
  809. align-items: center;
  810. justify-content: space-between;
  811. padding: 25rpx 35rpx;
  812. margin-bottom: 0;
  813. background: #FFFFFF;
  814. border-radius: 20rpx;
  815. &:last-child {
  816. margin-bottom: 0;
  817. }
  818. .settings-icon {
  819. width: 44rpx;
  820. height: 44rpx;
  821. background-size: contain;
  822. background-repeat: no-repeat;
  823. background-position: center;
  824. margin-right: 20rpx;
  825. }
  826. .settings-icon.user {
  827. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  828. }
  829. .settings-icon.gear {
  830. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"/></svg>');
  831. }
  832. .settings-icon.logout {
  833. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>');
  834. }
  835. .settings-icon.info {
  836. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
  837. }
  838. .settings-text {
  839. flex: 1;
  840. font-size: 30rpx;
  841. color: #333;
  842. }
  843. .settings-icon.success-case {
  844. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E91E63"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
  845. }
  846. .settings-text {
  847. flex: 1;
  848. font-size: 30rpx;
  849. color: #333;
  850. }
  851. .arrow-right {
  852. width: 24rpx;
  853. height: 24rpx;
  854. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>');
  855. background-size: contain;
  856. background-repeat: no-repeat;
  857. background-position: center;
  858. }
  859. }
  860. }
  861. /* 底部导航 */
  862. .tabbar {
  863. position: fixed;
  864. bottom: 0;
  865. left: 0;
  866. right: 0;
  867. height: 100rpx;
  868. background: #FFFFFF;
  869. border-top: 1rpx solid #F0F0F0;
  870. display: flex;
  871. justify-content: space-around;
  872. align-items: center;
  873. padding-bottom: env(safe-area-inset-bottom);
  874. .tabbar-item {
  875. display: flex;
  876. flex-direction: column;
  877. align-items: center;
  878. gap: 8rpx;
  879. padding: 10rpx 0;
  880. .tabbar-icon {
  881. width: 44rpx;
  882. height: 44rpx;
  883. background-size: contain;
  884. background-repeat: no-repeat;
  885. background-position: center;
  886. position: relative;
  887. .badge {
  888. position: absolute;
  889. top: -8rpx;
  890. right: -8rpx;
  891. background: #FF4444;
  892. color: #FFFFFF;
  893. font-size: 20rpx;
  894. font-weight: bold;
  895. width: 32rpx;
  896. height: 32rpx;
  897. display: flex;
  898. align-items: center;
  899. justify-content: center;
  900. border-radius: 16rpx;
  901. }
  902. }
  903. .tabbar-text {
  904. font-size: 20rpx;
  905. color: #999;
  906. }
  907. &.active {
  908. .tabbar-text {
  909. color: #9C27B0;
  910. font-weight: bold;
  911. }
  912. }
  913. &.home .tabbar-icon {
  914. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
  915. }
  916. &.active.home .tabbar-icon {
  917. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
  918. }
  919. &.resources .tabbar-icon {
  920. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>');
  921. }
  922. &.active.resources .tabbar-icon {
  923. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>');
  924. }
  925. &.trophy .tabbar-icon {
  926. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z"/></svg>');
  927. }
  928. &.active.trophy .tabbar-icon {
  929. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z"/></svg>');
  930. }
  931. &.message .tabbar-icon {
  932. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>');
  933. }
  934. &.active.message .tabbar-icon {
  935. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>');
  936. }
  937. &.mine .tabbar-icon {
  938. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  939. }
  940. &.mine.active .tabbar-icon {
  941. background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  942. }
  943. }
  944. }
  945. /* 签到弹框样式 */
  946. .sign-in-popup {
  947. width: 600rpx;
  948. background: #FFFFFF;
  949. border-radius: 20rpx;
  950. overflow: hidden;
  951. .popup-header {
  952. display: flex;
  953. justify-content: space-between;
  954. align-items: center;
  955. padding: 30rpx;
  956. background: #FFEBEE;
  957. border-bottom: none;
  958. .popup-title {
  959. font-size: 36rpx;
  960. font-weight: bold;
  961. color: #E91E63;
  962. }
  963. .close-btn {
  964. width: 40rpx;
  965. height: 40rpx;
  966. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E91E63"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
  967. background-size: contain;
  968. background-repeat: no-repeat;
  969. background-position: center;
  970. }
  971. }
  972. .popup-content {
  973. padding: 20rpx 30rpx 30rpx;
  974. /* 签到统计 */
  975. .checkin-stats {
  976. display: flex;
  977. justify-content: space-around;
  978. margin-bottom: 30rpx;
  979. padding: 20rpx;
  980. background: #FFF3E0;
  981. border-radius: 15rpx;
  982. .stats-item {
  983. display: flex;
  984. flex-direction: column;
  985. align-items: center;
  986. gap: 10rpx;
  987. .stats-label {
  988. font-size: 24rpx;
  989. color: #666;
  990. }
  991. .stats-value {
  992. font-size: 48rpx;
  993. font-weight: bold;
  994. color: #E91E63;
  995. }
  996. .stats-unit {
  997. font-size: 24rpx;
  998. color: #666;
  999. }
  1000. }
  1001. }
  1002. .calendar-container {
  1003. background: #FFFFFF;
  1004. border-radius: 15rpx;
  1005. padding: 20rpx;
  1006. margin-bottom: 30rpx;
  1007. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  1008. .calendar-header {
  1009. display: flex;
  1010. justify-content: center;
  1011. align-items: center;
  1012. margin-bottom: 20rpx;
  1013. .calendar-title {
  1014. font-size: 28rpx;
  1015. font-weight: bold;
  1016. color: #333;
  1017. }
  1018. }
  1019. .calendar-week {
  1020. display: grid;
  1021. grid-template-columns: repeat(7, 1fr);
  1022. gap: 10rpx;
  1023. margin-bottom: 20rpx;
  1024. .week-day {
  1025. text-align: center;
  1026. font-size: 24rpx;
  1027. color: #999;
  1028. font-weight: bold;
  1029. }
  1030. }
  1031. .calendar-days {
  1032. display: grid;
  1033. grid-template-columns: repeat(7, 1fr);
  1034. gap: 15rpx;
  1035. .calendar-day {
  1036. text-align: center;
  1037. font-size: 28rpx;
  1038. color: #333;
  1039. background: #F5F5F5;
  1040. border-radius: 8rpx;
  1041. height: 70rpx;
  1042. display: flex;
  1043. flex-direction: column;
  1044. align-items: center;
  1045. justify-content: center;
  1046. position: relative;
  1047. &.other-month {
  1048. color: #CCCCCC;
  1049. background: #F9F9F9;
  1050. }
  1051. &.today {
  1052. background: #E1BEE7;
  1053. color: #6A1B9A;
  1054. font-weight: bold;
  1055. }
  1056. &.checked {
  1057. background: #F3E5F5;
  1058. color: #9C27B0;
  1059. font-weight: bold;
  1060. }
  1061. &.today-checked {
  1062. background: #9C27B0;
  1063. color: #FFFFFF;
  1064. font-weight: bold;
  1065. }
  1066. .check-mark {
  1067. position: absolute;
  1068. bottom: 5rpx;
  1069. right: 5rpx;
  1070. font-size: 18rpx;
  1071. color: #FFFFFF;
  1072. background: #9C27B0;
  1073. border-radius: 50%;
  1074. width: 24rpx;
  1075. height: 24rpx;
  1076. display: flex;
  1077. align-items: center;
  1078. justify-content: center;
  1079. }
  1080. .today-checked .check-mark {
  1081. background: #FFFFFF;
  1082. color: #9C27B0;
  1083. }
  1084. }
  1085. }
  1086. }
  1087. .sign-in-reward {
  1088. display: flex;
  1089. flex-direction: column;
  1090. align-items: center;
  1091. gap: 10rpx;
  1092. .reward-title {
  1093. font-size: 28rpx;
  1094. color: #666;
  1095. }
  1096. .reward-points {
  1097. font-size: 48rpx;
  1098. font-weight: bold;
  1099. color: #E91E63;
  1100. }
  1101. }
  1102. }
  1103. .popup-footer {
  1104. padding: 0 30rpx 30rpx;
  1105. .sign-in-btn {
  1106. width: 100%;
  1107. height: 80rpx;
  1108. background: #E91E63;
  1109. color: #FFFFFF;
  1110. font-size: 32rpx;
  1111. border-radius: 40rpx;
  1112. border: none;
  1113. font-weight: bold;
  1114. transition: all 0.3s;
  1115. &:hover {
  1116. background: #C2185B;
  1117. }
  1118. &.signed {
  1119. background: #E0E0E0;
  1120. color: #9E9E9E;
  1121. cursor: not-allowed;
  1122. &:hover {
  1123. background: #E0E0E0;
  1124. }
  1125. }
  1126. }
  1127. }
  1128. }
  1129. </style>