Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
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 23447180
authored
Oct 16, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1' into 'master'
V1.0.1 修复红包跳转问题&修复线上权益支付问题 See merge request
!2
2 parents
5e13b93f
7a549008
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
packageEquity/pages/freecard/freecard.js
pages/crowdfunding/blank/blank.js
packageEquity/pages/freecard/freecard.js
View file @
2344718
...
...
@@ -39,7 +39,7 @@ Page({
message
}
=
await
wx
.
p
.
api
.
userApi
.
authUserPhone
(
detail
,
this
.
sessionId
)
wx
.
hideLoading
()
if
(
code
==
'0'
)
this
.
customerLoginCallBack
(
data
)
if
(
code
==
'0'
)
this
.
customerLoginCallBack
(
data
,
true
)
else
throw
message
}
catch
(
error
)
{
this
.
showTips
(
error
||
'服务不可用'
)
...
...
@@ -53,7 +53,7 @@ Page({
wx
.
p
.
wxApi
.
showToast
(
typeof
message
==
'string'
?
message
:
'请同意以下用户协议'
)
},
customerLoginCallBack
(
data
)
{
customerLoginCallBack
(
data
,
isAuto
=
false
)
{
wx
.
$LoginStatus
=
false
wx
.
p
.
storage
.
set
(
'userInfo'
,
data
)
wx
.
p
.
storage
.
set
(
'sessionId'
,
data
.
sessionId
)
...
...
@@ -82,6 +82,8 @@ Page({
this
.
setData
({
hasUserInfo
:
true
})
}
else
if
(
isAuto
)
{
this
.
jumpAuthUserInfo
()
}
},
async
jumpAuthUserInfo
()
{
...
...
@@ -91,10 +93,10 @@ Page({
index
}
=
environment
,
// redirectUrl = `${domain}/wx-oauth`,
redirectUrl
=
`https://scrm.glsx.com.cn/wx-oauth`
,
redirectUrl
=
`https://scrm.glsx.com.cn/w
y-w
x-oauth`
,
// redirectUrl = 'http://scrm.dev.glsx.com.cn/wx-oauth',
// 云商 wx1cf40dc91c28a7fd ,glsxtest02 wx56bed167ad463f70
appid
=
'wx
56bed167ad463f70
'
,
// 云商
/业主生活社开发者
wx1cf40dc91c28a7fd ,glsxtest02 wx56bed167ad463f70
appid
=
'wx
1cf40dc91c28a7fd
'
,
wxUrl
=
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=
${
appid
}
&redirect_uri=
${
encodeURIComponent
(
redirectUrl
)}
&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
console
.
log
(
redirectUrl
,
appid
)
wx
.
navigateTo
({
...
...
pages/crowdfunding/blank/blank.js
View file @
2344718
...
...
@@ -24,6 +24,7 @@ Page({
headImgUrl
:
info
.
avatarUrl
,
hasUserInfo
:
true
})
res
.
toCheckMember
()
let
item
=
{
add_way
:
'104'
,
customer_phone
:
res
.
data
.
userInfo
.
phone
,
...
...
@@ -33,7 +34,7 @@ Page({
}
let
json
=
JSON
.
stringify
(
item
)
// 数据上报
wx
.
p
.
api
.
common
.
trackHttp
({
json
}).
then
(
response
=>
{})
wx
.
p
.
api
.
common
.
trackHttp
({
json
}).
then
(
response
=>
{
})
})
},
...
...
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