diff --git a/public/components/common/company-extend/company-extend.html b/public/components/common/company-extend/company-extend.html index d2257d3c5..b0b3c6dec 100644 --- a/public/components/common/company-extend/company-extend.html +++ b/public/components/common/company-extend/company-extend.html @@ -1,4 +1,4 @@ -
+

公司扩展信息

diff --git a/public/components/property/editActivitiesView/editActivitiesView.html b/public/components/property/editActivitiesView/editActivitiesView.html index 65201e803..60d65da17 100644 --- a/public/components/property/editActivitiesView/editActivitiesView.html +++ b/public/components/property/editActivitiesView/editActivitiesView.html @@ -28,7 +28,7 @@
- +
- +

- +
diff --git a/public/pages/common/company/company.js b/public/pages/common/company/company.js index 8bab5d756..18ac81fdd 100644 --- a/public/pages/common/company/company.js +++ b/public/pages/common/company/company.js @@ -9,7 +9,8 @@ step:1, companyInfo:{ errorInfo:"" - } + }, + acceptTerms: false }, _initMethod:function(){ //vc.component.initStoreType(); @@ -68,7 +69,28 @@ vc.component.step = vc.component.step-1;; } }, + + // 验证勾选 “同意条款” + validateAcceptTerms: function(){ + return vc.validate.validate({ + companyBaseInfo: vc.component.acceptTerms + }, { + 'companyBaseInfo': [ + { + limit: "required", + param: "", + errInfo: "请阅读须知并勾选确认" + }, + ], + }); + }, + finish:function(){ + // 验证勾选 “同意条款” + if(!vc.component.validateAcceptTerms()){ + vc.component.companyInfo.errorInfo = vc.validate.errInfo; + return; + } //这里写提交代码 console.log("提交审核",vc.component.companyInfo); vc.http.post(