Przeglądaj źródła

Merge branch 'master' of ssh://git.9026.com:2212/richod/dcj

dyjh 6 lat temu
rodzic
commit
1c61ad7775

+ 2 - 3
resources/views/web/order/complete.blade.php

xqd xqd
@@ -3,7 +3,6 @@
 <head>
     <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
     <link href="{{cdn_asset('/assets/css/bootstrap.min.css')}}" rel="stylesheet">
-    <link href="css/bootstrap.min.css" rel="stylesheet">
     <title>精准医疗</title>
     <style type="text/css">
         .all{
@@ -41,8 +40,8 @@
     </div>
 </div>
 <script type="text/javascript">
-    console.log({{ $q['msg'] }})
-    var status = {{ $q['msg'] }}+'!';
+    console.log('{{ $q['msg'] }}')
+    var status = '{{ $q['msg'] }}'+'!';
     var why = '这里写补充说明';
     document.getElementById("status").innerHTML = status;
     document.getElementById("why").innerHTML = why;

+ 11 - 10
resources/views/web/order/post.blade.php

xqd xqd 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=""/>
@@ -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">
@@ -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>