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
e493703f
authored
Sep 10, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/shiyu/icsalesProgram
parents
3427d691
2192c2a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
pages/detail/xj/index.js
utils/chat.js
pages/detail/xj/index.js
View file @
e493703f
...
...
@@ -78,27 +78,21 @@ Page({
},
sendTemplate
:
function
(){
let
data
=
this
.
data
.
info
;
let
topData
=
this
.
data
.
topInfo
let
my
=
wx
.
getStorageSync
(
"myUsername"
);
let
companyName
=
wx
.
getStorageSync
(
"company_name"
);
let
userId
=
wx
.
getStorageSync
(
"user_id"
);
let
avatar
=
wx
.
getStorageSync
(
"avatar"
);
let
img
=
""
;
if
(
this
.
data
.
topInfo
){
img
=
this
.
data
.
topInfo
.
goods_images
||
''
}
else
{
img
=
""
}
let
obj
=
{
userId
:
data
.
im_username
,
type
:
d
ata
.
goods_name
,
price
:
data
.
currency
==
1
?
'¥'
+
data
.
price
:
'$'
+
d
ata
.
price
,
brand
:
d
ata
.
brand_name
,
fz
:
d
ata
.
encap
,
num
:
d
ata
.
number
+
''
,
hq
:
d
ata
.
delivery_time
,
time
:
changeTime
(
d
ata
.
add_time
*
1000
),
goodImage
:
img
,
type
:
topD
ata
.
goods_name
,
price
:
topData
.
currency
==
1
?
'¥'
+
topData
.
price
:
'$'
+
topD
ata
.
price
,
brand
:
topD
ata
.
brand_name
,
fz
:
topD
ata
.
encap
,
num
:
topD
ata
.
number
+
''
,
hq
:
topD
ata
.
delivery_time
,
time
:
changeTime
(
topD
ata
.
add_time
*
1000
),
goodImage
:
topData
.
goods_images
||
''
,
userName
:
data
.
company_name
,
targetId
:
data
.
user_id
,
userImg
:
data
.
avatar
,
...
...
utils/chat.js
View file @
e493703f
...
...
@@ -105,6 +105,7 @@ const webimListen = () => {
onOpened
(
message
)
{
let
im
=
getApp
().
globalData
.
imBoolean
;
if
(
im
)
{
getApp
().
globalData
.
imBoolean
=
false
;
wx
.
showToast
({
title
:
"登录成功"
,
duration
:
2000
...
...
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