@@ -208,6 +208,7 @@
<!--工作单位和职务-->
<van-field
+ required
v-model="form.company"
label="工作单位"
placeholder="请输入工作单位"
@@ -532,6 +533,10 @@
this.$toast('请选择年收入');
return false;
}
+ if (this.form.company == '') {
+ this.$toast('请输入工作单位');
+ return false;
+ }
let self = this;
$.post("{:url('infoAddPost')}", this.form, function (json) {
@@ -203,6 +203,7 @@
@@ -498,6 +499,11 @@
+
location.href = "{:url('matingAdd')}?id=" + json.data.id;
}, 'json');
@@ -197,6 +197,7 @@
@@ -463,6 +464,10 @@
$.post("{:url('infoEditPost')}", this.form, function (json) {
location.href = "{:url('matchmaker/index/index')}";