index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848
  1. <template>
  2. <div class="app-container">
  3. <header>
  4. <!-- <img :src="userInfos.avatar" alt="" /> -->
  5. <van-image class="mr10" width="100px" height="100px" round :src="userInfos.avatar" />
  6. <div class="content">
  7. <p class="bold">
  8. <van-text-ellipsis :content="`${userInfos.nickName}(信用分:${userInfos.creditScore})`" />
  9. <van-icon name="setting" size="20" @click="onRouterPush('/user/edit')" />
  10. </p>
  11. <p class="flex justify-between">
  12. <van-text-ellipsis :content="userInfos.pgName" />
  13. </p>
  14. <p>
  15. <van-text-ellipsis :content="userInfos.deptName" />
  16. </p>
  17. </div>
  18. </header>
  19. <div class="main">
  20. <!-- <ul class="links">
  21. <li @click="onRouterPush('/training')">培训通知</li>
  22. <li>我的报名</li>
  23. <li>我的学习</li>
  24. <li>我的考试</li>
  25. </ul> -->
  26. <!-- <ul>
  27. <li>使用指引</li>
  28. <li>安全积分:{{ userInfos.creditScore }}分</li>
  29. </ul> -->
  30. <div class="card">
  31. <h4>经费统计</h4>
  32. <ul class="nav">
  33. <!-- <li>
  34. <span>123,000</span>
  35. <p>账户余额(¥)</p>
  36. </li> -->
  37. <li @click="onRouterPush('/my-cash-flow')">
  38. <span>{{ billInfo.totalFlowCount }}</span>
  39. <p>费用流水</p>
  40. </li>
  41. <li>
  42. <span>{{ billInfo.currentMonthFee }}</span>
  43. <p>本月支出</p>
  44. </li>
  45. <li>
  46. <span>{{ billInfo.totalFee }}</span>
  47. <p>累计支出</p>
  48. </li>
  49. </ul>
  50. </div>
  51. <div class="card" @click="showFinancePopup = true">
  52. <h4>课题组经费统计</h4>
  53. <div class="balance-display">
  54. <span class="amount">{{ financeStats.calculatedBalance.toFixed(2) }}</span>
  55. <p class="label">可用余额(¥)</p>
  56. <van-icon name="arrow" class="arrow-icon" />
  57. </div>
  58. </div>
  59. <div class="card" @click="showOperatingGuidelines">
  60. <h4>平台入室操作指引</h4>
  61. </div>
  62. <div class="card">
  63. <van-cell v-auth="'instr_open'" title="打开设备" is-link @click="openInst" />
  64. <van-cell v-auth="'instr_close'" title="关闭设备" is-link @click="closeInst" />
  65. </div>
  66. </div>
  67. <footer>
  68. <!-- <wx-open-subscribe template="-pVpM6TH1oz1cZntEhGzQjmMMODF9tLLzh_1yjjWYSk" @success="handleSubscribe">
  69. <component :is="'script'" type="text/wxtag-template">
  70. <button class="w100 ">订阅</button>
  71. </component>
  72. </wx-open-subscribe> -->
  73. <van-button class="w100 mt10" color="#1cb4fd" plain @click="onRouterPush('/user/password')">
  74. 修改密码
  75. </van-button>
  76. <van-button class="w100 mt10" @click="signOut" type="primary">
  77. 切换账号
  78. </van-button>
  79. </footer>
  80. <van-popup position="bottom" v-model:show="showFinancePopup" round>
  81. <div class="finance-detail">
  82. <div class="detail-header">
  83. <h3>经费统计详情</h3>
  84. <van-icon name="cross" @click="showFinancePopup = false" />
  85. </div>
  86. <div class="detail-content">
  87. <div class="detail-item" @click="showListPopup = true">
  88. <span class="label">经费卡数量</span>
  89. <div class="value-with-arrow">
  90. <span class="value">{{ financeStats.accountCount }}</span>
  91. <van-icon name="arrow" />
  92. </div>
  93. </div>
  94. <div class="detail-item">
  95. <span class="label">授信额度</span>
  96. <span class="value">¥{{ financeStats.totalCredit.toFixed(2) }}</span>
  97. </div>
  98. <div class="detail-item">
  99. <span class="label">可用余额</span>
  100. <span class="value">¥{{ financeStats.totalBalance.toFixed(2) }}</span>
  101. </div>
  102. <div class="detail-item">
  103. <span class="label">锁定金额</span>
  104. <span class="value">¥{{ financeStats.totalLocked.toFixed(2) }}</span>
  105. </div>
  106. <div class="detail-item highlight">
  107. <span class="label">最终可用额度</span>
  108. <span class="value">¥{{ financeStats.calculatedBalance.toFixed(2) }}</span>
  109. </div>
  110. <div class="divider"></div>
  111. <div class="detail-item">
  112. <span class="label">已出账单</span>
  113. <span class="value">¥{{ financeStats.totalIssued.toFixed(2) }}</span>
  114. </div>
  115. <div class="detail-item">
  116. <span class="label">未出账单</span>
  117. <span class="value">¥{{ financeStats.totalUnpaid.toFixed(2) }}</span>
  118. </div>
  119. </div>
  120. <div class="detail-footer">
  121. <p class="formula-tip">* 计算公式:授信额度 + 可用余额 - 锁定金额</p>
  122. </div>
  123. </div>
  124. </van-popup>
  125. <van-popup position="bottom" v-model:show="showListPopup" round closeable>
  126. <div class="finance-list">
  127. <div class="list-header">
  128. <h3>经费卡列表</h3>
  129. </div>
  130. <div class="list-content">
  131. <div v-for="item in financeList" :key="item.id" class="finance-card-item">
  132. <div class="card-title">
  133. <span class="account-no">{{ item.finAccount }}</span>
  134. <span class="org-name">{{ item.finOrgName }}-{{ item.projName }}</span>
  135. </div>
  136. <div class="card-details">
  137. <div class="grid">
  138. <div class="grid-item">
  139. <p class="label">可用余额</p>
  140. <p class="value">¥{{ (item.finAvailBalance || 0).toFixed(2) }}</p>
  141. </div>
  142. <div class="grid-item">
  143. <p class="label">授信额度</p>
  144. <p class="value">¥{{ (item.finCreditLimit || 0).toFixed(2) }}</p>
  145. </div>
  146. <div class="grid-item">
  147. <p class="label">锁定金额</p>
  148. <p class="value">¥{{ (item.finLockAmount || 0).toFixed(2) }}</p>
  149. </div>
  150. <div class="grid-item">
  151. <p class="label">已出账单</p>
  152. <p class="value">¥{{ (item.finIssuedBill || 0).toFixed(2) }}</p>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. <van-empty v-if="financeList.length === 0" description="暂无经费卡信息" />
  158. </div>
  159. </div>
  160. </van-popup>
  161. <van-popup position="bottom" v-model:show="showPopup" :style="{ padding: '20px' }">
  162. <div class="operation-guide">
  163. <div class="guide-header">
  164. <h3>操作指引</h3>
  165. <van-icon name="cross" @click="showPopup = false" />
  166. </div>
  167. <div class="steps-container">
  168. <div v-for="(item, index) in handleStepList" :key="item.step" class="step-item"
  169. :class="{ 'last-step': index === handleStepList.length - 1 }">
  170. <div class="step-number-wrapper">
  171. <div class="step-number">{{ item.step }}</div>
  172. <div v-if="index < handleStepList.length - 1" class="step-line"></div>
  173. </div>
  174. <div class="step-content">
  175. <h4 class="step-title">{{ item.title }}</h4>
  176. <p class="step-desc">{{ item.desc }}</p>
  177. <!-- <van-button
  178. v-if="item.btn"
  179. size="small"
  180. type="primary"
  181. class="step-btn"
  182. @click="handleStepAction(item)"
  183. >
  184. {{ item.btn }}
  185. </van-button> -->
  186. </div>
  187. </div>
  188. </div>
  189. <div class="guide-footer">
  190. <van-icon name="info-o" />
  191. <span>请按照步骤顺序完成操作</span>
  192. </div>
  193. </div>
  194. </van-popup>
  195. </div>
  196. </template>
  197. <script lang="ts" setup>
  198. import { ref, onMounted } from 'vue'
  199. import { storeToRefs } from 'pinia'
  200. import to from 'await-to-js'
  201. import { showConfirmDialog, showDialog, showToast } from 'vant'
  202. import { useRouter } from 'vue-router'
  203. import { useUserInfo } from '/@/stores/userInfo'
  204. import { Local, Session } from '/@/utils/storage'
  205. import { useBillApi } from '/@/api/instr/finance/bill'
  206. import { useLoginApi } from '/@/api/login'
  207. import { useFinaceApi } from '/@/api/finace'
  208. import { scanCodeWxUrl, InstSwitchType } from '/@/constants/pageConstants'
  209. import wx from 'weixin-js-sdk'
  210. const billApi = useBillApi()
  211. const loginApi = useLoginApi()
  212. const financeApi = useFinaceApi()
  213. const router = useRouter()
  214. const storesUseUserInfo = useUserInfo()
  215. const { userInfos, openId } = storeToRefs(storesUseUserInfo)
  216. const showPopup = ref<boolean>(false)
  217. const billInfo = ref<{
  218. totalFlowCount: number
  219. currentMonthFee: number
  220. totalFee: number
  221. }>({
  222. totalFlowCount: 0,
  223. currentMonthFee: 0,
  224. totalFee: 0,
  225. })
  226. const financeStats = ref({
  227. accountCount: 0,
  228. totalBalance: 0,
  229. totalCredit: 0,
  230. totalLocked: 0,
  231. totalIssued: 0,
  232. totalUnpaid: 0,
  233. calculatedBalance: 0, // 授信 + 可用 - 锁定
  234. })
  235. const financeList = ref<any[]>([])
  236. const showFinancePopup = ref<boolean>(false)
  237. const showListPopup = ref<boolean>(false)
  238. const handleStepList = ref([
  239. {
  240. title: '第一步:入室培训和考试',
  241. desc: '请先完成入室培训,掌握必要的安全操作知识和实验室规章制度,并通过考试',
  242. btn: '培训报名',
  243. step: 1,
  244. },
  245. {
  246. title: '第二步:提交入室申请',
  247. desc: '完成入室培训考核合格后,在入室管理里面提交入室申请,等待平台管理员审核',
  248. btn: '前往提交',
  249. step: 2,
  250. },
  251. // {
  252. // title: '第三步:上传入室资料',
  253. // desc: '整理相关凭证并将入室资料上传到系统中',
  254. // step: 3,
  255. // },
  256. {
  257. title: '第三步:等待审核和房间分配',
  258. desc: '由平台管理老师进行审核并分配细胞房或分配分子储物柜,收到审核通过的通知后,即可在申请的时段进入细胞房或分子室进行实验',
  259. step: 3,
  260. },
  261. ])
  262. const onRouterPush = (val: string) => {
  263. router.push(val)
  264. }
  265. const signOut = () => {
  266. showConfirmDialog({
  267. message: '确认切换账号?',
  268. }).then(async () => {
  269. // 先解绑微信
  270. const [unbindErr]: ToResponse = await to(
  271. loginApi.WeChatUnBindOpenId()
  272. )
  273. // 解绑失败则终止流程
  274. if (unbindErr) {
  275. showToast('解绑失败,请重试')
  276. return
  277. }
  278. // 调用退出登录接口
  279. const [err]: ToResponse = await to(loginApi.signOut())
  280. if (err) {
  281. showToast('退出登录失败,请重试')
  282. return
  283. }
  284. // 清理所有本地缓存
  285. Local.clear()
  286. Session.clear()
  287. // 重置用户信息
  288. storesUseUserInfo.resetUserInfo()
  289. // 关闭窗口
  290. wx.closeWindow()
  291. // 跳转登录重新走授权
  292. // router.replace('/login')
  293. })
  294. }
  295. const handleSubscribe = (errMsg: any, subscribeDetails: any) => {
  296. console.log(errMsg, subscribeDetails)
  297. }
  298. const showOperatingGuidelines = () => {
  299. showPopup.value = true
  300. }
  301. const handleStepAction = (item: any) => {
  302. // Implementation of handleStepAction
  303. }
  304. const checkPermi = (perms: string[]) => {
  305. const list = userInfos.value?.authBtnList || []
  306. return perms.some((p) => list.includes(p))
  307. }
  308. const openInst = () => {
  309. const url = scanCodeWxUrl('START_RUN', InstSwitchType.OPEN)
  310. window.location.href = url
  311. }
  312. const closeInst = () => {
  313. const url = scanCodeWxUrl('END_RUN', InstSwitchType.CLOSE)
  314. window.location.href = url
  315. }
  316. // 获取个人账单信息
  317. const getBillInfo = async () => {
  318. const [err, res]: ToResponse = await to(billApi.getMyOrderTotal())
  319. if (err) return
  320. billInfo.value = res?.data
  321. }
  322. // 获取经费卡统计信息
  323. const getFinanceStats = async () => {
  324. if (!userInfos.value?.projectGroup?.id) return
  325. const [err, res]: ToResponse = await to(
  326. financeApi.getFinanceAccountList({
  327. projId: userInfos.value.projectGroup.id,
  328. })
  329. )
  330. if (err) return
  331. const list = res?.data?.list || []
  332. financeList.value = list
  333. const totalBalance = list.reduce((sum: number, item: any) => sum + (item.finAvailBalance || 0), 0)
  334. const totalCredit = list.reduce((sum: number, item: any) => sum + (item.finCreditLimit || 0), 0)
  335. const totalLocked = list.reduce((sum: number, item: any) => sum + (item.finLockAmount || 0), 0)
  336. const totalIssued = list.reduce((sum: number, item: any) => sum + (item.finIssuedBill || 0), 0)
  337. const totalUnpaid = list.reduce((sum: number, item: any) => sum + (item.finUnpaidBill || 0), 0)
  338. financeStats.value = {
  339. accountCount: list.length,
  340. totalBalance,
  341. totalCredit,
  342. totalLocked,
  343. totalIssued,
  344. totalUnpaid,
  345. calculatedBalance: totalCredit + totalBalance - totalLocked,
  346. }
  347. }
  348. onMounted(() => {
  349. getBillInfo()
  350. getFinanceStats()
  351. })
  352. </script>
  353. <style lang="scss" scoped>
  354. .app-container {
  355. display: flex;
  356. flex-direction: column;
  357. header {
  358. background-color: #1c9bfd;
  359. color: #fff;
  360. padding: 10px;
  361. border-radius: 8px;
  362. margin-top: 10px;
  363. display: flex;
  364. .content {
  365. flex: 1;
  366. display: flex;
  367. flex-direction: column;
  368. justify-content: space-around;
  369. overflow: hidden;
  370. .bold {
  371. display: flex;
  372. align-items: center;
  373. font-weight: bold;
  374. // flex-wrap: nowrap;
  375. white-space: nowrap;
  376. .van-text-ellipsis {
  377. flex: 1;
  378. }
  379. }
  380. }
  381. }
  382. .main {
  383. flex: 1;
  384. overflow-y: auto;
  385. >ul {
  386. display: flex;
  387. height: 60px;
  388. margin-top: 10px;
  389. li {
  390. flex: 1;
  391. background: #fff;
  392. color: #333;
  393. display: flex;
  394. align-items: center;
  395. justify-content: center;
  396. border-radius: 4px;
  397. &+li {
  398. margin-left: 10px;
  399. }
  400. }
  401. &.links {
  402. li {
  403. color: #fff;
  404. background: #5eb7fc;
  405. &:nth-child(2) {
  406. background: #fd9c5e;
  407. }
  408. &:nth-child(3) {
  409. background: #53e3a7;
  410. }
  411. &:nth-child(4) {
  412. background: #888ac3;
  413. }
  414. }
  415. }
  416. }
  417. .card {
  418. margin-top: 10px;
  419. border-radius: 4px;
  420. background-color: #fff;
  421. padding: 10px;
  422. h4 {
  423. height: 18px;
  424. line-height: 18px;
  425. &::before {
  426. display: inline-block;
  427. content: '';
  428. width: 3px;
  429. height: 18px;
  430. background-color: #1c9bfd;
  431. margin-right: 4px;
  432. vertical-align: middle;
  433. }
  434. }
  435. .balance-display {
  436. display: flex;
  437. flex-direction: column;
  438. align-items: center;
  439. padding: 15px 0;
  440. position: relative;
  441. .amount {
  442. font-size: 24px;
  443. font-weight: bold;
  444. color: #1c9bfd;
  445. }
  446. .label {
  447. font-size: 14px;
  448. color: #666;
  449. margin-top: 5px;
  450. }
  451. .arrow-icon {
  452. position: absolute;
  453. right: 0;
  454. top: 50%;
  455. transform: translateY(-50%);
  456. color: #ccc;
  457. font-size: 18px;
  458. }
  459. }
  460. .nav {
  461. display: flex;
  462. margin: 10px 0;
  463. flex-wrap: wrap;
  464. justify-content: space-between;
  465. li {
  466. flex: 0 0 33.33%;
  467. display: flex;
  468. flex-direction: column;
  469. align-items: center;
  470. justify-content: center;
  471. span {
  472. font-size: 16px;
  473. font-weight: bold;
  474. color: #333;
  475. }
  476. p {
  477. margin-top: 4px;
  478. font-size: 12px;
  479. color: #666;
  480. }
  481. &:nth-child(n + 4) {
  482. margin-top: 10px;
  483. }
  484. }
  485. }
  486. }
  487. }
  488. footer {
  489. flex: 0 0 44px;
  490. margin-bottom: 20px;
  491. }
  492. }
  493. :deep(.van-popup--bottom) {
  494. padding: 20px !important;
  495. }
  496. .finance-detail {
  497. .detail-header {
  498. display: flex;
  499. justify-content: space-between;
  500. align-items: center;
  501. margin-bottom: 20px;
  502. padding-bottom: 15px;
  503. border-bottom: 1px solid #eee;
  504. h3 {
  505. margin: 0;
  506. font-size: 18px;
  507. font-weight: 600;
  508. color: #333;
  509. }
  510. .van-icon {
  511. font-size: 18px;
  512. color: #999;
  513. cursor: pointer;
  514. }
  515. }
  516. .detail-content {
  517. .detail-item {
  518. display: flex;
  519. justify-content: space-between;
  520. align-items: center;
  521. margin-bottom: 15px;
  522. font-size: 14px;
  523. .label {
  524. color: #666;
  525. }
  526. .value {
  527. color: #333;
  528. font-weight: 500;
  529. }
  530. .value-with-arrow {
  531. display: flex;
  532. align-items: center;
  533. color: #1c9bfd;
  534. font-weight: 500;
  535. .van-icon {
  536. margin-left: 4px;
  537. font-size: 14px;
  538. }
  539. }
  540. &.highlight {
  541. margin-top: 5px;
  542. padding-top: 15px;
  543. border-top: 1px solid #f5f5f5;
  544. .label {
  545. color: #333;
  546. font-weight: 600;
  547. }
  548. .value {
  549. color: #1c9bfd;
  550. font-size: 18px;
  551. font-weight: bold;
  552. }
  553. }
  554. }
  555. .divider {
  556. height: 1px;
  557. background-color: #eee;
  558. margin: 15px 0;
  559. }
  560. }
  561. .detail-footer {
  562. margin-top: 20px;
  563. padding: 15px;
  564. background: #f8f9fa;
  565. border-radius: 8px;
  566. .formula-tip {
  567. margin: 0;
  568. font-size: 12px;
  569. color: #999;
  570. line-height: 1.4;
  571. }
  572. }
  573. }
  574. .finance-list {
  575. max-height: 80vh;
  576. display: flex;
  577. flex-direction: column;
  578. .list-header {
  579. padding: 20px;
  580. border-bottom: 1px solid #f5f5f5;
  581. h3 {
  582. margin: 0;
  583. font-size: 18px;
  584. font-weight: 600;
  585. color: #333;
  586. text-align: center;
  587. }
  588. }
  589. .list-content {
  590. flex: 1;
  591. overflow-y: auto;
  592. padding: 10px 15px 30px;
  593. .finance-card-item {
  594. background: #f8f9fa;
  595. border-radius: 12px;
  596. padding: 15px;
  597. margin-bottom: 12px;
  598. border: 1px solid #eee;
  599. .card-title {
  600. display: flex;
  601. justify-content: space-between;
  602. align-items: center;
  603. margin-bottom: 12px;
  604. padding-bottom: 10px;
  605. border-bottom: 1px dashed #ddd;
  606. .account-no {
  607. font-size: 15px;
  608. font-weight: bold;
  609. color: #333;
  610. }
  611. .org-name {
  612. font-size: 12px;
  613. color: #1c9bfd;
  614. background: rgba(28, 155, 253, 0.1);
  615. padding: 2px 8px;
  616. border-radius: 4px;
  617. }
  618. }
  619. .card-details {
  620. .grid {
  621. display: grid;
  622. grid-template-columns: repeat(2, 1fr);
  623. gap: 12px;
  624. .grid-item {
  625. .label {
  626. font-size: 12px;
  627. color: #999;
  628. margin-bottom: 4px;
  629. }
  630. .value {
  631. font-size: 14px;
  632. font-weight: 500;
  633. color: #333;
  634. }
  635. }
  636. }
  637. }
  638. }
  639. }
  640. }
  641. .operation-guide {
  642. max-height: 70vh;
  643. overflow-y: auto;
  644. .guide-header {
  645. display: flex;
  646. justify-content: space-between;
  647. align-items: center;
  648. margin-bottom: 20px;
  649. padding-bottom: 15px;
  650. border-bottom: 1px solid #eee;
  651. h3 {
  652. margin: 0;
  653. font-size: 18px;
  654. font-weight: 600;
  655. color: #333;
  656. }
  657. .van-icon {
  658. font-size: 18px;
  659. color: #999;
  660. cursor: pointer;
  661. &:hover {
  662. color: #666;
  663. }
  664. }
  665. }
  666. .steps-container {
  667. .step-item {
  668. display: flex;
  669. margin-bottom: 20px;
  670. &.last-step {
  671. margin-bottom: 0;
  672. }
  673. .step-number-wrapper {
  674. position: relative;
  675. margin-right: 15px;
  676. display: flex;
  677. flex-direction: column;
  678. align-items: center;
  679. .step-number {
  680. width: 32px;
  681. height: 32px;
  682. background: linear-gradient(135deg, #1c9bfd, #5eb7fc);
  683. color: white;
  684. border-radius: 50%;
  685. display: flex;
  686. align-items: center;
  687. justify-content: center;
  688. font-weight: 600;
  689. font-size: 14px;
  690. box-shadow: 0 2px 8px rgba(28, 155, 253, 0.3);
  691. }
  692. .step-line {
  693. width: 2px;
  694. height: 40px;
  695. background: linear-gradient(to bottom, #1c9bfd, #e0e0e0);
  696. margin-top: 8px;
  697. }
  698. }
  699. .step-content {
  700. flex: 1;
  701. padding-top: 2px;
  702. .step-title {
  703. margin: 0 0 8px 0;
  704. font-size: 16px;
  705. font-weight: 600;
  706. color: #333;
  707. line-height: 1.4;
  708. }
  709. .step-desc {
  710. margin: 0 0 12px 0;
  711. font-size: 14px;
  712. color: #666;
  713. line-height: 1.5;
  714. }
  715. .step-btn {
  716. border-radius: 20px;
  717. padding: 8px 16px;
  718. font-size: 12px;
  719. background: linear-gradient(135deg, #1c9bfd, #5eb7fc);
  720. border: none;
  721. box-shadow: 0 2px 8px rgba(28, 155, 253, 0.3);
  722. &:active {
  723. transform: translateY(1px);
  724. }
  725. }
  726. }
  727. }
  728. }
  729. .guide-footer {
  730. display: flex;
  731. align-items: center;
  732. justify-content: center;
  733. margin-top: 20px;
  734. padding: 15px;
  735. background: #f8f9fa;
  736. border-radius: 8px;
  737. .van-icon {
  738. margin-right: 6px;
  739. color: #1c9bfd;
  740. font-size: 16px;
  741. }
  742. span {
  743. font-size: 13px;
  744. color: #666;
  745. }
  746. }
  747. }
  748. </style>