Commit 321c2d91165f2dc059f372499502a62ae3bf2067

Authored by xianghenggang
1 parent f496a2959a

检查项目修改

Showing 2 changed files with 284 additions and 3 deletions

littleApp_child/pages/checkTabList/checkTabList.js View file @ 321c2d9
... ... @@ -173,6 +173,7 @@
173 173 otherTextWZ: result.otherText,
174 174 })
175 175  
  176 + self.getContentByDeal("assistFood",result.assistFood);
176 177 }, function (res) {
177 178  
178 179 })
... ... @@ -218,7 +219,7 @@
218 219 otherUrine: result.otherUrine,
219 220 other_textFZ: result.otherText,
220 221 })
221   -
  222 + self.getContentByDeal("hipJoint", result.hipJoint);
222 223 }, function (res) {
223 224  
224 225 })
225 226  
... ... @@ -258,9 +259,18 @@
258 259 stoopSign: result.stoopSign,
259 260 otherTextEK: result.otherText,
260 261 })
261   -
  262 + self.getContentByDeal("facecolor", result.facecolor);
  263 + self.getContentByDeal("skin", result.skin);
  264 + self.getContentByDeal("chest", result.chest);
  265 + self.getContentByDeal("neck", result.neck);
  266 + self.getContentByDeal("portaGenitals", result.portaGenitals);
  267 + self.getContentByDeal("stoopStatus", result.stoopStatus);
  268 + self.getContentByDeal("stoopSign", result.stoopSign);
  269 +
262 270 }, function (res) {
263 271  
  272 + chest
  273 +
264 274 })
265 275 },
266 276 requestDataYB() {
... ... @@ -286,6 +296,277 @@
286 296 }, function (res) {
287 297  
288 298 })
  299 + },
  300 + getContentByDeal(str,data){
  301 + var self=this
  302 + if(data){
  303 + //辅食添加
  304 + if (str =="assistFood") {
  305 + var assistFood = JSON.parse(data);
  306 + if (assistFood.yesOrNo === "no") {
  307 + self.setData({
  308 + assistFood: "未添加"
  309 + })
  310 + }
  311 + if (assistFood.yesOrNo === "yes") {
  312 + self.setData({
  313 + assistFood: "添加"
  314 + })
  315 + if (assistFood.qtText) {
  316 + self.setData({
  317 + assistFood: self.data.assistFood + ":" + assistFood.qtText
  318 + })
  319 + }
  320 + }
  321 +
  322 + }
  323 + //面色
  324 + if (str == "facecolor") {
  325 + var facecolor = JSON.parse(data);
  326 + if (facecolor.select === "1") {
  327 + self.setData({
  328 + facecolor: "红润"
  329 + })
  330 + }
  331 + if (facecolor.select === "2") {
  332 + self.setData({
  333 + facecolor: "黄染"
  334 + })
  335 + }
  336 + if (facecolor.select === "3") {
  337 + self.setData({
  338 + facecolor: "黄染"
  339 + })
  340 + if (facecolor.qtText && facecolor.qtText !== "") {
  341 + self.setData({
  342 + facecolor: self.data.facecolor + ":" + facecolor.qtText
  343 + })
  344 + }
  345 + }
  346 +
  347 +
  348 + }
  349 + //皮肤
  350 + if (str == "skin") {
  351 + var skin = JSON.parse(data);
  352 + if (skin.yesOrNo === "no") {
  353 + self.setData({
  354 + skin: "未见异常"
  355 + })
  356 + }
  357 + if (skin.yesOrNo === "yes") {
  358 + var result = "异常:"
  359 + if (skin.sz) result.length > 3 ? result += "、湿疹" : result += "湿疹";
  360 + if (skin.hr) result.length > 3 ? result += "、黄染" : result += "黄染";
  361 + if (skin.fg) result.length > 3 ? result += "、发绀" : result += "发绀";
  362 + if (skin.fg1) result.length > 3 ? result += "、发绀(口唇、指趾甲床)" : result += "发绀(口唇、指趾甲床)";
  363 + if (skin.qb) result.length > 3 ? result += "、苍白" : result += "苍白";
  364 + if (skin.mxxgl) result.length > 3 ? result += "、毛细血管瘤" : result += "毛细血管瘤";
  365 + if (skin.bk) result.length > 3 ? result += "、包块" : result += "包块";
  366 + if (skin.yz) result.length > 3 ? result += "、硬肿" : result += "硬肿";
  367 + if (skin.hz) result.length > 3 ? result += "、红肿" : result += "红肿";
  368 + if (skin.ch) result.length > 3 ? result += "、潮红" : result += "潮红";
  369 + if (skin.ml) result.length > 3 ? result += "、糜烂" : result += "糜烂";
  370 + if (skin.pz) result.length > 3 ? result += "、皮疹" : result += "皮疹";
  371 + if (skin.cxd) result.length > 3 ? result += "、出血点" : result += "出血点";
  372 + if (skin.yb) result.length > 3 ? result += "、瘀斑" : result += "瘀斑";
  373 + if (skin.zdtblbq) result.length > 3 ? result += "、增大的体表淋巴结" : result += "增大的体表淋巴结";
  374 + if (skin.kjmfy) result.length > 3 ? result += "、卡介苗接种反应" : result += "卡介苗接种反应";
  375 + if (skin.qt) {
  376 + result.length > 3 ? result += "、其他" : result = "其他";
  377 + if (skin.qtText && skin.qtText !== "") {
  378 + result += ":" + skin.qtText;
  379 + }
  380 + }
  381 + self.setData({
  382 + skin: result
  383 + })
  384 +
  385 + }
  386 +
  387 + }
  388 + //胸部
  389 + if (str == "chest" ) {
  390 + var chest = JSON.parse(data);
  391 + if (chest.yesOrNo === "no") {
  392 + self.setData({
  393 + chest: "无"
  394 + })
  395 + }
  396 + if (chest.yesOrNo === "yes") {
  397 + var result = "有:"
  398 +
  399 + if (chest.qtText) {
  400 + result += ":" + chest.qtText;
  401 + }
  402 + self.setData({
  403 + chest: result
  404 + })
  405 + }
  406 +
  407 + }
  408 + // 颈部
  409 + if ( str == "neck") {
  410 + var neck = JSON.parse(data);
  411 + if (neck.yesOrNo === "no") {
  412 + self.setData({
  413 + neck: "无"
  414 + })
  415 + }
  416 + if (neck.yesOrNo === "yes") {
  417 + var result = "有:"
  418 +
  419 + if (neck.qtText) {
  420 + result += neck.qtText;
  421 + }
  422 + self.setData({
  423 + neck: result
  424 + })
  425 + }
  426 +
  427 + }
  428 + //portaGenitals肛门/外生殖器
  429 +
  430 + if (str == "portaGenitals"){
  431 + var portaGenitals = JSON.parse(data);
  432 + if (portaGenitals.yesOrNo === "no") {
  433 + self.setData({
  434 + portaGenitals: "未见异常"
  435 + })
  436 +
  437 + }
  438 + if (portaGenitals.yesOrNo === "yes") {
  439 + var result= "异常:";
  440 + if (portaGenitals.ynsz) result.length > 3 ? result += "、阴囊水肿" : result += "阴囊水肿";
  441 + if (portaGenitals.xmjy) {
  442 + result.length > 3 ? result += "、鞘膜积液" : result += "鞘膜积液";
  443 + if (portaGenitals.xmjyStatus && portaGenitals.xmjyStatus != "") {
  444 + if (portaGenitals.xmjyStatus == "1") {
  445 + result += "(左侧)";
  446 + }
  447 + if (portaGenitals.xmjyStatus == "2") {
  448 + result += "(右侧)";
  449 + }
  450 + if (portaGenitals.xmjyStatus == "3") {
  451 + result += "(双侧)";
  452 + }
  453 + }
  454 + }
  455 + if (portaGenitals.ndxy) result.length > 3 ? result += "、尿道下裂" : result += "尿道下裂";
  456 + if (portaGenitals.fggs) result.length > 3 ? result += "、腹股沟疝" : result += "腹股沟疝";
  457 + if (portaGenitals.yg) {
  458 + result.length > 3 ? result += "、隐睾" : result += "隐睾";
  459 + if (portaGenitals.ygStatus && portaGenitals.ygStatus != "") {
  460 + if (portaGenitals.ygStatus == "1") {
  461 + viewData.ygStatus += "(左侧)";
  462 + }
  463 + if (portaGenitals.ygStatus == "2") {
  464 + result += "(右侧)";
  465 + }
  466 + if (portaGenitals.ygStatus == "3") {
  467 + result += "(双侧)";
  468 + }
  469 + }
  470 + }
  471 + if (portaGenitals.ycnx) result.length > 3 ? result += "、阴唇粘连" : result += "阴唇粘连";
  472 + if (portaGenitals.qt) {
  473 + result.length > 3 ? result += "、其他" : result += "其他";
  474 + if (portaGenitals.qtText && portaGenitals.qtText !== "") {
  475 + result += ":" + portaGenitals.qtText;
  476 + }
  477 + }
  478 + self.setData({
  479 + portaGenitals: result
  480 + })
  481 + }
  482 + }
  483 + //stoopStatus 可疑佝偻病症状
  484 + if (str == "stoopStatus") {
  485 + var stoopStatus = JSON.parse(data);
  486 + if (stoopStatus.yesOrNo === "no") {
  487 + self.setData({
  488 + stoopStatus: "无"
  489 + })
  490 +
  491 + }
  492 + if (stoopStatus.yesOrNo === "yes") {
  493 + var result= "有:";
  494 + if (stoopStatus.yj) result.length > 2 ? result += "、夜惊" : result += "夜惊";
  495 + if (stoopStatus.dh) result.length > 2 ? result += "、多汗" : result += "多汗";
  496 + if (stoopStatus.fz) result.length > 2 ? result += "、烦躁" : result += "烦躁";
  497 + if (stoopStatus.qt) {
  498 + result.length > 2 ? result += "、其他" : result += "其他";
  499 + if (stoopStatus.qtText && stoopStatus.qtText !== "") {
  500 + result += ":" + stoopStatus.qtText;
  501 + }
  502 + }
  503 + self.setData({
  504 + stoopStatus: result
  505 + })
  506 + }
  507 + }
  508 +
  509 + //stoopSign 可疑佝偻病体征
  510 + if (str == "stoopSign") {
  511 + var stoopSign = JSON.parse(data);
  512 + if (stoopSign.yesOrNo === "no") {
  513 + self.setData({
  514 + stoopSign: "无"
  515 + })
  516 +
  517 + }
  518 + if (stoopSign.yesOrNo === "yes") {
  519 + var result = "有:";
  520 + if (stoopSign.rgrh) result.length > 2 ? result += "、颅骨软化" : result += "颅骨软化";
  521 + if (stoopSign.fl) result.length > 2 ? result += "、方颅" : result += "方颅";
  522 + if (stoopSign.zl) result.length > 2 ? result += "、枕秃" : result += "枕秃";
  523 + if (stoopSign.lcz) result.length > 2 ? result += "、肋串珠" : result += "肋串珠";
  524 + if (stoopSign.lwf) result.length > 2 ? result += "、肋外翻" : result += "肋外翻";
  525 + if (stoopSign.lrgg) result.length > 2 ? result += "、肋软骨沟" : result += "肋软骨沟";
  526 + if (stoopSign.jx) result.length > 2 ? result += "、鸡胸" : result += "鸡胸";
  527 + if (stoopSign.szz) result.length > 2 ? result += "、手镯征" : result += "手镯征";
  528 + if (stoopSign.zzz) result.length > 2 ? result += "、足镯征" : result += "足镯征";
  529 + if (stoopSign.oxt) result.length > 2 ? result += "、O型腿" : result += "O型腿";
  530 + if (stoopSign.xxt) result.length > 2 ? result += "、X型腿" : result += "X型腿";
  531 + if (stoopSign.qt) {
  532 + result.length > 2 ? result += "、其他" : result += "其他";
  533 + if (stoopSign.qtText && stoopSign.qtText !== "") {
  534 + result += ":" + stoopSign.qtText;
  535 + }
  536 + }
  537 + self.setData({
  538 + stoopSign: result
  539 + })
  540 + }
  541 + }
  542 +
  543 + //髋关节筛查
  544 + if (str == "hipJoint") {
  545 + var hipJoint = JSON.parse(data);
  546 + if (hipJoint.select === "1") {
  547 + self.setData({
  548 + hipJoint: "未见明显异常"
  549 + })
  550 + }
  551 + if (hipJoint.select === "2") {
  552 + self.setData({
  553 + hipJoint: "接近正常"
  554 + })
  555 + }
  556 + if (hipJoint.select === "3") {
  557 + self.setData({
  558 + hipJoint: "异常"
  559 + })
  560 + if (hipJoint.qtText && hipJoint.qtText !== "") {
  561 + self.setData({
  562 + hipJoint: self.data.hipJoint + ":" + hipJoint.qtText
  563 + })
  564 + }
  565 + }
  566 +
  567 +
  568 + }
  569 + }
289 570 }
290 571 })
littleApp_child/utils/network_util.js View file @ 321c2d9
... ... @@ -2,7 +2,7 @@
2 2 // 测试用户‘花雪莲’,手机号15928512992,验证码666666
3 3  
4 4 // 0测试环境 1正式环境 2演示环境 3衡水
5   -var Builing_Release_AppStore = 1
  5 +var Builing_Release_AppStore = 0
6 6 // 获取服务器地址
7 7 function kServerBaseUrl() {
8 8 switch (Builing_Release_AppStore) {