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.
96 lines
5.0 KiB
96 lines
5.0 KiB
4 years ago
|
<html lang="cn">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
4 years ago
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
|
||
4 years ago
|
<meta name="keywords" content="开源客服系统,golang在线客服,免费客服系统,go语言在线聊天工具,gofly,GOFLY客服系统"/>
|
||
|
<meta name="description" content="golang开发的开源免费客服系统,可独立部署客服系统,支持文字/表情/图片/文件发送,支持快捷回复,支持IP黑名单,展示访客信息,后台权限控制"/>
|
||
4 years ago
|
<meta name="author" content="陶士涵">
|
||
4 years ago
|
<title>GO语言开源客服系统-GOFLY</title>
|
||
4 years ago
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/theme-chalk/index.css">
|
||
4 years ago
|
<script src="/assets/js/functions.js?v=0.1.1"></script>
|
||
4 years ago
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
||
4 years ago
|
<script src="/assets/js/index.js"></script>
|
||
4 years ago
|
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
||
|
<!-- Bootstrap core CSS -->
|
||
4 years ago
|
<link rel="stylesheet" href="/static/css/front.css?v=1.0.0" />
|
||
|
<link rel="stylesheet" href="/static/css/common.css?v=1.0.0" />
|
||
4 years ago
|
<link rel="stylesheet" href="/static/css/icono.min.css" />
|
||
4 years ago
|
</head>
|
||
4 years ago
|
<body>
|
||
|
<div id="app" class="chatCenter">
|
||
4 years ago
|
<template>
|
||
|
<!--客服代码-->
|
||
4 years ago
|
<div class="chatContext chatVisitorPage">
|
||
4 years ago
|
<div class="chatBox">
|
||
4 years ago
|
<el-alert
|
||
4 years ago
|
style="margin:10px 0px;width: 100%"
|
||
4 years ago
|
:title="chatTitle"
|
||
|
:closable="false"
|
||
|
type="success">
|
||
|
</el-alert>
|
||
4 years ago
|
<el-row :gutter="2" v-show="replys.length>0">
|
||
4 years ago
|
<el-col :span="3"><el-avatar shape="square" :size="36" :src="noticeAvatar"></el-avatar></el-col>
|
||
|
<el-col :span="21">
|
||
|
<div class="chatUser"><{noticeName}></div>
|
||
|
<div class="chatContent visitorReply" >
|
||
|
<div v-for="reply in replys">
|
||
|
<div class="visitorReplyTitle"><{reply.group_name}></div>
|
||
|
<div v-on:click="sendReply(item.item_name)" class="visitorReplyContent" v-for="item in reply.items"><{item.item_name}></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</el-col>
|
||
|
<div class="clear"></div>
|
||
|
</el-row>
|
||
|
|
||
4 years ago
|
<el-row :gutter="2" v-for="v in msgList" v-bind:class="{'chatBoxMe': v.is_kefu==true}">
|
||
4 years ago
|
<div class="chatTime" v-bind:class="{'chatTimeHide': v.show_time==false}"><span><{v.time}></span></div>
|
||
4 years ago
|
<el-col :span="3"><el-avatar shape="square" :size="36" :src="v.avator"></el-avatar></el-col>
|
||
4 years ago
|
<el-col :span="21">
|
||
|
<div class="chatUser"><{v.name}></div>
|
||
4 years ago
|
<div class="chatContent" v-html="v.content"></div>
|
||
4 years ago
|
</el-col>
|
||
4 years ago
|
<div class="clear"></div>
|
||
4 years ago
|
</el-row>
|
||
|
</div>
|
||
4 years ago
|
</div>
|
||
|
<div class="chatBoxSend">
|
||
4 years ago
|
<div class="iconBtns">
|
||
4 years ago
|
<div class="icono-smile visitorFaceBtn"></div>
|
||
|
<div class="icono-image visitorImageBtn" id="uploadImg" v-on:click="uploadImg('/uploadimg')"></div>
|
||
|
<div class="icono-folder visitorFolderBtn" id="uploadFile" v-on:click="uploadFile('/uploadfile')"></div>
|
||
|
<div class="icono-comment visitorHistoryBtn" v-on:click="getMesssagesByVisitorId(true)"></div>
|
||
4 years ago
|
<div class="clear"></div>
|
||
|
</div>
|
||
4 years ago
|
<el-input @focus="textareaFocus" @blur="textareaBlur" v-model="messageContent" @keyup.native="inputNextText" v-on:keyup.enter.native="chatToUser" :placeholder="flyLang.textarea">
|
||
|
<el-button slot="append" :disabled="sendDisabled||messageContent==''" v-on:click="chatToUser"><{flyLang.sent}></el-button>
|
||
|
</el-input>
|
||
4 years ago
|
<div class="faceBox visitorFaceBox">
|
||
4 years ago
|
<ul class="faceBoxList">
|
||
4 years ago
|
<li v-on:click="faceIconClick(i)" class="faceIcon" v-for="(v,i) in face" :title="v.name"><img :src=v.path></li>
|
||
4 years ago
|
</ul>
|
||
4 years ago
|
<div class="clear"></div>
|
||
4 years ago
|
</div>
|
||
4 years ago
|
<div class="footContact clear">
|
||
4 years ago
|
<a href="https://github.com/taoshihan1991/go-fly" target="_blank"><{flyLang.copyright}></a>
|
||
4 years ago
|
</div>
|
||
4 years ago
|
</div>
|
||
|
<!--//客服代码-->
|
||
4 years ago
|
<audio id="chatMessageAudio">
|
||
4 years ago
|
<source id="chatMessageAudioSource" />
|
||
4 years ago
|
</audio>
|
||
|
<audio id="chatMessageSendAudio">
|
||
4 years ago
|
<source id="chatMessageSendAudioSource" />
|
||
4 years ago
|
</audio>
|
||
4 years ago
|
</template>
|
||
|
</div>
|
||
|
</body>
|
||
|
<script src="https://cdn.bootcss.com/reconnecting-websocket/1.0.0/reconnecting-websocket.min.js"></script>
|
||
4 years ago
|
<script>
|
||
4 years ago
|
var KEFU_ID='{{.KEFU_ID}}';
|
||
4 years ago
|
var REFER='{{.Refer}}';
|
||
4 years ago
|
var LANG=checkLang();
|
||
4 years ago
|
</script>
|
||
4 years ago
|
<script src="/assets/js/chat-lang.js?v=0.3.7"></script>
|
||
|
<script src="/assets/js/chat-page.js?v=0.3.7"></script>
|
||
4 years ago
|
</html>
|