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
5d619ca1
authored
Sep 19, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
de6ea5a5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
8 deletions
components/chat/inputbar/suit/image/image.js
components/chat/inputbar/suit/main/main.js
pages/detail/company/index.js
pages/person/setting/index.js
utils/chat.js
utils/util.js
components/chat/inputbar/suit/image/image.js
View file @
5d619ca1
...
...
@@ -79,7 +79,7 @@ Component({
filename
:
tempFilePaths
[
0
]
};
let
userId
=
wx
.
getStorageSync
(
'user_id'
);
let
companyName
=
wx
.
getStorageSync
(
'
imNick
'
);
let
companyName
=
wx
.
getStorageSync
(
'
company_name
'
);
let
avatar
=
wx
.
getStorageSync
(
'avatar'
);
msg
.
set
({
apiUrl
:
WebIM
.
config
.
apiURL
,
...
...
components/chat/inputbar/suit/main/main.js
View file @
5d619ca1
...
...
@@ -84,7 +84,7 @@ Component({
let
id
=
WebIM
.
conn
.
getUniqueId
();
let
msg
=
new
WebIM
.
message
(
msgType
.
TEXT
,
id
);
let
userId
=
wx
.
getStorageSync
(
'user_id'
);
let
companyName
=
wx
.
getStorageSync
(
'
imNick
'
);
let
companyName
=
wx
.
getStorageSync
(
'
company_name
'
);
let
avatar
=
wx
.
getStorageSync
(
'avatar'
);
msg
.
set
({
msg
:
this
.
data
.
userMessage
,
...
...
@@ -131,7 +131,7 @@ Component({
let
id
=
WebIM
.
conn
.
getUniqueId
();
let
msg
=
new
WebIM
.
message
(
msgType
.
TEXT
,
id
);
let
userId
=
wx
.
getStorageSync
(
'user_id'
);
let
companyName
=
wx
.
getStorageSync
(
'
imNick
'
);
let
companyName
=
wx
.
getStorageSync
(
'
company_name
'
);
let
avatar
=
wx
.
getStorageSync
(
'avatar'
);
let
touserid
=
this
.
data
.
username
.
id
==
userId
?
this
.
data
.
username
.
touserid
:
this
.
data
.
username
.
id
;
let
members
=
wx
.
getStorageSync
(
'member'
)
||
''
;
...
...
pages/detail/company/index.js
View file @
5d619ca1
...
...
@@ -158,7 +158,6 @@ Page({
this
.
setData
({
p
:
p
+
1
});
console
.
log
(
this
.
data
.
p
)
this
.
getListData
(
true
,
true
);
}
},
...
...
@@ -274,7 +273,6 @@ Page({
}
else
{
if
(
type
==
1
)
{
url
=
apis
.
offerinfo
;
//查看自己的报价
console
.
log
(
url
)
params
.
token
=
me
.
data
.
token
}
else
if
(
type
==
2
)
{
url
=
apis
.
offersearch
;
//查看别人的报价
...
...
pages/person/setting/index.js
View file @
5d619ca1
...
...
@@ -93,7 +93,7 @@ Page({
wx
.
removeStorageSync
(
'myUsername'
);
wx
.
removeStorageSync
(
'myPassword'
);
wx
.
removeStorageSync
(
'auth'
);
wx
.
removeStorageSync
(
'imNick'
);
//
wx.removeStorageSync('imNick');
wx
.
reLaunch
({
url
:
'/pages/person/auth/index'
,
});
...
...
utils/chat.js
View file @
5d619ca1
...
...
@@ -48,7 +48,7 @@ const getImUser = () => {
wx
.
setStorageSync
(
'company_name'
,
res
.
data
.
company_name
||
''
);
wx
.
setStorageSync
(
"myUsername"
,
res
.
data
.
im_username
);
wx
.
setStorageSync
(
"myPassword"
,
res
.
data
.
im_password
);
wx
.
setStorageSync
(
"imNick"
,
res
.
data
.
company_name
||
(
res
.
data
.
mobile
?
res
.
data
.
mobile
.
replace
(
reg
,
'$1****$2'
)
:
''
)
||
res
.
data
.
wechat_oauth
.
oauth_nickname
||
''
);
//
wx.setStorageSync("imNick", res.data.company_name || (res.data.mobile ? res.data.mobile.replace(reg, '$1****$2') : '') || res.data.wechat_oauth.oauth_nickname || '');
getBlackList
(
token
,
res
.
data
.
im_username
,
res
.
data
.
im_password
);
// conn.open({
// apiUrl: WebIM.config.apiURL,
...
...
utils/util.js
View file @
5d619ca1
...
...
@@ -76,7 +76,7 @@ const getData = (url, type, param, callBack, loading, isheader, istoken) => {
wx
.
removeStorageSync
(
'myUsername'
);
wx
.
removeStorageSync
(
'myPassword'
);
wx
.
removeStorageSync
(
'auth'
);
wx
.
removeStorageSync
(
'imNick'
);
//
wx.removeStorageSync('imNick');
wx
.
reLaunch
({
url
:
'/pages/person/auth/index'
,
});
...
...
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