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 ddc1e70c
authored
Feb 26, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
478f4d8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
linkwe-mobile/src/views/redPacket/receive.vue
linkwe-mobile/src/views/redPacket/receive.vue
View file @
ddc1e70
...
@@ -48,18 +48,22 @@ export default {
...
@@ -48,18 +48,22 @@ export default {
getWxCode
().
then
((
openId
)
=>
{
getWxCode
().
then
((
openId
)
=>
{
if
(
openId
)
{
if
(
openId
)
{
this
.
openId
=
openId
this
.
openId
=
openId
this
.
getRedPacketInfo
()
}
else
{
}
else
{
this
.
$toast
.
clear
(
)
this
.
$toast
(
'授权异常,请刷新重试'
)
}
}
})
})
},
},
getRedPacketInfo
()
{
getRedPacketInfo
()
{
getRedPacketInfo
(
form
).
then
(({
data
})
=>
{
getRedPacketInfo
().
then
(({
data
})
=>
{
Object
.
assign
(
this
.
redPacket
,
data
)
this
.
redPacket
=
data
this
.
$toast
.
clear
()
this
.
$toast
.
clear
()
})
})
},
},
receive
()
{
receive
()
{
if
(
!
this
.
openId
)
{
return
}
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
duration
:
0
,
duration
:
0
,
forbidClick
:
true
,
forbidClick
:
true
,
...
@@ -67,7 +71,7 @@ export default {
...
@@ -67,7 +71,7 @@ export default {
let
query
=
param2Obj
(
window
.
location
.
search
)
let
query
=
param2Obj
(
window
.
location
.
search
)
let
hash
=
param2Obj
(
window
.
location
.
hash
)
let
hash
=
param2Obj
(
window
.
location
.
hash
)
Object
.
assign
(
query
,
hash
)
Object
.
assign
(
query
,
hash
)
this
.
redPacket
=
query
Object
.
assign
(
this
.
redPacket
,
query
)
let
form
=
{
let
form
=
{
orderNo
:
query
.
orderId
,
// 订单id
orderNo
:
query
.
orderId
,
// 订单id
openId
:
this
.
openId
,
// 客户公众号id
openId
:
this
.
openId
,
// 客户公众号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