yearning
18 小时以前 63fea2990e587837ed3dde2b9ac8f2b4ef729672
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
  <div class="p-7">
    <el-row justify="center" class="mt-7">
      <el-image style="width: 150px" fit="contain" :src="$getImageUrl('/signInSuccess.png')"></el-image>
    </el-row>
    <el-row justify="center">
      <el-text class="font-bold text-2xl">
        签到成功
      </el-text>
    </el-row>
    <div style="margin-top: 50px;" class="ml-4">
      <el-row align="middle">
        <Icon icon="material-symbols:person-rounded" width="20" height="20" class="mr-1" style="color: #cccccc" />
        <el-text>姓名:{{ userInfo.name }}</el-text>
      </el-row>
      <el-row class="mt-2" align="middle">
        <Icon icon="mingcute:idcard-fill" width="18" height="18" class="mr-1" style="color: #cccccc" />
        <el-text>身份证尾号:{{ userInfo.idCard?.slice(-4) }}</el-text>
      </el-row>
      <el-row class="mt-2" align="middle">
        <Icon icon="mdi:clock" width="18" height="18" class="mr-1" style="color: #cccccc" />
        <el-text>签到时间:{{ timeText }}</el-text>
      </el-row>
      <el-row class="mt-2" align="middle">
        <Icon icon="game-icons:position-marker" width="18" height="18" class="mr-1" style="color: #cccccc" />
        <el-text>{{ positionAddress }}</el-text>
      </el-row>
    </div>
  </div>
</template>
 
<script>
import { useSessionStore } from '@/stores/session.js'
import { storeToRefs } from 'pinia';
export default {
  setup() {
    const { userInfo } = storeToRefs(useSessionStore()) 
    return { userInfo } 
  },
  computed: {
    positionAddress() {
      return this.$route.query.address
    },
    timeText() {
      return this.$route.query.timeText
    }
  },
}
</script>