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
6d7e044d
Commit
6d7e044d
authored
Apr 21, 2022
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加测试支付
parent
762a2eb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
binding.vue
pages/binding/binding.vue
+29
-0
No files found.
pages/binding/binding.vue
View file @
6d7e044d
...
@@ -79,6 +79,35 @@ export default {
...
@@ -79,6 +79,35 @@ export default {
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pagesA/pages/index/index'
url
:
'/pagesA/pages/index/index'
});
});
// let param = {"appId" : "6", "ids": [125,126],
// "channelCode" : "wx_lite", "channelExtras" : {"openid" : "orQCF5W_Z6281tGMooVnSNE1yGog"},
// }
// let opts = { url: '/app/pay/order/submit', method: 'post' }
//
// this.http.httpRequest(opts, param).then(res => {
// console.log(res);
// if (res.data.code == 200) {
// let paymentData = res.data;
//
// uni.requestPayment({
// provider: 'wxpay', // 服务提提供商
// timeStamp: paymentData.timeStamp,
// nonceStr: paymentData.nonceStr,
// package: paymentData.package,
// signType: paymentData.signType,
// paySign: paymentData.paySign,
// success: function (res) {
// console.log('支付成功',res);
// // 业务逻辑。。。
// },
// fail: function (err) {
// console.log('支付失败',err);
// },
// });
// } else {
//
// }
// })
},
},
},
},
}
}
...
...
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