| | |
| | | <ul> |
| | | <li v-for="(item, index) in teachList" |
| | | :key="index" |
| | | @click="mechanismDetailPopup(item)"> |
| | | @click="mechanismDetailPopup(0, item)"> |
| | | <i class="popup-icon location-icon deblurring"></i> |
| | | {{item}} |
| | | </li> |
| | |
| | | <div> |
| | | <ul> |
| | | <li v-for="(item, index) in liveList" |
| | | :key="index"> |
| | | :key="index" |
| | | @click="mechanismDetailPopup(1, item)">> |
| | | <i class="popup-icon location-icon deblurring"></i> |
| | | {{item}} |
| | | </li> |
| | |
| | | ref="popupImgs"> |
| | | </el-image> |
| | | |
| | | <campusNav ref="campusNavRoute" |
| | | :comeName="comeName" |
| | | :getToName="getToName" |
| | | v-show="campusNavFlag" /> |
| | | |
| | | <audio ref="audioControlPlay" |
| | | style="position: fixed; left: 111111111px;" |
| | | v-html="audioSource" |
| | |
| | | return { |
| | | DC: null, |
| | | tabBtnFlag: '教学科研行政', |
| | | campusNavFlag: false, |
| | | comeName: '', |
| | | getToName: '', |
| | | QRCodeFlag: false, |
| | | audioSource: '', |
| | | audioFlag: false |
| | |
| | | // 教学 |
| | | 'teachList', |
| | | // 科研 |
| | | 'liveList' |
| | | 'liveList', |
| | | // 校内导航的显示关闭 |
| | | 'campusNavFlag' |
| | | ]) |
| | | }, |
| | | created () { |
| | | this.DC = global.DC |
| | | }, |
| | | watch: { |
| | | introduceText: function (newQuestion, oldQuestion) { |
| | | var zhText = encodeURI(newQuestion) |
| | | this.audioSource = `<source src="http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&spd=4&text=${zhText}" type="audio/mpeg"><embed height="0" width="0" src="http://tts.baidu.com/text2audio?text=${zhText}">` |
| | | } |
| | | }, |
| | | methods: { |
| | | tabBtnClick (param) { |
| | | this.tabBtnFlag = param |
| | | }, |
| | | |
| | | closeCampusNav () { |
| | | this.campusNavFlag = false |
| | | this.$refs.campusNavRoute.clearLayer() |
| | | this.$store.commit('SET_STARTINGPOINT', null) |
| | | this.$store.commit('SET_TERMINUS', null) |
| | | this.comeName = '' |
| | | this.getToName = '' |
| | | }, |
| | | |
| | | comeHereClick () { |
| | | this.comeName = this.stateName |
| | | this.$store.commit('SET_COMENAME', this.stateName) |
| | | this.$store.commit('SET_TERMINUS', this.pointPosition) |
| | | if (this.campusNavFlag == false) this.campusNavFlag = true |
| | | if (this.campusNavFlag == false) this.$store.commit('SET_CAMPUSNAVFLAG', true) |
| | | }, |
| | | |
| | | getToHereClick () { |
| | | this.getToName = this.stateName |
| | | this.$store.commit('SET_GETTONAME', this.stateName) |
| | | this.$store.commit('SET_STARTINGPOINT', this.pointPosition) |
| | | if (this.campusNavFlag == false) this.campusNavFlag = true |
| | | if (this.campusNavFlag == false) this.$store.commit('SET_CAMPUSNAVFLAG', true) |
| | | }, |
| | | |
| | | qrCodeClick () { |
| | |
| | | if (this.audioSource == '') { |
| | | var zhText = encodeURI(this.$refs.DomIntroduceText.innerText) |
| | | this.audioSource = `<source src="http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&spd=4&text=${zhText}" type="audio/mpeg"><embed height="0" width="0" src="http://tts.baidu.com/text2audio?text=${zhText}">` |
| | | console.log(this.audioSource) |
| | | this.$refs.audioControlPlay.play() |
| | | this.audioFlag = true |
| | | } else { |
| | |
| | | this.audioFlag = false |
| | | }, |
| | | |
| | | mechanismDetailPopup (param) { |
| | | getMechanismDetail({ mechanismname: param }).then(res => { |
| | | mechanismDetailPopup (num, param) { |
| | | getMechanismDetail({ num: num, mechanismName: param }).then(res => { |
| | | console.log(res) |
| | | var result = res.data.data |
| | | this.$store.commit('CLEAR_ALL', null) |