| xqd
@@ -124,12 +124,21 @@
|
|
|
</head>
|
|
|
<body>
|
|
|
<script type="text/javascript">
|
|
|
+ function submits(){
|
|
|
+ var sth = document.getElementById("total_price").value;
|
|
|
+ console.log(sth)
|
|
|
+ if(!sth||sth==0){
|
|
|
+ alert("提交失败!");
|
|
|
+ }else{
|
|
|
+ document.getElementById("form1").submit();
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
<div class="all">
|
|
|
<div>
|
|
|
<div class="col-xs-0 col-lg-2"></div>
|
|
|
<div class="col-xs-12 col-lg-8" style="margin: 0 auto;border-left:1px solid #ccc;border-right:1px solid #ccc;margin-top: 10px;">
|
|
|
- <form id="form1" class="bs-example bs-example-form" role="form" action="" method="post" enctype="multipart/form-data">
|
|
|
+ <form id="form1" role="form" action="" method="post" enctype="multipart/form-data">
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
|
<input type="hidden" name="id" value="{{ $id }}">
|
|
|
<input type="hidden" id="total_price" name="total_price" value=""/>
|
| xqd
@@ -153,7 +162,7 @@
|
|
|
<div class="col-xs-3 col-lg-8"></div>
|
|
|
<div class="col-xs-9 col-lg-4">
|
|
|
<text style="color:#f04;">总计:¥<span id="zongjia"></span>元</text>
|
|
|
- <button style="margin-left: 20px;margin-bottom: 20px;" type="button" class="btn btn-default" onclick="submit()">提交</button>
|
|
|
+ <input style="margin-left: 20px;margin-bottom: 20px;" type="button" class="btn btn-default" value="提交" onclick="submits()"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="foot">
|
| xqd
@@ -267,14 +276,6 @@
|
|
|
document.getElementById("total_price").value = zonger
|
|
|
|
|
|
});
|
|
|
- function submit(){
|
|
|
- var sth = document.getElementById("total_price").value;
|
|
|
- if(!sth||sth==0){
|
|
|
- alert("提交失败!");
|
|
|
- }else{
|
|
|
- document.getElementById("form1").submit();
|
|
|
- }
|
|
|
- }
|
|
|
})
|
|
|
</script>
|
|
|
</body>
|