mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 19:26:44 +08:00
Merge branch 'feature/GFRS-2097【待确定】培训系统优化' into dev
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="loading-content">
|
<div class="loading-content flex justify-content-c align-items-c">
|
||||||
<div class="context-core">
|
<div class="context-core text-center line-height">
|
||||||
正在跳转培训中心,<span>**</span>秒
|
正在跳转培训中心,请稍候
|
||||||
|
<span>{{ time }}</span
|
||||||
|
>秒。<br />
|
||||||
|
<div class="next-step" @click="next">点击跳转</div>
|
||||||
</div>
|
</div>
|
||||||
<van-button class="mt20" type="info" @click="getDeviceInfo">getDeviceInfo</van-button>
|
<van-button class="mt20" type="info" @click="getDeviceInfo">getDeviceInfo</van-button>
|
||||||
<van-button class="mt20 mb20" type="info" @click="getUserInfo">getUserInfo</van-button>
|
<van-button class="mt20 mb20" type="info" @click="getUserInfo">getUserInfo</van-button>
|
||||||
<div>
|
|
||||||
{{ requestRes }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// this.initThisPage()
|
this.timeOut()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getDeviceInfo() {
|
async getDeviceInfo() {
|
||||||
@@ -67,13 +67,21 @@ export default {
|
|||||||
if (this.time <= 0) {
|
if (this.time <= 0) {
|
||||||
this.time = 0
|
this.time = 0
|
||||||
clearInterval(timer)
|
clearInterval(timer)
|
||||||
this.time = false
|
this.time = '--'
|
||||||
window.location.href = this.trainHomeUrl
|
//window.location.href = this.trainHomeUrl
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
},
|
},
|
||||||
next() {
|
next() {
|
||||||
|
trainHomeUrl({}).then(res => {
|
||||||
|
console.log('培训中心链接查询配置=>>', res)
|
||||||
|
if (res.result == 0) {
|
||||||
|
this.trainHomeUrl = res.content
|
||||||
window.location.href = this.trainHomeUrl
|
window.location.href = this.trainHomeUrl
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -83,8 +91,10 @@ export default {
|
|||||||
.loading-content {
|
.loading-content {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
|
||||||
justify-content: flex-start;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
.next-step {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: #5ca5ea;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user