Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2cfb2236
authored
Sep 26, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/shiyu/icsalesProgram
parents
0c9f4806
d1002dc1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
app.json
components/chat/inputbar/suit/main/main.js
components/chat/msglist/msglist.wxml
utils/chat.js
app.json
View file @
2cfb2236
{
"debug"
:
true
,
"pages"
:
[
"pages/tab/home/home"
,
"pages/person/auth/index"
,
...
...
components/chat/inputbar/suit/main/main.js
View file @
2cfb2236
...
...
@@ -94,7 +94,7 @@ Component({
id
:
userId
,
name
:
companyName
,
img
:
avatar
,
touserid
:
this
.
data
.
username
.
id
==
userId
?
this
.
data
.
username
.
touserid
:
this
.
data
.
username
.
id
,
touserid
:
this
.
data
.
username
.
id
==
userId
?
this
.
data
.
username
.
touserid
:
this
.
data
.
username
.
id
,
//前者是拿接收的数据,后者是拿发送的数据
name1
:
this
.
data
.
username
.
name
==
companyName
?
this
.
data
.
username
.
name1
:
this
.
data
.
username
.
name
,
img1
:
this
.
data
.
username
.
name
==
companyName
?
this
.
data
.
username
.
img1
:
this
.
data
.
username
.
img
,
timer
:
WebIM
.
time
()
...
...
components/chat/msglist/msglist.wxml
View file @
2cfb2236
...
...
@@ -5,7 +5,7 @@
<image class="avatar" src="{{ '../../../images/faces/' + item.data }}" style="width:25px; height:25px; margin:0 0 2px 0; float:left;" />
</template>
<template name="img">
<image
class="avatar"
src="{{ item.msg.data }}" style="width:90px; height:120px; margin:2px auto;" mode="aspectFit" bind:tap="previewImage" data-url="{{ item.msg.data }}" />
<image src="{{ item.msg.data }}" style="width:90px; height:120px; margin:2px auto;" mode="aspectFit" bind:tap="previewImage" data-url="{{ item.msg.data }}" />
</template>
<template name="cmd">
<view class="tel-view">
...
...
utils/chat.js
View file @
2cfb2236
...
...
@@ -205,6 +205,7 @@ const webimListen = () => {
},
// 各种异常
onError
(
error
)
{
console
.
log
(
error
)
if
(
error
.
type
==
8
)
{
//异地登录
let
pages
=
getCurrentPages
();
let
curPage
=
pages
[
pages
.
length
-
1
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment