855 lines
21 KiB
JavaScript
855 lines
21 KiB
JavaScript
// pages/intelligentGuidance/intelligentGuidance.js
|
||
Page({
|
||
|
||
/**
|
||
* 页面的初始数据
|
||
*/
|
||
data: {
|
||
type: 'bodyParts',
|
||
|
||
popupShow: false,
|
||
popupData: {},
|
||
|
||
|
||
bodyPartsShow: false,
|
||
questionsListShow: true,
|
||
questionListBodyArea: [],
|
||
selectSexOptions: ['男', '女'],
|
||
switchSex: 1,
|
||
|
||
selectAgeOptions: ['成人', '儿童'],
|
||
switchAge: 0,
|
||
|
||
bodyPosition: 0, //身位 0 身前,1身后
|
||
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: false,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
},
|
||
handlebodyParts(e) {
|
||
const type = e.currentTarget.dataset.type
|
||
this.setData({
|
||
type: type,
|
||
})
|
||
// console.log(type)
|
||
if (type === 'bodyParts') {
|
||
this.setData({
|
||
bodyPartsShow: false,
|
||
questionsListShow: true,
|
||
})
|
||
} else {
|
||
this.setData({
|
||
bodyPartsShow: true,
|
||
questionsListShow: false,
|
||
})
|
||
this.getAllBodyArea()
|
||
}
|
||
// if(type)
|
||
},
|
||
getAllBodyArea() {
|
||
let reqData = {}
|
||
if (!this.data.adultMaleFrontalShow || !this.data.adultMaleBackShow) { //成男
|
||
reqData = {
|
||
sex: '1',
|
||
adultOrChild: '1'
|
||
}
|
||
}
|
||
if (!this.data.adultFemaleBackShow || !this.data.adultFemaleFrontalShow) { //成女
|
||
reqData = {
|
||
sex: '0',
|
||
adultOrChild: '1'
|
||
}
|
||
}
|
||
if (!this.data.boyFrontalShow || !this.data.boyBackShow) {
|
||
reqData = {
|
||
sex: '1',
|
||
adultOrChild: '0'
|
||
}
|
||
}
|
||
|
||
if (!this.data.girlBackShow || !this.data.girlFrontShow) {
|
||
reqData = {
|
||
sex: '0',
|
||
adultOrChild: '0'
|
||
}
|
||
}
|
||
wx.request({
|
||
url: 'https://fy.btlsoln.com:8443/IntelligentGuidance/getAllBodyArea',
|
||
method: "GET",
|
||
data: reqData,
|
||
success: res => {
|
||
this.setData({
|
||
questionListBodyArea: JSON.parse(res.data.data)
|
||
})
|
||
console.log(this.data.questionListBodyArea)
|
||
}
|
||
})
|
||
},
|
||
switchChangeSex(e) {
|
||
var currentTarget = e.currentTarget;
|
||
var tab = currentTarget.dataset.index;
|
||
if (tab == 0) {
|
||
this.setData({
|
||
switchSex: 0, //男
|
||
})
|
||
if (this.data.switchAge > 0) { //幼儿男,判断身前身后
|
||
if (this.data.bodyPosition > 0) { //幼儿男,身后
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: false,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
} else { //幼儿男,身前
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: false,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
}
|
||
} else { //成人男,判断身前身后
|
||
if (this.data.bodyPosition > 0) { //成人男,身后
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: false,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
|
||
} else { //成人男,身前
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: false,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
}
|
||
}
|
||
} else {
|
||
this.setData({
|
||
switchSex: 1, //女
|
||
})
|
||
if (this.data.switchAge > 0) { //幼儿女,判断身前身后
|
||
if (this.data.bodyPosition > 0) { //幼儿女,身后
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: false,
|
||
girlFrontShow: true,
|
||
})
|
||
|
||
} else { //幼儿女,身前
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: false,
|
||
})
|
||
}
|
||
} else { // 成人女,判断身前身后
|
||
if (this.data.bodyPosition > 0) { //成人女,身后
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: false,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
} else { //成人女,身前
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: false,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
}
|
||
}
|
||
}
|
||
},
|
||
switchChangeAge(e) {
|
||
var currentTarget = e.currentTarget;
|
||
var tab = currentTarget.dataset.index;
|
||
if (tab == 0) {
|
||
this.setData({
|
||
switchAge: 0, //成人
|
||
})
|
||
if (this.data.switchSex > 0) { //成人女,判断身位
|
||
if (this.data.bodyPosition > 0) { //成人女,身后
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: false,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
|
||
} else { //成人女,身前
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: false,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
|
||
}
|
||
} else { //成人男,判断身位
|
||
if (this.data.bodyPosition > 0) { //成人男,身后
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: false,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
} else { //成人男,身前
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: false,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
}
|
||
}
|
||
} else {
|
||
this.setData({
|
||
switchAge: 1, //儿童
|
||
})
|
||
|
||
if (this.data.switchSex > 0) { //幼儿女,判断身位
|
||
if (this.data.bodyPosition > 0) { //幼儿女,身后
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: false,
|
||
girlFrontShow: true,
|
||
})
|
||
} else { //幼儿女,身前
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: false,
|
||
})
|
||
}
|
||
} else { //幼儿男,判断身位
|
||
if (this.data.bodyPosition > 0) { //幼儿男,身后
|
||
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: false,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
} else { //幼儿男,身前
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: false,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
}
|
||
}
|
||
}
|
||
},
|
||
handleReolve(e) { //旋转
|
||
if (this.data.bodyPosition > 0) { //切换为身前
|
||
this.setData({
|
||
bodyPosition: 0,
|
||
})
|
||
if (this.data.switchSex > 0) { //身前,女
|
||
if (this.data.switchAge > 0) { //身前,女,幼儿
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
girlBackShow: true,
|
||
girlFrontShow: false,
|
||
})
|
||
} else { //身前,女,成人
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: false,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
|
||
}
|
||
} else { //身前,男
|
||
if (this.data.switchAge > 0) { //身前,男,幼儿
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: false,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
} else { //身前,男,成人
|
||
this.setData({
|
||
adultMaleFrontalShow: false,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
}
|
||
}
|
||
} else { //切换为身后
|
||
this.setData({
|
||
bodyPosition: 1,
|
||
})
|
||
|
||
if (this.data.switchSex > 0) { //身后,女
|
||
if (this.data.switchAge > 0) { //身后,女,幼儿
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: false,
|
||
girlFrontShow: true,
|
||
})
|
||
|
||
} else { //身后,女,成人
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: false,
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
|
||
}
|
||
} else { //身后,男
|
||
if (this.data.switchAge > 0) { //身后,男,幼儿
|
||
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: true,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: false,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
} else { //身后,男,成人
|
||
this.setData({
|
||
adultMaleFrontalShow: true,
|
||
adultMaleBackShow: false,
|
||
|
||
adultFemaleFrontalShow: true,
|
||
adultFemaleBackShow: true,
|
||
|
||
boyBackShow: true,
|
||
boyFrontalShow: true,
|
||
|
||
girlBackShow: true,
|
||
girlFrontShow: true,
|
||
})
|
||
}
|
||
}
|
||
}
|
||
},
|
||
hendleMaleMap() {
|
||
wx.showModal({
|
||
title: '提示',
|
||
content: '暂不支持男性,请到导诊台咨询',
|
||
complete: (res) => {
|
||
if (res.cancel) {}
|
||
|
||
if (res.confirm) {}
|
||
}
|
||
})
|
||
},
|
||
getOtherSymptomByType(e) {
|
||
console.log(e.currentTarget.dataset)
|
||
var bodyAreaType = e.currentTarget.dataset.bodyareatype
|
||
wx.request({
|
||
url: 'https://fy.btlsoln.com:8443/IntelligentGuidance/getSymptom',
|
||
method: "GET",
|
||
data: {
|
||
bodyAreaType: bodyAreaType
|
||
},
|
||
success: res => {
|
||
this.setData({
|
||
popupShow: true
|
||
})
|
||
console.log("res is :" + res)
|
||
console.log(res.data.data)
|
||
this.setData({
|
||
popupData: JSON.parse(res.data.data)
|
||
})
|
||
}
|
||
})
|
||
},
|
||
getSymptomByType(bodyAreaType) {
|
||
wx.request({
|
||
url: 'https://fy.btlsoln.com:8443/IntelligentGuidance/getSymptom',
|
||
method: "GET",
|
||
data: {
|
||
bodyAreaType: bodyAreaType
|
||
},
|
||
success: res => {
|
||
this.setData({
|
||
popupShow: true
|
||
})
|
||
console.log("res is :" + res)
|
||
console.log(res.data.data)
|
||
if (res.data.data != undefined) {
|
||
this.setData({
|
||
popupData: JSON.parse(res.data.data)
|
||
})
|
||
} else {
|
||
this.setData({
|
||
popupData: {}
|
||
})
|
||
}
|
||
}
|
||
})
|
||
},
|
||
handleFemaleHeadViewTap() {
|
||
console.log("这是成女头")
|
||
// this.getSymptomByType("1")
|
||
},
|
||
onClose() {
|
||
this.setData({
|
||
popupShow: false
|
||
})
|
||
},
|
||
toHistory() {
|
||
wx.navigateTo({
|
||
url: "/pages/historicalvisitrecords/historicalvisitrecords",
|
||
})
|
||
},
|
||
gotoQuestions(e) {
|
||
var childid = e.currentTarget.dataset.childid
|
||
wx.navigateTo({
|
||
url: '/pages/QA/QA?childid=' + childid,
|
||
})
|
||
console.log(e)
|
||
},
|
||
handleFemaleLeftArm() {
|
||
// this.getSymptomByType("6")
|
||
console.log("这是成女左大臂")
|
||
},
|
||
handleFemaleChest() {
|
||
if (!this.data.adultFemaleBackShow) {
|
||
// this.getSymptomByType("4")
|
||
console.log("这是成女后背")
|
||
} else {
|
||
// this.getSymptomByType("4")
|
||
// console.log("这是成女胸口")
|
||
}
|
||
},
|
||
handleFemaleRightArm() {
|
||
// this.getSymptomByType("6")
|
||
console.log("这是成女右大臂")
|
||
},
|
||
handleFemaleLeftSmallArm() {
|
||
// this.getSymptomByType("6")
|
||
console.log("这是成女左小臂")
|
||
},
|
||
handleFemaleRightSmallArm() {
|
||
// this.getSymptomByType("6")
|
||
console.log("这是成女右小臂")
|
||
},
|
||
handleFemaleBelly() {
|
||
if (!this.data.adultFemaleBackShow) {
|
||
// this.getSymptomByType("5")
|
||
console.log("这是成女腰部")
|
||
} else {
|
||
// this.getSymptomByType("5")
|
||
console.log("这是成女肚子")
|
||
}
|
||
},
|
||
handleFemaleAlvine() {
|
||
this.getSymptomByType("1")
|
||
console.log("这是成女小腹")
|
||
},
|
||
handleFemaleLeftHand() {
|
||
// this.getSymptomByType("6")
|
||
console.log("这是成女左手")
|
||
},
|
||
handleFemalePrivate() {
|
||
if (!this.data.adultFemaleBackShow) {
|
||
// this.getSymptomByType("7")
|
||
console.log("这是成女屁股")
|
||
} else {
|
||
this.getSymptomByType("2")
|
||
console.log("这是成女私处")
|
||
}
|
||
},
|
||
handleFemaleThigh() {
|
||
// this.getSymptomByType("8")
|
||
console.log("这是成大腿")
|
||
},
|
||
handleFemaleRightHand() {
|
||
// this.getSymptomByType("6")
|
||
console.log("这是成右手")
|
||
},
|
||
handleFemaleCalf() {
|
||
// this.getSymptomByType("8")
|
||
console.log("这是成女小腿")
|
||
},
|
||
handleFemaleFoot() {
|
||
// this.getSymptomByType("8")
|
||
console.log("这是成女脚")
|
||
},
|
||
|
||
//小孩子点击事件,四张图用一套点击事件,注意判断当前图片
|
||
handleBoyHead() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
console.log("这是儿童女头")
|
||
this.getSymptomByType("11")
|
||
// if (!this.data.girlBackShow) {//女孩身后
|
||
// console.log("女孩身后")
|
||
// }else{
|
||
// console.log("女孩前面")
|
||
// }
|
||
} else {
|
||
console.log("这是儿童男头")
|
||
this.getSymptomByType("4")
|
||
}
|
||
},
|
||
handleChildArm() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
console.log("这是儿童女左臂")
|
||
this.getSymptomByType("16")
|
||
// if (!this.data.girlBackShow) {//女孩身后
|
||
// console.log("女孩身后")
|
||
// }else{
|
||
// console.log("女孩前面")
|
||
// }
|
||
} else {
|
||
this.getSymptomByType("9")
|
||
console.log("这是儿童男左臂")
|
||
}
|
||
},
|
||
handleChildHand() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
console.log("这是儿童女左手")
|
||
this.getSymptomByType("16")
|
||
// if (!this.data.girlBackShow) {//女孩身后
|
||
// console.log("女孩身后")
|
||
// }else{
|
||
// console.log("女孩前面")
|
||
// }
|
||
} else {
|
||
console.log("这是儿童男左手")
|
||
this.getSymptomByType("9")
|
||
}
|
||
},
|
||
handleChildBelly() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
// console.log("这是儿童女肚子")
|
||
if (!this.data.girlBackShow) { //女孩身后
|
||
console.log("这是儿童女背部")
|
||
} else {
|
||
console.log("这是儿童女肚子")
|
||
this.getSymptomByType("14")
|
||
}
|
||
} else {
|
||
if (!this.data.boyBackShow) {
|
||
console.log("这是儿童男背部")
|
||
} else {
|
||
console.log("这是儿童男肚子")
|
||
this.getSymptomByType("7")
|
||
}
|
||
}
|
||
},
|
||
handleChildPrivate() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
if (!this.data.girlBackShow) { //女孩身后
|
||
console.log("这是儿童女屁股")
|
||
} else {
|
||
console.log("这是儿童女私处")
|
||
this.getSymptomByType("15")
|
||
}
|
||
} else {
|
||
if (!this.data.boyBackShow) {
|
||
console.log("这是儿童男屁股")
|
||
} else {
|
||
console.log("这是儿童男私处")
|
||
this.getSymptomByType("8")
|
||
}
|
||
}
|
||
},
|
||
handleChildRightArm() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
console.log("这是儿童女右臂")
|
||
this.getSymptomByType("16")
|
||
// if (!this.data.girlBackShow) {//女孩身后
|
||
// console.log("女孩身后")
|
||
// }else{
|
||
// console.log("女孩前面")
|
||
// }
|
||
} else {
|
||
console.log("这是儿童男右臂")
|
||
this.getSymptomByType("9")
|
||
}
|
||
},
|
||
handleChildRightHand() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
console.log("这是儿童女右手")
|
||
this.getSymptomByType("16")
|
||
// if (!this.data.girlBackShow) {//女孩身后
|
||
// console.log("女孩身后")
|
||
// }else{
|
||
// console.log("女孩前面")
|
||
// }
|
||
} else {
|
||
console.log("这是儿童男右手")
|
||
this.getSymptomByType("9")
|
||
}
|
||
},
|
||
handleChildLeg() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
console.log("这是儿童女腿")
|
||
this.getSymptomByType("16")
|
||
// if (!this.data.girlBackShow) {//女孩身后
|
||
// console.log("女孩身后")
|
||
// }else{
|
||
// console.log("女孩前面")
|
||
// }
|
||
} else {
|
||
console.log("这是儿童男腿")
|
||
this.getSymptomByType("9")
|
||
}
|
||
},
|
||
handleChildFoot() {
|
||
if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
|
||
console.log("这是儿童女脚")
|
||
this.getSymptomByType("16")
|
||
// if (!this.data.girlBackShow) {//女孩身后
|
||
// console.log("女孩身后")
|
||
// }else{
|
||
// console.log("女孩前面")
|
||
// }
|
||
} else {
|
||
console.log("这是儿童男脚")
|
||
this.getSymptomByType("9")
|
||
}
|
||
},
|
||
methods: {
|
||
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面加载
|
||
*/
|
||
onLoad(options) {
|
||
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面初次渲染完成
|
||
*/
|
||
onReady() {
|
||
wx.setNavigationBarTitle({
|
||
title: '智能导诊'
|
||
})
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面显示
|
||
*/
|
||
onShow() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面隐藏
|
||
*/
|
||
onHide() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面卸载
|
||
*/
|
||
onUnload() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 页面相关事件处理函数--监听用户下拉动作
|
||
*/
|
||
onPullDownRefresh() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 页面上拉触底事件的处理函数
|
||
*/
|
||
onReachBottom() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 用户点击右上角分享
|
||
*/
|
||
onShareAppMessage() {
|
||
|
||
}
|
||
}) |