Browse Source

红色移风切换图片或者VR,自动切换列表

master
mk 1 year ago
parent
commit
43300d2007
  1. 15
      src/store/modules/dialog.js
  2. 14
      src/views/next/screen-content-left/hsyf-left/index.vue
  3. 15
      src/views/next/screen-content-map/cpt/hsyf-iframe.vue

15
src/store/modules/dialog.js

@ -36,8 +36,8 @@ export default {
szyfTalents: false, szyfTalents: false,
viewPdf: false, viewPdf: false,
dyfcId: null, dyfcId: null,
yzfcId: null yzfcId: null,
vrImg:false
}, },
mutations: { mutations: {
set_yfcj (state, visible) { set_yfcj (state, visible) {
@ -152,7 +152,10 @@ export default {
}, },
set_hsyf_djType (state, value) { set_hsyf_djType (state, value) {
state.djType = value state.djType = value
} },
set_hsyf_vr_img(state, value) {
state.vrImg = value
},
}, },
actions: { actions: {
SET_YFCJ (context, visible) { SET_YFCJ (context, visible) {
@ -268,6 +271,9 @@ export default {
SET_GSXQ_ID (context, val) { SET_GSXQ_ID (context, val) {
context.commit('set_gsxq_id', val) context.commit('set_gsxq_id', val)
}, },
SET_HSYF_VR_IMG(context, val){
context.commit('set_hsyf_vr_img', val)
},
// 确保当前只能显示最近点击的弹窗 // 确保当前只能显示最近点击的弹窗
showGlobalDialog (context, type) { showGlobalDialog (context, type) {
context.commit('set_yfcj', false) context.commit('set_yfcj', false)
@ -403,6 +409,7 @@ export default {
dyfcId: state => state.dyfcId, dyfcId: state => state.dyfcId,
yzfcId: state => state.yzfcId, yzfcId: state => state.yzfcId,
szyfTalents: state => state.szyfTalents, szyfTalents: state => state.szyfTalents,
gsxq: state => state.gsxq gsxq: state => state.gsxq,
vrImg:state => state.vrImg,
} }
} }

14
src/views/next/screen-content-left/hsyf-left/index.vue

@ -112,7 +112,7 @@
<screen-title-red> <screen-title-red>
<div slot="left" class="screen-title-left">微网格</div> <div slot="left" class="screen-title-left">微网格</div>
</screen-title-red> </screen-title-red>
<div class="card-item-tag"> <div class="card-item-tag" @click="handelClickSwitch">
<div class="wwgCenter"> <div class="wwgCenter">
<div class="wwgCenterZhuan"></div> <div class="wwgCenterZhuan"></div>
<div class="wwgCenterWjx"></div> <div class="wwgCenterWjx"></div>
@ -401,7 +401,7 @@ export default {
}, },
beforeDestroy () {}, beforeDestroy () {},
methods: { methods: {
// ...mapGetters(['hsyfCompany']),
...mapActions({ ...mapActions({
// set_garden: 'SET_GARDEN', // set_garden: 'SET_GARDEN',
set_organization: 'SET_ORGANIZATION', set_organization: 'SET_ORGANIZATION',
@ -414,8 +414,12 @@ export default {
set_dyzxh_committee: 'SET_DYZXH_COMMITTEE', set_dyzxh_committee: 'SET_DYZXH_COMMITTEE',
set_dangyuan_committee: 'SET_DANGYUAN_COMMITTEE', set_dangyuan_committee: 'SET_DANGYUAN_COMMITTEE',
set_hsyf_attractions: 'SET_HSYF_ATTRACTIONS', set_hsyf_attractions: 'SET_HSYF_ATTRACTIONS',
set_hsyf_jzfw: 'SET_HSYF_JZFW' set_hsyf_jzfw: 'SET_HSYF_JZFW',
set_hsyf_vr_img: 'SET_HSYF_VR_IMG'
}), }),
handelClickSwitch(){
this.set_hsyf_vr_img(!this.vrImg)
},
getData () { getData () {
partyOrgCategoryAndQuantity().then((res) => { partyOrgCategoryAndQuantity().then((res) => {
this.zzjsValues = res.data this.zzjsValues = res.data
@ -516,7 +520,9 @@ export default {
} }
}, },
components: {}, components: {},
computed: {}, computed: {
...mapGetters(['vrImg'])
},
watch: {} watch: {}
} }
</script> </script>

15
src/views/next/screen-content-map/cpt/hsyf-iframe.vue

@ -9,14 +9,15 @@
--> -->
<template> <template>
<div style="width: 100%; height: 100%;"> <div style="width: 100%; height: 100%;">
<div class='bg_img'> <iframe v-if="vrImg" src="https://quanjingtong.cn/t/h3qde4mz8ly" frameborder="no" width="100%" height="100%" id="myIframe">
<iframe src="https://quanjingtong.cn/t/h3qde4mz8ly" frameborder="no" width="100%" height="100%" id="myIframe"> </iframe>
</iframe> <div class='bg_img' v-else>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { mapGetters} from 'vuex'
export default { export default {
data() { data() {
return {} return {}
@ -41,15 +42,17 @@ export default {
} }
}, },
components: {}, components: {},
computed: {}, computed: {
...mapGetters(['vrImg'])
},
watch: {} watch: {}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.bg_img { .bg_img {
// background: url('~@/assets/images/map/hsyf.jpg'); background: url('~@/assets/images/map/hsyf.jpg');
// background-size: 100% 100%; background-size: 100% 100%;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;

Loading…
Cancel
Save