index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. <template>
  2. <view class="index-container">
  3. <!-- 顶部背景 -->
  4. <image class="top-bg" src="/static/image/home/top-bg.png" />
  5. <NavBar title="" color="#020202" :fixed="true" :bg="'transparent'">
  6. <template #left>
  7. <view class="left-title">{{appName}}</view>
  8. </template>
  9. </NavBar>
  10. <view class="page-warp">
  11. <view class="page-top">
  12. <view class="user-card">
  13. <!-- 背景图 -->
  14. <image class="user-card-bg" src="/static/image/home/usecard-bg.png" />
  15. <!-- 左上:姓名 + 职位 -->
  16. <view class="user-header">
  17. <view class="name-row">
  18. <text class="user-name">{{ cardInfo.nickName || '用户' }}</text>
  19. <text class="user-role">{{ cardInfo.postName || '职位' }}</text>
  20. </view>
  21. <text class="company-name">{{ cardInfo.companyName || '公司名称' }}</text>
  22. </view>
  23. <!-- 右上:头像 -->
  24. <view class="avatar-wrapper">
  25. <image class="avatar" :src="cardInfo.avatar || '/static/image/public/avatar-default.png'" />
  26. <image class="badge-icon" src="/static/image/public/badge-icon.png" />
  27. </view>
  28. <!-- 左下:联系方式 -->
  29. <view class="user-contact">
  30. <view class="contact-row" @click="makeCall">
  31. <uni-icons type="phone" :size="18" color="#666666"></uni-icons>
  32. <text class="contact-text">{{ cardInfo.phonenumber || '暂无电话' }}</text>
  33. </view>
  34. <view class="contact-row">
  35. <uni-icons type="email" :size="18" color="#666666"></uni-icons>
  36. <text class="contact-text">{{ cardInfo.email || '暂无邮箱' }}</text>
  37. </view>
  38. <view class="contact-row">
  39. <uni-icons type="location" :size="18" color="#666666"></uni-icons>
  40. <text class="contact-text">{{ cardInfo.companyAddress || '暂无地址' }}</text>
  41. </view>
  42. </view>
  43. <!-- 右下:分享名片按钮 -->
  44. <!-- <view class="share-btn-wrapper">
  45. <view class="share-btn" @click="shareCard">
  46. <text class="share-text">分享名片</text>
  47. </view>
  48. </view> -->
  49. </view>
  50. </view>
  51. <!-- 最近访客模块 -->
  52. <view class="recent-visitors" v-if="false">
  53. <view class="section-header">
  54. <text class="section-title">最近访客</text>
  55. <view class="visitor-count">
  56. <view class="avatar-group">
  57. <image class="group-avatar" src="/static/avatar-1.png" mode="aspectFill" />
  58. <image class="group-avatar" src="/static/avatar-2.png" mode="aspectFill" />
  59. <image class="group-avatar" src="/static/avatar-3.png" mode="aspectFill" />
  60. </view>
  61. <text class="visitor-number">255 人</text>
  62. </view>
  63. </view>
  64. <view class="visitor-list">
  65. <view class="visitor-item">
  66. <view class="visitor-left">
  67. <view class="visitor-top">
  68. <view class="visitor-avatar">
  69. <image src="/static/image/public/avatar-default2.png" mode="aspectFill" />
  70. </view>
  71. <view class="visitor-name-row">
  72. <text class="visitor-name">匿名用户</text>
  73. <text class="visitor-tag pending">待跟进</text>
  74. </view>
  75. <view class="view-more-btn" @click="viewAllVisitors">查看更多</view>
  76. </view>
  77. <view class="visitor-meta">
  78. <text class="meta-item">
  79. <text class="meta-label">来源:</text>
  80. <text class="meta-value">微信小程序</text>
  81. </text>
  82. <text class="meta-item">
  83. <text class="meta-label">手机:</text>
  84. <text class="meta-value">13822255555</text>
  85. </text>
  86. </view>
  87. </view>
  88. <view class="visitor-product">
  89. <image class="product-image" src="/static/product-printer.png" mode="aspectFit" />
  90. <view class="product-info">
  91. <text class="product-name">惠普黑白激光打印机 选配小白盒巴</text>
  92. <view>
  93. <text class="product-tag">打印机</text>
  94. <text class="product-brand">惠普</text>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. <!-- 底部拖动条 -->
  101. <view class="drag-handle"></view>
  102. </view>
  103. <!-- 功能菜单网格 -->
  104. <view class="function-grid" v-if="false">
  105. <view class="grid-item" @click="navigateTo('clue')">
  106. <view class="grid-icon clue-icon">
  107. <text class="icon-text">📋</text>
  108. </view>
  109. <text class="grid-label">线索管理</text>
  110. </view>
  111. <view class="grid-item" @click="navigateTo('customer')">
  112. <view class="grid-icon customer-icon">
  113. <text class="icon-text">🏢</text>
  114. </view>
  115. <text class="grid-label">客户管理</text>
  116. </view>
  117. <view class="grid-item" @click="navigateTo('contact')">
  118. <view class="grid-icon contact-icon">
  119. <text class="icon-text">👥</text>
  120. </view>
  121. <text class="grid-label">联系人管理</text>
  122. </view>
  123. <view class="grid-item" @click="navigateTo('public-pool')">
  124. <view class="grid-icon pool-icon">
  125. <text class="icon-text">🌊</text>
  126. </view>
  127. <text class="grid-label">客户公海</text>
  128. </view>
  129. <view class="grid-item" @click="navigateTo('opportunity')">
  130. <view class="grid-icon opportunity-icon">
  131. <text class="icon-text">💼</text>
  132. </view>
  133. <text class="grid-label">商机管理</text>
  134. </view>
  135. <view class="grid-item" @click="navigateTo('payment')">
  136. <view class="grid-icon payment-icon">
  137. <text class="icon-text">💰</text>
  138. </view>
  139. <text class="grid-label">回款管理</text>
  140. </view>
  141. <view class="grid-item" @click="navigateTo('product')">
  142. <view class="grid-icon product-icon">
  143. <text class="icon-text">📦</text>
  144. </view>
  145. <text class="grid-label">产品管理</text>
  146. </view>
  147. <view class="grid-item" @click="navigateTo('all')">
  148. <view class="grid-icon all-icon">
  149. <text class="icon-text">📊</text>
  150. </view>
  151. <text class="grid-label">全部</text>
  152. </view>
  153. </view>
  154. <!-- 业务日历模块 -->
  155. <view class="business-calendar" v-if="false">
  156. <view class="section-header">
  157. <text class="section-title">业务日历</text>
  158. <text class="view-more" @click="viewAllCalendar">查看更多</text>
  159. </view>
  160. <!-- 日历头部 -->
  161. <view class="calendar-header">
  162. <text class="calendar-month">2026 年 4 月</text>
  163. </view>
  164. <!-- 星期 -->
  165. <view class="calendar-weekdays">
  166. <text class="weekday">日</text>
  167. <text class="weekday">一</text>
  168. <text class="weekday">二</text>
  169. <text class="weekday">三</text>
  170. <text class="weekday">四</text>
  171. <text class="weekday">五</text>
  172. <text class="weekday">六</text>
  173. </view>
  174. <!-- 日期网格 -->
  175. <view class="calendar-dates">
  176. <view class="date-cell">
  177. <text class="date-num">15</text>
  178. </view>
  179. <view class="date-cell">
  180. <text class="date-num">16</text>
  181. </view>
  182. <view class="date-cell">
  183. <text class="date-num">17</text>
  184. </view>
  185. <view class="date-cell today">
  186. <text class="date-num current">18</text>
  187. </view>
  188. <view class="date-cell has-event">
  189. <text class="date-num">19</text>
  190. <view class="event-dot"></view>
  191. </view>
  192. <view class="date-cell">
  193. <text class="date-num">20</text>
  194. </view>
  195. <view class="date-cell">
  196. <text class="date-num">21</text>
  197. </view>
  198. </view>
  199. <!-- 今日日程 -->
  200. <view class="today-schedule">
  201. <view class="schedule-item">
  202. <view class="schedule-time">
  203. <text class="time-period">下午</text>
  204. <text class="time-value">3:00</text>
  205. </view>
  206. <view class="schedule-content">
  207. <text class="schedule-title">与李总沟通合同细节</text>
  208. </view>
  209. </view>
  210. <view class="schedule-item tomorrow">
  211. <view class="schedule-time">
  212. <text class="time-period">明天</text>
  213. <text class="time-value">10:00</text>
  214. </view>
  215. <view class="schedule-content">
  216. <text class="schedule-title">拜访新客户 - 科技公司</text>
  217. </view>
  218. </view>
  219. </view>
  220. </view>
  221. </view>
  222. <!-- 底部留白,避免被 TabBar 遮挡 -->
  223. <view class="bottom-spacer"></view>
  224. <!-- 名片预览弹窗 -->
  225. <CardPreview :visible="showPreview" @close="closePreview" @share="handleShareCard" @save="handleSaveCard" />
  226. </view>
  227. </template>
  228. <script setup>
  229. import NavBar from '@/components/nav-bar/index.vue'
  230. import CardPreview from './components/card-preview.vue'
  231. import {
  232. ref,
  233. onMounted,
  234. computed
  235. } from 'vue'
  236. import {
  237. useUserStore
  238. } from '@/store/modules/user.js'
  239. import {
  240. storeToRefs
  241. } from 'pinia'
  242. import {
  243. getCurrentConfig
  244. } from '@/config/index.js'
  245. // 使用 Pinia 管理用户状态
  246. const userStore = useUserStore()
  247. const {
  248. cardInfo,
  249. companyInfo
  250. } = storeToRefs(userStore)
  251. let appName = ref('')
  252. onMounted(async () => {
  253. const config = await getCurrentConfig()
  254. appName.value = config.appName
  255. // 从 store 中获取用户名片和公司信息
  256. console.log('用户名片信息:', cardInfo.value)
  257. console.log('公司信息:', companyInfo.value)
  258. // 如果没有数据,重新获取
  259. if (!cardInfo.value.nickName) {
  260. await userStore.queryCardInfo()
  261. }
  262. if (!companyInfo.value.name) {
  263. await userStore.queryCompanyInfo()
  264. }
  265. console.log('更新后的用户名片信息:', cardInfo.value)
  266. console.log('更新后的公司信息:', companyInfo.value)
  267. })
  268. const makeCall = () => {
  269. if (cardInfo.value.phonenumber) {
  270. uni.makePhoneCall({
  271. phoneNumber: cardInfo.value.phonenumber
  272. })
  273. } else {
  274. uni.showToast({
  275. title: '暂无电话号码',
  276. icon: 'none'
  277. })
  278. }
  279. }
  280. // 控制名片预览弹窗
  281. const showPreview = ref(false)
  282. const shareCard = () => {
  283. showPreview.value = true
  284. }
  285. // 关闭预览弹窗
  286. const closePreview = () => {
  287. showPreview.value = false
  288. }
  289. // 分享名片
  290. const handleShareCard = () => {
  291. uni.showShareMenu({
  292. withShareTicket: true
  293. })
  294. }
  295. // 保存名片
  296. const handleSaveCard = () => {
  297. uni.showToast({
  298. title: '已保存到手机相册',
  299. icon: 'success'
  300. })
  301. }
  302. const viewAllVisitors = () => {
  303. uni.navigateTo({
  304. url: '/pages/visitors/list'
  305. })
  306. }
  307. const navigateTo = (page) => {
  308. uni.showToast({
  309. title: `功能开发中:${page}`,
  310. icon: 'none'
  311. })
  312. }
  313. const viewAllCalendar = () => {
  314. uni.navigateTo({
  315. url: '/pages/calendar/list'
  316. })
  317. }
  318. </script>
  319. <style lang="scss" scoped>
  320. .index-container {
  321. background-color: #f5f6f8;
  322. padding-bottom: 120rpx;
  323. }
  324. .left-title {
  325. font-size: 44rpx;
  326. font-weight: bold;
  327. color: #ffffff;
  328. text-shadow: 2px 2px 0 black;
  329. }
  330. .top-bg {
  331. width: 750rpx;
  332. height: 634rpx;
  333. position: fixed;
  334. top: 0;
  335. left: 0;
  336. z-index: 1;
  337. }
  338. .page-warp {
  339. position: relative;
  340. z-index: 2;
  341. padding: 20px;
  342. }
  343. /* 用户信息卡片 */
  344. .page-top {
  345. margin-bottom: 20rpx;
  346. .user-card {
  347. width: 100%;
  348. height: 414rpx;
  349. padding: 80rpx 40rpx 32rpx;
  350. position: relative;
  351. .user-card-bg {
  352. position: absolute;
  353. top: 0;
  354. left: 0;
  355. width: 100%;
  356. height: 100%;
  357. z-index: 0;
  358. }
  359. view,
  360. text {
  361. position: relative;
  362. z-index: 1;
  363. }
  364. .user-header {
  365. .name-row {
  366. display: flex;
  367. align-items: center;
  368. margin-bottom: 16rpx;
  369. .user-name {
  370. font-size: 44rpx;
  371. font-weight: 700;
  372. color: #202020;
  373. line-height: 1.2;
  374. }
  375. .user-role {
  376. margin-left: 16rpx;
  377. padding: 6rpx 16rpx;
  378. background: rgba(68, 110, 255, 0.10);
  379. border-radius: 8rpx;
  380. font-size: 24rpx;
  381. font-weight: 500;
  382. color: #446eff;
  383. }
  384. }
  385. .company-name {
  386. font-size: 28rpx;
  387. font-weight: 500;
  388. color: #666666;
  389. line-height: 1.4;
  390. }
  391. }
  392. .avatar-wrapper {
  393. position: absolute;
  394. top: 32rpx;
  395. right: 40rpx;
  396. width: 140rpx;
  397. height: 140rpx;
  398. border-radius: 50%;
  399. box-shadow: 0rpx 0rpx 4rpx 0rpx rgba(21, 93, 252, 0.20);
  400. .avatar {
  401. width: 100%;
  402. height: 100%;
  403. border-radius: 50%;
  404. }
  405. .badge-icon {
  406. width: 64rpx;
  407. height: 64rpx;
  408. position: absolute;
  409. bottom: -10rpx;
  410. right: -10rpx;
  411. z-index: 1;
  412. }
  413. }
  414. .user-contact {
  415. margin-top: 32rpx;
  416. .contact-row {
  417. display: flex;
  418. align-items: center;
  419. margin-bottom: 16rpx;
  420. uni-icons {
  421. margin-right: 12rpx;
  422. flex-shrink: 0;
  423. }
  424. .contact-text {
  425. font-size: 26rpx;
  426. color: #666666;
  427. }
  428. }
  429. }
  430. .share-btn-wrapper {
  431. position: absolute;
  432. bottom: 90rpx;
  433. right: 40rpx;
  434. .share-btn {
  435. padding: 14rpx 36rpx;
  436. background: linear-gradient(90deg, #446dff 0%, #6b85ff 100%);
  437. border-radius: 32rpx;
  438. box-shadow: 0 4rpx 12rpx rgba(68, 110, 255, 0.35);
  439. .share-text {
  440. font-size: 26rpx;
  441. font-weight: 500;
  442. color: #ffffff;
  443. }
  444. }
  445. }
  446. }
  447. }
  448. /* 最近访客模块 */
  449. .recent-visitors {
  450. padding: 20rpx;
  451. background: #f2f6ff;
  452. border: 2rpx solid rgba(255, 255, 255, 0.80);
  453. border-radius: 28rpx;
  454. .section-header {
  455. display: flex;
  456. align-items: center;
  457. justify-content: space-between;
  458. margin-bottom: 24rpx;
  459. .section-title {
  460. font-size: 32rpx;
  461. font-weight: 600;
  462. color: #333333;
  463. }
  464. .visitor-count {
  465. display: flex;
  466. align-items: center;
  467. margin-left: 20rpx;
  468. .avatar-group {
  469. display: flex;
  470. margin-right: 12rpx;
  471. .group-avatar {
  472. width: 32rpx;
  473. height: 32rpx;
  474. border-radius: 50%;
  475. border: 4rpx solid #ffffff;
  476. margin-left: -16rpx;
  477. &:first-child {
  478. margin-left: 0;
  479. }
  480. }
  481. }
  482. .visitor-number {
  483. font-size: 24rpx;
  484. color: #999999;
  485. }
  486. }
  487. .view-more {
  488. font-size: 24rpx;
  489. color: #667eea;
  490. margin-left: auto;
  491. }
  492. }
  493. .visitor-list {
  494. background: #ffffff;
  495. border: 2rpx solid #ffffff;
  496. border-radius: 28rpx;
  497. .visitor-item {
  498. padding: 20rpx;
  499. .visitor-left {
  500. display: grid;
  501. .visitor-top {
  502. display: grid;
  503. grid-template-columns: auto 1fr auto;
  504. gap: 6rpx;
  505. }
  506. .visitor-name-row {
  507. display: flex;
  508. align-items: center;
  509. .visitor-name {
  510. font-size: 24rpx;
  511. font-weight: 500;
  512. color: #8390b1;
  513. margin: 0 10rpx;
  514. }
  515. .visitor-tag {
  516. width: 92rpx;
  517. height: 40rpx;
  518. text-align: center;
  519. line-height: 40rpx;
  520. border: 1.2rpx solid #ff9230;
  521. border-radius: 12rpx;
  522. font-size: 24rpx;
  523. font-weight: 500;
  524. color: #ff9230;
  525. }
  526. }
  527. .view-more-btn {
  528. font-size: 24rpx;
  529. color: #999999;
  530. }
  531. .visitor-avatar {
  532. width: 40rpx;
  533. height: 40rpx;
  534. border-radius: 50%;
  535. background: #ffffff;
  536. padding: 4rpx;
  537. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  538. image {
  539. width: 100%;
  540. height: 100%;
  541. border-radius: 50%;
  542. }
  543. }
  544. }
  545. .visitor-meta {
  546. display: flex;
  547. align-items: flex-start;
  548. margin-bottom: 16rpx;
  549. gap: 32rpx;
  550. .meta-item {
  551. display: flex;
  552. align-items: flex-start;
  553. .meta-label {
  554. font-size: 22rpx;
  555. color: #999999;
  556. }
  557. .meta-value {
  558. font-size: 22rpx;
  559. color: #666666;
  560. }
  561. }
  562. }
  563. .visitor-product {
  564. display: flex;
  565. align-items: flex-start;
  566. background: #ffffff;
  567. border-radius: 16rpx;
  568. padding: 16rpx;
  569. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
  570. .product-image {
  571. width: 72rpx;
  572. height: 72rpx;
  573. border-radius: 12rpx;
  574. background-color: #30cfd0;
  575. margin-right: 16rpx;
  576. }
  577. .product-info {
  578. flex: 1;
  579. display: flex;
  580. flex-direction: column;
  581. justify-content: center;
  582. .product-name {
  583. font-size: 24rpx;
  584. font-weight: 500;
  585. color: #08105c;
  586. }
  587. .product-tag,
  588. .product-brand {
  589. font-size: 20rpx;
  590. color: #999999;
  591. margin-right: 12rpx;
  592. }
  593. }
  594. }
  595. }
  596. }
  597. .drag-handle {
  598. width: 80rpx;
  599. height: 8rpx;
  600. background: rgba(0, 0, 0, 0.2);
  601. border-radius: 4rpx;
  602. margin: 24rpx auto 0;
  603. }
  604. }
  605. /* 功能菜单网格 */
  606. .function-grid {
  607. display: grid;
  608. grid-template-columns: repeat(4, 1fr);
  609. gap: 24rpx;
  610. margin-top: 20rpx;
  611. padding: 32rpx 24rpx;
  612. height: 322rpx;
  613. background: linear-gradient(180deg, #eff6ff, #ffffff 42%);
  614. border: 2rpx solid #ffffff;
  615. border-radius: 28rpx;
  616. box-shadow: 0rpx 8rpx 8rpx 0rpx rgba(178, 194, 208, 0.10);
  617. .grid-item {
  618. display: flex;
  619. flex-direction: column;
  620. align-items: center;
  621. .grid-icon {
  622. width: 54rpx;
  623. height: 54rpx;
  624. border-radius: 28rpx;
  625. display: flex;
  626. align-items: center;
  627. justify-content: center;
  628. margin-bottom: 12rpx;
  629. .icon-text {
  630. font-size: 48rpx;
  631. }
  632. }
  633. .clue-icon {
  634. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  635. }
  636. .customer-icon {
  637. background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  638. }
  639. .contact-icon {
  640. background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  641. }
  642. .pool-icon {
  643. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  644. }
  645. .opportunity-icon {
  646. background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  647. }
  648. .payment-icon {
  649. background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  650. }
  651. .product-icon {
  652. background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  653. }
  654. .all-icon {
  655. background: linear-gradient(135deg, #cd9cf2 0%, #f6f3ff 100%);
  656. }
  657. .grid-label {
  658. font-size: 24rpx;
  659. color: #333333;
  660. }
  661. }
  662. }
  663. /* 业务日历模块 */
  664. .business-calendar {
  665. background: #ffffff;
  666. margin: 20rpx 0;
  667. padding: 32rpx;
  668. border-radius: 24rpx;
  669. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
  670. .section-header {
  671. display: flex;
  672. align-items: center;
  673. justify-content: space-between;
  674. margin-bottom: 24rpx;
  675. .section-title {
  676. font-size: 32rpx;
  677. font-weight: 600;
  678. color: #333333;
  679. }
  680. .view-more {
  681. font-size: 24rpx;
  682. color: #667eea;
  683. }
  684. }
  685. .calendar-header {
  686. text-align: center;
  687. margin-bottom: 20rpx;
  688. .calendar-month {
  689. font-size: 30rpx;
  690. font-weight: 600;
  691. color: #333333;
  692. }
  693. }
  694. .calendar-weekdays {
  695. display: grid;
  696. grid-template-columns: repeat(7, 1fr);
  697. text-align: center;
  698. margin-bottom: 16rpx;
  699. .weekday {
  700. font-size: 24rpx;
  701. color: #999999;
  702. padding: 12rpx 0;
  703. }
  704. }
  705. .calendar-dates {
  706. display: grid;
  707. grid-template-columns: repeat(7, 1fr);
  708. gap: 8rpx;
  709. margin-bottom: 32rpx;
  710. .date-cell {
  711. aspect-ratio: 1;
  712. display: flex;
  713. flex-direction: column;
  714. align-items: center;
  715. justify-content: center;
  716. border-radius: 50%;
  717. position: relative;
  718. .date-num {
  719. font-size: 26rpx;
  720. color: #333333;
  721. }
  722. &.today {
  723. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  724. .date-num {
  725. color: #ffffff;
  726. font-weight: 600;
  727. }
  728. }
  729. &.has-event {
  730. .event-dot {
  731. width: 12rpx;
  732. height: 12rpx;
  733. background: #ff6b6b;
  734. border-radius: 50%;
  735. position: absolute;
  736. bottom: 8rpx;
  737. }
  738. }
  739. }
  740. }
  741. .today-schedule {
  742. .schedule-item {
  743. display: flex;
  744. align-items: flex-start;
  745. padding: 24rpx;
  746. background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  747. border-radius: 16rpx;
  748. margin-bottom: 16rpx;
  749. border-left: 6rpx solid #667eea;
  750. &.tomorrow {
  751. border-left-color: #30cfd0;
  752. }
  753. .schedule-time {
  754. display: flex;
  755. flex-direction: column;
  756. align-items: center;
  757. margin-right: 20rpx;
  758. min-width: 100rpx;
  759. .time-period {
  760. font-size: 22rpx;
  761. color: #999999;
  762. margin-bottom: 4rpx;
  763. }
  764. .time-value {
  765. font-size: 28rpx;
  766. font-weight: 600;
  767. color: #333333;
  768. }
  769. }
  770. .schedule-content {
  771. flex: 1;
  772. .schedule-title {
  773. font-size: 28rpx;
  774. color: #333333;
  775. line-height: 1.5;
  776. }
  777. }
  778. }
  779. }
  780. }
  781. .bottom-spacer {
  782. height: 40rpx;
  783. }
  784. </style>