|
@@ -74,6 +74,10 @@
|
|
|
<footDown :topInfo="topInfo"></footDown>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24" class="floating">
|
|
|
+ <el-button onClick="javascript:this.parentNode.style.display='none';">关闭</el-button>
|
|
|
+ <floating :floating="floating"></floating>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -94,6 +98,8 @@ import lunbo from '@publics/src/layout/index/lunbo.vue';
|
|
|
import contact from '@publics/src/layout/index/contact.vue';
|
|
|
import friendLink from '@publics/src/layout/index/friendLink.vue';
|
|
|
import footDown from '@publics/src/layout/index/foot.vue';
|
|
|
+import floating from '@publics/src/layout/index/floating.vue';
|
|
|
+
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {
|
|
@@ -111,6 +117,7 @@ export default {
|
|
|
yizhanList: null, //一站式招聘
|
|
|
linkImgList: null, //友情链接
|
|
|
downList: null, //底部
|
|
|
+ floating: null, //浮窗内容
|
|
|
},
|
|
|
components: {
|
|
|
top, //头部
|
|
@@ -128,6 +135,7 @@ export default {
|
|
|
contact, //联系
|
|
|
friendLink, //友情链接
|
|
|
footDown, //底部
|
|
|
+ floating, //浮窗
|
|
|
},
|
|
|
data: () => ({
|
|
|
backColor: '#850000',
|
|
@@ -238,4 +246,23 @@ export default {
|
|
|
height: 100px;
|
|
|
background-color: #333;
|
|
|
}
|
|
|
+.floating {
|
|
|
+ position: fixed;
|
|
|
+ top: 30%;
|
|
|
+ right: 10%;
|
|
|
+ width: 350px;
|
|
|
+ height: 140px;
|
|
|
+ color: blue;
|
|
|
+ background: #fff;
|
|
|
+ border: 2px solid red;
|
|
|
+}
|
|
|
+/deep/.floating .el-button {
|
|
|
+ position: absolute;
|
|
|
+ top: -2px;
|
|
|
+ right: -2px;
|
|
|
+ padding: 3px 5px;
|
|
|
+ background: #ccc;
|
|
|
+ color: #000;
|
|
|
+ border-radius: 0;
|
|
|
+}
|
|
|
</style>
|