Merge branch 'feature_student' into release/4.9.1.0
# Conflicts: # apps/product/models/detail.js # config/common.js # public/scss/common/_good.css
Showing
2 changed files
with
7 additions
and
1 deletions
@@ -72,6 +72,7 @@ function isValidate(rules, datas) { | @@ -72,6 +72,7 @@ function isValidate(rules, datas) { | ||
72 | reg, | 72 | reg, |
73 | rule; | 73 | rule; |
74 | 74 | ||
75 | + datas = datas || {}; | ||
75 | for (name in rules) { | 76 | for (name in rules) { |
76 | if (datas.hasOwnProperty(name)) { | 77 | if (datas.hasOwnProperty(name)) { |
77 | data = datas[name]; | 78 | data = datas[name]; |
@@ -90,6 +91,9 @@ function isValidate(rules, datas) { | @@ -90,6 +91,9 @@ function isValidate(rules, datas) { | ||
90 | if (rule.is !== void (0) && data !== rule.is) { | 91 | if (rule.is !== void (0) && data !== rule.is) { |
91 | message = rule.msg; | 92 | message = rule.msg; |
92 | } | 93 | } |
94 | + }else { | ||
95 | + message = 'cookie 存储数据不全'; | ||
96 | + break; | ||
93 | } | 97 | } |
94 | } | 98 | } |
95 | return message; | 99 | return message; |
@@ -239,7 +239,9 @@ | @@ -239,7 +239,9 @@ | ||
239 | .s-title { | 239 | .s-title { |
240 | padding: 30px 0; | 240 | padding: 30px 0; |
241 | } | 241 | } |
242 | - | 242 | + .s-content{ |
243 | + border-top: 1px solid #e0e0e0; | ||
244 | + } | ||
243 | .s-section { | 245 | .s-section { |
244 | border-left: 1px solid #e0e0e0; | 246 | border-left: 1px solid #e0e0e0; |
245 | border-bottom: 1px solid #e0e0e0; | 247 | border-bottom: 1px solid #e0e0e0; |
-
Please register or login to post a comment