zhjx 6 năm trước cách đây
mục cha
commit
935f3d0b92
1 tập tin đã thay đổi với 2 bổ sung98 xóa
  1. 2 98
      resources/views/web/order/index.blade.php

+ 2 - 98
resources/views/web/order/index.blade.php

xqd
@@ -163,111 +163,15 @@
                 },
                 success:function (msg) {
                     if(msg.state ==0){
-                        tijiao(0,'','',msg.err);
+                        alert("提交失败!")
                     } else if(msg.state ==1){
-                        tijiao(1,msg.redirect_url,'',msg.err);
-                    } else if(msg.state ==2){
-                        tijiao(2,msg.redirect_url,msg.pdf_url,msg.err);
+                        window.location.href=msg.url;
                     }
                 }
             });
         // }
 
     }
-
-    function tijiao(status,redirect_url,pdf_url,ttt){
-            window.url = redirect_url;
-            window.downurl = pdf_url;
-            var tanc=document.getElementById("tanchuang")
-                tanc.style="display:auto;"
-             //   var status = 0
-            var tbox = document.getElementsByClassName("status");
-            if(status==0){
-                tbox[0].style="display:auto;"
-                tbox[1].style="display:none;"
-                tbox[2].style="display:none;"
-                var txt1 = document.getElementById("txt1");
-                txt1.innerHTML = ttt+'!';
-                console.log(txt1)
-            }else if(status==1){
-                tbox[1].style="display:auto;"
-                tbox[0].style="display:none;"
-                tbox[2].style="display:none;"
-                var txt2 = document.getElementById("txt2");
-                txt2.innerHTML = ttt+'!';
-                console.log(txt2)
-            }else{
-                tbox[1].style="display:none;"
-                tbox[0].style="display:none;"
-                tbox[2].style="display:auto;"
-                var txt3 = document.getElementById("txt3");
-                txt3.innerHTML = ttt+'!';
-                console.log(txt3)
-            }
-        }
-        function thebtn(e){
-            var id = e.id;
-            console.log(id)
-            if(id=='fail'){
-                closebox();
-            }else if(id=='yeah'){
-                window.location.href=url
-            }else if(id=='download'){
-                window.location.href = downurl;
-            }else{
-                window.location.href=url
-            }
-        }
-        function closebox(){
-            var tanc=document.getElementById("tanchuang")
-                tanc.style="display:none;"
-        }
-        function phonenum(phone) {
-            var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
-            if (!myreg.test(phone)) {
-                return false;
-            } else {
-                return true;
-            }
-
-        }
-    function closeyan(){
-        var yanz=document.getElementById("yanz")
-        yanz.style="display:none;";
-    }
-    function yanzhengma(){
-
-        var mobile = $('#mobile').val();
-        if(mobile == '' || !phonenum(mobile)){
-            alert('请输入正确手机号');
-        }else{
-            var yanzheng = document.getElementById("yzma");
-            yanzheng.style="display:auto;";
-            sending = true;
-            var obj = $("#fasong");
-            settime(obj);
-            $.ajax({
-                headers: {
-                    'X-CSRF-TOKEN': "{{ csrf_token() }}"
-                },
-                type:'POST',
-                data:{
-                    mobile:mobile
-                },
-                url:"{{ url('/web/Index/getCode') }}",
-                success:function (msg) {
-                    var data = eval('('+msg+')');
-                    console.log(data['msg']);
-                    if(data['state'] ==1){
-                        alert('发送成功');
-                    }else{
-                        alert(data['msg']);
-                    }
-                }
-            });
-        }
-
-    }
 </script>
 <div class="all">
         <div class="col-xs-0 col-lg-2"></div>