pull/23/head
陶士涵 4 years ago
parent e0d2d17f49
commit e77562d6d1

@ -67,7 +67,7 @@
<el-button type="primary" class="chatBoxSendBtn" size="small" v-on:click="chatToUser">{{.SendBtn}}</el-button> <el-button type="primary" class="chatBoxSendBtn" size="small" v-on:click="chatToUser">{{.SendBtn}}</el-button>
</div> </div>
<div class="footContact clear"> <div class="footContact clear">
<a href="https://github.com/taoshihan1991/go-fly" target="_blank">GO-FLY客服陶士涵提供技术支持</a> <a href="https://github.com/taoshihan1991/go-fly" target="_blank">GO-FLY0.2.2客服陶士涵提供技术支持</a>
</div> </div>
</div> </div>
<!--//客服代码--> <!--//客服代码-->
@ -80,5 +80,5 @@
var KEFU_ID='{{.KEFU_ID}}'; var KEFU_ID='{{.KEFU_ID}}';
var REFER='{{.Refer}}'; var REFER='{{.Refer}}';
</script> </script>
<script src="/static/js/chat-page.js?v=0.1.3"></script> <script src="/static/js/chat-page.js?v=0.2.2"></script>
</html> </html>

@ -6,7 +6,7 @@
active-text-color="#fff" active-text-color="#fff"
default-active="3" default-active="3"
mode="horizontal"> mode="horizontal">
<el-menu-item class="mainLogo" v-on:click="openUrl('/main')">GO-FLY<span class="mainVersion">V0.2.1</span></el-menu-item> <el-menu-item class="mainLogo" v-on:click="openUrl('/main')">GO-FLY<span class="mainVersion">V0.2.2</span></el-menu-item>
<el-menu-item style="display:none" index="2" v-on:click="openIframeUrl('/list')">邮箱<el-badge class="mark" :value="mailTotal" style="margin-bottom: 20px;"/> <el-menu-item style="display:none" index="2" v-on:click="openIframeUrl('/list')">邮箱<el-badge class="mark" :value="mailTotal" style="margin-bottom: 20px;"/>
</el-menu-item> </el-menu-item>
<el-menu-item index="3" v-on:click="openIframeUrl('/chat_main')">聊天</el-menu-item> <el-menu-item index="3" v-on:click="openIframeUrl('/chat_main')">聊天</el-menu-item>

@ -24,11 +24,8 @@ new Vue({
}, },
OnOpen() { OnOpen() {
this.chatTitle="连接成功!" this.chatTitle="连接成功!"
//从缓存中取出用户
// let userinfo=this.getUserInfo();
let mes = {} let mes = {}
mes.type = "userInit"; mes.type = "userInit";
// userinfo.client_ip=returnCitySN["cip"];
this.visitor.refer=REFER; this.visitor.refer=REFER;
mes.data = this.visitor; mes.data = this.visitor;
this.socket.send(JSON.stringify(mes)); this.socket.send(JSON.stringify(mes));

Loading…
Cancel
Save