diff --git a/src/patient/pages/enterInfo/index.ts b/src/patient/pages/enterInfo/index.ts index f8ba17a..2512901 100644 --- a/src/patient/pages/enterInfo/index.ts +++ b/src/patient/pages/enterInfo/index.ts @@ -74,12 +74,13 @@ Page({ }, // 同步 picker 的数组与索引 _syncPickerData() { - const { CurrentTreatmentPlanList, currentTreatmentPlan, TeprotumumabInfusionCountList, teprotumumabInfusionCount } = this.data + const { CurrentTreatmentPlanList, currentTreatmentPlan, TeprotumumabInfusionCountList, teprotumumabInfusionCount } = + this.data const cpKeys = Object.keys(CurrentTreatmentPlanList) - const cpNames = cpKeys.map(k => CurrentTreatmentPlanList[k]) + const cpNames = cpKeys.map((k) => CurrentTreatmentPlanList[k]) const cpIndex = cpKeys.indexOf(String(currentTreatmentPlan)) const icKeys = Object.keys(TeprotumumabInfusionCountList) - const icNames = icKeys.map(k => TeprotumumabInfusionCountList[k]) + const icNames = icKeys.map((k) => TeprotumumabInfusionCountList[k]) const icIndex = icKeys.indexOf(String(teprotumumabInfusionCount)) this.setData({ currentTreatmentPlanNames: cpNames, @@ -283,8 +284,8 @@ Page({ }) }, handleNext() { - const { name, gender, ageRange, relationType, diseaseStage } = this.data - if (!name || !gender || !ageRange || !relationType || !diseaseStage) { + const { name, gender, ageRange, relationType } = this.data + if (!name || !gender || !ageRange || !relationType) { wx.showToast({ title: '完善个人信息,可获得【医生】更多关注', icon: 'none' }) return } @@ -315,8 +316,7 @@ Page({ }, handleSubmit() { app.mpBehavior({ PageName: 'BTN_PatientInfoComfirm' }) - if (this.data.submiting) - return + if (this.data.submiting) return const { name, gender, @@ -343,17 +343,14 @@ Page({ } = this.data const { registrationSource, registChannel, regBusinessId, WorkerId, IsAliQiWei } = app.globalData const { doctorId, inviteChan, proMethodId } = app.globalData.scene - const { showTeprotumumabFields } = this.data - if (!name || !gender || !ageRange || !relationType || !diseaseStage || !diseasePeriod - || !firstDiagnosisDate || !isRelapse || !currentTreatmentPlan || !Object.values(pastTreatmentPlan).some(v => v) - || (showTeprotumumabFields && (!teprotumumabFirstInfusionDate || !teprotumumabInfusionCount))) { + if (!name || !gender || !ageRange) { wx.showToast({ title: '完善个人信息,可获得【医生】更多关注', icon: 'none' }) return } const backPage = app.globalData.backPage - const navUrl - = typeof backPage === 'string' && backPage.includes('liveResult') ? backPage : '/patient/pages/certReslove/index' + const navUrl = + typeof backPage === 'string' && backPage.includes('liveResult') ? backPage : '/patient/pages/certReslove/index' this.setData({ submiting: true, @@ -384,7 +381,9 @@ Page({ FirstDiagnosisDate: firstDiagnosisDate, IsRelapse: isRelapse, CurrentTreatmentPlan: currentTreatmentPlan, - PastTreatmentPlan: Object.keys(pastTreatmentPlan).filter(k => pastTreatmentPlan[k]).join(','), + PastTreatmentPlan: Object.keys(pastTreatmentPlan) + .filter((k) => pastTreatmentPlan[k]) + .join(','), TeprotumumabFirstInfusionDate: teprotumumabFirstInfusionDate || '', TeprotumumabInfusionCount: teprotumumabInfusionCount || '', @@ -414,8 +413,8 @@ Page({ handleVisitors() { app.mpBehavior({ PageName: 'BTN_PatientInfoSkip' }) const backPage = app.globalData.backPage - const navUrl - = typeof backPage === 'string' && backPage.includes('liveResult') + const navUrl = + typeof backPage === 'string' && backPage.includes('liveResult') ? backPage.replace('liveResult', 'liveDetail') : '/patient/pages/index/index?visitors=1' wx.ajax({ diff --git a/src/patient/pages/enterInfo/index.wxml b/src/patient/pages/enterInfo/index.wxml index 8688b4d..c2a110b 100644 --- a/src/patient/pages/enterInfo/index.wxml +++ b/src/patient/pages/enterInfo/index.wxml @@ -54,7 +54,7 @@ {{item}} - 您的甲状腺眼病分级 + 您的甲状腺眼病分级 - 您的甲状腺眼病分期 + 您的甲状腺眼病分期 - 首次确诊甲状腺眼病的日期 + 首次确诊甲状腺眼病的日期 {{firstDiagnosisDate}} @@ -89,7 +89,7 @@ - 当前是否为复发 + 当前是否为复发 - 您正在进行的治疗方案 - + 您正在进行的治疗方案 + + {{CurrentTreatmentPlanList[currentTreatmentPlan] || ''}} - 您的既往治疗方案(多选) + 您的既往治疗方案(多选) - 替妥尤首次输注时间 - + 替妥尤首次输注时间 + {{teprotumumabFirstInfusionDate}} - 替妥尤已输注的次数 - + 替妥尤已输注的次数 + - {{TeprotumumabInfusionCountList[teprotumumabInfusionCount] || ''}} + + {{TeprotumumabInfusionCountList[teprotumumabInfusionCount] || ''}} +