修复了发送验证码

This commit is contained in:
luyuan 2020-11-18 17:02:44 +08:00
parent 5622db0a8d
commit 3dba6dca46
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
5 changed files with 16 additions and 8 deletions

View File

@ -606,6 +606,12 @@ export async function checkuser(data?: any){
newdata.number=data.phone
const res = await get<CheckuserRule>('checkUser',newdata);
// console.log(res)
if(res.code == 1){
return {
code: res.code,
msg: res.msg,
}
}
return {
code: res.code,
msg: res.msg,

View File

@ -142,7 +142,7 @@ export default defineComponent({
const time = ref(60);//
const phone = ref(""); //
const code =ref("")
const myquhao=ref("86")
const userinfo = reactive({
phone: '13152639856',
password: '123456'
@ -155,6 +155,7 @@ export default defineComponent({
name: "中国"
}
])
const myquhao=ref(mrqh.value.code)
const videolist=ref<any>([{}])
onMounted(async ()=>{

View File

@ -170,7 +170,7 @@ export default defineComponent({
const next: (e: number) => void = async (e: number) => {
if(e==2){
console.log(uinfo)
const res=await checkuser(toRaw(uinfo.value))
const res: any = await checkuser(toRaw(uinfo.value))
console.log(res.data.memberid)
if(res.code==0){
// stepnow.value = e;

View File

@ -247,11 +247,7 @@ export default defineComponent({
wrapperCol: 14,
};
const time = ref(60); //
const phone = ref({
quhao: "86",
phone: "",
code: "",
});
const userinfo = ref({
pass: "",
passtow: "",
@ -262,6 +258,11 @@ export default defineComponent({
});
const willsay = ref<any>();
const mrqh = computed(() => store.state.qh)
const phone = ref({
quhao: mrqh.value.code,
phone: "",
code: "",
});
const quhaolist = ref<any>([
{
code: "86",

View File

@ -584,7 +584,7 @@ export default defineComponent({
const quhaolist = ref<any>([]);
const mrqh = computed(() => store.state.qh)
const myquhao = ref<string>("");
const myquhao = ref<string>(mrqh.value.code);
const mynewtel = ref<string>("");