Commit 849019bd authored by 黄奎's avatar 黄奎

页面修改

parent 7bd5af46
<style> <style>
.app-hotspot .shadow { .choiceAreaAuth .shadow {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
border: 1px solid #2E9FFF; border: 1px solid #2E9FFF;
} }
.app-hotspot .hotspot { .choiceAreaAuth .hotspot {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
...@@ -17,22 +17,22 @@ ...@@ -17,22 +17,22 @@
z-index: 100; z-index: 100;
} }
.app-hotspot .hotspot .close { .choiceAreaAuth .hotspot .close {
position: absolute; position: absolute;
right: -16px; right: -16px;
top: -16px; top: -16px;
z-index: 101 z-index: 101
} }
.app-hotspot .el-input { .choiceAreaAuth .el-input {
width: 70px; width: 70px;
} }
.app-hotspot .right label { .choiceAreaAuth .right label {
padding: 0 10px; padding: 0 10px;
} }
.app-hotspot .inside { .choiceAreaAuth .inside {
position: relative; position: relative;
width: 750px; width: 750px;
min-height: 1334px; min-height: 1334px;
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
zoom: 0.5; zoom: 0.5;
} }
.app-hotspot .pic { .choiceAreaAuth .pic {
width: auto; width: auto;
height: auto; height: auto;
max-width: 750px; max-width: 750px;
...@@ -48,34 +48,34 @@ ...@@ -48,34 +48,34 @@
transform: scale(0.5); transform: scale(0.5);
} }
.app-hotspot .pic-list { .choiceAreaAuth .pic-list {
position: relative; position: relative;
} }
.app-hotspot .pic-list div { .choiceAreaAuth .pic-list div {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
} }
.app-hotspot { .choiceAreaAuth {
-moz-user-select: none; -moz-user-select: none;
-khtml-user-select: none; -khtml-user-select: none;
user-select: none; user-select: none;
} }
.app-hotspot .el-input-group__append { .choiceAreaAuth .el-input-group__append {
background-color: #fff; background-color: #fff;
} }
</style> </style>
<template id="app-hotspot"> <template id="choiceAreaAuth">
<div class="app-hotspot"> <div class="choiceAreaAuth">
<div @click="dialogVisible = !dialogVisible" style="display: inline-block"> <div @click="dialogVisible = !dialogVisible" style="display: inline-block">
<slot></slot> <slot></slot>
</div> </div>
<el-dialog append-to-body title="热区划分" :visible.sync="dialogVisible" :close-on-click-modal="false" <el-dialog append-to-body title="热区划分" :visible.sync="dialogVisible" :close-on-click-modal="false"
class="app-hotspot" width="900px"> class="choiceAreaAuth" width="900px">
<div flex="dir:left box:first"> <div flex="dir:left box:first">
<div class="inside" flex="dir:left main:center cross:center" ref="inside"> <div class="inside" flex="dir:left main:center cross:center" ref="inside">
<div style="position: relative;" ref="box"> <div style="position: relative;" ref="box">
...@@ -145,13 +145,7 @@ ...@@ -145,13 +145,7 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form-item> </el-form-item>
<el-form-item label="热区链接" v-if="isLink">
<el-input size="small" style="width: 100%;" :disabled="true" v-model="hotspotList[index].link.PageName">
<template slot="append">
<el-button @click="isShowLink=true">选择链接</el-button>
</template>
</el-input>
</el-form-item>
<el-form-item label="热区属性" v-if="mode == 'auth'"> <el-form-item label="热区属性" v-if="mode == 'auth'">
<el-radio-group v-model="hotspotList[index].open_type"> <el-radio-group v-model="hotspotList[index].open_type">
<el-radio label="login" :disabled="radioDisabled('login')">登录按钮</el-radio> <el-radio label="login" :disabled="radioDisabled('login')">登录按钮</el-radio>
...@@ -161,20 +155,15 @@ ...@@ -161,20 +155,15 @@
</div> </div>
<div v-if="index == -1 && hotspotList.length == 0" style="padding: 20px 40px;">请先在左侧蓝框内用鼠标划出热区范围</div> <div v-if="index == -1 && hotspotList.length == 0" style="padding: 20px 40px;">请先在左侧蓝框内用鼠标划出热区范围</div>
<el-form-item v-else label=""> <el-form-item v-else label="">
<el-button style="margin-left: 10px" v-if="hotspotList.length==2" type="primary" size="small" @click="confirm">保存</el-button> <el-button style="margin-left: 10px" v-if="hotspotList.length==2" type="primary" size="small"
@click="confirm">保存</el-button>
<el-button size="small" @click="clearAll">重置</el-button> <el-button size="small" @click="clearAll">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="选择链接" :visible.sync="isShowLink" width="800px">
<chooseMenu ref="chooseMenu"></chooseMenu>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="isShowLink=false">取 消</el-button>
<el-button size="small" type="danger" @click="getChoiceLink()">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -203,7 +192,7 @@ ...@@ -203,7 +192,7 @@
}, },
data() { data() {
return { return {
isShowLink: false,
dialogVisible: false, dialogVisible: false,
is_mousedown: false, is_mousedown: false,
is_mousemove: false, is_mousemove: false,
...@@ -232,7 +221,7 @@ ...@@ -232,7 +221,7 @@
dialogVisible(oldVal, newVal) { dialogVisible(oldVal, newVal) {
this.hotspotList = JSON.parse(JSON.stringify(this.hotspotArray)) this.hotspotList = JSON.parse(JSON.stringify(this.hotspotArray))
this.index = -1; this.index = -1;
if(this.hotspotList.length>0){ if (this.hotspotList.length > 0) {
this.select(1); this.select(1);
} }
} }
...@@ -377,7 +366,7 @@ ...@@ -377,7 +366,7 @@
if (this.index > -1 && this.hotspotList.length > 0) { if (this.index > -1 && this.hotspotList.length > 0) {
this.hotspotList[this.index].link = obj this.hotspotList[this.index].link = obj
} }
this.isShowLink = false;
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment