Commit 6d48a315a5bf79aed287d0909d2303aca46789b9

Authored by 前端开发-罗建龙
1 parent 33cbcc68

优化

packageA/pages/profile/profile.js
... ... @@ -1180,8 +1180,12 @@ Page({
1180 1180 }
1181 1181  
1182 1182 if (b.length==6 && b[5] >1) {
1183   - console.log(b[5]);
1184   - return this.data.oldbirthday
  1183 + let lb = b.split('');
  1184 + lb.splice(5, 0, 0);
  1185 + b = lb.join('');
  1186 + b+='-'
  1187 + // console.log(b[5]);
  1188 + // return this.data.oldbirthday
1185 1189 }
1186 1190  
1187 1191 if (b.length==7) {
... ...