From e911c5fa1f968f5bb88d1ea3f893e285249c5933 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Tue, 22 Mar 2022 09:51:45 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web
---
src/pcviews/specialmap/welcome.vue | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/pcviews/specialmap/welcome.vue b/src/pcviews/specialmap/welcome.vue
index cb79c76..72995a9 100644
--- a/src/pcviews/specialmap/welcome.vue
+++ b/src/pcviews/specialmap/welcome.vue
@@ -18,7 +18,7 @@
<img
@click="audioPlay"
class="audio-control deblurring"
- src="/img/navicon/audio.png"
+ :src="audioImgUrl"
alt
/>
</a>
@@ -102,19 +102,23 @@
audioCourse: false,
audioSynth: null,
audioMsg: null,
- panoramaShow: false
+ panoramaShow: false,
+ audioImgUrl: '/img/icon/start-video.png'
}
},
created () { },
mounted () {
+ var that = this
+
this.audioSynth = window.speechSynthesis
this.audioMsg = new window.SpeechSynthesisUtterance()
this.audioMsg.onend = function () {
// this.audioSynth.cancel();
- this.audioFlag = false
- this.audioCourse = false
+ that.audioFlag = false
+ that.audioCourse = false
+ that.audioImgUrl = '/img/icon/close-video.png'
}
this.getData()
@@ -232,16 +236,20 @@
this.audioSynth.speak(this.audioMsg)
this.audioFlag = true
this.audioCourse = true
+ this.audioImgUrl = '/img/icon/start-video.png'
} else {
if (this.audioCourse == true) {
this.audioSynth.pause()
this.audioCourse = false
+ this.audioImgUrl = '/img/icon/close-video.png'
} else {
this.audioSynth.resume()
this.audioCourse = true
+ this.audioImgUrl = '/img/icon/start-video.png'
}
}
},
+
closeModel () {
global.viewer.removeLayer(pathLayer)
global.viewer.removeLayer(pointLayer)
@@ -253,6 +261,7 @@
this.$store.dispatch('delVisitedViews', this.$route)
this.$router.push('/pcLayout/default')
},
+
panoramaPlay () {
this.panoramaShow = true
this.panoramaUrl = this.panoramaUrlOne
--
Gitblit v1.9.3