maoyunfeng 5 anos atrás
pai
commit
6f884e66e1

+ 7 - 0
whepi-ui/templates/home/frag.head.ftl

@@ -152,6 +152,13 @@
             border-top: 3px solid #75859f;
             margin-top:2.4em
         }
+        .weui-radio{
+            padding:10px 15px;
+            position:relative;
+            -webkit-box-align:center;
+            -webkit-align-items:center;
+            align-items:center
+        }
     </style>
 </head>
 <span hidden="hidden" id="id"></span>

+ 12 - 11
whepi-ui/templates/home/ribao.js

@@ -448,19 +448,19 @@ function insertlingyun() {
   var jrszd = $("#js_input_jrszd").attr("data-values") == undefined ? 0 : $("#js_input_jrszd").attr("data-values");
   var cfd = $("#js_input_cfd").attr("data-values") == undefined ? 0 : $("#js_input_cfd").attr("data-values");
   var mdd = $("#js_input_mdd").attr("data-values") == undefined ? 0 : $("#js_input_mdd").attr("data-values");
-  // var jrszq = $('#js_input_jrszq').val();
-  // var cfdq = $('#js_input_cfdq').val();
-  // if (cfd != jrszd) {
-  //   $.alert("出发地与今晚住地不是同一地点");
-  //   return;
-  // }
-  // if (jrszq != cfdq) {
-  //   $.alert("出发地与今晚住地不是同一地点");
-  //   return;
-  // }
+  var jrszq = $('#js_input_jrszq').val();
+    var mddq = $('#js_input_mddq').val();
+  if (mdd != jrszd) {
+    $.alert("目的地与今晚住地不一致");
+    return;
+  }
+  if (jrszq != mddq) {
+    $.alert("目的地与今晚住地不一致");
+    return;
+  }
     var cxfsq = $('#js_input_cxfsq').val();
     var cfdq = $('#js_input_cfdq').val();
-    var mddq = $('#js_input_mddq').val();
+
     for (var i = 0; i < listcx.length; i++){
       if(listcx[i].tripTypeDesp == cxfsq && listcx[i].tripType == cxfs && listcx[i].startLocal == cfd && listcx[i].startLocalOther == cfdq && listcx[i].endLocal == mdd && listcx[i].endLocalOther == mddq){
 
@@ -1042,6 +1042,7 @@ function ribaoCommit() {
 
 
   var medical = $("input[name='radio']:checked").val();
+  console.log(medical)
   if(medical ==undefined){
       $.alert("请选择新冠肺炎");
       return;