Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 a863832f
authored
Mar 04, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
6a2b9f16
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
linkwe-mobile/src/utils/index.js
linkwe-mobile/src/views/Home.vue
linkwe-mobile/src/views/redPacket/receive.vue
linkwe-mobile/src/utils/index.js
View file @
a863832
...
@@ -83,7 +83,7 @@ export async function getWxCode() {
...
@@ -83,7 +83,7 @@ export async function getWxCode() {
)}
&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
)}
&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
window
.
location
.
href
=
url
window
.
location
.
href
=
url
return
return
{}
// window.location.href =
// window.location.href =
// `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${encodeURIComponent(local)}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect`;
// `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${encodeURIComponent(local)}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect`;
}
}
...
...
linkwe-mobile/src/views/Home.vue
View file @
a863832
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
},
},
created
()
{
created
()
{
if
(
location
.
href
.
includes
(
'redPacketReceive'
)
&&
!
navigator
.
userAgent
.
includes
(
'Mobile'
))
{
if
(
location
.
href
.
includes
(
'redPacketReceive'
)
&&
!
navigator
.
userAgent
.
includes
(
'Mobile'
))
{
this
.
tips
=
'
请在手机端微信
打开'
this
.
tips
=
'
该业务仅支持手机微信用户,请在手机微信端
打开'
}
else
{
}
else
{
}
}
},
},
...
...
linkwe-mobile/src/views/redPacket/receive.vue
View file @
a863832
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
this
.
openId
=
openId
this
.
openId
=
openId
this
.
receiveName
=
nickName
this
.
receiveName
=
nickName
this
.
ava
l
ar
=
headImgUrl
this
.
ava
t
ar
=
headImgUrl
this
.
getRedPacketInfo
()
this
.
getRedPacketInfo
()
this
.
getReceiveStatus
()
this
.
getReceiveStatus
()
}
else
{
}
else
{
...
@@ -104,6 +104,8 @@ export default {
...
@@ -104,6 +104,8 @@ export default {
appId
:
window
.
CONFIG
.
appId
,
// 微信公众号id
appId
:
window
.
CONFIG
.
appId
,
// 微信公众号id
chatId
:
this
.
redPacket
.
chatId
,
// 客户企微id
chatId
:
this
.
redPacket
.
chatId
,
// 客户企微id
externalUserid
:
this
.
redPacket
.
externalUserid
,
// 客户企微id
externalUserid
:
this
.
redPacket
.
externalUserid
,
// 客户企微id
receiveName
:
this
.
receiveName
,
avatar
:
this
.
avatar
,
}
}
receiveRedPacket
(
form
).
then
((
data
)
=>
{
receiveRedPacket
(
form
).
then
((
data
)
=>
{
if
(
data
.
code
===
200
)
{
if
(
data
.
code
===
200
)
{
...
@@ -120,8 +122,6 @@ export default {
...
@@ -120,8 +122,6 @@ export default {
orderNo
:
this
.
redPacket
.
orderId
,
// 订单id
orderNo
:
this
.
redPacket
.
orderId
,
// 订单id
openId
:
this
.
openId
,
// 客户公众号id
openId
:
this
.
openId
,
// 客户公众号id
appId
:
window
.
CONFIG
.
appId
,
// 微信公众号id
appId
:
window
.
CONFIG
.
appId
,
// 微信公众号id
receiveName
:
this
.
receiveName
,
avalar
:
this
.
avalar
,
chatId
:
this
.
redPacket
.
chatId
,
// 客户群企微id
chatId
:
this
.
redPacket
.
chatId
,
// 客户群企微id
// externalUserid: this.redPacket.externalUserid, // 客户企微id
// externalUserid: this.redPacket.externalUserid, // 客户企微id
}
}
...
...
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