Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
acd5a129
Commit
acd5a129
authored
Mar 13, 2023
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化H5用支付宝支付时跳转浏览器打开的Token问题
parent
33d4cccd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
pages/orderConfirm/orderConfirm.vue
+23
-18
No files found.
pages/orderConfirm/orderConfirm.vue
View file @
acd5a129
...
@@ -446,7 +446,23 @@
...
@@ -446,7 +446,23 @@
confirmIntergralDeduction
()
{
confirmIntergralDeduction
()
{
},
},
courseDetailLoad
(
option
)
{
this
.
courseDetail
();
this
.
queryByUserIdFortuneStatistic
()
this
.
deviceType
=
common
.
checkDeviceType
();
if
(
this
.
deviceType
==
3
)
{
this
.
paymentMethod
=
1
;
}
if
(
this
.
isRedirect
==
1
)
{
this
.
deductionCore
=
option
.
deductionCore
;
this
.
amount
=
Number
(
option
.
amount
);
this
.
isDeduction
=
String
(
option
.
isDeduction
);
this
.
calculatedPrice
=
Number
(
this
.
amount
);
setTimeout
(()
=>
{
this
.
pay
();
},
500
)
}
},
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
fileId
=
option
.
fileId
;
this
.
fileId
=
option
.
fileId
;
...
@@ -455,35 +471,24 @@
...
@@ -455,35 +471,24 @@
this
.
userId
=
option
.
userId
;
this
.
userId
=
option
.
userId
;
}
}
this
.
isRedirect
=
option
.
isRedirect
;
this
.
isRedirect
=
option
.
isRedirect
;
if
(
this
.
isRedirect
==
1
&&
uni
.
getStorageSync
(
'cffp_userId'
)
)
{
if
(
this
.
isRedirect
==
1
&&
option
.
userId
)
{
uni
.
request
({
uni
.
request
({
url
:
'/api/authorize/obtainToken'
,
url
:
'/api/authorize/obtainToken'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
{
ticket
:
'uni-app'
,
loginId
:
uni
.
getStorageSync
(
'cffp_userId'
)
},
data
:
{
ticket
:
'uni-app'
,
loginId
:
option
.
userId
},
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
if
(
res
.
statusCode
===
200
)
{
if
(
res
.
statusCode
===
200
)
{
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'data'
][
'token'
]);
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'data'
][
'token'
]);
uni
.
setStorageSync
(
'cffp_userId'
,
option
.
userId
);
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'isH5'
,
1
);
uni
.
setStorageSync
(
'isH5'
,
1
);
this
.
courseDetailLoad
(
option
);
}
}
}
}
});
});
}
else
{
this
.
courseDetailLoad
(
option
);
}
}
this
.
courseDetail
();
this
.
queryByUserIdFortuneStatistic
()
this
.
deviceType
=
common
.
checkDeviceType
();
if
(
this
.
deviceType
==
3
)
{
this
.
paymentMethod
=
1
;
}
if
(
this
.
isRedirect
==
1
)
{
this
.
deductionCore
=
option
.
deductionCore
;
this
.
amount
=
Number
(
option
.
amount
);
this
.
isDeduction
=
String
(
option
.
isDeduction
);
this
.
calculatedPrice
=
Number
(
this
.
amount
);
setTimeout
(()
=>
{
this
.
pay
();
},
500
)
}
},
},
mounted
()
{}
mounted
()
{}
}
}
...
...
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