[更新]更新了商品支付

This commit is contained in:
张慢慢
2020-12-28 11:43:56 +08:00
parent e05ff7dedf
commit b5fc14444e

View File

@@ -26,7 +26,6 @@ Page({
*/ */
orderInfo(orderId) { orderInfo(orderId) {
wx.$api.order.paymen(orderId).then(res=>{ wx.$api.order.paymen(orderId).then(res=>{
console.log(res)
this.setData({ this.setData({
orderData : res orderData : res
}) })
@@ -38,7 +37,7 @@ Page({
*/ */
payment() { payment() {
wx.$api.mall.wechat({ wx.$api.mall.wechat({
trade_no : this.orderData.trade_no trade_no : this.data.orderData.trade_no
}).then(res=>{ }).then(res=>{
console.log(res) console.log(res)
let payInfo = JSON.parse(res) let payInfo = JSON.parse(res)