You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.6 KiB
73 lines
2.6 KiB
<html lang="cn">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="陶士涵">
|
|
<title>聊天界面</title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/theme-chalk/index.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
|
<style>
|
|
html, body {height: 100%;padding: 0;margin: 0;background-color: #f5f5f5;}
|
|
.el-row{width:100%}
|
|
.sw-bg{background: #fff;border: solid 1px #e6e6e6;boder-top:none;padding:5px 10px;}
|
|
.chatContext{background: #fff}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<template>
|
|
<el-row :gutter="5">
|
|
<el-col :span="6">
|
|
<el-menu>
|
|
<el-menu-item>
|
|
<i class="el-icon-user"></i>
|
|
<span slot="title">访客1112</span>
|
|
</el-menu-item>
|
|
</el-menu>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<div class="sw-bg">
|
|
<el-row :gutter="2">
|
|
<el-col :span="4"><el-avatar :size="60" :src="circleUrl"></el-avatar></el-col>
|
|
<el-col :span="20">内容</el-col>
|
|
</el-row>
|
|
<el-row :gutter="2">
|
|
<el-col :span="20">内容</el-col>
|
|
<el-col :span="4"><el-avatar :size="60" :src="circleUrl"></el-avatar></el-col>
|
|
</el-row>
|
|
<el-input type="textarea"></el-input>
|
|
<el-button type="primary">发送</el-button>
|
|
</div>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<div class="sw-bg">
|
|
sss
|
|
</div>
|
|
</el-col>
|
|
</el-row>
|
|
</template>
|
|
</div>
|
|
</body>
|
|
<script>
|
|
var app=new Vue({
|
|
el: '#app',
|
|
delimiters:["<{","}>"],
|
|
data: {
|
|
fullscreenLoading:true,
|
|
},
|
|
methods: {
|
|
//跳转
|
|
openUrl(url){
|
|
window.location.href=url;
|
|
},
|
|
},
|
|
created: function () {
|
|
this.fullscreenLoading=false
|
|
}
|
|
})
|
|
|
|
</script>
|
|
</html> |