|
@@ -11,73 +11,75 @@
|
|
|
<i class="iconfont icon_close" @click="confirmCancel"></i>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
- <div class="icon-setting">
|
|
|
- <div class="icon-setting-title">热点图标</div>
|
|
|
- <div class="remark">选择图标</div>
|
|
|
- <div class="icon-list">
|
|
|
- <div class="margin-handler-layer">
|
|
|
- <ul>
|
|
|
- <li
|
|
|
- :class="{ active: item.id == hotspot.icontype }"
|
|
|
- v-for="(item,i) in hotStyle"
|
|
|
- @click="addhotspot(item)"
|
|
|
- :key="i"
|
|
|
- >
|
|
|
- <img :src="item.thumb" alt="">
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="bars">
|
|
|
- <RangeItem :value="rang" @input="onRangeChange" />
|
|
|
- </div>
|
|
|
+ <div class="icon-setting">
|
|
|
+ <div class="icon-setting-title">热点图标</div>
|
|
|
+ <div class="remark">选择图标</div>
|
|
|
+ <div class="icon-list">
|
|
|
+ <div class="margin-handler-layer">
|
|
|
+ <ul>
|
|
|
+ <li
|
|
|
+ :class="{ active: item.id == hotspot.icontype }"
|
|
|
+ v-for="(item,i) in hotStyle"
|
|
|
+ @click="addhotspot(item)"
|
|
|
+ :key="i"
|
|
|
+ >
|
|
|
+ <img :src="item.thumb" alt="">
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
- <div class="title-setting">
|
|
|
- <div class="title-setting-title">标题设置</div>
|
|
|
- <div class="switch-wrapper">
|
|
|
- <span class="label">是否显示标题</span>
|
|
|
- <Switcher :value="hotspot.visible" @change="hotspot.visible = !hotspot.visible"></Switcher>
|
|
|
- </div>
|
|
|
- <div class="title-input-wrapper">
|
|
|
- <input
|
|
|
- v-model.trim="hotspot.hotspotTitle"
|
|
|
- type="text"
|
|
|
- maxlength="15"
|
|
|
- placeholder="请输入标题,限15字"
|
|
|
- />
|
|
|
- <span class="count">{{hotspot.hotspotTitle.length}}/15</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="effect-setting">
|
|
|
- <div class="effect-setting-title">效果设置</div>
|
|
|
- <combox
|
|
|
- class="combox"
|
|
|
- :data="hotSpotTypeList"
|
|
|
- :selected-id="hotspot.hotspotType"
|
|
|
- @change="onhotSpotTypeChange"
|
|
|
- ></combox>
|
|
|
- <component
|
|
|
- @sceneSelect="handleSceneSelect"
|
|
|
- :scene="hotspot.secne"
|
|
|
+ </div>
|
|
|
+ <div class="bars">
|
|
|
+ <RangeItem :value="rang" @input="onRangeChange" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="title-setting">
|
|
|
+ <div class="title-setting-title">标题设置</div>
|
|
|
+ <div class="switch-wrapper">
|
|
|
+ <span class="label">是否显示标题</span>
|
|
|
+ <Switcher :value="hotspot.visible" @change="hotspot.visible = !hotspot.visible"></Switcher>
|
|
|
+ </div>
|
|
|
+ <div class="title-input-wrapper">
|
|
|
+ <input
|
|
|
+ v-model.trim="hotspot.hotspotTitle"
|
|
|
+ type="text"
|
|
|
+ maxlength="15"
|
|
|
+ placeholder="请输入标题,限15字"
|
|
|
+ />
|
|
|
+ <span class="count">{{hotspot.hotspotTitle.length}}/15</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="effect-setting">
|
|
|
+ <div class="effect-setting-title">效果设置</div>
|
|
|
+ <combox
|
|
|
+ class="combox"
|
|
|
+ :data="hotSpotTypeList"
|
|
|
+ :selected-id="hotspot.hotspotType"
|
|
|
+ @change="onhotSpotTypeChange"
|
|
|
+ ></combox>
|
|
|
+ <component
|
|
|
+ class="effect-setting-component"
|
|
|
+
|
|
|
+ @sceneSelect="handleSceneSelect"
|
|
|
+ :scene="hotspot.secne"
|
|
|
|
|
|
- @imageChange="data=>{hotspot.image=data}"
|
|
|
- :image="hotspot.image"
|
|
|
+ @imageChange="data=>{hotspot.image=data}"
|
|
|
+ :image="hotspot.image"
|
|
|
|
|
|
- @linkChange="data=>{hotspot.hyperlink=data}"
|
|
|
- :link="hotspot.hyperlink"
|
|
|
+ @linkChange="data=>{hotspot.hyperlink=data}"
|
|
|
+ :link="hotspot.hyperlink"
|
|
|
|
|
|
- @textChange="data=>{hotspot.textarea=data}"
|
|
|
- :textarea="hotspot.textarea"
|
|
|
+ @textChange="data=>{hotspot.textarea=data}"
|
|
|
+ :textarea="hotspot.textarea"
|
|
|
|
|
|
- @audioChange="data=>{hotspot.audio=data}"
|
|
|
- :audio="hotspot.audio"
|
|
|
+ @audioChange="data=>{hotspot.audio=data}"
|
|
|
+ :audio="hotspot.audio"
|
|
|
|
|
|
- @videoChange="data=>{hotspot.video=data}"
|
|
|
- :video="hotspot.video"
|
|
|
-
|
|
|
- :is="component"
|
|
|
- ></component>
|
|
|
- </div>
|
|
|
+ @videoChange="data=>{hotspot.video=data}"
|
|
|
+ :video="hotspot.video"
|
|
|
+
|
|
|
+ :is="effectSettingComponent"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="ui-between footer" app-border dir-top>
|
|
|
<button class="ui-button submit" :class="{disable: false}" @click="save">完成</button>
|
|
@@ -172,20 +174,6 @@ export default {
|
|
|
name:'视频'
|
|
|
}
|
|
|
],
|
|
|
- fontSizeList:[
|
|
|
- {
|
|
|
- name: "12",
|
|
|
- icon: "iconphotoview",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "14",
|
|
|
- icon: "iconvideo_view",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "16",
|
|
|
- icon: "iconsoundview",
|
|
|
- }
|
|
|
- ],
|
|
|
hotStyle,
|
|
|
rang: {
|
|
|
label: '图标大小',
|
|
@@ -257,7 +245,7 @@ export default {
|
|
|
hotspot:'hotspot',
|
|
|
backupHotSpot:'backupHotSpot'
|
|
|
}),
|
|
|
- component(){
|
|
|
+ effectSettingComponent(){
|
|
|
let tmp = this.hotspot.hotspotType
|
|
|
return () => import(`./hotspotType/${tmp}.vue`);
|
|
|
},
|
|
@@ -399,6 +387,7 @@ export default {
|
|
|
display: flex;
|
|
|
font-size: 18px;
|
|
|
color: #fff;
|
|
|
+ flex: 0 0 auto;
|
|
|
.icon_close {
|
|
|
color: rgba(255, 255, 255, 0.6);
|
|
|
cursor: pointer;
|
|
@@ -407,8 +396,8 @@ export default {
|
|
|
.content {
|
|
|
padding: 20px 20px 14px 20px;
|
|
|
background: #252526;
|
|
|
- flex: 1;
|
|
|
- overflow: hidden;
|
|
|
+ flex: 1 0 1px;
|
|
|
+ overflow: auto;
|
|
|
.icon-setting {
|
|
|
.icon-setting-title {
|
|
|
font-size: 18px;
|
|
@@ -417,6 +406,7 @@ export default {
|
|
|
.remark {
|
|
|
margin-top: 16px;
|
|
|
font-size: 14px;
|
|
|
+ color: #ababab;
|
|
|
}
|
|
|
.icon-list {
|
|
|
margin-top: 16px;
|
|
@@ -432,12 +422,12 @@ export default {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
flex-wrap: wrap;
|
|
|
- margin-right: -20px;
|
|
|
- margin-bottom: -20px;
|
|
|
+ margin-right: -17px;
|
|
|
+ margin-bottom: -17px;
|
|
|
li {
|
|
|
cursor: pointer;
|
|
|
- margin-right: 20px;
|
|
|
- margin-bottom: 20px;
|
|
|
+ margin-right: 17px;
|
|
|
+ margin-bottom: 17px;
|
|
|
width: 38px;
|
|
|
height: 38px;
|
|
|
border: solid 2px transparent;
|
|
@@ -476,7 +466,7 @@ export default {
|
|
|
position: relative;
|
|
|
border: 1px solid rgba(151, 151, 151, 0.2);
|
|
|
padding: 0 16px;
|
|
|
- background: #252526;
|
|
|
+ background: #1A1B1D;
|
|
|
border-radius: 2px;
|
|
|
height: 36px;
|
|
|
width: 100%;
|
|
@@ -514,16 +504,13 @@ export default {
|
|
|
.combox {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
- }
|
|
|
- .remark {
|
|
|
- color: #ababab;
|
|
|
- line-height: 1.5;
|
|
|
- letter-spacing: 0.1px;
|
|
|
- white-space: pre-wrap;
|
|
|
- font-size: 12px;
|
|
|
+ .effect-setting-component {
|
|
|
+ margin-top: 16px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.footer {
|
|
|
+ flex: 0 0 auto;
|
|
|
padding: 15px;
|
|
|
.ui-button {
|
|
|
width: 100%;
|