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
9a4c0652
authored
Sep 10, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
11
parent
3555172f
Hide 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 @
9a4c0652
...
...
@@ -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 @
9a4c0652
...
...
@@ -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