Browse Source

工作单位

linwu 7 months ago
parent
commit
ee4ea74c4b

+ 5 - 0
public/themes/simpleboot3/matchmaker/register/info_add.html

@@ -208,6 +208,7 @@
 
 
     <!--工作单位和职务-->
     <!--工作单位和职务-->
     <van-field
     <van-field
+            required
             v-model="form.company"
             v-model="form.company"
             label="工作单位"
             label="工作单位"
             placeholder="请输入工作单位"
             placeholder="请输入工作单位"
@@ -532,6 +533,10 @@
                         this.$toast('请选择年收入');
                         this.$toast('请选择年收入');
                         return false;
                         return false;
                     }
                     }
+                    if (this.form.company == '') {
+                        this.$toast('请输入工作单位');
+                        return false;
+                    }
 
 
                     let self = this;
                     let self = this;
                     $.post("{:url('infoAddPost')}", this.form, function (json) {
                     $.post("{:url('infoAddPost')}", this.form, function (json) {

+ 6 - 0
public/themes/simpleboot3/matchmaker/user/info_add.html

@@ -203,6 +203,7 @@
 
 
     <!--工作单位和职务-->
     <!--工作单位和职务-->
     <van-field
     <van-field
+            required
             v-model="form.company"
             v-model="form.company"
             label="工作单位"
             label="工作单位"
             placeholder="请输入工作单位"
             placeholder="请输入工作单位"
@@ -498,6 +499,11 @@
                         return false;
                         return false;
                     }
                     }
 
 
+                    if (this.form.company == '') {
+                        this.$toast('请输入工作单位');
+                        return false;
+                    }
+
                     $.post("{:url('infoAddPost')}", this.form, function (json) {
                     $.post("{:url('infoAddPost')}", this.form, function (json) {
                         location.href = "{:url('matingAdd')}?id=" + json.data.id;
                         location.href = "{:url('matingAdd')}?id=" + json.data.id;
                     }, 'json');
                     }, 'json');

+ 5 - 0
public/themes/simpleboot3/matchmaker/user/info_edit.html

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