Browse Source

工作单位

linwu 7 tháng trước cách đây
mục cha
commit
ee4ea74c4b

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

@@ -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) {

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

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

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

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