refactor: 修改云存储桶的位置
This commit is contained in:
parent
a12830120e
commit
cdd7d2fccc
2
.env
2
.env
@ -1,5 +1,5 @@
|
|||||||
VITE_WS_URL = wss://ai.xuexiaole.com/ws/device
|
VITE_WS_URL = wss://ai.xuexiaole.com/ws/device
|
||||||
VITE_OSS_URL = https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com
|
VITE_OSS_URL = https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com
|
||||||
VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com
|
VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com
|
||||||
VITE_SERVER_URL = https://ai.xuexiaole.com/api/main
|
VITE_SERVER_URL = https://ai.xuexiaole.com/api/main
|
||||||
VITE_XXL_VERSION = 2.13.2
|
VITE_XXL_VERSION = 2.13.2
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
VITE_WS_URL = ws://43.136.52.196:27001/device
|
VITE_WS_URL = ws://43.136.52.196:27001/device
|
||||||
# VITE_WS_URL = ws://ai.xuexiaole.com/ws/device
|
# VITE_WS_URL = ws://ai.xuexiaole.com/ws/device
|
||||||
VITE_OSS_URL = https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com
|
VITE_OSS_URL = https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com
|
||||||
VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com
|
VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com
|
||||||
VITE_SERVER_URL = http://127.0.0.1:9053/api/main
|
VITE_SERVER_URL = http://127.0.0.1:9053/api/main
|
||||||
# VITE_SERVER_URL = http://test.web.xuexiaole.com/api/main
|
# VITE_SERVER_URL = http://test.web.xuexiaole.com/api/main
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "xuexiaole-web",
|
"name": "lingxixue-web",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@ -535,98 +535,99 @@ export const subject_english = {
|
|||||||
subjectId: english_subject_id,
|
subjectId: english_subject_id,
|
||||||
name: '英语',
|
name: '英语',
|
||||||
subject: '英语',
|
subject: '英语',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_yingyu.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_yingyu.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
export const subject_chinese = {
|
export const subject_chinese = {
|
||||||
subjectId: chinese_subject_id,
|
subjectId: chinese_subject_id,
|
||||||
name: '语文',
|
name: '语文',
|
||||||
subject: '语文',
|
subject: '语文',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_yuwen.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_yuwen.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
export const subject_math = {
|
export const subject_math = {
|
||||||
subjectId: math_subject_id,
|
subjectId: math_subject_id,
|
||||||
name: '数学',
|
name: '数学',
|
||||||
subject: '数学',
|
subject: '数学',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_shuxue.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_shuxue.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_physics = {
|
const subject_physics = {
|
||||||
subjectId: 4,
|
subjectId: 4,
|
||||||
name: '物理',
|
name: '物理',
|
||||||
subject: '物理',
|
subject: '物理',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_wuli.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_wuli.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_chemistry = {
|
const subject_chemistry = {
|
||||||
subjectId: 5,
|
subjectId: 5,
|
||||||
name: '化学',
|
name: '化学',
|
||||||
subject: '化学',
|
subject: '化学',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_huaxue.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_huaxue.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_bio = {
|
const subject_bio = {
|
||||||
subjectId: 6,
|
subjectId: 6,
|
||||||
name: '生物学',
|
name: '生物学',
|
||||||
subject: '生物学',
|
subject: '生物学',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_shengwu.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_shengwu.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_law = {
|
const subject_law = {
|
||||||
subjectId: 7,
|
subjectId: 7,
|
||||||
name: '政治(道法)',
|
name: '政治(道法)',
|
||||||
subject: '政治(道法)',
|
subject: '政治(道法)',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_fazhi.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_fazhi.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_history = {
|
const subject_history = {
|
||||||
subjectId: 8,
|
subjectId: 8,
|
||||||
name: '历史',
|
name: '历史',
|
||||||
subject: '历史',
|
subject: '历史',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_lishi.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_lishi.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_geo = {
|
const subject_geo = {
|
||||||
subjectId: 9,
|
subjectId: 9,
|
||||||
name: '地理',
|
name: '地理',
|
||||||
subject: '地理',
|
subject: '地理',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_dili.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_dili.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_science = {
|
const subject_science = {
|
||||||
subjectId: 10,
|
subjectId: 10,
|
||||||
name: '科学',
|
name: '科学',
|
||||||
subject: '科学',
|
subject: '科学',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_kexue.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_kexue.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_history_society = {
|
const subject_history_society = {
|
||||||
subjectId: 11,
|
subjectId: 11,
|
||||||
name: '历史与社会',
|
name: '历史与社会',
|
||||||
subject: '历史与社会',
|
subject: '历史与社会',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_lishiyushehui.png',
|
pictureUrl:
|
||||||
|
'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_lishiyushehui.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_it = {
|
const subject_it = {
|
||||||
subjectId: 12,
|
subjectId: 12,
|
||||||
name: '信息技术',
|
name: '信息技术',
|
||||||
subject: '信息技术',
|
subject: '信息技术',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_xinxi.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_xinxi.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_music = {
|
const subject_music = {
|
||||||
subjectId: 13,
|
subjectId: 13,
|
||||||
name: '音乐',
|
name: '音乐',
|
||||||
subject: '音乐',
|
subject: '音乐',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_yinyue.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_yinyue.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const subject_art = {
|
const subject_art = {
|
||||||
subjectId: 14,
|
subjectId: 14,
|
||||||
name: '美术',
|
name: '美术',
|
||||||
subject: '美术',
|
subject: '美术',
|
||||||
pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_meishu.png',
|
pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_meishu.png',
|
||||||
sort: null,
|
sort: null,
|
||||||
} as SubjectItem
|
} as SubjectItem
|
||||||
const xiaoxue_subjects = [
|
const xiaoxue_subjects = [
|
||||||
@ -663,7 +664,7 @@ const gaozhong_subjects = [
|
|||||||
// subjectId: 14,
|
// subjectId: 14,
|
||||||
// name: '通用',
|
// name: '通用',
|
||||||
// subject: '通用',
|
// subject: '通用',
|
||||||
// pictureUrl: 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/subject_tongyong.png',
|
// pictureUrl: 'https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/subject_tongyong.png',
|
||||||
// sort: null,
|
// sort: null,
|
||||||
// },
|
// },
|
||||||
]
|
]
|
||||||
|
|||||||
@ -16,7 +16,7 @@ const OSS_URL = import.meta.env.VITE_OSS_URL
|
|||||||
const { userInfo } = storeToRefs(userStore())
|
const { userInfo } = storeToRefs(userStore())
|
||||||
|
|
||||||
function getLoading(type: number) {
|
function getLoading(type: number) {
|
||||||
return `${OSS_URL}/xuexiaole_clinet/learnWord/loading${type}.gif`
|
return `${OSS_URL}/english_client/learnWord/loading${type}.gif`
|
||||||
}
|
}
|
||||||
// function onOk() {
|
// function onOk() {
|
||||||
// emits('update:modelValue', false)
|
// emits('update:modelValue', false)
|
||||||
|
|||||||
@ -48,7 +48,7 @@ const OSS_URL = import.meta.env.VITE_OSS_URL
|
|||||||
const animation = ref<LottieEvent>()
|
const animation = ref<LottieEvent>()
|
||||||
const lottieRef = ref()
|
const lottieRef = ref()
|
||||||
const getJSON = (name: string | any) => {
|
const getJSON = (name: string | any) => {
|
||||||
return `${OSS_URL}/xuexiaole_clinet/lottieJSON/${name}.json` // 文件路径
|
return `${OSS_URL}/english_client/lottieJSON/${name}.json` // 文件路径
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
|||||||
@ -12,11 +12,11 @@ const props = defineProps<{
|
|||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const combo = `${OSS_URL}/xuexiaole_clinet/normalMode/combo.png`
|
const combo = `${OSS_URL}/english_client/normalMode/combo.png`
|
||||||
const numArr = computed(() => props.num?.toString()?.split(''))
|
const numArr = computed(() => props.num?.toString()?.split(''))
|
||||||
|
|
||||||
function getNumImg(item: string) {
|
function getNumImg(item: string) {
|
||||||
return `${OSS_URL}/xuexiaole_clinet/normalMode/${item}.png`
|
return `${OSS_URL}/english_client/normalMode/${item}.png`
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@ -7,13 +7,13 @@ import { level_type_advance, result_wrong } from '..'
|
|||||||
export const shelfTopUrl = `${OSS_URL}/subject/book_shelf_top.svg`
|
export const shelfTopUrl = `${OSS_URL}/subject/book_shelf_top.svg`
|
||||||
export const bottomUrl = `${OSS_URL}/subject/book_shelf_bottom.svg`
|
export const bottomUrl = `${OSS_URL}/subject/book_shelf_bottom.svg`
|
||||||
export const leftUrl = `${OSS_URL}/subject/book_shelf_left.svg`
|
export const leftUrl = `${OSS_URL}/subject/book_shelf_left.svg`
|
||||||
export const wrongUrl = `${OSS_URL}/xuexiaole_clinet/normalMode/cross.png`
|
export const wrongUrl = `${OSS_URL}/english_client/normalMode/cross.png`
|
||||||
export const rightUrl = `${OSS_URL}/xuexiaole_clinet/normalMode/tick.png`
|
export const rightUrl = `${OSS_URL}/english_client/normalMode/tick.png`
|
||||||
export const surrenderUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_surrender.svg`
|
export const surrenderUrl = `${OSS_URL}/english_client/icon/icon_surrender.svg`
|
||||||
export const shengciben01Url = `${OSS_URL}/xuexiaole_clinet/icon/icon_shengciben_01.svg`
|
export const shengciben01Url = `${OSS_URL}/english_client/icon/icon_shengciben_01.svg`
|
||||||
export const shengciben02Url = `${OSS_URL}/xuexiaole_clinet/icon/icon_shengciben_02.svg`
|
export const shengciben02Url = `${OSS_URL}/english_client/icon/icon_shengciben_02.svg`
|
||||||
export const nextUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_next.svg`
|
export const nextUrl = `${OSS_URL}/english_client/icon/icon_next.svg`
|
||||||
export const memoryTipsUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_memory_tips.png`
|
export const memoryTipsUrl = `${OSS_URL}/english_client/icon/icon_memory_tips.png`
|
||||||
export const countDownBg = `url(${OSS_URL}/icon/timeout_clock.png)`
|
export const countDownBg = `url(${OSS_URL}/icon/timeout_clock.png)`
|
||||||
|
|
||||||
export const useMain = (props: any, emits: any) => {
|
export const useMain = (props: any, emits: any) => {
|
||||||
|
|||||||
@ -189,7 +189,7 @@
|
|||||||
left: 27px;
|
left: 27px;
|
||||||
width: 1800px;
|
width: 1800px;
|
||||||
height: $dot_h;
|
height: $dot_h;
|
||||||
background-image: url('https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/purple_dot.png');
|
background-image: url('https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/purple_dot.png');
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
background-size: $dot_w $dot_h;
|
background-size: $dot_w $dot_h;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,7 +28,7 @@ const props = withDefaults(
|
|||||||
defineOptions({ name: 'WordGame' })
|
defineOptions({ name: 'WordGame' })
|
||||||
|
|
||||||
// 音频base_url
|
// 音频base_url
|
||||||
const soundBaseUrl = `${OSS_URL}/xuexiaole_clinet/sound`
|
const soundBaseUrl = `${OSS_URL}/english_client/sound`
|
||||||
|
|
||||||
const progress = ref(0)
|
const progress = ref(0)
|
||||||
// 是否结束
|
// 是否结束
|
||||||
|
|||||||
@ -32,7 +32,7 @@ const props = defineProps<{
|
|||||||
const emits = defineEmits(['post-result', 'next'])
|
const emits = defineEmits(['post-result', 'next'])
|
||||||
|
|
||||||
const sound = useAudio()
|
const sound = useAudio()
|
||||||
const soundBaseUrl = `${OSS_URL}/xuexiaole_clinet/sound`
|
const soundBaseUrl = `${OSS_URL}/english_client/sound`
|
||||||
|
|
||||||
const {
|
const {
|
||||||
countDownText,
|
countDownText,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { useAudio as Audio } from '@/hooks'
|
import { useAudio as Audio } from '@/hooks'
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const soundUrl = `${OSS_URL}/xuexiaole_clinet/sound/`
|
const soundUrl = `${OSS_URL}/english_client/sound/`
|
||||||
|
|
||||||
// const music = uni.createInnerAudioContext(); // 创建播放器对象
|
// const music = uni.createInnerAudioContext(); // 创建播放器对象
|
||||||
const playSwitches = ref([] as Ref<boolean>[])
|
const playSwitches = ref([] as Ref<boolean>[])
|
||||||
|
|||||||
@ -221,14 +221,14 @@ onMounted(() => {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'AlimamaShuHeiTi';
|
font-family: 'AlimamaShuHeiTi';
|
||||||
src: url(https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/font/AlimamaShuHeiTi.otf)
|
src: url(https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/font/AlimamaShuHeiTi.otf)
|
||||||
format('opentype');
|
format('opentype');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'AlibabaHealth';
|
font-family: 'AlibabaHealth';
|
||||||
src: url(https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/font/AlibabaHealth.ttf)
|
src: url(https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/font/AlibabaHealth.ttf)
|
||||||
format('truetype');
|
format('truetype');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
@use '../../styles/variate.scss' as *;
|
||||||
|
|
||||||
$font: Menlo, Monaco, 'Courier New', monospace;
|
$font: Menlo, Monaco, 'Courier New', monospace;
|
||||||
$border_radius: 10px;
|
$border_radius: 10px;
|
||||||
$font_size: 2vh;
|
$font_size: 2vh;
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<div
|
<div
|
||||||
class="arrow left-arrow"
|
class="arrow left-arrow"
|
||||||
:style="{
|
:style="{
|
||||||
background: `url(${OSS_URL}/xuexiaole_clinet/normalMode/Left_Arrow.png) 100% / contain no-repeat`,
|
background: `url(${OSS_URL}/english_client/normalMode/Left_Arrow.png) 100% / contain no-repeat`,
|
||||||
}"
|
}"
|
||||||
@click="changePage(-1)"
|
@click="changePage(-1)"
|
||||||
></div>
|
></div>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
<div
|
<div
|
||||||
class="arrow right-arrow"
|
class="arrow right-arrow"
|
||||||
:style="{
|
:style="{
|
||||||
background: `url(${OSS_URL}/xuexiaole_clinet/normalMode/Right_Arrow.png) 100% / contain no-repeat`,
|
background: `url(${OSS_URL}/english_client/normalMode/Right_Arrow.png) 100% / contain no-repeat`,
|
||||||
}"
|
}"
|
||||||
@click="changePage(1)"
|
@click="changePage(1)"
|
||||||
></div>
|
></div>
|
||||||
|
|||||||
@ -60,8 +60,8 @@ const props = defineProps<{
|
|||||||
const emits = defineEmits(['chooseAnswer', 'seeWord'])
|
const emits = defineEmits(['chooseAnswer', 'seeWord'])
|
||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const cross = `url(${OSS_URL}/xuexiaole_clinet/normalMode/cross.png)`
|
const cross = `url(${OSS_URL}/english_client/normalMode/cross.png)`
|
||||||
const tick = `url(${OSS_URL}/xuexiaole_clinet/normalMode/tick.png)`
|
const tick = `url(${OSS_URL}/english_client/normalMode/tick.png)`
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
// const showAnswer = ref(false);
|
// const showAnswer = ref(false);
|
||||||
const clickNum = ref<number>()
|
const clickNum = ref<number>()
|
||||||
@ -79,11 +79,11 @@ function pickAnswer(item: optionType, idx: number) {
|
|||||||
}
|
}
|
||||||
// if (item.isRight) {
|
// if (item.isRight) {
|
||||||
// // 答对
|
// // 答对
|
||||||
// useSound(`${OSS_URL}/xuexiaole_clinet/sound/right.mp3`);
|
// useSound(`${OSS_URL}/english_client/sound/right.mp3`);
|
||||||
// } else {
|
// } else {
|
||||||
// errorNum.value = idx;
|
// errorNum.value = idx;
|
||||||
// // 答错
|
// // 答错
|
||||||
// useSound(`${OSS_URL}/xuexiaole_clinet/sound/error.mp3`);
|
// useSound(`${OSS_URL}/english_client/sound/error.mp3`);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
function showWordDetail(item: string) {
|
function showWordDetail(item: string) {
|
||||||
|
|||||||
@ -89,7 +89,7 @@ const tooList = computed(() => [
|
|||||||
{
|
{
|
||||||
name: '投降',
|
name: '投降',
|
||||||
idx: 1,
|
idx: 1,
|
||||||
url: `${OSS_URL}/xuexiaole_clinet/normalMode/res_flag.png`,
|
url: `${OSS_URL}/english_client/normalMode/res_flag.png`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '生词本',
|
name: '生词本',
|
||||||
@ -240,7 +240,7 @@ onMounted(() => {
|
|||||||
.spell {
|
.spell {
|
||||||
max-width: 480px;
|
max-width: 480px;
|
||||||
padding: 0 32px;
|
padding: 0 32px;
|
||||||
background-image: url('https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/xuexiaole_clinet/normalMode/line_word.png');
|
background-image: url('https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/english_client/normalMode/line_word.png');
|
||||||
background-size: auto 100px;
|
background-size: auto 100px;
|
||||||
color: var(--grey-1, rgba(0, 0, 0, 0.85));
|
color: var(--grey-1, rgba(0, 0, 0, 0.85));
|
||||||
font-family: $font-special;
|
font-family: $font-special;
|
||||||
|
|||||||
@ -22,7 +22,7 @@ const props = defineProps<{
|
|||||||
iconName: string
|
iconName: string
|
||||||
}>()
|
}>()
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const getIcon = `${OSS_URL}/xuexiaole_clinet/learnWord/${props.iconName}.png`
|
const getIcon = `${OSS_URL}/english_client/learnWord/${props.iconName}.png`
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.data__item {
|
.data__item {
|
||||||
|
|||||||
@ -104,15 +104,15 @@ const props = defineProps<{
|
|||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const bg_level = `${OSS_URL}/xuexiaole_clinet/learnWord/level.png`
|
const bg_level = `${OSS_URL}/english_client/learnWord/level.png`
|
||||||
|
|
||||||
const bg_height = `${OSS_URL}/xuexiaole_clinet/learnWord/level_light_new.svg`
|
const bg_height = `${OSS_URL}/english_client/learnWord/level_light_new.svg`
|
||||||
const bg_lock = `${OSS_URL}/xuexiaole_clinet/learnWord/lock.png`
|
const bg_lock = `${OSS_URL}/english_client/learnWord/lock.png`
|
||||||
const bg_lock_hard = `${OSS_URL}/xuexiaole_clinet/learnWord/lock_hard.png`
|
const bg_lock_hard = `${OSS_URL}/english_client/learnWord/lock_hard.png`
|
||||||
const icon_notPassed = `${OSS_URL}/xuexiaole_clinet/learnWord/icon_notPassed.png`
|
const icon_notPassed = `${OSS_URL}/english_client/learnWord/icon_notPassed.png`
|
||||||
const icon_passed = `${OSS_URL}/xuexiaole_clinet/learnWord/icon_passed.png`
|
const icon_passed = `${OSS_URL}/english_client/learnWord/icon_passed.png`
|
||||||
const icon_passed_hard = `${OSS_URL}/xuexiaole_clinet/learnWord/icon_passed_hard.png`
|
const icon_passed_hard = `${OSS_URL}/english_client/learnWord/icon_passed_hard.png`
|
||||||
const light_passed = `url(${OSS_URL}/xuexiaole_clinet/learnWord/light_passed.gif) center no-repeat `
|
const light_passed = `url(${OSS_URL}/english_client/learnWord/light_passed.gif) center no-repeat `
|
||||||
|
|
||||||
const state = useLearnWordStore()
|
const state = useLearnWordStore()
|
||||||
const isBook = inject('isBook') as Ref<boolean>
|
const isBook = inject('isBook') as Ref<boolean>
|
||||||
|
|||||||
@ -20,8 +20,8 @@ const props = defineProps<{
|
|||||||
}>()
|
}>()
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const bend_left = `url(${OSS_URL}/xuexiaole_clinet/learnWord/bend_left.png)`
|
const bend_left = `url(${OSS_URL}/english_client/learnWord/bend_left.png)`
|
||||||
const bend_right = `url(${OSS_URL}/xuexiaole_clinet/learnWord/bend_right.png)`
|
const bend_right = `url(${OSS_URL}/english_client/learnWord/bend_right.png)`
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@ -10,7 +10,7 @@ const props = defineProps<{
|
|||||||
const emits = defineEmits(['update:modelValue', 'selectChange'])
|
const emits = defineEmits(['update:modelValue', 'selectChange'])
|
||||||
const OSS_URL = `${import.meta.env.VITE_OSS_URL}`
|
const OSS_URL = `${import.meta.env.VITE_OSS_URL}`
|
||||||
const bg = `url(${OSS_URL}/icon/select.svg) 100% / contain no-repeat`
|
const bg = `url(${OSS_URL}/icon/select.svg) 100% / contain no-repeat`
|
||||||
const bg2 = `url(${OSS_URL}/xuexiaole_clinet/normalMode/check_4.png) 100% / contain no-repeat`
|
const bg2 = `url(${OSS_URL}/english_client/normalMode/check_4.png) 100% / contain no-repeat`
|
||||||
|
|
||||||
const showSelect = ref(false) // 是否显示下拉框
|
const showSelect = ref(false) // 是否显示下拉框
|
||||||
const activeSelect = ref<anyObj>({})
|
const activeSelect = ref<anyObj>({})
|
||||||
|
|||||||
@ -59,10 +59,10 @@ const emit = defineEmits(['update:modelValue'])
|
|||||||
|
|
||||||
const nameStr = ref('')
|
const nameStr = ref('')
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const ellipsis = `${OSS_URL}/xuexiaole_clinet/learnWord/ellipsis.png`
|
const ellipsis = `${OSS_URL}/english_client/learnWord/ellipsis.png`
|
||||||
|
|
||||||
const getImage = (name: string) => {
|
const getImage = (name: string) => {
|
||||||
return `${OSS_URL}/xuexiaole_clinet/learnWord/${name}.png` // 文件路径
|
return `${OSS_URL}/english_client/learnWord/${name}.png` // 文件路径
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 根据头像数量计算间隔 */
|
/* 根据头像数量计算间隔 */
|
||||||
|
|||||||
@ -36,10 +36,10 @@ const props = defineProps<{
|
|||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const jsonMap: { [key: string]: string } = {
|
const jsonMap: { [key: string]: string } = {
|
||||||
拼写能手: `${OSS_URL}/xuexiaole_clinet/lottieJSON/spell_gooder.json`,
|
拼写能手: `${OSS_URL}/english_client/lottieJSON/spell_gooder.json`,
|
||||||
拼写之星: `${OSS_URL}/xuexiaole_clinet/lottieJSON/spell_start.json`,
|
拼写之星: `${OSS_URL}/english_client/lottieJSON/spell_start.json`,
|
||||||
千词达人: `${OSS_URL}/xuexiaole_clinet/lottieJSON/thousands_word.json`,
|
千词达人: `${OSS_URL}/english_client/lottieJSON/thousands_word.json`,
|
||||||
百词入门: `${OSS_URL}/xuexiaole_clinet/lottieJSON/hundred_word.json`,
|
百词入门: `${OSS_URL}/english_client/lottieJSON/hundred_word.json`,
|
||||||
}
|
}
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
|
|||||||
@ -88,8 +88,8 @@ const emit = defineEmits(['exit', 'again'])
|
|||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const img_close = `${OSS_URL}/xuexiaole_clinet/normalMode/close.png`
|
const img_close = `${OSS_URL}/english_client/normalMode/close.png`
|
||||||
const img_again = `${OSS_URL}/xuexiaole_clinet/normalMode/again.png`
|
const img_again = `${OSS_URL}/english_client/normalMode/again.png`
|
||||||
const sound = useCommonAudio(true)
|
const sound = useCommonAudio(true)
|
||||||
const audio = useAudio()
|
const audio = useAudio()
|
||||||
const wordIdRef = ref('')
|
const wordIdRef = ref('')
|
||||||
|
|||||||
@ -268,9 +268,9 @@ watch(
|
|||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const btn_del = `${OSS_URL}/xuexiaole_clinet/normalMode/btn_del.png`
|
const btn_del = `${OSS_URL}/english_client/normalMode/btn_del.png`
|
||||||
const props_bomb_gray = `${OSS_URL}/xuexiaole_clinet/normalMode/props_bomb_gray.png`
|
const props_bomb_gray = `${OSS_URL}/english_client/normalMode/props_bomb_gray.png`
|
||||||
const props_glass_gray = `${OSS_URL}/xuexiaole_clinet/normalMode/props_glass_gray.png`
|
const props_glass_gray = `${OSS_URL}/english_client/normalMode/props_glass_gray.png`
|
||||||
|
|
||||||
const showEnlarge = ref(false)
|
const showEnlarge = ref(false)
|
||||||
const wordType = ref(false)
|
const wordType = ref(false)
|
||||||
|
|||||||
@ -61,7 +61,7 @@ const OSS_URL = import.meta.env.VITE_OSS_URL
|
|||||||
const sound = useCommonAudio(true)
|
const sound = useCommonAudio(true)
|
||||||
const audio = useAudio()
|
const audio = useAudio()
|
||||||
|
|
||||||
const btn_del = `${OSS_URL}/xuexiaole_clinet/icon/btn_del.png`
|
const btn_del = `${OSS_URL}/english_client/icon/btn_del.png`
|
||||||
const keyboardList = ref<
|
const keyboardList = ref<
|
||||||
{
|
{
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@ -164,11 +164,11 @@ const props = defineProps<{
|
|||||||
|
|
||||||
const emit = defineEmits(['viewDetail'])
|
const emit = defineEmits(['viewDetail'])
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const res_glass = `${OSS_URL}/xuexiaole_clinet/normalMode/res_glass.png`
|
const res_glass = `${OSS_URL}/english_client/normalMode/res_glass.png`
|
||||||
const res_bomb = `${OSS_URL}/xuexiaole_clinet/normalMode/res_bomb.png`
|
const res_bomb = `${OSS_URL}/english_client/normalMode/res_bomb.png`
|
||||||
const res_flag = `${OSS_URL}/xuexiaole_clinet/normalMode/res_flag.png`
|
const res_flag = `${OSS_URL}/english_client/normalMode/res_flag.png`
|
||||||
const img_review = `${OSS_URL}/xuexiaole_clinet/normalMode/review.png`
|
const img_review = `${OSS_URL}/english_client/normalMode/review.png`
|
||||||
const icon_exp = `${OSS_URL}/xuexiaole_clinet/normalMode/icon_exp.png`
|
const icon_exp = `${OSS_URL}/english_client/normalMode/icon_exp.png`
|
||||||
|
|
||||||
const lottieRef = ref()
|
const lottieRef = ref()
|
||||||
const isShowAllLottieRef = ref(false)
|
const isShowAllLottieRef = ref(false)
|
||||||
|
|||||||
@ -183,10 +183,10 @@ const showNextStage = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const img_again = `${OSS_URL}/xuexiaole_clinet/normalMode/again.png`
|
const img_again = `${OSS_URL}/english_client/normalMode/again.png`
|
||||||
const img_arrow = `${OSS_URL}/xuexiaole_clinet/normalMode/arrow.png`
|
const img_arrow = `${OSS_URL}/english_client/normalMode/arrow.png`
|
||||||
const img_close = `${OSS_URL}/xuexiaole_clinet/normalMode/close.png`
|
const img_close = `${OSS_URL}/english_client/normalMode/close.png`
|
||||||
const img_gift = `${OSS_URL}/xuexiaole_clinet/normalMode/gift.png`
|
const img_gift = `${OSS_URL}/english_client/normalMode/gift.png`
|
||||||
|
|
||||||
const isFromTextBook = inject('isFromTextBook') as Ref<any>
|
const isFromTextBook = inject('isFromTextBook') as Ref<any>
|
||||||
const sound = useCommonAudio(true)
|
const sound = useCommonAudio(true)
|
||||||
|
|||||||
@ -26,8 +26,8 @@ const emits = defineEmits(['update:modelValue'])
|
|||||||
// const sound = useSoundEffect();
|
// const sound = useSoundEffect();
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const icon_exit = `${OSS_URL}/xuexiaole_clinet/learnWord/icon_exit.png`
|
const icon_exit = `${OSS_URL}/english_client/learnWord/icon_exit.png`
|
||||||
const icon_cancel = `${OSS_URL}/xuexiaole_clinet/learnWord/icon_cancel.png`
|
const icon_cancel = `${OSS_URL}/english_client/learnWord/icon_cancel.png`
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
function confirmExit() {
|
function confirmExit() {
|
||||||
/* 如果有传入别的事件函数则执行,如果没有则默认退出到上一页 */
|
/* 如果有传入别的事件函数则执行,如果没有则默认退出到上一页 */
|
||||||
|
|||||||
@ -135,10 +135,10 @@ import learnWordApi from '@/api/subject/learnWord'
|
|||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const img_arrow = `${OSS_URL}/xuexiaole_clinet/normalMode/arrow.png`
|
const img_arrow = `${OSS_URL}/english_client/normalMode/arrow.png`
|
||||||
const boy_run = `url(${OSS_URL}/xuexiaole_clinet/learnWord/boy_run.gif) center/100% no-repeat`
|
const boy_run = `url(${OSS_URL}/english_client/learnWord/boy_run.gif) center/100% no-repeat`
|
||||||
const girl_run = `url(${OSS_URL}/xuexiaole_clinet/learnWord/girl_run.gif) center/100% no-repeat`
|
const girl_run = `url(${OSS_URL}/english_client/learnWord/girl_run.gif) center/100% no-repeat`
|
||||||
const back_btn = `url(${OSS_URL}/xuexiaole_clinet/normalMode/back_btn.png)`
|
const back_btn = `url(${OSS_URL}/english_client/normalMode/back_btn.png)`
|
||||||
|
|
||||||
const userInfo = userStore().userInfo
|
const userInfo = userStore().userInfo
|
||||||
const stage = ref('') // 阶段
|
const stage = ref('') // 阶段
|
||||||
@ -274,8 +274,8 @@ const app = {
|
|||||||
i.titlePicture && imgs.push(i.titlePicture)
|
i.titlePicture && imgs.push(i.titlePicture)
|
||||||
}
|
}
|
||||||
imgs.push(
|
imgs.push(
|
||||||
`${OSS_URL}/xuexiaole_clinet/normalMode/props_bomb_gray.png`,
|
`${OSS_URL}/english_client/normalMode/props_bomb_gray.png`,
|
||||||
`${OSS_URL}/xuexiaole_clinet/normalMode/props_glass_gray.png`,
|
`${OSS_URL}/english_client/normalMode/props_glass_gray.png`,
|
||||||
)
|
)
|
||||||
init(imgs)
|
init(imgs)
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import Player from 'xgplayer'
|
|||||||
import { globalStore } from '@/stores'
|
import { globalStore } from '@/stores'
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const soundUrl = `${OSS_URL}/xuexiaole_clinet/sound/`
|
const soundUrl = `${OSS_URL}/english_client/sound/`
|
||||||
|
|
||||||
const useAudio = function () {
|
const useAudio = function () {
|
||||||
// 每个音频生成一个对应的 isPlay 状态
|
// 每个音频生成一个对应的 isPlay 状态
|
||||||
|
|||||||
@ -98,7 +98,7 @@
|
|||||||
|
|
||||||
@keyframes showOnce {
|
@keyframes showOnce {
|
||||||
0% {
|
0% {
|
||||||
background: url('https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/xuexiaole_clinet/normalMode/bomb.gif')
|
background: url('https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/english_client/normalMode/bomb.gif')
|
||||||
right center / 50% no-repeat;
|
right center / 50% no-repeat;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
|
|||||||
@ -50,7 +50,7 @@
|
|||||||
.spell {
|
.spell {
|
||||||
max-width: 480px;
|
max-width: 480px;
|
||||||
padding: 0 32px;
|
padding: 0 32px;
|
||||||
background-image: url('https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/xuexiaole_clinet/normalMode/line_word.png');
|
background-image: url('https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/english_client/normalMode/line_word.png');
|
||||||
background-size: auto 100px;
|
background-size: auto 100px;
|
||||||
|
|
||||||
color: var(--grey-1, rgba(0, 0, 0, 0.85));
|
color: var(--grey-1, rgba(0, 0, 0, 0.85));
|
||||||
|
|||||||
@ -117,15 +117,15 @@ import Select from './components/Select.vue'
|
|||||||
import type { IModelItem } from './components/medal.vue'
|
import type { IModelItem } from './components/medal.vue'
|
||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const bg_popup = `${OSS_URL}/xuexiaole_clinet/learnWord/btn_start.png`
|
const bg_popup = `${OSS_URL}/english_client/learnWord/btn_start.png`
|
||||||
const btn_switchStar = `${OSS_URL}/xuexiaole_clinet/learnWord/btn_switchStar.png`
|
const btn_switchStar = `${OSS_URL}/english_client/learnWord/btn_switchStar.png`
|
||||||
const Question_fill = `${OSS_URL}/xuexiaole_clinet/learnWord/Question_fill.png`
|
const Question_fill = `${OSS_URL}/english_client/learnWord/Question_fill.png`
|
||||||
const popup = `${OSS_URL}/xuexiaole_clinet/learnWord/popup.png`
|
const popup = `${OSS_URL}/english_client/learnWord/popup.png`
|
||||||
const back_btn = `url(${OSS_URL}/xuexiaole_clinet/normalMode/back_btn.png)`
|
const back_btn = `url(${OSS_URL}/english_client/normalMode/back_btn.png)`
|
||||||
const check_5 = `url(${OSS_URL}/xuexiaole_clinet/normalMode/check_5.png)`
|
const check_5 = `url(${OSS_URL}/english_client/normalMode/check_5.png)`
|
||||||
const p_bg_land = `url(${OSS_URL}/xuexiaole_clinet/learnWord/bg_land.svg)`
|
const p_bg_land = `url(${OSS_URL}/english_client/learnWord/bg_land.svg)`
|
||||||
const p_bg_sea = `url(${OSS_URL}/xuexiaole_clinet/learnWord/bg_sea.svg)`
|
const p_bg_sea = `url(${OSS_URL}/english_client/learnWord/bg_sea.svg)`
|
||||||
const p_bg_sky = `url(${OSS_URL}/xuexiaole_clinet/learnWord/bg_sky.svg)`
|
const p_bg_sky = `url(${OSS_URL}/english_client/learnWord/bg_sky.svg)`
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@ -140,7 +140,7 @@ const urlQuery = ref()
|
|||||||
provide('isBook', isBook)
|
provide('isBook', isBook)
|
||||||
|
|
||||||
function getLoading(type: number) {
|
function getLoading(type: number) {
|
||||||
return `${OSS_URL}/xuexiaole_clinet/learnWord/loading${type}.gif`
|
return `${OSS_URL}/english_client/learnWord/loading${type}.gif`
|
||||||
}
|
}
|
||||||
function navTo(url: string) {
|
function navTo(url: string) {
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
@ -393,7 +393,7 @@ function loadBg() {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// const img = new Image();
|
// const img = new Image();
|
||||||
|
|
||||||
// img.src = `${OSS_URL}/xuexiaole_clinet/learnWord/${dynamicBg.value}.png`;
|
// img.src = `${OSS_URL}/english_client/learnWord/${dynamicBg.value}.png`;
|
||||||
// console.log('img.src', img.src);
|
// console.log('img.src', img.src);
|
||||||
|
|
||||||
// img.addEventListener('load', () => {
|
// img.addEventListener('load', () => {
|
||||||
|
|||||||
@ -80,8 +80,8 @@ const sound = useCommonAudio(true)
|
|||||||
const audio = useAudio()
|
const audio = useAudio()
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const img_again = `${OSS_URL}/xuexiaole_clinet/normalMode/arrow.png`
|
const img_again = `${OSS_URL}/english_client/normalMode/arrow.png`
|
||||||
const img_close = `${OSS_URL}/xuexiaole_clinet/normalMode/close.png`
|
const img_close = `${OSS_URL}/english_client/normalMode/close.png`
|
||||||
const wordIdRef = ref('')
|
const wordIdRef = ref('')
|
||||||
const spellRef = ref('')
|
const spellRef = ref('')
|
||||||
const showCircle = ref(false)
|
const showCircle = ref(false)
|
||||||
@ -102,7 +102,7 @@ function again() {
|
|||||||
const rewardList = computed(() => {
|
const rewardList = computed(() => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
iconname: `${OSS_URL}/xuexiaole_clinet/normalMode/icon_exp.png`,
|
iconname: `${OSS_URL}/english_client/normalMode/icon_exp.png`,
|
||||||
name: '奖励',
|
name: '奖励',
|
||||||
number: props.exp,
|
number: props.exp,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,8 +44,8 @@ const props = defineProps<{
|
|||||||
|
|
||||||
const emit = defineEmits<(e: 'selected', answer: boolean, optionsItem: Option) => void>()
|
const emit = defineEmits<(e: 'selected', answer: boolean, optionsItem: Option) => void>()
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const cross = `url(${OSS_URL}/xuexiaole_clinet/normalMode/cross.png)`
|
const cross = `url(${OSS_URL}/english_client/normalMode/cross.png)`
|
||||||
const tick = `url(${OSS_URL}/xuexiaole_clinet/normalMode/tick.png)`
|
const tick = `url(${OSS_URL}/english_client/normalMode/tick.png)`
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@ -52,11 +52,11 @@ const props = withDefaults(
|
|||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const icon_notPassed = `url(${OSS_URL}/xuexiaole_clinet/normalMode/icon_notPassed.png) center/3.33333vw no-repeat`
|
const icon_notPassed = `url(${OSS_URL}/english_client/normalMode/icon_notPassed.png) center/3.33333vw no-repeat`
|
||||||
const star_full = `url(${OSS_URL}/xuexiaole_clinet/normalMode/star_full.gif) center/11.97917vw no-repeat`
|
const star_full = `url(${OSS_URL}/english_client/normalMode/star_full.gif) center/11.97917vw no-repeat`
|
||||||
const star_full_hard = `url(${OSS_URL}/xuexiaole_clinet/normalMode/star_full_hard.gif) center/11.97917vw no-repeat`
|
const star_full_hard = `url(${OSS_URL}/english_client/normalMode/star_full_hard.gif) center/11.97917vw no-repeat`
|
||||||
const icon_passed = `url(${OSS_URL}/xuexiaole_clinet/normalMode/icon_passed.png) center/3.33333vw no-repeat`
|
const icon_passed = `url(${OSS_URL}/english_client/normalMode/icon_passed.png) center/3.33333vw no-repeat`
|
||||||
const icon_passed_hard = `url(${OSS_URL}/xuexiaole_clinet/normalMode/icon_passed_hard.png) center/3.33333vw no-repeat`
|
const icon_passed_hard = `url(${OSS_URL}/english_client/normalMode/icon_passed_hard.png) center/3.33333vw no-repeat`
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.progress__container {
|
.progress__container {
|
||||||
|
|||||||
@ -66,9 +66,9 @@ const props = defineProps<{
|
|||||||
|
|
||||||
const emit = defineEmits(['viewDetail'])
|
const emit = defineEmits(['viewDetail'])
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const img_tick = `${OSS_URL}/xuexiaole_clinet/normalMode/tick.png`
|
const img_tick = `${OSS_URL}/english_client/normalMode/tick.png`
|
||||||
const img_cross = `${OSS_URL}/xuexiaole_clinet/normalMode/cross.png`
|
const img_cross = `${OSS_URL}/english_client/normalMode/cross.png`
|
||||||
const img_review = `${OSS_URL}/xuexiaole_clinet/normalMode/review.png`
|
const img_review = `${OSS_URL}/english_client/normalMode/review.png`
|
||||||
|
|
||||||
const round = computed(() => props.list[0]?.resultStr?.split(',')?.length || 4)
|
const round = computed(() => props.list[0]?.resultStr?.split(',')?.length || 4)
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,7 @@ const props = defineProps<{
|
|||||||
}>()
|
}>()
|
||||||
const emits = defineEmits(['close'])
|
const emits = defineEmits(['close'])
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const btn_close = `${OSS_URL}/xuexiaole_clinet/normalMode/btn_close.png`
|
const btn_close = `${OSS_URL}/english_client/normalMode/btn_close.png`
|
||||||
function close() {
|
function close() {
|
||||||
emits('close', false)
|
emits('close', false)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -144,9 +144,9 @@ const emit = defineEmits(['onTapEnlargeImg'])
|
|||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const res_flag = `${OSS_URL}/xuexiaole_clinet/hardMode/res_flag.png`
|
const res_flag = `${OSS_URL}/english_client/hardMode/res_flag.png`
|
||||||
const tick = `${OSS_URL}/xuexiaole_clinet/normalMode/tick.png`
|
const tick = `${OSS_URL}/english_client/normalMode/tick.png`
|
||||||
const line_word = `url(${OSS_URL}/xuexiaole_clinet/normalMode/line_word.png)`
|
const line_word = `url(${OSS_URL}/english_client/normalMode/line_word.png)`
|
||||||
|
|
||||||
// 黄色喇叭计时器
|
// 黄色喇叭计时器
|
||||||
const PlayTiming = ref()
|
const PlayTiming = ref()
|
||||||
|
|||||||
@ -180,9 +180,9 @@ const showCircle = ref(false)
|
|||||||
const showPop = ref(false)
|
const showPop = ref(false)
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const img_arrow = `${OSS_URL}/xuexiaole_clinet/normalMode/arrow.png`
|
const img_arrow = `${OSS_URL}/english_client/normalMode/arrow.png`
|
||||||
const img_close = `${OSS_URL}/xuexiaole_clinet/normalMode/close.png`
|
const img_close = `${OSS_URL}/english_client/normalMode/close.png`
|
||||||
const img_again = `${OSS_URL}/xuexiaole_clinet/normalMode/again.png`
|
const img_again = `${OSS_URL}/english_client/normalMode/again.png`
|
||||||
function exit() {
|
function exit() {
|
||||||
sound.play('click.wav')
|
sound.play('click.wav')
|
||||||
emit('exit')
|
emit('exit')
|
||||||
@ -233,7 +233,7 @@ function nextStage() {
|
|||||||
const rewardList = computed(() => {
|
const rewardList = computed(() => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
iconname: `${OSS_URL}/xuexiaole_clinet/normalMode/icon_exp.png`,
|
iconname: `${OSS_URL}/english_client/normalMode/icon_exp.png`,
|
||||||
name: '奖励',
|
name: '奖励',
|
||||||
number: props.exp,
|
number: props.exp,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -60,8 +60,8 @@ const emit = defineEmits<(e: 'selected', answer: boolean, optionsItem: Option) =
|
|||||||
const isShowStar = ref(true)
|
const isShowStar = ref(true)
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const cross = `${OSS_URL}/xuexiaole_clinet/normalMode/cross.png`
|
const cross = `${OSS_URL}/english_client/normalMode/cross.png`
|
||||||
const tick = `${OSS_URL}/xuexiaole_clinet/normalMode/tick.png`
|
const tick = `${OSS_URL}/english_client/normalMode/tick.png`
|
||||||
|
|
||||||
const refGroup = ref<anyObj[]>([])
|
const refGroup = ref<anyObj[]>([])
|
||||||
|
|
||||||
|
|||||||
@ -121,10 +121,10 @@ const router = useRouter()
|
|||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const userInfo = userStore().userInfo
|
const userInfo = userStore().userInfo
|
||||||
|
|
||||||
const img_arrow = `${OSS_URL}/xuexiaole_clinet/normalMode/arrow.png`
|
const img_arrow = `${OSS_URL}/english_client/normalMode/arrow.png`
|
||||||
const boy_run = `url(${OSS_URL}/xuexiaole_clinet/learnWord/boy_run.gif) center/100% no-repeat`
|
const boy_run = `url(${OSS_URL}/english_client/learnWord/boy_run.gif) center/100% no-repeat`
|
||||||
const girl_run = `url(${OSS_URL}/xuexiaole_clinet/learnWord/girl_run.gif) center/100% no-repeat`
|
const girl_run = `url(${OSS_URL}/english_client/learnWord/girl_run.gif) center/100% no-repeat`
|
||||||
const back_btn = `url(${OSS_URL}/xuexiaole_clinet/normalMode/back_btn.png)`
|
const back_btn = `url(${OSS_URL}/english_client/normalMode/back_btn.png)`
|
||||||
|
|
||||||
const showCountDown = ref(true)
|
const showCountDown = ref(true)
|
||||||
// const sound = useSoundEffect();
|
// const sound = useSoundEffect();
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
.spell {
|
.spell {
|
||||||
max-width: 480px;
|
max-width: 480px;
|
||||||
padding: 0 32px;
|
padding: 0 32px;
|
||||||
background-image: url('https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/xuexiaole_clinet/normalMode/line_word.png');
|
background-image: url('https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/english_client/normalMode/line_word.png');
|
||||||
|
|
||||||
background-size: auto 100px;
|
background-size: auto 100px;
|
||||||
|
|
||||||
|
|||||||
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const nav_bg = `url(${OSS_URL}/xuexiaole_clinet/normalMode/nav_bg.png)`
|
const nav_bg = `url(${OSS_URL}/english_client/normalMode/nav_bg.png)`
|
||||||
const bookshelf = `url(${OSS_URL}/xuexiaole_clinet/normalMode/bookshelf.png)`
|
const bookshelf = `url(${OSS_URL}/english_client/normalMode/bookshelf.png)`
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@ -34,7 +34,7 @@ const emit = defineEmits(['update:modelValue', 'changeValue', 'disabledClick'])
|
|||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const icon_empty = `${OSS_URL}/xuexiaole_clinet/normalMode/arrow_down.png`
|
const icon_empty = `${OSS_URL}/english_client/normalMode/arrow_down.png`
|
||||||
const showPanel = ref(false)
|
const showPanel = ref(false)
|
||||||
const selected = ref('')
|
const selected = ref('')
|
||||||
|
|
||||||
|
|||||||
@ -232,12 +232,12 @@ watch(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const btn_close = `${OSS_URL}/xuexiaole_clinet/normalMode/btn_close.png`
|
const btn_close = `${OSS_URL}/english_client/normalMode/btn_close.png`
|
||||||
const empty_gril = `${OSS_URL}/xuexiaole_clinet/normalMode/empty_gril.png`
|
const empty_gril = `${OSS_URL}/english_client/normalMode/empty_gril.png`
|
||||||
const Right_Arrow = `${OSS_URL}/xuexiaole_clinet/normalMode/Right_Arrow.png`
|
const Right_Arrow = `${OSS_URL}/english_client/normalMode/Right_Arrow.png`
|
||||||
const Left_Arrow = `${OSS_URL}/xuexiaole_clinet/normalMode/Left_Arrow.png`
|
const Left_Arrow = `${OSS_URL}/english_client/normalMode/Left_Arrow.png`
|
||||||
const err_rate = `${OSS_URL}/xuexiaole_clinet/normalMode/err_rate.png`
|
const err_rate = `${OSS_URL}/english_client/normalMode/err_rate.png`
|
||||||
const accuracy = `${OSS_URL}/xuexiaole_clinet/normalMode/accuracy.png`
|
const accuracy = `${OSS_URL}/english_client/normalMode/accuracy.png`
|
||||||
|
|
||||||
// const audio = useAudio();
|
// const audio = useAudio();
|
||||||
const titleList = ref([] as any)
|
const titleList = ref([] as any)
|
||||||
|
|||||||
@ -6,7 +6,7 @@ const useReadLoading = function () {
|
|||||||
|
|
||||||
// 获取加载动效
|
// 获取加载动效
|
||||||
function getLoading() {
|
function getLoading() {
|
||||||
return `${OSS_URL}/xuexiaole_clinet/normalMode/read_loading.gif`
|
return `${OSS_URL}/english_client/normalMode/read_loading.gif`
|
||||||
}
|
}
|
||||||
// 加载定时器
|
// 加载定时器
|
||||||
function overLoading() {
|
function overLoading() {
|
||||||
|
|||||||
@ -21,9 +21,9 @@ defineOptions({ name: 'WordTable' })
|
|||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
|
|
||||||
const empty_gril = `${OSS_URL}/xuexiaole_clinet/normalMode/empty_gril.png`
|
const empty_gril = `${OSS_URL}/english_client/normalMode/empty_gril.png`
|
||||||
const nav_bg = `url(${OSS_URL}/xuexiaole_clinet/normalMode/nav_bg.png)`
|
const nav_bg = `url(${OSS_URL}/english_client/normalMode/nav_bg.png)`
|
||||||
const back_btn = `url(${OSS_URL}/xuexiaole_clinet/normalMode/back_btn.png)`
|
const back_btn = `url(${OSS_URL}/english_client/normalMode/back_btn.png)`
|
||||||
const { userInfo } = storeToRefs(userStore())
|
const { userInfo } = storeToRefs(userStore())
|
||||||
|
|
||||||
// 参数
|
// 参数
|
||||||
|
|||||||
@ -77,7 +77,7 @@ const props = defineProps<{
|
|||||||
}>()
|
}>()
|
||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const bg_card = `url(${OSS_URL}/xuexiaole_clinet/learnWord/bg_card.png) center/100% 100% no-repeat`
|
const bg_card = `url(${OSS_URL}/english_client/learnWord/bg_card.png) center/100% 100% no-repeat`
|
||||||
|
|
||||||
const chinese = computed(() => {
|
const chinese = computed(() => {
|
||||||
if (props.znDesc) return props.znDesc
|
if (props.znDesc) return props.znDesc
|
||||||
|
|||||||
@ -78,14 +78,14 @@ const props = defineProps<{
|
|||||||
}>()
|
}>()
|
||||||
const emits = defineEmits(['update:modelValue', 'back', 'next'])
|
const emits = defineEmits(['update:modelValue', 'back', 'next'])
|
||||||
|
|
||||||
const img_arrow = `${OSS_URL}/xuexiaole_clinet/normalMode/arrow.png`
|
const img_arrow = `${OSS_URL}/english_client/normalMode/arrow.png`
|
||||||
const img_close = `${OSS_URL}/xuexiaole_clinet/normalMode/close.png`
|
const img_close = `${OSS_URL}/english_client/normalMode/close.png`
|
||||||
const img_again = `${OSS_URL}/xuexiaole_clinet/normalMode/again.png`
|
const img_again = `${OSS_URL}/english_client/normalMode/again.png`
|
||||||
|
|
||||||
const btn_close = `${OSS_URL}/xuexiaole_clinet/normalMode/btn_close.png`
|
const btn_close = `${OSS_URL}/english_client/normalMode/btn_close.png`
|
||||||
const accuracy = `${OSS_URL}/xuexiaole_clinet/normalMode/accuracy.png`
|
const accuracy = `${OSS_URL}/english_client/normalMode/accuracy.png`
|
||||||
const stopwatch = `${OSS_URL}/xuexiaole_clinet/normalMode/stopwatch.png`
|
const stopwatch = `${OSS_URL}/english_client/normalMode/stopwatch.png`
|
||||||
const clock = `${OSS_URL}/xuexiaole_clinet/normalMode/clock.png`
|
const clock = `${OSS_URL}/english_client/normalMode/clock.png`
|
||||||
|
|
||||||
function dealTime(time: number) {
|
function dealTime(time: number) {
|
||||||
const h = parseInt(String((time / 60 / 60) % 24), 10)
|
const h = parseInt(String((time / 60 / 60) % 24), 10)
|
||||||
@ -107,7 +107,7 @@ function dealTime(time: number) {
|
|||||||
const rewardList = computed(() => {
|
const rewardList = computed(() => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
iconname: `${OSS_URL}/xuexiaole_clinet/normalMode/icon_exp.png`,
|
iconname: `${OSS_URL}/english_client/normalMode/icon_exp.png`,
|
||||||
name: '奖励',
|
name: '奖励',
|
||||||
number: props.exp,
|
number: props.exp,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -171,7 +171,7 @@
|
|||||||
left: 60px;
|
left: 60px;
|
||||||
width: 1800px;
|
width: 1800px;
|
||||||
height: $dot_h;
|
height: $dot_h;
|
||||||
background-image: url('https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/purple_dot.png');
|
background-image: url('https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/purple_dot.png');
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
background-size: $dot_w $dot_h;
|
background-size: $dot_w $dot_h;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,13 +40,13 @@ const OSS_URL = import.meta.env.VITE_OSS_URL
|
|||||||
const shelfTopUrl = `${OSS_URL}/subject/book_shelf_top.svg`
|
const shelfTopUrl = `${OSS_URL}/subject/book_shelf_top.svg`
|
||||||
const bottom_url = `${OSS_URL}/subject/book_shelf_bottom.svg`
|
const bottom_url = `${OSS_URL}/subject/book_shelf_bottom.svg`
|
||||||
const left_url = `${OSS_URL}/subject/book_shelf_left.svg`
|
const left_url = `${OSS_URL}/subject/book_shelf_left.svg`
|
||||||
const wrongUrl = `${OSS_URL}/xuexiaole_clinet/normalMode/cross.png`
|
const wrongUrl = `${OSS_URL}/english_client/normalMode/cross.png`
|
||||||
const rightUrl = `${OSS_URL}/xuexiaole_clinet/normalMode/tick.png`
|
const rightUrl = `${OSS_URL}/english_client/normalMode/tick.png`
|
||||||
const surrenderUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_surrender.svg`
|
const surrenderUrl = `${OSS_URL}/english_client/icon/icon_surrender.svg`
|
||||||
const shengciben01Url = `${OSS_URL}/xuexiaole_clinet/icon/icon_shengciben_01.svg`
|
const shengciben01Url = `${OSS_URL}/english_client/icon/icon_shengciben_01.svg`
|
||||||
const shengciben02Url = `${OSS_URL}/xuexiaole_clinet/icon/icon_shengciben_02.svg`
|
const shengciben02Url = `${OSS_URL}/english_client/icon/icon_shengciben_02.svg`
|
||||||
const nextUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_next.svg`
|
const nextUrl = `${OSS_URL}/english_client/icon/icon_next.svg`
|
||||||
const memoryTipsUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_memory_tips.png`
|
const memoryTipsUrl = `${OSS_URL}/english_client/icon/icon_memory_tips.png`
|
||||||
|
|
||||||
const answer = useAnswer({
|
const answer = useAnswer({
|
||||||
handleRight,
|
handleRight,
|
||||||
|
|||||||
@ -81,11 +81,11 @@ const isWordPlay = ref(false)
|
|||||||
const shelfTopUrl = `${OSS_URL}/subject/book_shelf_top.svg`
|
const shelfTopUrl = `${OSS_URL}/subject/book_shelf_top.svg`
|
||||||
const bottom_url = `${OSS_URL}/subject/book_shelf_bottom.svg`
|
const bottom_url = `${OSS_URL}/subject/book_shelf_bottom.svg`
|
||||||
const left_url = `${OSS_URL}/subject/book_shelf_left.svg`
|
const left_url = `${OSS_URL}/subject/book_shelf_left.svg`
|
||||||
const surrenderUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_surrender.svg`
|
const surrenderUrl = `${OSS_URL}/english_client/icon/icon_surrender.svg`
|
||||||
const shengciben01Url = `${OSS_URL}/xuexiaole_clinet/icon/icon_shengciben_01.svg`
|
const shengciben01Url = `${OSS_URL}/english_client/icon/icon_shengciben_01.svg`
|
||||||
const shengciben02Url = `${OSS_URL}/xuexiaole_clinet/icon/icon_shengciben_02.svg`
|
const shengciben02Url = `${OSS_URL}/english_client/icon/icon_shengciben_02.svg`
|
||||||
const nextUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_next.svg`
|
const nextUrl = `${OSS_URL}/english_client/icon/icon_next.svg`
|
||||||
const memoryTipsUrl = `${OSS_URL}/xuexiaole_clinet/icon/icon_memory_tips.png`
|
const memoryTipsUrl = `${OSS_URL}/english_client/icon/icon_memory_tips.png`
|
||||||
const countDownBg = `url(${OSS_URL}/icon/timeout_clock.png)`
|
const countDownBg = `url(${OSS_URL}/icon/timeout_clock.png)`
|
||||||
|
|
||||||
// 倒计时
|
// 倒计时
|
||||||
|
|||||||
@ -135,17 +135,17 @@ const table = reactive({
|
|||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
const OSS_URL = import.meta.env.VITE_OSS_URL
|
const OSS_URL = import.meta.env.VITE_OSS_URL
|
||||||
const icon_sui = `${OSS_URL}/xuexiaole_clinet/normalMode/icon_sui.png`
|
const icon_sui = `${OSS_URL}/english_client/normalMode/icon_sui.png`
|
||||||
const icon_fu = `${OSS_URL}/xuexiaole_clinet/normalMode/icon_fu.png`
|
const icon_fu = `${OSS_URL}/english_client/normalMode/icon_fu.png`
|
||||||
const btn_mode_1 = `${OSS_URL}/xuexiaole_clinet/normalMode/btn_mode_1.png`
|
const btn_mode_1 = `${OSS_URL}/english_client/normalMode/btn_mode_1.png`
|
||||||
const btn_mode_2 = `${OSS_URL}/xuexiaole_clinet/normalMode/btn_mode_2.png`
|
const btn_mode_2 = `${OSS_URL}/english_client/normalMode/btn_mode_2.png`
|
||||||
const icon_night = `${OSS_URL}/xuexiaole_clinet/normalMode/icon_night.png`
|
const icon_night = `${OSS_URL}/english_client/normalMode/icon_night.png`
|
||||||
const icon_day = `${OSS_URL}/xuexiaole_clinet/normalMode/icon_day.png`
|
const icon_day = `${OSS_URL}/english_client/normalMode/icon_day.png`
|
||||||
const icon_title = `${OSS_URL}/xuexiaole_clinet/normalMode/title.png`
|
const icon_title = `${OSS_URL}/english_client/normalMode/title.png`
|
||||||
const icon_popup = `${OSS_URL}/xuexiaole_clinet/normalMode/popup.png`
|
const icon_popup = `${OSS_URL}/english_client/normalMode/popup.png`
|
||||||
const back_btn = `url(${OSS_URL}/xuexiaole_clinet/normalMode/back_btn.png)`
|
const back_btn = `url(${OSS_URL}/english_client/normalMode/back_btn.png)`
|
||||||
const not_data = `url(${OSS_URL}/xuexiaole_clinet/normalMode/not_data.png) center/contain no-repeat`
|
const not_data = `url(${OSS_URL}/english_client/normalMode/not_data.png) center/contain no-repeat`
|
||||||
const pattern_bg = `#fffef5 url(${OSS_URL}/xuexiaole_clinet/normalMode/pattern_bg.png)`
|
const pattern_bg = `#fffef5 url(${OSS_URL}/english_client/normalMode/pattern_bg.png)`
|
||||||
|
|
||||||
const state = useExam()
|
const state = useExam()
|
||||||
const showDetail = ref(false)
|
const showDetail = ref(false)
|
||||||
|
|||||||
52
web.html
52
web.html
@ -1,10 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
<head>
|
||||||
<head>
|
<meta charset="UTF-8" />
|
||||||
<meta charset="UTF-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<link
|
||||||
<link rel="icon" type="image/svg+xml" href="https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/logo.png" />
|
rel="icon"
|
||||||
|
type="image/svg+xml"
|
||||||
|
href="https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com/urm/logo.png"
|
||||||
|
/>
|
||||||
<title>灵犀学</title>
|
<title>灵犀学</title>
|
||||||
<style>
|
<style>
|
||||||
body,
|
body,
|
||||||
@ -30,38 +33,41 @@
|
|||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<iframe id="iframe" class="iframe" frameborder="0"
|
<iframe
|
||||||
|
id="iframe"
|
||||||
|
class="iframe"
|
||||||
|
frameborder="0"
|
||||||
allowfullscreen="true"
|
allowfullscreen="true"
|
||||||
webkitallowfullscreen="true"
|
webkitallowfullscreen="true"
|
||||||
mozallowfullscreen="true"></iframe>
|
mozallowfullscreen="true"
|
||||||
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
const iframeRef = document.querySelector('.iframe');
|
const iframeRef = document.querySelector('.iframe')
|
||||||
function resize() {
|
function resize() {
|
||||||
const { innerWidth, innerHeight } = window;
|
const { innerWidth, innerHeight } = window
|
||||||
const rate = innerWidth / innerHeight;
|
const rate = innerWidth / innerHeight
|
||||||
const baseRate = 1920 / 1200;
|
const baseRate = 1920 / 1200
|
||||||
if (rate > baseRate) {
|
if (rate > baseRate) {
|
||||||
iframeRef.style.width = innerHeight * 1920 / 1200 + 'px';
|
iframeRef.style.width = (innerHeight * 1920) / 1200 + 'px'
|
||||||
iframeRef.style.height = innerHeight + 'px';
|
iframeRef.style.height = innerHeight + 'px'
|
||||||
} else {
|
} else {
|
||||||
iframeRef.style.width = innerWidth + 'px';
|
iframeRef.style.width = innerWidth + 'px'
|
||||||
iframeRef.style.height = innerWidth * 1200 / 1920 + 'px';
|
iframeRef.style.height = (innerWidth * 1200) / 1920 + 'px'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
resize();
|
resize()
|
||||||
window.addEventListener('resize', resize);
|
window.addEventListener('resize', resize)
|
||||||
const host = 'http://localhost'
|
const host = 'http://localhost'
|
||||||
if (location.pathname !== '/') {
|
if (location.pathname !== '/') {
|
||||||
document.getElementById('iframe').src = host + location.pathname + location.search
|
document.getElementById('iframe').src = host + location.pathname + location.search
|
||||||
}else{
|
} else {
|
||||||
document.getElementById('iframe').src = host
|
document.getElementById('iframe').src = host
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user