Commit fa8ac67dd18b0c8c909b0dd679d5aef30ea322f4

Authored by wangjialin
1 parent 8006ed390a
Exists in dev_wjl and in 1 other branch dev-wrh

修改岁数

Showing 1 changed file with 7 additions and 1 deletions

littleApp_child/pages/diet/measuret.js View file @ fa8ac67
... ... @@ -767,9 +767,15 @@
767 767 foodList3:list3
768 768 })
769 769 if(app.globalData.userInfo.hospitalId==666668){
770   - if(app.globalData.userInfo.monthage.includes("岁")){
  770 + if((app.globalData.userInfo.monthage.includes("岁")&&app.globalData.userInfo.monthage.includes("月"))||(app.globalData.userInfo.monthage.includes("岁")&&(app.globalData.userInfo.monthage.match(/^\d+/)-0)>1)){
771 771 this.setData({
772 772 yl:13
  773 + })
  774 + return
  775 + }
  776 + if(app.globalData.userInfo.monthage=='1岁'){
  777 + this.setData({
  778 + yl:8
773 779 })
774 780 return
775 781 }