|
|
<script setup>
|
|
|
import { choosepasswd, getImage, getindex } from '@/aip/account'
|
|
|
import { ref } from 'vue'
|
|
|
const active = ref(0)
|
|
|
const showCenter = ref(false)
|
...
|
...
|
@@ -8,6 +9,32 @@ const showPopup = () => { |
|
|
console.log(111)
|
|
|
showCenter.value = true
|
|
|
}
|
|
|
|
|
|
const getindexdata = async () => {
|
|
|
const res = await getindex(2024001)
|
|
|
console.log(res)
|
|
|
}
|
|
|
const getImageCode = async () => {
|
|
|
const data = {
|
|
|
id: 2024001,
|
|
|
url: 'http://127.0.0.1:8090/api/account/getImageCode',
|
|
|
}
|
|
|
const res = await getImage(data)
|
|
|
console.log(res)
|
|
|
}
|
|
|
const choosepasswddata = async () => {
|
|
|
const data = {
|
|
|
id: 2024001,
|
|
|
oldPwd: '654321',
|
|
|
newPwd: '123456',
|
|
|
rePwd: '123456',
|
|
|
}
|
|
|
const res = await choosepasswd(data)
|
|
|
console.log(res)
|
|
|
}
|
|
|
// getindexdata()
|
|
|
getImageCode()
|
|
|
// choosepasswddata()
|
|
|
</script>
|
|
|
<template>
|
|
|
<div class="right">
|
...
|
...
|
@@ -28,7 +55,7 @@ const showPopup = () => { |
|
|
</div>
|
|
|
<div class="lie">
|
|
|
<div>工号</div>
|
|
|
<div class="lin">1111111</div>
|
|
|
<div class="lin">{{ 111 }}</div>
|
|
|
</div>
|
|
|
<div class="lie">
|
|
|
<div>手机号</div>
|
...
|
...
|
@@ -61,14 +88,15 @@ const showPopup = () => { |
|
|
<!-- 手机号 -->
|
|
|
<van-field v-model="value" placeholder="187159***14" />
|
|
|
<!-- 验证码 -->
|
|
|
<van-field
|
|
|
v-model="sms"
|
|
|
center
|
|
|
clearable
|
|
|
placeholder="验证码"
|
|
|
>
|
|
|
<van-field v-model="sms" center clearable placeholder="验证码">
|
|
|
<template #button>
|
|
|
<van-button size="small" color="#6170c3" :text="text" round="true" @click="dbclick"></van-button>
|
|
|
<van-button
|
|
|
size="small"
|
|
|
color="#6170c3"
|
|
|
:text="text"
|
|
|
round="true"
|
|
|
@click="dbclick"
|
|
|
></van-button>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
<!-- 底部按钮 -->
|
...
|
...
|
@@ -143,7 +171,7 @@ const showPopup = () => { |
|
|
}
|
|
|
.code {
|
|
|
margin-top: 60px;
|
|
|
.van-cell{
|
|
|
.van-cell {
|
|
|
margin-bottom: 20px;
|
|
|
border: 1px solid #cacaca;
|
|
|
border-radius: 18px;
|
...
|
...
|
|