login
This commit is contained in:
@@ -637,11 +637,12 @@ export function getquhaolist() {
|
||||
// return res.data
|
||||
return new Promise((res)=>{
|
||||
const time = setInterval(()=>{
|
||||
if(store.state.indexarr.phonecodes){
|
||||
if(JSON.stringify(store.state.indexarr.phonecodes) != "{}"){
|
||||
console.log(JSON.stringify(store.state.indexarr.phonecodes),"quhao")
|
||||
res(store.state.indexarr.phonecodes)
|
||||
clearInterval(time)
|
||||
}
|
||||
console.log("dengdai")
|
||||
console.log("dengdaiquhao")
|
||||
}, 500)
|
||||
})
|
||||
}
|
||||
@@ -656,7 +657,7 @@ export function getzonelist(): Promise<any>{
|
||||
// return res.data
|
||||
return new Promise((res)=>{
|
||||
const time = setInterval(()=>{
|
||||
if(store.state.indexarr.timezones){
|
||||
if(JSON.stringify(store.state.indexarr.timezones) != "{}"){
|
||||
res(store.state.indexarr.timezones)
|
||||
clearInterval(time)
|
||||
}
|
||||
@@ -692,7 +693,7 @@ export function getcurrencys(){
|
||||
// return res.data
|
||||
return new Promise((res)=>{
|
||||
const time = setInterval(()=>{
|
||||
if(store.state.indexarr.currencys){
|
||||
if(JSON.stringify(store.state.indexarr.currencys) != "{}"){
|
||||
res(store.state.indexarr.currencys)
|
||||
clearInterval(time)
|
||||
}
|
||||
@@ -752,7 +753,7 @@ export function getarchives(): Promise<[any,any]>{
|
||||
// return [(await get<Countries[]>("countries")).data, (await get<Willsay[]>("willsay")).data];
|
||||
return new Promise((res)=>{
|
||||
const time = setInterval(()=>{
|
||||
if(store.state.indexarr.countries && store.state.indexarr.willsay){
|
||||
if(JSON.stringify(store.state.indexarr.countries) != "{}" && JSON.stringify(store.state.indexarr.willsay) != "{}"){
|
||||
res([store.state.indexarr.countries, store.state.indexarr.willsay])
|
||||
clearInterval(time)
|
||||
}
|
||||
@@ -787,7 +788,7 @@ export function getlanguages(): Promise<any>{
|
||||
// return (await get<Language[]>("languages")).data;
|
||||
return new Promise((res)=>{
|
||||
const time = setInterval(()=>{
|
||||
if(store.state.indexarr.language){
|
||||
if(JSON.stringify(store.state.indexarr.language) != "{}"){
|
||||
res(store.state.indexarr.language)
|
||||
clearInterval(time)
|
||||
}
|
||||
@@ -1225,7 +1226,7 @@ export function interests() {
|
||||
// return res.data;
|
||||
return new Promise((res)=>{
|
||||
const time = setInterval(()=>{
|
||||
if(store.state.indexarr.interests){
|
||||
if(JSON.stringify(store.state.indexarr.interests) != "{}"){
|
||||
res(store.state.indexarr.interests)
|
||||
clearInterval(time)
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ export default defineComponent({
|
||||
}
|
||||
const iszc: any = await checkuser({phone: phone.value})
|
||||
if(iszc.data){
|
||||
if(iszc.data.type == 0){
|
||||
if(iszc.data.identity == 0){
|
||||
message.error(lan.$t("yizhucexuesheng"))
|
||||
return ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user