index.vue 22 KB

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