xbx #260
@ -57,6 +57,7 @@ export default defineComponent({
|
|||||||
toindex()
|
toindex()
|
||||||
}
|
}
|
||||||
store.dispatch("getinfotext");
|
store.dispatch("getinfotext");
|
||||||
|
store.dispatch("getindexarr");
|
||||||
const zh = zhCN;
|
const zh = zhCN;
|
||||||
const en = enUS;
|
const en = enUS;
|
||||||
|
|
||||||
|
@ -631,19 +631,36 @@ export async function checkuser(data?: any){
|
|||||||
/**
|
/**
|
||||||
* 获取区号列表
|
* 获取区号列表
|
||||||
*/
|
*/
|
||||||
export async function getquhaolist() {
|
export function getquhaolist() {
|
||||||
const res=await get("phonecodes")
|
// const res=await get("phonecodes")
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
return res.data
|
// return res.data
|
||||||
|
return new Promise((res)=>{
|
||||||
|
const time = setInterval(()=>{
|
||||||
|
if(store.state.indexarr.phonecodes){
|
||||||
|
res(store.state.indexarr.phonecodes)
|
||||||
|
clearInterval(time)
|
||||||
|
}
|
||||||
|
}, 500)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取时区列表
|
* 获取时区列表
|
||||||
*/
|
*/
|
||||||
export async function getzonelist(): Promise<any>{
|
export function getzonelist(): Promise<any>{
|
||||||
const res=await get("timezones")
|
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
return res.data
|
// const res=await get("timezones")
|
||||||
|
// console.log(res)
|
||||||
|
// return res.data
|
||||||
|
return new Promise((res)=>{
|
||||||
|
const time = setInterval(()=>{
|
||||||
|
if(store.state.indexarr.timezones){
|
||||||
|
res(store.state.indexarr.timezones)
|
||||||
|
clearInterval(time)
|
||||||
|
}
|
||||||
|
}, 500)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -668,9 +685,17 @@ export async function editsystemsetting(e?: any): Promise<boolean> {
|
|||||||
/**
|
/**
|
||||||
* 货币列表
|
* 货币列表
|
||||||
*/
|
*/
|
||||||
export async function getcurrencys(){
|
export function getcurrencys(){
|
||||||
const res=await get("currencys")
|
// const res=await get("currencys")
|
||||||
return res.data
|
// return res.data
|
||||||
|
return new Promise((res)=>{
|
||||||
|
const time = setInterval(()=>{
|
||||||
|
if(store.state.indexarr.currencys){
|
||||||
|
res(store.state.indexarr.currencys)
|
||||||
|
clearInterval(time)
|
||||||
|
}
|
||||||
|
}, 500)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -720,8 +745,16 @@ interface Willsay{
|
|||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getarchives(): Promise<[Countries[],Willsay[]]>{
|
export function getarchives(): Promise<[any,any]>{
|
||||||
return [(await get<Countries[]>("countries")).data, (await get<Willsay[]>("willsay")).data];
|
// 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){
|
||||||
|
res([store.state.indexarr.countries, store.state.indexarr.willsay])
|
||||||
|
clearInterval(time)
|
||||||
|
}
|
||||||
|
}, 500)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getwillsay(): Promise<Willsay[]>{
|
export async function getwillsay(): Promise<Willsay[]>{
|
||||||
@ -745,9 +778,17 @@ interface Language {
|
|||||||
updated_at: string;
|
updated_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getlanguages(): Promise<Language[]>{
|
export function getlanguages(): Promise<any>{
|
||||||
|
|
||||||
return (await get<Language[]>("languages")).data;
|
// return (await get<Language[]>("languages")).data;
|
||||||
|
return new Promise((res)=>{
|
||||||
|
const time = setInterval(()=>{
|
||||||
|
if(store.state.indexarr.language){
|
||||||
|
res(store.state.indexarr.language)
|
||||||
|
clearInterval(time)
|
||||||
|
}
|
||||||
|
}, 500)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1174,9 +1215,17 @@ export function getaddr() {
|
|||||||
// console.log(res)
|
// console.log(res)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
export async function interests() {
|
export function interests() {
|
||||||
const res = await get('interests');
|
// const res = await get('interests');
|
||||||
return res.data;
|
// return res.data;
|
||||||
|
return new Promise((res)=>{
|
||||||
|
const time = setInterval(()=>{
|
||||||
|
if(store.state.indexarr.interests){
|
||||||
|
res(store.state.indexarr.interests)
|
||||||
|
clearInterval(time)
|
||||||
|
}
|
||||||
|
}, 500)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getset() {
|
export async function getset() {
|
||||||
@ -1253,3 +1302,7 @@ export async function share() {
|
|||||||
export async function addshareClick(videoid:number) {
|
export async function addshareClick(videoid:number) {
|
||||||
await get("addshareClick",{videoid})
|
await get("addshareClick",{videoid})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function personalCenterData() {
|
||||||
|
return (await get<any>('personalCenterData')).data
|
||||||
|
}
|
||||||
|
@ -48,6 +48,7 @@ export default {
|
|||||||
wangjimima: "Forget the password?",
|
wangjimima: "Forget the password?",
|
||||||
yiwanxinlai: "Trust and witness of hundreds of millions of people",
|
yiwanxinlai: "Trust and witness of hundreds of millions of people",
|
||||||
kaiqishenghuo: "Beelink Open your wonderful learning life",
|
kaiqishenghuo: "Beelink Open your wonderful learning life",
|
||||||
|
kaiqishenghuo1: "Open your wonderful learning life",
|
||||||
guanyubeelink: "About Beelink",
|
guanyubeelink: "About Beelink",
|
||||||
guanyuneirong: "Beelink platform has thousands of excellent teachers, rich education experience and interesting classroom environment. The one-to-one tutoring platform has many teaching functions, such as educational administration management, online classroom, offline classroom, student interaction, course playback and so on, so that you can learn various languages easily with fragmented time.",
|
guanyuneirong: "Beelink platform has thousands of excellent teachers, rich education experience and interesting classroom environment. The one-to-one tutoring platform has many teaching functions, such as educational administration management, online classroom, offline classroom, student interaction, course playback and so on, so that you can learn various languages easily with fragmented time.",
|
||||||
liaojiegengduo: "Learn more",
|
liaojiegengduo: "Learn more",
|
||||||
|
@ -48,6 +48,7 @@ export default {
|
|||||||
wangjimima:"忘记密码?",
|
wangjimima:"忘记密码?",
|
||||||
yiwanxinlai:"亿万人的信赖和见证",
|
yiwanxinlai:"亿万人的信赖和见证",
|
||||||
kaiqishenghuo:"Beelink 开启您的美好学习生活",
|
kaiqishenghuo:"Beelink 开启您的美好学习生活",
|
||||||
|
kaiqishenghuo1:"开启您的美好学习生活",
|
||||||
guanyubeelink:"关于 Beelink",
|
guanyubeelink:"关于 Beelink",
|
||||||
guanyuneirong:" Beelink平台拥有数千名优秀老师,丰富的教育经验和有趣的课堂环境,一对一辅导平台的教务管理、线上课堂、线下课堂、助学互动,课程回放等多项教学功能,让您利用碎片时间,轻轻松松学会各种语言。",
|
guanyuneirong:" Beelink平台拥有数千名优秀老师,丰富的教育经验和有趣的课堂环境,一对一辅导平台的教务管理、线上课堂、线下课堂、助学互动,课程回放等多项教学功能,让您利用碎片时间,轻轻松松学会各种语言。",
|
||||||
liaojiegengduo:"了解更多",
|
liaojiegengduo:"了解更多",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getaddr, getarticle, userinfo } from '@/api';
|
import { getaddr, getarticle, personalCenterData, userinfo } from '@/api';
|
||||||
import { setLanvuage } from '@/api/base';
|
import { setLanvuage } from '@/api/base';
|
||||||
import { getValue, saveValue } from '@/utils/common';
|
import { getValue, saveValue } from '@/utils/common';
|
||||||
import { geti18n } from '@/utils/i18n';
|
import { geti18n } from '@/utils/i18n';
|
||||||
@ -73,7 +73,8 @@ export default createStore({
|
|||||||
ename: "",
|
ename: "",
|
||||||
name: "",
|
name: "",
|
||||||
},
|
},
|
||||||
infotext:[{title:"",content:""},{title:"",content:""}]
|
infotext:[{title:"",content:""},{title:"",content:""}],
|
||||||
|
indexarr:{countries:{},willsay:{},timezones:{},phonecodes:{},currencys:{},interests:{},language:{}}
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
setseting(state, info){
|
setseting(state, info){
|
||||||
@ -124,6 +125,9 @@ export default createStore({
|
|||||||
},
|
},
|
||||||
setinfotext(state, data){
|
setinfotext(state, data){
|
||||||
state.infotext = data;
|
state.infotext = data;
|
||||||
|
},
|
||||||
|
setindexarr(state, data){
|
||||||
|
state.indexarr = data
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
@ -152,6 +156,10 @@ export default createStore({
|
|||||||
const info = await getarticle();
|
const info = await getarticle();
|
||||||
commit("setinfotext", info)
|
commit("setinfotext", info)
|
||||||
|
|
||||||
|
},
|
||||||
|
async getindexarr({ commit }){
|
||||||
|
const info = await personalCenterData();
|
||||||
|
commit("setindexarr", info)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
modules: {
|
modules: {
|
||||||
|
@ -44,25 +44,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="titlebox">
|
<div class="titlebox">
|
||||||
<div class="title">beelink</div>
|
<div class="title">Beelink</div>
|
||||||
<div class="title">亿万人的信赖和见证</div>
|
<div class="title">{{lan.$t("yiwanxinlai")}}</div>
|
||||||
<div class="desc">开启您的美好学习生活</div>
|
<div class="desc">{{lan.$t("kaiqishenghuo1")}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mid">
|
<div class="mid">
|
||||||
<div class="midcontent">
|
<div class="midcontent">
|
||||||
<div class="midtopic">关于Beelink</div>
|
<div class="midtopic">{{lan.$t("guanyu")}}</div>
|
||||||
<div class="midline"></div>
|
<div class="midline"></div>
|
||||||
<div class="texts">
|
<div class="texts" v-html="text[0].content">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- <div class="texts">
|
||||||
Beelink—专致于外语学习的在线互动学习平台。Beelink汇聚各国名师资源,在线直播辅导,提、供中文、英语、西班牙语、俄罗斯语、法语等多种外语讲课,为学生提供优质学习课
|
Beelink—专致于外语学习的在线互动学习平台。Beelink汇聚各国名师资源,在线直播辅导,提、供中文、英语、西班牙语、俄罗斯语、法语等多种外语讲课,为学生提供优质学习课
|
||||||
程。一对一,一对多,不同教学形式符合您的多项不同需求。课程支持直播视频回放、视频评论等功能,让学生可以充分利用碎片时间,讲知识难点、语言技巧等完整、系统化地呈现,
|
程。一对一,一对多,不同教学形式符合您的多项不同需求。课程支持直播视频回放、视频评论等功能,让学生可以充分利用碎片时间,讲知识难点、语言技巧等完整、系统化地呈现,
|
||||||
随时随地想学就学,做自己的学霸。
|
随时随地想学就学,做自己的学霸。
|
||||||
</div>
|
</div> -->
|
||||||
<div class="texts">
|
|
||||||
Beelink—专致于外语学习的在线互动学习平台。Beelink汇聚各国名师资源,在线直播辅导,提、供中文、英语、西班牙语、俄罗斯语、法语等多种外语讲课,为学生提供优质学习课
|
|
||||||
程。一对一,一对多,不同教学形式符合您的多项不同需求。课程支持直播视频回放、视频评论等功能,让学生可以充分利用碎片时间,讲知识难点、语言技巧等完整、系统化地呈现,
|
|
||||||
随时随地想学就学,做自己的学霸。
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="other">
|
<div class="other">
|
||||||
<div class="relation">
|
<div class="relation">
|
||||||
@ -146,6 +144,7 @@ export default defineComponent({
|
|||||||
onMounted(async ()=>{
|
onMounted(async ()=>{
|
||||||
languagelist.value=await getlanguages()
|
languagelist.value=await getlanguages()
|
||||||
})
|
})
|
||||||
|
const text = computed(()=> store.state.infotext)
|
||||||
const userinfo = computed(() => {
|
const userinfo = computed(() => {
|
||||||
return store.state.userinfo;
|
return store.state.userinfo;
|
||||||
})
|
})
|
||||||
@ -167,7 +166,8 @@ export default defineComponent({
|
|||||||
userinfo,
|
userinfo,
|
||||||
navto,
|
navto,
|
||||||
lan,
|
lan,
|
||||||
setlanguage
|
setlanguage,
|
||||||
|
text
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user