Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jd-vx-app
Commits
fc50a519
Commit
fc50a519
authored
May 12, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化支付页面
parent
4329bd4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
getCarCode.vue
pagesA/pages/index/getCarCode.vue
+5
-0
pay.vue
pagesC/pages/shop/pay.vue
+5
-1
No files found.
pagesA/pages/index/getCarCode.vue
View file @
fc50a519
...
@@ -192,6 +192,10 @@ export default {
...
@@ -192,6 +192,10 @@ export default {
addressId
:
this
.
addressId
,
addressId
:
this
.
addressId
,
commodityList
:
list
,
commodityList
:
list
,
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
});
let
that
=
this
let
that
=
this
let
opts
=
{
let
opts
=
{
url
:
'/app/mall/create/order'
,
url
:
'/app/mall/create/order'
,
...
@@ -213,6 +217,7 @@ export default {
...
@@ -213,6 +217,7 @@ export default {
that
.
http
.
httpTokenRequest
(
opts
,
that
.
orderSubmit
).
then
(
res
=>
{
that
.
http
.
httpTokenRequest
(
opts
,
that
.
orderSubmit
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
let
paymentData
=
res
.
data
.
data
.
invokeResponse
;
let
paymentData
=
res
.
data
.
data
.
invokeResponse
;
uni
.
hideLoading
()
uni
.
requestPayment
({
uni
.
requestPayment
({
provider
:
'wxpay'
,
// 服务提提供商
provider
:
'wxpay'
,
// 服务提提供商
timeStamp
:
paymentData
.
timeStamp
,
timeStamp
:
paymentData
.
timeStamp
,
...
...
pagesC/pages/shop/pay.vue
View file @
fc50a519
...
@@ -107,6 +107,10 @@ export default {
...
@@ -107,6 +107,10 @@ export default {
nums
:
1
,
nums
:
1
,
}],
}],
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
});
let
that
=
this
let
that
=
this
let
opts
=
{
url
:
'/app/mall/create/order'
,
method
:
'post'
};
let
opts
=
{
url
:
'/app/mall/create/order'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
createOrder
).
then
(
res
=>
{
this
.
http
.
httpTokenRequest
(
opts
,
this
.
createOrder
).
then
(
res
=>
{
...
@@ -123,7 +127,7 @@ export default {
...
@@ -123,7 +127,7 @@ export default {
//console.log(res);
//console.log(res);
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
let
paymentData
=
res
.
data
.
data
.
invokeResponse
;
let
paymentData
=
res
.
data
.
data
.
invokeResponse
;
uni
.
hideLoading
()
uni
.
requestPayment
({
uni
.
requestPayment
({
provider
:
'wxpay'
,
// 服务提提供商
provider
:
'wxpay'
,
// 服务提提供商
timeStamp
:
paymentData
.
timeStamp
,
timeStamp
:
paymentData
.
timeStamp
,
...
...
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