Explorar o código

Merge branch 'master' of http://gogs.ioobot.com:6680/xy/online

xy %!s(int64=7) %!d(string=hai) anos
pai
achega
fdb2a6e064
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/case/ShopApp/src/components/OrderPage/OrederPage.jsx

+ 4 - 3
src/case/ShopApp/src/components/OrderPage/OrederPage.jsx

@@ -167,6 +167,8 @@ class OrderPage extends React.Component{
             "user_id": openid
           }
 
+          //console.log('orderData----------------',orderData)
+
         const fromShopCar= this.props.fromShopCar
          graphqls(createOrders,orderData).then((e) => {
             console.log('order创建订单成功', e)
@@ -197,7 +199,6 @@ class OrderPage extends React.Component{
                 
             }
          })
-
     }
 
     createProductOrder(order_id,count,product){
@@ -227,10 +228,10 @@ class OrderPage extends React.Component{
         dialog('¥'+this.state.sumPrice,'确认支付吗?').then(
             (e)=>{
                 //console.log('ok ',e)
-                this.toCreateOrder(1)
+                this.toCreateOrder(['1'])
             },(e)=>{
                 //console.log('fail ',e)
-                this.toCreateOrder(0)
+                this.toCreateOrder('0')
             })
     }