|
@@ -72,7 +72,6 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import axios from '~/plugins/axios'
|
|
|
import { scrollTo } from '~utils/scroll'
|
|
|
import MessageBoard from '~components/messageBoard/MessageBoard.vue'
|
|
|
export default {
|
|
@@ -185,14 +184,14 @@
|
|
|
// 获得窗口的水平位置
|
|
|
let iLeft = (window.screen.availWidth - 10 - 1030) / 2
|
|
|
let newTab = window.open('', '即时对话框', 'height=600, width=1030, top=' + iTop + ', left=' + iLeft + ', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')
|
|
|
- axios.get('/basic/enterprise/' + this.enterprise.uu + '/info')
|
|
|
+ this.$http.get('/basic/enterprise/' + this.enterprise.uu + '/info')
|
|
|
.then(response => {
|
|
|
let obj = {}
|
|
|
obj.enUU = response.data.uu
|
|
|
obj.enterprise = {enUU: response.data.uu, name: response.data.enName}
|
|
|
obj.type = 'LIST'
|
|
|
obj.userPhone = this.user.data.userTel
|
|
|
- axios.post('http://im.ubtob.com/api/chat/infos?condition=chat_info', obj)
|
|
|
+ this.$http.post('http://im.ubtob.com/api/chat/infos?condition=chat_info', obj)
|
|
|
.then(response => {
|
|
|
if (response.data.success) {
|
|
|
newTab.location.href = 'http://im.ubtob.com/chat/visit?gid=' + response.data.content
|
|
@@ -205,7 +204,7 @@
|
|
|
},
|
|
|
getChatCount: function () {
|
|
|
if (this.user.logged) {
|
|
|
- axios.get('http://im.ubtob.com/api/chat/message', {params: {enUU: this.enterprise.uu, operate: 'count_unread', phone: this.user.data.userTel}})
|
|
|
+ this.$http.get('http://im.ubtob.com/api/chat/message', {params: {enUU: this.enterprise.uu, operate: 'count_unread', phone: this.user.data.userTel}})
|
|
|
.then(response => {
|
|
|
this.chatCount = response.data.count
|
|
|
})
|
|
@@ -215,6 +214,7 @@
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+ @import "~element-ui/lib/theme-default/index.css";
|
|
|
/*查看*/
|
|
|
#image-box .x-floating-wrap {
|
|
|
position: fixed;
|