1
|
<script setup>
|
1
|
<script setup>
|
|
|
2
|
+import { choosepasswd, getImage, getindex } from '@/aip/account'
|
2
|
import { ref } from 'vue'
|
3
|
import { ref } from 'vue'
|
3
|
const active = ref(0)
|
4
|
const active = ref(0)
|
4
|
const showCenter = ref(false)
|
5
|
const showCenter = ref(false)
|
|
@@ -8,6 +9,32 @@ const showPopup = () => { |
|
@@ -8,6 +9,32 @@ const showPopup = () => { |
8
|
console.log(111)
|
9
|
console.log(111)
|
9
|
showCenter.value = true
|
10
|
showCenter.value = true
|
10
|
}
|
11
|
}
|
|
|
12
|
+
|
|
|
13
|
+const getindexdata = async () => {
|
|
|
14
|
+ const res = await getindex(2024001)
|
|
|
15
|
+ console.log(res)
|
|
|
16
|
+}
|
|
|
17
|
+const getImageCode = async () => {
|
|
|
18
|
+ const data = {
|
|
|
19
|
+ id: 2024001,
|
|
|
20
|
+ url: 'http://127.0.0.1:8090/api/account/getImageCode',
|
|
|
21
|
+ }
|
|
|
22
|
+ const res = await getImage(data)
|
|
|
23
|
+ console.log(res)
|
|
|
24
|
+}
|
|
|
25
|
+const choosepasswddata = async () => {
|
|
|
26
|
+ const data = {
|
|
|
27
|
+ id: 2024001,
|
|
|
28
|
+ oldPwd: '654321',
|
|
|
29
|
+ newPwd: '123456',
|
|
|
30
|
+ rePwd: '123456',
|
|
|
31
|
+ }
|
|
|
32
|
+ const res = await choosepasswd(data)
|
|
|
33
|
+ console.log(res)
|
|
|
34
|
+}
|
|
|
35
|
+// getindexdata()
|
|
|
36
|
+getImageCode()
|
|
|
37
|
+// choosepasswddata()
|
11
|
</script>
|
38
|
</script>
|
12
|
<template>
|
39
|
<template>
|
13
|
<div class="right">
|
40
|
<div class="right">
|
|
@@ -28,7 +55,7 @@ const showPopup = () => { |
|
@@ -28,7 +55,7 @@ const showPopup = () => { |
28
|
</div>
|
55
|
</div>
|
29
|
<div class="lie">
|
56
|
<div class="lie">
|
30
|
<div>工号</div>
|
57
|
<div>工号</div>
|
31
|
- <div class="lin">1111111</div>
|
58
|
+ <div class="lin">{{ 111 }}</div>
|
32
|
</div>
|
59
|
</div>
|
33
|
<div class="lie">
|
60
|
<div class="lie">
|
34
|
<div>手机号</div>
|
61
|
<div>手机号</div>
|
|
@@ -59,16 +86,17 @@ const showPopup = () => { |
|
@@ -59,16 +86,17 @@ const showPopup = () => { |
59
|
<div class="code">
|
86
|
<div class="code">
|
60
|
<van-cell-group inset>
|
87
|
<van-cell-group inset>
|
61
|
<!-- 手机号 -->
|
88
|
<!-- 手机号 -->
|
62
|
- <van-field v-model="value" placeholder="187159***14" />
|
89
|
+ <van-field v-model="value" placeholder="187159***14" />
|
63
|
<!-- 验证码 -->
|
90
|
<!-- 验证码 -->
|
64
|
- <van-field
|
|
|
65
|
- v-model="sms"
|
|
|
66
|
- center
|
|
|
67
|
- clearable
|
|
|
68
|
- placeholder="验证码"
|
|
|
69
|
- >
|
91
|
+ <van-field v-model="sms" center clearable placeholder="验证码">
|
70
|
<template #button>
|
92
|
<template #button>
|
71
|
- <van-button size="small" color="#6170c3" :text="text" round="true" @click="dbclick"></van-button>
|
93
|
+ <van-button
|
|
|
94
|
+ size="small"
|
|
|
95
|
+ color="#6170c3"
|
|
|
96
|
+ :text="text"
|
|
|
97
|
+ round="true"
|
|
|
98
|
+ @click="dbclick"
|
|
|
99
|
+ ></van-button>
|
72
|
</template>
|
100
|
</template>
|
73
|
</van-field>
|
101
|
</van-field>
|
74
|
<!-- 底部按钮 -->
|
102
|
<!-- 底部按钮 -->
|
|
@@ -143,7 +171,7 @@ const showPopup = () => { |
|
@@ -143,7 +171,7 @@ const showPopup = () => { |
143
|
}
|
171
|
}
|
144
|
.code {
|
172
|
.code {
|
145
|
margin-top: 60px;
|
173
|
margin-top: 60px;
|
146
|
- .van-cell{
|
174
|
+ .van-cell {
|
147
|
margin-bottom: 20px;
|
175
|
margin-bottom: 20px;
|
148
|
border: 1px solid #cacaca;
|
176
|
border: 1px solid #cacaca;
|
149
|
border-radius: 18px;
|
177
|
border-radius: 18px;
|