xbx #139

Merged
theluyuan merged 12 commits from xbx into master 2020-11-20 03:19:16 +00:00
5 changed files with 16 additions and 8 deletions
Showing only changes of commit 3dba6dca46 - Show all commits

View File

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

View File

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

View File

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

View File

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

View File

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