Explorar el Código

wesmiler 更新第5期升级

wesmiler hace 5 años
padre
commit
c65c4db5a9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      public/themes/default/weixin/public/assets/js/entry.js

+ 2 - 2
public/themes/default/weixin/public/assets/js/entry.js

@@ -94,7 +94,6 @@ var app = new Vue({
                 }
             ],
             onChange: function(data){
-                _this.params.sex = data.cols[0].activeIndex+1
                 $("#sex").attr('data-code',data.cols[0].activeIndex+1);
             }
         });
@@ -186,7 +185,7 @@ var app = new Vue({
                 }
             ],
             onChange: function(data){
-                _this.params.married = data.cols[0].activeIndex+1;
+                // _this.params.married = data.cols[0].activeIndex+1;
                 $("#married").attr('data-code',data.cols[0].activeIndex+1);
             }
         });
@@ -597,6 +596,7 @@ var app = new Vue({
             params.now_address = $("#now_address").val();
             params.home_address = $("#home_address").val();
             params.married = $("#married").attr('data-code');
+            params.sex = $("#sex").attr('data-code');
             console.log(params);
             // alert(JSON.stringify(_this.params));
             if(_this.file == '' || _this.file == null){