index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. <template>
  2. <view>
  3. <!-- 品牌启动页(冷启动时覆盖全屏) -->
  4. <view class="splash-overlay" v-if="showSplash">
  5. <view class="splash-content">
  6. <view class="splash-logo-mark">
  7. <text class="splash-logo-char">浠</text>
  8. </view>
  9. <text class="splash-brand-name">浠艾福</text>
  10. <!-- 五维图标行 -->
  11. <view class="splash-dims-row">
  12. <view
  13. v-for="(item, index) in splashDimList"
  14. :key="item.code"
  15. class="splash-dim-item"
  16. :style="'animation-delay:' + (0.8 + index * 0.25) + 's'"
  17. >
  18. <view class="splash-dim-circle" :style="'background:' + hexToRgba(item.color, 0.25)">
  19. <text class="splash-dim-icon">{{ item.icon }}</text>
  20. </view>
  21. <text class="splash-dim-label">{{ item.name }}</text>
  22. </view>
  23. </view>
  24. <text class="splash-tagline">给全家的一站式幸福提案</text>
  25. <view class="splash-loading">
  26. <view class="splash-dot splash-dot--1"></view>
  27. <view class="splash-dot splash-dot--2"></view>
  28. <view class="splash-dot splash-dot--3"></view>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- 未登录态 — 发现页/引流内容,直接内嵌,不跳转 -->
  33. <view v-if="!currentRole" class="discover-container">
  34. <!-- 品牌头部 -->
  35. <PageBanner theme="home"
  36. tagline="家庭健康成长俱乐部"
  37. quote="给全家的一站式幸福提案" />
  38. <!-- 五行沙盘预览 -->
  39. <wuxing-sandbox mode="preview" badgeText="登录查看完整报告" @point-click="handleLogin" />
  40. <!-- 活动/商品推荐 -->
  41. <view class="recommend-section">
  42. <view class="section-header">
  43. <text class="section-title">🔥 热门推荐</text>
  44. <text class="section-more" @click="goShop">查看更多 ›</text>
  45. </view>
  46. <scroll-view scroll-x enable-flex show-scrollbar="false" class="type-filter-scroll">
  47. <view
  48. v-for="item in typeList"
  49. :key="item.value"
  50. :class="['filter-chip', currentType === item.value ? 'active' : '']"
  51. @click="onTypeChange(item.value)"
  52. >
  53. {{ item.label }}
  54. </view>
  55. </scroll-view>
  56. <view v-if="loading" class="loading-state">
  57. <text class="loading-text">加载中...</text>
  58. </view>
  59. <view v-else-if="products.length === 0" class="empty-state">
  60. <text class="empty-text">暂无商品,去商城看看吧</text>
  61. </view>
  62. <view v-else class="product-grid">
  63. <view
  64. v-for="item in products"
  65. :key="item.id"
  66. class="product-card"
  67. @click="handleLogin()"
  68. >
  69. <image class="product-cover" :src="item.coverImage || '/static/default-product.png'" mode="aspectFill" />
  70. <view class="product-info">
  71. <text class="product-name">{{ item.name }}</text>
  72. <view class="product-price-row">
  73. <!-- 游客不显示价格 -->
  74. <text class="product-price-login">登录查看</text>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- 五维全景幸福矩阵 -->
  81. <view class="why-section">
  82. <view class="section-header">
  83. <text class="section-title">🌏 五维全景幸福矩阵 — 给全家的一站式幸福提案</text>
  84. </view>
  85. <view class="dim-matrix">
  86. <view
  87. v-for="dim in dimList" :key="dim.code"
  88. class="dim-card"
  89. :style="'border-left:6rpx solid ' + dim.color"
  90. @click="handleLogin"
  91. >
  92. <view class="dim-icon-circle" :style="'background:' + dim.bgColor">
  93. <text class="dim-icon">{{ dim.icon }}</text>
  94. </view>
  95. <view class="dim-tag" :style="'color:' + dim.color + ';background:' + dim.bgColor">{{ dim.name }} · {{ dim.title }}</view>
  96. <text class="dim-desc">{{ dim.desc }}</text>
  97. </view>
  98. </view>
  99. <!-- 五维能量环装饰 -->
  100. <view class="dim-energy-row">
  101. <view
  102. v-for="c in energyDotColors" :key="c"
  103. class="energy-dot"
  104. :style="'background:' + c"
  105. ></view>
  106. </view>
  107. </view>
  108. <!-- 底部登录按钮 -->
  109. <view class="login-footer">
  110. <button class="login-btn" @click="handleLogin">登录 / 注册</button>
  111. <text class="login-footer-text">登录即表示同意《用户协议》和《隐私政策》</text>
  112. </view>
  113. <!-- 底部占位 -->
  114. <view style="height: 120rpx;"></view>
  115. </view>
  116. <!-- 登录态 — 按角色渲染(带淡入淡出过渡)-->
  117. <view v-else class="role-switch-wrapper">
  118. <transition name="fade" mode="out-in">
  119. <parent-index v-if="currentRole === 'parent'" key="parent" />
  120. <child-index v-else-if="currentRole === 'child'" key="child" />
  121. <!-- teacher-index 已废弃,教师功能折入 parent-index -->
  122. <view v-else class="loading-container" key="loading">
  123. <text>加载中...</text>
  124. </view>
  125. </transition>
  126. </view>
  127. </view>
  128. </template>
  129. <script>
  130. import ParentIndex from './parent-index.vue'
  131. import ChildIndex from './child-index.vue'
  132. // TeacherIndex 已废弃,教师功能折入 parent-index
  133. import PageBanner from '../../components/PageBanner.vue'
  134. import WuxingSandbox from '../../components/wuxing-sandbox.vue'
  135. import { acceptParentInvite, productList } from '../../utils/api.js'
  136. var DIMENSIONS = [
  137. { code: 'body', name: '身', icon: '🌏', color: '#8D6E63', bgColor: 'rgba(141,110,99,0.15)', title: '主动健康', desc: '用最适合的方法,从根源调理家人体质,畅享高质量长寿生活' },
  138. { code: 'mind', name: '心', icon: '🔥', color: '#FF6B35', bgColor: 'rgba(255,107,53,0.15)', title: '大爱传承', desc: '将长辈陪护升华为家族纽带,让家风温暖代代相传' },
  139. { code: 'wisdom', name: '智', icon: '⚡', color: '#FFD700', bgColor: 'rgba(255,215,0,0.15)', title: '赋能未来', desc: '专业测评与素质培养,开启孩子面向未来的大智慧' },
  140. { code: 'action', name: '行', icon: '🌿', color: '#4CAF50', bgColor: 'rgba(76,175,80,0.15)', title: '知行合一', desc: '在亲子户外与沙龙中,让健康生活方式真正知行合一' },
  141. { code: 'wealth', name: '富', icon: '💧', color: '#42A5F5', bgColor: 'rgba(66,165,245,0.15)', title: '利他创富', desc: '依托创客生态,在利他分享中实现家庭第二收入曲线' }
  142. ]
  143. export default {
  144. components: {
  145. ParentIndex,
  146. ChildIndex,
  147. PageBanner,
  148. WuxingSandbox
  149. },
  150. data() {
  151. return {
  152. currentRole: '',
  153. showSplash: false,
  154. typeList: [
  155. { label: '全部', value: '' },
  156. { label: '活动', value: 'activity' },
  157. { label: '课程', value: 'course' },
  158. { label: '实物', value: 'physical' },
  159. { label: '数字', value: 'digital' },
  160. { label: '服务', value: 'service' }
  161. ],
  162. currentType: '',
  163. products: [],
  164. loading: false
  165. }
  166. },
  167. onLoad(options) {
  168. // 冷启动检查:是否已展示品牌启动页
  169. if (!uni.getStorageSync('_splashReady') && !this.showSplash) {
  170. this.showSplash = true
  171. // 立即标记已展示,防止 reLaunch 等场景下重复触发 splash
  172. uni.setStorageSync('_splashReady', true)
  173. var self = this
  174. setTimeout(function() {
  175. self.showSplash = false
  176. }, 2500)
  177. // 不因 splash 阻塞初始化逻辑 — splash 仅是视觉遮盖层
  178. }
  179. this._doInit(options)
  180. },
  181. onShow() {
  182. // 始终执行初始化,不因 splash 状态跳过,确保登录态变更后及时切换视图
  183. this._doInit()
  184. },
  185. _doInit(options) {
  186. options = options || {}
  187. if (!this.isLoggedIn()) {
  188. this.currentRole = ''
  189. if (!this.showSplash) {
  190. this.loadProducts()
  191. }
  192. return
  193. }
  194. this.syncRoleAndTabBar()
  195. if (options.inviteCode && options.type === 'parent_invite') {
  196. this.handleParentInvite(options.inviteCode)
  197. } else {
  198. var storedCode = uni.getStorageSync('inviteCode')
  199. var storedType = uni.getStorageSync('inviteType')
  200. if (storedCode && storedType === 'parent_invite') {
  201. this.handleParentInvite(storedCode)
  202. uni.removeStorageSync('inviteCode')
  203. uni.removeStorageSync('inviteType')
  204. }
  205. }
  206. },
  207. methods: {
  208. isLoggedIn() {
  209. return !!uni.getStorageSync('token')
  210. },
  211. normalizeCurrentRole() {
  212. const role = uni.getStorageSync('role') || 'parent'
  213. const currentRole = uni.getStorageSync('currentRole')
  214. if (!currentRole) {
  215. return role
  216. }
  217. // 非规划师账号不允许落到规划师首页
  218. if (currentRole === 'teacher' && role !== 'teacher') {
  219. return role
  220. }
  221. // 只有家长账号允许切换到孩子视角
  222. if (currentRole === 'child' && role !== 'parent') {
  223. return role
  224. }
  225. return currentRole
  226. },
  227. syncRoleAndTabBar() {
  228. this.currentRole = this.normalizeCurrentRole()
  229. uni.setStorageSync('currentRole', this.currentRole)
  230. },
  231. // ===== 发现页 / 未登录态方法 =====
  232. loadProducts() {
  233. this.loading = true
  234. var params = { page: 1, size: 10 }
  235. if (this.currentType) {
  236. params.productType = this.currentType
  237. }
  238. productList(params).then(function(res) {
  239. this.loading = false
  240. if (res.code === 200 && res.data) {
  241. this.products = res.data.records || []
  242. }
  243. }.bind(this)).catch(function() {
  244. this.loading = false
  245. }.bind(this))
  246. },
  247. onTypeChange(value) {
  248. this.currentType = value
  249. this.loadProducts()
  250. },
  251. goShop() {
  252. uni.navigateTo({ url: '/pages/action/index' })
  253. },
  254. goDetail(id) {
  255. uni.navigateTo({ url: '/pages/discover/product-detail/product-detail?id=' + id })
  256. },
  257. handleLogin() {
  258. uni.navigateTo({ url: '/pages/login/login?redirect=' + encodeURIComponent('/pages/index/index') })
  259. },
  260. async handleParentInvite(code) {
  261. // 延迟显示,等待登录完成
  262. setTimeout(async () => {
  263. const hasToken = uni.getStorageSync('token')
  264. if (!hasToken) {
  265. // 未登录,先去登录
  266. uni.reLaunch({
  267. url: '/pages/login/login?inviteCode=' + code
  268. })
  269. return
  270. }
  271. // 已登录,显示确认框
  272. uni.showModal({
  273. title: '加入家庭',
  274. content: '您已被邀请加入家庭,是否接受?',
  275. success: async (res) => {
  276. if (res.confirm) {
  277. try {
  278. uni.showLoading({ title: '加入中...' })
  279. const result = await acceptParentInvite(code)
  280. uni.hideLoading()
  281. if (result.code === 200) {
  282. const { familyId, role, token } = result.data
  283. uni.setStorageSync('familyId', familyId)
  284. uni.setStorageSync('role', role)
  285. uni.setStorageSync('token', token)
  286. uni.showToast({ title: '加入成功', icon: 'success' })
  287. // 刷新页面
  288. setTimeout(() => {
  289. uni.reLaunch({ url: '/pages/index/index' })
  290. }, 1500)
  291. }
  292. } catch (e) {
  293. uni.hideLoading()
  294. uni.showToast({ title: e.message || '加入失败', icon: 'none' })
  295. }
  296. }
  297. }
  298. })
  299. }, 500)
  300. },
  301. hexToRgba: function(hex, alpha) {
  302. var r = parseInt(hex.slice(1, 3), 16)
  303. var g = parseInt(hex.slice(3, 5), 16)
  304. var b = parseInt(hex.slice(5, 7), 16)
  305. return 'rgba(' + r + ',' + g + ',' + b + ',' + alpha + ')'
  306. }
  307. },
  308. computed: {
  309. dimList: function() {
  310. return DIMENSIONS
  311. },
  312. splashDimList: function() {
  313. return DIMENSIONS
  314. },
  315. energyDotColors: function() {
  316. return ['#8D6E63', '#FF6B35', '#FFD700', '#4CAF50', '#42A5F5']
  317. }
  318. }
  319. }
  320. </script>
  321. <style>
  322. .discover-container {
  323. min-height: 100vh;
  324. background: #f5f7fa;
  325. padding-bottom: 100rpx;
  326. }
  327. /* ===== 推荐 ===== */
  328. .recommend-section {
  329. margin: 20rpx 30rpx;
  330. }
  331. .section-header {
  332. display: flex;
  333. justify-content: space-between;
  334. align-items: center;
  335. margin-bottom: 20rpx;
  336. }
  337. .section-title {
  338. font-size: 30rpx;
  339. font-weight: bold;
  340. color: #333;
  341. }
  342. .section-more {
  343. font-size: 24rpx;
  344. color: #5B9BD5;
  345. }
  346. .type-filter-scroll {
  347. white-space: nowrap;
  348. margin-bottom: 20rpx;
  349. }
  350. .filter-chip {
  351. display: inline-block;
  352. padding: 8rpx 24rpx;
  353. font-size: 24rpx;
  354. color: #666;
  355. background: #f0f0f0;
  356. border-radius: 30rpx;
  357. margin-right: 16rpx;
  358. }
  359. .filter-chip.active {
  360. background: #5B9BD5;
  361. color: #fff;
  362. }
  363. .loading-state,
  364. .empty-state {
  365. display: flex;
  366. justify-content: center;
  367. padding: 60rpx 0;
  368. }
  369. .loading-text,
  370. .empty-text {
  371. font-size: 26rpx;
  372. color: #999;
  373. }
  374. .product-grid {
  375. display: flex;
  376. flex-wrap: wrap;
  377. justify-content: space-between;
  378. }
  379. .product-card {
  380. width: 48%;
  381. background: #fff;
  382. border-radius: 16rpx;
  383. overflow: hidden;
  384. margin-bottom: 20rpx;
  385. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.06);
  386. }
  387. .product-cover {
  388. width: 100%;
  389. height: 200rpx;
  390. background: #f0f0f0;
  391. }
  392. .product-info {
  393. padding: 14rpx;
  394. }
  395. .product-name {
  396. display: block;
  397. font-size: 26rpx;
  398. color: #333;
  399. margin-bottom: 10rpx;
  400. overflow: hidden;
  401. text-overflow: ellipsis;
  402. white-space: nowrap;
  403. }
  404. .product-price-row {
  405. display: flex;
  406. align-items: baseline;
  407. }
  408. .product-price {
  409. font-size: 28rpx;
  410. color: #5B9BD5;
  411. font-weight: bold;
  412. margin-right: 10rpx;
  413. }
  414. .product-price-login {
  415. font-size: 24rpx;
  416. color: #999;
  417. }
  418. .product-member {
  419. font-size: 20rpx;
  420. color: #999;
  421. }
  422. /* ===== 五维全景幸福矩阵 ===== */
  423. .why-section {
  424. margin: 30rpx;
  425. }
  426. .dim-matrix {
  427. display: flex;
  428. flex-wrap: wrap;
  429. gap: 20rpx;
  430. justify-content: center;
  431. }
  432. .dim-card {
  433. width: calc(33.33% - 14rpx);
  434. box-sizing: border-box;
  435. background: #fff;
  436. border-radius: 20rpx;
  437. padding: 28rpx 16rpx 24rpx;
  438. display: flex;
  439. flex-direction: column;
  440. align-items: center;
  441. text-align: center;
  442. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  443. transition: transform 0.2s ease, box-shadow 0.2s ease;
  444. position: relative;
  445. overflow: hidden;
  446. }
  447. .dim-card:active {
  448. transform: scale(0.96);
  449. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.1);
  450. }
  451. .dim-icon-circle {
  452. width: 72rpx;
  453. height: 72rpx;
  454. border-radius: 50%;
  455. display: flex;
  456. align-items: center;
  457. justify-content: center;
  458. margin-bottom: 14rpx;
  459. flex-shrink: 0;
  460. }
  461. .dim-icon {
  462. font-size: 36rpx;
  463. line-height: 1;
  464. }
  465. .dim-tag {
  466. font-size: 22rpx;
  467. font-weight: 600;
  468. padding: 4rpx 14rpx;
  469. border-radius: 20rpx;
  470. margin-bottom: 10rpx;
  471. max-width: 100%;
  472. overflow: hidden;
  473. text-overflow: ellipsis;
  474. white-space: nowrap;
  475. }
  476. .dim-desc {
  477. font-size: 20rpx;
  478. color: #888;
  479. line-height: 1.5;
  480. display: -webkit-box;
  481. -webkit-line-clamp: 2;
  482. -webkit-box-orient: vertical;
  483. overflow: hidden;
  484. }
  485. /* 五维能量环 */
  486. .dim-energy-row {
  487. display: flex;
  488. justify-content: center;
  489. gap: 12rpx;
  490. margin-top: 24rpx;
  491. opacity: 0.5;
  492. }
  493. .energy-dot {
  494. width: 10rpx;
  495. height: 10rpx;
  496. border-radius: 50%;
  497. }
  498. /* ===== 底部登录 ===== */
  499. .login-footer {
  500. margin: 40rpx 30rpx;
  501. display: flex;
  502. flex-direction: column;
  503. align-items: center;
  504. }
  505. .login-btn {
  506. width: 100%;
  507. height: 88rpx;
  508. line-height: 88rpx;
  509. background: linear-gradient(135deg, #5B9BD5, #3A7CC4);
  510. color: #fff;
  511. font-size: 32rpx;
  512. font-weight: bold;
  513. border-radius: 44rpx;
  514. text-align: center;
  515. border: none;
  516. }
  517. .login-btn::after {
  518. border: none;
  519. }
  520. .login-footer-text {
  521. font-size: 20rpx;
  522. color: #bbb;
  523. margin-top: 16rpx;
  524. }
  525. /* ===== 加载占位 ===== */
  526. .loading-container {
  527. display: flex;
  528. justify-content: center;
  529. align-items: center;
  530. height: 100vh;
  531. }
  532. /* ===== 品牌启动页覆盖 ===== */
  533. .splash-overlay {
  534. position: fixed;
  535. top: 0;
  536. left: 0;
  537. right: 0;
  538. bottom: 0;
  539. display: flex;
  540. align-items: center;
  541. justify-content: center;
  542. background: linear-gradient(160deg, #FFF7ED 0%, #F97316 100%);
  543. z-index: 9999;
  544. }
  545. .splash-content {
  546. display: flex;
  547. flex-direction: column;
  548. align-items: center;
  549. opacity: 0;
  550. animation: splash-fade-in 0.8s ease forwards;
  551. }
  552. @keyframes splash-fade-in {
  553. from { opacity: 0; transform: translateY(20rpx); }
  554. to { opacity: 1; transform: translateY(0); }
  555. }
  556. .splash-logo-mark {
  557. width: 144rpx;
  558. height: 144rpx;
  559. border-radius: 36rpx;
  560. background: rgba(255,255,255,0.3);
  561. display: flex;
  562. align-items: center;
  563. justify-content: center;
  564. margin-bottom: 24rpx;
  565. }
  566. .splash-logo-char {
  567. font-size: 72rpx;
  568. font-weight: 700;
  569. color: #FFFFFF;
  570. line-height: 1;
  571. }
  572. .splash-brand-name {
  573. font-size: 56rpx;
  574. font-weight: 700;
  575. color: #FFFFFF;
  576. letter-spacing: 8rpx;
  577. margin-bottom: 12rpx;
  578. text-shadow: 0 2rpx 12rpx rgba(0,0,0,0.1);
  579. }
  580. .splash-tagline {
  581. font-size: 28rpx;
  582. color: rgba(255,255,255,0.85);
  583. letter-spacing: 4rpx;
  584. font-weight: 400;
  585. }
  586. .splash-loading {
  587. position: absolute;
  588. bottom: 120rpx;
  589. left: 0;
  590. right: 0;
  591. display: flex;
  592. justify-content: center;
  593. align-items: center;
  594. gap: 12rpx;
  595. }
  596. .splash-dot {
  597. width: 14rpx;
  598. height: 14rpx;
  599. border-radius: 50%;
  600. background: rgba(255,255,255,0.6);
  601. animation: splash-dot-bounce 1.4s ease-in-out infinite both;
  602. }
  603. .splash-dot--1 { animation-delay: -0.32s; }
  604. .splash-dot--2 { animation-delay: -0.16s; }
  605. .splash-dot--3 { animation-delay: 0s; }
  606. @keyframes splash-dot-bounce {
  607. 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  608. 40% { transform: scale(1); opacity: 1; }
  609. }
  610. /* ===== 五维图标行 ===== */
  611. .splash-dims-row {
  612. display: flex;
  613. flex-direction: row;
  614. align-items: center;
  615. justify-content: center;
  616. gap: 16rpx;
  617. margin: 16rpx 0 20rpx;
  618. }
  619. .splash-dim-item {
  620. display: flex;
  621. flex-direction: column;
  622. align-items: center;
  623. gap: 6rpx;
  624. opacity: 0;
  625. transform: translateY(20rpx);
  626. animation: splash-dim-enter 0.4s ease forwards;
  627. }
  628. .splash-dim-circle {
  629. width: 64rpx;
  630. height: 64rpx;
  631. border-radius: 50%;
  632. display: flex;
  633. align-items: center;
  634. justify-content: center;
  635. }
  636. .splash-dim-icon {
  637. font-size: 28rpx;
  638. line-height: 1;
  639. color: #FFFFFF;
  640. }
  641. .splash-dim-label {
  642. font-size: 18rpx;
  643. color: rgba(255, 255, 255, 0.7);
  644. line-height: 1;
  645. }
  646. @keyframes splash-dim-enter {
  647. from { opacity: 0; transform: translateY(20rpx); }
  648. to { opacity: 1; transform: translateY(0); }
  649. }
  650. /* ===== 角色切换淡入淡出 ===== */
  651. .role-switch-wrapper {
  652. width: 100%;
  653. min-height: 100vh;
  654. }
  655. .fade-enter-active,
  656. .fade-leave-active {
  657. transition: opacity 0.3s ease;
  658. }
  659. .fade-enter,
  660. .fade-leave-to {
  661. opacity: 0;
  662. }
  663. </style>