|
@@ -38,7 +38,7 @@
|
|
class="icon-setting-component"
|
|
class="icon-setting-component"
|
|
:is="iconSettingComponent"
|
|
:is="iconSettingComponent"
|
|
ref="icon-setting-component"
|
|
ref="icon-setting-component"
|
|
- @addHotspot="addhotspot"
|
|
|
|
|
|
+ @addHotspot="addHotspot"
|
|
/>
|
|
/>
|
|
<div class="bars">
|
|
<div class="bars">
|
|
<RangeItem :value="rang" @input="onRangeChange" />
|
|
<RangeItem :value="rang" @input="onRangeChange" />
|
|
@@ -290,7 +290,7 @@ export default {
|
|
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
if (this.editTitle != '编辑' && this.editTitle != this.$i18n.t('hotspot.edit')) {
|
|
if (this.editTitle != '编辑' && this.editTitle != this.$i18n.t('hotspot.edit')) {
|
|
- this.addhotspot(this.$refs['icon-setting-component'].hotspotIconList[0])
|
|
|
|
|
|
+ this.addHotspot(this.$refs['icon-setting-component'].hotspotIconList[0])
|
|
this.rang.value = window.g_hotspotCurrentScale
|
|
this.rang.value = window.g_hotspotCurrentScale
|
|
this.onRangeChange({ value: window.g_hotspotCurrentScale })
|
|
this.onRangeChange({ value: window.g_hotspotCurrentScale })
|
|
}
|
|
}
|
|
@@ -403,14 +403,16 @@ export default {
|
|
this.$emit("close");
|
|
this.$emit("close");
|
|
this.$emit("save", this.hotspot);
|
|
this.$emit("save", this.hotspot);
|
|
},
|
|
},
|
|
- addhotspot(data) {
|
|
|
|
|
|
+ addHotspot(data) {
|
|
if (this.isAdd && (this.editTitle != '编辑' && this.editTitle != this.$i18n.t('hotspot.edit'))) {
|
|
if (this.isAdd && (this.editTitle != '编辑' && this.editTitle != this.$i18n.t('hotspot.edit'))) {
|
|
this.isAdd = false
|
|
this.isAdd = false
|
|
|
|
+ this.hotspot.hotspotIconType = data.type
|
|
this.hotspot.img = data.img
|
|
this.hotspot.img = data.img
|
|
this.$bus.emit('addhotspot', this.hotspot)
|
|
this.$bus.emit('addhotspot', this.hotspot)
|
|
this.$getKrpano().set('layer[tooltip_' + this.hotspot.name + '].css', `text-align:center; color:#FFFFFF;
|
|
this.$getKrpano().set('layer[tooltip_' + this.hotspot.name + '].css', `text-align:center; color:#FFFFFF;
|
|
font-family:STXihei;font-size:${this.hotspot.fontSize}px;`)
|
|
font-family:STXihei;font-size:${this.hotspot.fontSize}px;`)
|
|
} else {
|
|
} else {
|
|
|
|
+ this.hotspot.hotspotIconType = data.type
|
|
this.hotspot.img = data.img
|
|
this.hotspot.img = data.img
|
|
this.$getKrpano().set(`hotspot[${this.hotspot.name}].url`, data.img)
|
|
this.$getKrpano().set(`hotspot[${this.hotspot.name}].url`, data.img)
|
|
this.$getKrpano().set(`hotspot[${this.hotspot.name}].hotspottitle`, this.hotspot.hotspotTitle)
|
|
this.$getKrpano().set(`hotspot[${this.hotspot.name}].hotspottitle`, this.hotspot.hotspotTitle)
|