mine.vue 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266
  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.aggregateScore }}</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.aggregateScore }}</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. aggregateScore: 0,
  201. },
  202. // 签到相关
  203. isSignedToday: false,
  204. continuousDays: 0,
  205. totalDays: 0,
  206. currentDate: new Date(),
  207. calendarTitle: '',
  208. calendarDays: [],
  209. signedDays: [] // 存储本月已签到的日期
  210. }
  211. },
  212. onLoad() {
  213. this.loadProfileData()
  214. this.checkSignInStatus()
  215. this.generateCalendar()
  216. //获取状态栏高度
  217. const systemInfo = uni.getSystemInfoSync()
  218. this.statusBarHeight = systemInfo.statusBarHeight
  219. },
  220. onShow() {
  221. // 从编辑资料页返回时,自动刷新个人资料
  222. this.loadProfileData()
  223. },
  224. computed: {
  225. unreadCount() {
  226. return this.$store.getters.getTotalUnread || 0
  227. }
  228. },
  229. methods: {
  230. // 生成日历数据
  231. generateCalendar() {
  232. const date = this.currentDate || new Date()
  233. const year = date.getFullYear()
  234. const month = date.getMonth()
  235. // 设置日历标题
  236. this.calendarTitle = `${year}年·${month + 1}月`
  237. // 获取当月第一天
  238. const firstDay = new Date(year, month, 1)
  239. // 获取当月第一天是星期几(0-6,0表示周日)
  240. const firstDayWeek = firstDay.getDay()
  241. // 获取当月最后一天
  242. const lastDay = new Date(year, month + 1, 0)
  243. // 获取当月最后一天的日期
  244. const lastDayDate = lastDay.getDate()
  245. // 获取上个月最后一天的日期
  246. const prevMonthLastDay = new Date(year, month, 0).getDate()
  247. const days = []
  248. // 添加上个月的日期
  249. for (let i = firstDayWeek - 1; i >= 0; i--) {
  250. days.push({
  251. date: prevMonthLastDay - i,
  252. isCurrentMonth: false,
  253. isToday: false,
  254. isChecked: false
  255. })
  256. }
  257. // 添加当月的日期
  258. const today = new Date()
  259. const isCurrentMonth = today.getFullYear() === year && today.getMonth() === month
  260. for (let i = 1; i <= lastDayDate; i++) {
  261. const isToday = isCurrentMonth && today.getDate() === i
  262. // 检查该日期是否已签到
  263. const isChecked = isToday && this.isSignedToday || this.signedDays.includes(i)
  264. days.push({
  265. date: i,
  266. isCurrentMonth: true,
  267. isToday: isToday,
  268. isChecked: isChecked
  269. })
  270. }
  271. // 添加下个月的日期,补满6行
  272. const totalDays = 42 // 6行7列
  273. const nextMonthDays = totalDays - days.length
  274. for (let i = 1; i <= nextMonthDays; i++) {
  275. days.push({
  276. date: i,
  277. isCurrentMonth: false,
  278. isToday: false,
  279. isChecked: false
  280. })
  281. }
  282. this.calendarDays = days
  283. },
  284. // 加载个人资料数据
  285. async loadProfileData() {
  286. try {
  287. const userInfo = uni.getStorageSync('userInfo')
  288. // 模拟用户信息,用于测试
  289. const testUserId = 19
  290. const userId = userInfo && userInfo.userId ? userInfo.userId : testUserId
  291. // 调用API获取红娘信息
  292. const matchmakerInfo = await api.matchmaker.getByUserId(userId)
  293. if (matchmakerInfo) {
  294. const levelNames = ['', '青铜', '白银', '黄金', '铂金', '钻石']
  295. const currentLevel = matchmakerInfo.level || 1
  296. const nextLevel = currentLevel < 5 ? currentLevel + 1 : 5
  297. const nextLevelName = levelNames[nextLevel]
  298. const defaultAvatars = {
  299. male: 'https://api.zhongruanke.cn/minio//dynamic-comments/dynamics/5c645152-9940-41d3-83a9-69ee6e0c0aaa.png',
  300. female: 'https://api.zhongruanke.cn/minio//dynamic-comments/dynamics/c7fb04d7-ee4d-4b3d-bcef-f246da9c841f.png'
  301. }
  302. const avatarUrl = matchmakerInfo.avatarUrl || matchmakerInfo.avatar_url || (matchmakerInfo.gender === 1 ? defaultAvatars.male : defaultAvatars.female)
  303. this.profile = {
  304. realName: matchmakerInfo.real_name || '',
  305. avatarUrl: avatarUrl,
  306. badge: matchmakerInfo.type_name || '',
  307. rating: matchmakerInfo.rating || 5.0,
  308. level: currentLevel,
  309. levelName: matchmakerInfo.level_name || levelNames[currentLevel],
  310. nextLevelName: nextLevelName,
  311. points: matchmakerInfo.points || 0,
  312. currentLevelPoints: matchmakerInfo.current_level_points || 0,
  313. nextLevelPoints: matchmakerInfo.next_level_points || 100,
  314. pointsToNextLevel: matchmakerInfo.points_to_next_level || 0,
  315. levelProgress: matchmakerInfo.level_progress || 0,
  316. aggregateScore: matchmakerInfo.aggregate_score || 0,
  317. }
  318. }
  319. } catch (error) {
  320. uni.showToast({
  321. title: '加载失败,请稍后重试: ' + error.message,
  322. icon: 'none'
  323. })
  324. }
  325. },
  326. // 返回上一页
  327. goBack() {
  328. uni.navigateBack()
  329. },
  330. // 检查今日是否已签到
  331. async checkSignInStatus() {
  332. try {
  333. const userInfo = uni.getStorageSync('userInfo')
  334. if (!userInfo || !userInfo.userId) {
  335. this.isSignedToday = false
  336. this.continuousDays = 0
  337. this.totalDays = 0
  338. this.signedDays = []
  339. return
  340. }
  341. // 首先获取红娘信息,以获取makerId
  342. const matchmakerInfo = await api.matchmaker.getByUserId(userInfo.userId)
  343. if (!matchmakerInfo || !matchmakerInfo.matchmakerId && !matchmakerInfo.matchmaker_id) {
  344. this.isSignedToday = false
  345. this.continuousDays = 0
  346. this.totalDays = 0
  347. this.signedDays = []
  348. return
  349. }
  350. const makerId = matchmakerInfo.matchmakerId || matchmakerInfo.matchmaker_id
  351. // 检查今日是否已签到
  352. const res = await api.matchmaker.checkinStatus(makerId)
  353. let signed = false
  354. if (typeof res === 'boolean') {
  355. signed = res
  356. } else if (typeof res === 'string') {
  357. signed = res === 'true'
  358. } else if (typeof res === 'number') {
  359. signed = res === 1
  360. } else if (res && typeof res === 'object') {
  361. if (typeof res.todaySigned === 'boolean') signed = res.todaySigned
  362. else if (typeof res.signed === 'boolean') signed = res.signed
  363. else if (typeof res.isSignedToday === 'boolean') signed = res.isSignedToday
  364. else if (typeof res.data === 'object' && res.data) {
  365. if (typeof res.data.todaySigned === 'boolean') signed = res.data.todaySigned
  366. else if (typeof res.data.signed === 'boolean') signed = res.data.signed
  367. else if (typeof res.data.isSignedToday === 'boolean') signed = res.data.isSignedToday
  368. }
  369. }
  370. this.isSignedToday = !!signed
  371. // 获取签到统计
  372. const stats = await api.matchmaker.checkinStats(makerId)
  373. // 获取当前年月
  374. const today = new Date()
  375. const year = today.getFullYear()
  376. const month = today.getMonth() + 1
  377. // 获取本月所有签到日期
  378. const checkinInfo = await api.matchmaker.checkinInfo(makerId, year, month)
  379. // 初始化签到记录数组
  380. this.signedDays = []
  381. if (stats) {
  382. this.continuousDays = stats.continuousDays || 0
  383. this.totalDays = stats.totalDays || 0
  384. // 从checkinInfo中获取已签到日期列表
  385. let signedDays = []
  386. if (checkinInfo && checkinInfo.checkedDates) {
  387. // 将日期字符串转换为日期的日部分(数字)
  388. signedDays = checkinInfo.checkedDates.map(dateStr => {
  389. const date = new Date(dateStr)
  390. return date.getDate()
  391. })
  392. }
  393. // 检查今日是否已签到,如果已签到但不在signedDays中,添加进去
  394. const todayDate = today.getDate()
  395. if (this.isSignedToday && !signedDays.includes(todayDate)) {
  396. signedDays.push(todayDate)
  397. }
  398. // 去重并排序
  399. this.signedDays = [...new Set(signedDays)].sort((a, b) => a - b)
  400. }
  401. } catch (error) {
  402. this.isSignedToday = false
  403. this.continuousDays = 0
  404. this.totalDays = 0
  405. this.signedDays = []
  406. }
  407. },
  408. // 显示签到弹框
  409. async showSignInPopup() {
  410. // 显示弹窗前刷新签到状态和记录
  411. await this.checkSignInStatus()
  412. this.generateCalendar()
  413. this.$refs.signInPopup.open()
  414. },
  415. // 关闭签到弹框
  416. closeSignInPopup() {
  417. this.$refs.signInPopup.close()
  418. },
  419. // 执行签到
  420. async doSignIn() {
  421. try {
  422. const userInfo = uni.getStorageSync('userInfo')
  423. if (!userInfo || !userInfo.userId) {
  424. uni.showToast({
  425. title: '请先登录',
  426. icon: 'none'
  427. })
  428. setTimeout(() => {
  429. uni.navigateTo({
  430. url: '/pages/page3/page3'
  431. })
  432. }, 1000)
  433. return
  434. }
  435. // 使用userId进行签到(后端会根据userId查询matchmaker并添加积分)
  436. const res = await api.matchmaker.doCheckin(userInfo.userId)
  437. // 判断签到结果
  438. let success = false
  439. let alreadySigned = false
  440. // 后端返回格式: { code: 200, msg: "签到成功", data: true/false }
  441. if (res === true) {
  442. success = true
  443. } else if (res === false) {
  444. alreadySigned = true
  445. } else if (res && typeof res === 'object') {
  446. if (res.data === true) {
  447. success = true
  448. } else if (res.data === false || res.msg === '今日已签到') {
  449. alreadySigned = true
  450. }
  451. }
  452. if (success) {
  453. uni.showToast({
  454. title: '签到成功,+1积分',
  455. icon: 'success'
  456. })
  457. this.isSignedToday = true
  458. // 更新签到记录
  459. const today = new Date()
  460. const todayDate = today.getDate()
  461. if (!this.signedDays.includes(todayDate)) {
  462. this.signedDays.push(todayDate)
  463. this.signedDays.sort((a, b) => a - b)
  464. }
  465. this.generateCalendar()
  466. // 刷新个人资料(包含积分)
  467. await this.loadProfileData()
  468. this.closeSignInPopup()
  469. } else if (alreadySigned) {
  470. this.isSignedToday = true
  471. uni.showToast({
  472. title: '今日已签到',
  473. icon: 'none'
  474. })
  475. } else {
  476. uni.showToast({
  477. title: '签到失败,请稍后重试',
  478. icon: 'none'
  479. })
  480. }
  481. } catch (error) {
  482. if (error.msg && error.msg.includes('已签到')) {
  483. this.isSignedToday = true
  484. uni.showToast({
  485. title: '今日已签到',
  486. icon: 'none'
  487. })
  488. } else {
  489. uni.showToast({
  490. title: error.msg || '签到失败,请稍后重试',
  491. icon: 'none'
  492. })
  493. }
  494. }
  495. },
  496. // 签到(旧方法,保持兼容)
  497. handleSignIn() {
  498. this.showSignInPopup()
  499. },
  500. // 我的资源
  501. handleMyResources() {
  502. uni.navigateTo({
  503. url: '/pages/matchmaker-workbench/my-resources'
  504. })
  505. },
  506. // 我的活动
  507. handleActivityCenter() {
  508. uni.navigateTo({
  509. url: '/pages/matchmaker-workbench/my-activities'
  510. })
  511. },
  512. // 积分商城
  513. handlePointsMall() {
  514. uni.navigateTo({
  515. url: '/pages/matchmaker-workbench/points-mall'
  516. })
  517. },
  518. // 撮合成功审核
  519. handleSuccessCaseUpload() {
  520. uni.navigateTo({
  521. url: '/pages/matchmaker-workbench/success-case-upload'
  522. })
  523. },
  524. // 编辑资料
  525. handleEditProfile() {
  526. uni.navigateTo({
  527. url: '/pages/matchmaker-workbench/edit-profile'
  528. })
  529. },
  530. // 关于我们
  531. handleAccountSettings() {
  532. uni.navigateTo({
  533. url: '/pages/settings/about'
  534. })
  535. },
  536. // 退出登录
  537. handleLogout() {
  538. uni.showModal({
  539. title: '退出登录',
  540. content: '确定要退出登录吗?',
  541. success: (res) => {
  542. if (res.confirm) {
  543. uni.removeStorageSync('token')
  544. uni.removeStorageSync('userInfo')
  545. uni.navigateTo({
  546. url: '/pages/page3/page3'
  547. })
  548. }
  549. }
  550. })
  551. },
  552. // 导航到工作台
  553. navigateToWorkbench() {
  554. uni.navigateTo({
  555. url: '/pages/matchmaker-workbench/index'
  556. })
  557. },
  558. // 导航到我的资源
  559. navigateToMyResources() {
  560. uni.navigateTo({
  561. url: '/pages/matchmaker-workbench/my-resources'
  562. })
  563. },
  564. // 导航到排行榜
  565. navigateToRanking() {
  566. uni.navigateTo({
  567. url: '/pages/matchmaker-workbench/ranking'
  568. })
  569. },
  570. // 导航到消息
  571. navigateToMessage() {
  572. uni.navigateTo({
  573. url: '/pages/matchmaker-workbench/message'
  574. })
  575. },
  576. // 导航到我的
  577. navigateToMine() {
  578. // 已在我的页面,无需跳转
  579. }
  580. }
  581. }
  582. </script>
  583. <style lang="scss" scoped>
  584. .matchmaker-mine {
  585. min-height: 100vh;
  586. background: #FFF9F9;
  587. display: flex;
  588. flex-direction: column;
  589. }
  590. /* 顶部导航栏 */
  591. .header {
  592. display: flex;
  593. align-items: center;
  594. justify-content: space-between;
  595. padding: 25rpx 30rpx;
  596. padding-top: calc(25rpx + env(safe-area-inset-top));
  597. background: #FFF9F9;
  598. border-bottom: 1rpx solid #F0F0F0;
  599. .back-btn {
  600. width: 70rpx;
  601. height: 70rpx;
  602. display: flex;
  603. align-items: center;
  604. justify-content: center;
  605. background: rgba(240, 240, 240, 0.5);
  606. border-radius: 50%;
  607. 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>');
  608. background-size: 40rpx 40rpx;
  609. background-repeat: no-repeat;
  610. background-position: center;
  611. }
  612. .header-title {
  613. font-size: 38rpx;
  614. font-weight: bold;
  615. color: #333;
  616. }
  617. .placeholder {
  618. width: 70rpx;
  619. }
  620. }
  621. .content {
  622. flex: 1;
  623. padding: 0;
  624. }
  625. .content-container {
  626. padding: 20rpx 30rpx 120rpx;
  627. }
  628. /* 个人信息卡片 */
  629. .profile-card {
  630. background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  631. border-radius: 25rpx;
  632. padding: 35rpx;
  633. margin-bottom: 25rpx;
  634. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
  635. }
  636. .profile-header {
  637. display: flex;
  638. align-items: center;
  639. margin-bottom: 30rpx;
  640. .profile-avatar {
  641. width: 160rpx;
  642. height: 160rpx;
  643. border-radius: 50%;
  644. background-size: cover;
  645. background-repeat: no-repeat;
  646. background-position: center;
  647. margin-right: 25rpx;
  648. border: 2rpx solid #FFF;
  649. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  650. }
  651. .profile-info {
  652. flex: 1;
  653. .profile-name {
  654. display: block;
  655. font-size: 36rpx;
  656. font-weight: bold;
  657. color: #333;
  658. margin-bottom: 10rpx;
  659. }
  660. .profile-badge {
  661. display: inline-block;
  662. background: #FFD700;
  663. color: #FFFFFF;
  664. font-size: 24rpx;
  665. font-weight: bold;
  666. padding: 6rpx 16rpx;
  667. border-radius: 15rpx;
  668. margin-bottom: 10rpx;
  669. }
  670. .profile-rating {
  671. display: block;
  672. font-size: 28rpx;
  673. color: #666;
  674. }
  675. }
  676. }
  677. /* 等级和积分 */
  678. .level-points {
  679. display: flex;
  680. align-items: center;
  681. justify-content: space-between;
  682. margin-bottom: 30rpx;
  683. .level-info {
  684. display: flex;
  685. align-items: center;
  686. gap: 10rpx;
  687. .level-icon {
  688. width: 44rpx;
  689. height: 44rpx;
  690. 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>');
  691. background-size: contain;
  692. background-repeat: no-repeat;
  693. background-position: center;
  694. }
  695. .level-name {
  696. font-size: 32rpx;
  697. font-weight: bold;
  698. color: #FF9800;
  699. }
  700. }
  701. .points-value {
  702. font-size: 48rpx;
  703. font-weight: bold;
  704. color: #E91E63;
  705. }
  706. .points-label {
  707. font-size: 28rpx;
  708. color: #666;
  709. }
  710. }
  711. /* 等级进度 */
  712. .level-progress {
  713. .progress-label {
  714. display: block;
  715. font-size: 26rpx;
  716. color: #333;
  717. margin-bottom: 15rpx;
  718. }
  719. .progress-bar {
  720. width: 100%;
  721. height: 12rpx;
  722. background: rgba(255, 255, 255, 0.5);
  723. border-radius: 6rpx;
  724. margin-bottom: 10rpx;
  725. .progress-fill {
  726. height: 100%;
  727. background: #FFB74D;
  728. border-radius: 6rpx;
  729. }
  730. }
  731. .progress-values {
  732. display: flex;
  733. justify-content: space-between;
  734. margin-bottom: 15rpx;
  735. .current-value,
  736. .target-value {
  737. font-size: 24rpx;
  738. color: #666;
  739. }
  740. }
  741. .upgrade-tip {
  742. display: block;
  743. background: rgba(255, 255, 255, 0.3);
  744. color: #E91E63;
  745. font-size: 26rpx;
  746. font-weight: bold;
  747. padding: 15rpx;
  748. border-radius: 15rpx;
  749. text-align: center;
  750. }
  751. }
  752. /* 功能菜单 */
  753. .function-grid {
  754. display: grid;
  755. grid-template-columns: repeat(4, 1fr);
  756. gap: 25rpx;
  757. padding: 35rpx;
  758. background: #FFFFFF;
  759. border-radius: 20rpx;
  760. margin-bottom: 20rpx;
  761. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  762. .function-item {
  763. display: flex;
  764. flex-direction: column;
  765. align-items: center;
  766. gap: 15rpx;
  767. .function-icon {
  768. width: 90rpx;
  769. height: 90rpx;
  770. border-radius: 50%;
  771. background-size: 50rpx 50rpx;
  772. background-repeat: no-repeat;
  773. background-position: center;
  774. &.calendar {
  775. background-color: #FFF3E0;
  776. 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>');
  777. display: flex;
  778. align-items: center;
  779. justify-content: center;
  780. font-size: 32rpx;
  781. font-weight: bold;
  782. color: #FF9800;
  783. }
  784. &.resources {
  785. background-color: #E8F5E9;
  786. 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>');
  787. }
  788. &.heart-book {
  789. background-color: #FFEBEE;
  790. 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>');
  791. }
  792. &.money {
  793. background-color: #F3E5F5;
  794. 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>');
  795. }
  796. }
  797. .function-text {
  798. font-size: 26rpx;
  799. color: #333;
  800. }
  801. }
  802. }
  803. /* 设置选项 */
  804. .settings-section {
  805. background: #FFFFFF;
  806. border-radius: 20rpx;
  807. padding: 0;
  808. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  809. .settings-item {
  810. display: flex;
  811. align-items: center;
  812. justify-content: space-between;
  813. padding: 25rpx 35rpx;
  814. margin-bottom: 0;
  815. background: #FFFFFF;
  816. border-radius: 20rpx;
  817. &:last-child {
  818. margin-bottom: 0;
  819. }
  820. .settings-icon {
  821. width: 44rpx;
  822. height: 44rpx;
  823. background-size: contain;
  824. background-repeat: no-repeat;
  825. background-position: center;
  826. margin-right: 20rpx;
  827. }
  828. .settings-icon.user {
  829. 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>');
  830. }
  831. .settings-icon.gear {
  832. 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>');
  833. }
  834. .settings-icon.logout {
  835. 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>');
  836. }
  837. .settings-icon.info {
  838. 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>');
  839. }
  840. .settings-text {
  841. flex: 1;
  842. font-size: 30rpx;
  843. color: #333;
  844. }
  845. .settings-icon.success-case {
  846. 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>');
  847. }
  848. .settings-text {
  849. flex: 1;
  850. font-size: 30rpx;
  851. color: #333;
  852. }
  853. .arrow-right {
  854. width: 24rpx;
  855. height: 24rpx;
  856. 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>');
  857. background-size: contain;
  858. background-repeat: no-repeat;
  859. background-position: center;
  860. }
  861. }
  862. }
  863. /* 底部导航 */
  864. .tabbar {
  865. position: fixed;
  866. bottom: 0;
  867. left: 0;
  868. right: 0;
  869. height: 100rpx;
  870. background: #FFFFFF;
  871. border-top: 1rpx solid #F0F0F0;
  872. display: flex;
  873. justify-content: space-around;
  874. align-items: center;
  875. padding-bottom: env(safe-area-inset-bottom);
  876. .tabbar-item {
  877. display: flex;
  878. flex-direction: column;
  879. align-items: center;
  880. gap: 8rpx;
  881. padding: 10rpx 0;
  882. .tabbar-icon {
  883. width: 44rpx;
  884. height: 44rpx;
  885. background-size: contain;
  886. background-repeat: no-repeat;
  887. background-position: center;
  888. position: relative;
  889. .badge {
  890. position: absolute;
  891. top: -8rpx;
  892. right: -8rpx;
  893. background: #FF4444;
  894. color: #FFFFFF;
  895. font-size: 20rpx;
  896. font-weight: bold;
  897. width: 32rpx;
  898. height: 32rpx;
  899. display: flex;
  900. align-items: center;
  901. justify-content: center;
  902. border-radius: 16rpx;
  903. }
  904. }
  905. .tabbar-text {
  906. font-size: 20rpx;
  907. color: #999;
  908. }
  909. &.active {
  910. .tabbar-text {
  911. color: #9C27B0;
  912. font-weight: bold;
  913. }
  914. }
  915. &.home .tabbar-icon {
  916. 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>');
  917. }
  918. &.active.home .tabbar-icon {
  919. 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>');
  920. }
  921. &.resources .tabbar-icon {
  922. 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 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>');
  923. }
  924. &.active.resources .tabbar-icon {
  925. 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>');
  926. }
  927. &.trophy .tabbar-icon {
  928. 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>');
  929. }
  930. &.active.trophy .tabbar-icon {
  931. 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>');
  932. }
  933. &.message .tabbar-icon {
  934. 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>');
  935. }
  936. &.active.message .tabbar-icon {
  937. 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>');
  938. }
  939. &.mine .tabbar-icon {
  940. 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>');
  941. }
  942. &.mine.active .tabbar-icon {
  943. 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>');
  944. }
  945. }
  946. }
  947. /* 签到弹框样式 */
  948. .sign-in-popup {
  949. width: 600rpx;
  950. background: #FFFFFF;
  951. border-radius: 20rpx;
  952. overflow: hidden;
  953. .popup-header {
  954. display: flex;
  955. justify-content: space-between;
  956. align-items: center;
  957. padding: 30rpx;
  958. background: #FFEBEE;
  959. border-bottom: none;
  960. .popup-title {
  961. font-size: 36rpx;
  962. font-weight: bold;
  963. color: #E91E63;
  964. }
  965. .close-btn {
  966. width: 40rpx;
  967. height: 40rpx;
  968. 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>');
  969. background-size: contain;
  970. background-repeat: no-repeat;
  971. background-position: center;
  972. }
  973. }
  974. .popup-content {
  975. padding: 20rpx 30rpx 30rpx;
  976. /* 签到统计 */
  977. .checkin-stats {
  978. display: flex;
  979. justify-content: space-around;
  980. margin-bottom: 30rpx;
  981. padding: 20rpx;
  982. background: #FFF3E0;
  983. border-radius: 15rpx;
  984. .stats-item {
  985. display: flex;
  986. flex-direction: column;
  987. align-items: center;
  988. gap: 10rpx;
  989. .stats-label {
  990. font-size: 24rpx;
  991. color: #666;
  992. }
  993. .stats-value {
  994. font-size: 48rpx;
  995. font-weight: bold;
  996. color: #E91E63;
  997. }
  998. .stats-unit {
  999. font-size: 24rpx;
  1000. color: #666;
  1001. }
  1002. }
  1003. }
  1004. .calendar-container {
  1005. background: #FFFFFF;
  1006. border-radius: 15rpx;
  1007. padding: 20rpx;
  1008. margin-bottom: 30rpx;
  1009. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  1010. .calendar-header {
  1011. display: flex;
  1012. justify-content: center;
  1013. align-items: center;
  1014. margin-bottom: 20rpx;
  1015. .calendar-title {
  1016. font-size: 28rpx;
  1017. font-weight: bold;
  1018. color: #333;
  1019. }
  1020. }
  1021. .calendar-week {
  1022. display: grid;
  1023. grid-template-columns: repeat(7, 1fr);
  1024. gap: 10rpx;
  1025. margin-bottom: 20rpx;
  1026. .week-day {
  1027. text-align: center;
  1028. font-size: 24rpx;
  1029. color: #999;
  1030. font-weight: bold;
  1031. }
  1032. }
  1033. .calendar-days {
  1034. display: grid;
  1035. grid-template-columns: repeat(7, 1fr);
  1036. gap: 15rpx;
  1037. .calendar-day {
  1038. text-align: center;
  1039. font-size: 28rpx;
  1040. color: #333;
  1041. background: #F5F5F5;
  1042. border-radius: 8rpx;
  1043. height: 70rpx;
  1044. display: flex;
  1045. flex-direction: column;
  1046. align-items: center;
  1047. justify-content: center;
  1048. position: relative;
  1049. &.other-month {
  1050. color: #CCCCCC;
  1051. background: #F9F9F9;
  1052. }
  1053. &.today {
  1054. background: #E1BEE7;
  1055. color: #6A1B9A;
  1056. font-weight: bold;
  1057. }
  1058. &.checked {
  1059. background: #F3E5F5;
  1060. color: #9C27B0;
  1061. font-weight: bold;
  1062. }
  1063. &.today-checked {
  1064. background: #9C27B0;
  1065. color: #FFFFFF;
  1066. font-weight: bold;
  1067. }
  1068. .check-mark {
  1069. position: absolute;
  1070. bottom: 5rpx;
  1071. right: 5rpx;
  1072. font-size: 18rpx;
  1073. color: #FFFFFF;
  1074. background: #9C27B0;
  1075. border-radius: 50%;
  1076. width: 24rpx;
  1077. height: 24rpx;
  1078. display: flex;
  1079. align-items: center;
  1080. justify-content: center;
  1081. }
  1082. .today-checked .check-mark {
  1083. background: #FFFFFF;
  1084. color: #9C27B0;
  1085. }
  1086. }
  1087. }
  1088. }
  1089. .sign-in-reward {
  1090. display: flex;
  1091. flex-direction: column;
  1092. align-items: center;
  1093. gap: 10rpx;
  1094. .reward-title {
  1095. font-size: 28rpx;
  1096. color: #666;
  1097. }
  1098. .reward-points {
  1099. font-size: 48rpx;
  1100. font-weight: bold;
  1101. color: #E91E63;
  1102. }
  1103. }
  1104. }
  1105. .popup-footer {
  1106. padding: 0 30rpx 30rpx;
  1107. .sign-in-btn {
  1108. width: 100%;
  1109. height: 80rpx;
  1110. background: #E91E63;
  1111. color: #FFFFFF;
  1112. font-size: 32rpx;
  1113. border-radius: 40rpx;
  1114. border: none;
  1115. font-weight: bold;
  1116. transition: all 0.3s;
  1117. &:hover {
  1118. background: #C2185B;
  1119. }
  1120. &.signed {
  1121. background: #E0E0E0;
  1122. color: #9E9E9E;
  1123. cursor: not-allowed;
  1124. &:hover {
  1125. background: #E0E0E0;
  1126. }
  1127. }
  1128. }
  1129. }
  1130. }
  1131. </style>