소스 검색

修复创建订单时,参数类型出错的问题

wly 7 년 전
부모
커밋
28180c71ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/case/ShopApp/src/components/OrderPage/OrederPage.jsx

+ 1 - 1
src/case/ShopApp/src/components/OrderPage/OrederPage.jsx

@@ -212,7 +212,7 @@ 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')