diff --git a/src/views/ebiz/train/TrainLoading.vue b/src/views/ebiz/train/TrainLoading.vue index ad92ebe9e..bc78e40f0 100644 --- a/src/views/ebiz/train/TrainLoading.vue +++ b/src/views/ebiz/train/TrainLoading.vue @@ -1,13 +1,13 @@ @@ -30,7 +30,7 @@ export default { } }, created() { - // this.initThisPage() + this.timeOut() }, methods: { async getDeviceInfo() { @@ -67,13 +67,21 @@ export default { if (this.time <= 0) { this.time = 0 clearInterval(timer) - this.time = false - window.location.href = this.trainHomeUrl + this.time = '--' + //window.location.href = this.trainHomeUrl } }, 1000) }, next() { - window.location.href = this.trainHomeUrl + trainHomeUrl({}).then(res => { + console.log('培训中心链接查询配置=>>', res) + if (res.result == 0) { + this.trainHomeUrl = res.content + window.location.href = this.trainHomeUrl + } else { + this.$toast(res.resultMessage) + } + }) } } } @@ -83,8 +91,10 @@ export default { .loading-content { width: 100vw; height: 100vh; - display: flex; - justify-content: flex-start; flex-direction: column; } +.next-step { + text-decoration: underline; + color: #5ca5ea; +}