Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 35ec5360
authored
Oct 20, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改代码
1 parent
95ba0670
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
utils/request/request.js
utils/share.js
utils/request/request.js
View file @
35ec536
...
...
@@ -68,7 +68,7 @@ class Request {
if
(
code
==
'0'
)
{
resolve
(
data
.
data
)
}
else
{
console
.
log
(
data
)
console
.
trace
(
data
)
wx
.
showToast
({
title
:
message
||
'系统异常'
,
icon
:
'none'
...
...
@@ -78,7 +78,7 @@ class Request {
},
fail
(
error
)
{
wx
.
hideLoading
()
console
.
error
(
`接口异常:`
,
error
)
console
.
log
(
`接口异常:`
,
error
)
wx
.
showToast
({
title
:
'系统异常'
,
icon
:
'error'
...
...
utils/share.js
View file @
35ec536
...
...
@@ -52,7 +52,7 @@ class Share {
if
(
sharePath
)
path
=
`/
${
sharePath
}
`
path
+=
that
.
setCommonShareQuery
()
if
(
shareQuery
)
path
+=
`&
${
shareQuery
}
`
console
.
log
(
path
)
console
.
log
(
'::'
,
path
)
if
(
!
noPageAuth
)
path
=
`/login/loading/loading?url=
${
encodeURIComponent
(
path
)}
`
if
(
shareFun
)
shareFun
()
if
(
shareTrackData
)
that
.
reportShareData
(
shareTrackData
)
...
...
@@ -123,16 +123,17 @@ class Share {
const
{
WXUSERINFO
,
USERINFO
}
=
this
.
getCommonData
()
}
=
this
.
getCommonData
(),
thisPage
=
wx
.
$router
.
getPageInstance
()
reportData
({
openId
:
WXUSERINFO
.
openId
||
''
,
unionId
:
WXUSERINFO
.
unionId
||
''
,
nickName
:
WXUSERINFO
.
nickName
||
''
,
avatar
:
WXUSERINFO
.
avatarUrl
||
''
,
phone
:
USERINFO
.
phone
||
''
,
merchantId
:
USERINFO
.
merchantId
||
''
,
shareOpenId
:
WXUSERINFO
.
openId
||
''
,
sharePhone
:
USERINFO
.
phone
||
''
,
merchantId
:
thisPage
.
merchantId
||
USERINFO
.
merchantId
||
''
,
shareOpenId
:
thisPage
.
shareOpenId
||
WXUSERINFO
.
openId
||
''
,
sharePhone
:
thisPage
.
sharePhone
||
USERINFO
.
phone
||
''
,
...
shareTrackData
})
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment