diff --git a/pages/HealthExaminationApp/appointment/appointment.vue b/pages/HealthExaminationApp/appointment/appointment.vue index 225d8d4..e2d6907 100644 --- a/pages/HealthExaminationApp/appointment/appointment.vue +++ b/pages/HealthExaminationApp/appointment/appointment.vue @@ -160,9 +160,10 @@ export default { methods: { // 获取医院列表 app/gethospital getHospitalList() { + const cry = new Crypoto() const params = { token: this.token, - idcard: this.idcard + idcard: cry.encrypt(this.idcard) } console.log('🚀 ~ getHospitalList ~ params:', params) uni.request({ @@ -178,7 +179,6 @@ export default { console.log('🚀 ~ getHospitalList ~ res:', res) if (res.res == 1) { this.hospitalList = res.obj - // this.hospitalInfo = res.obj[0] // this.columns 双层数组, 将医院列表push到columns中 this.columns.push(this.hospitalList) console.log('🚀 ~ getHospitalList ~ this.hospitalList:', this.hospitalList) @@ -191,9 +191,10 @@ export default { }, // 获取检查类型 getCheckType() { + const cry = new Crypoto() const params = { token: this.token, - idcard: this.idcard + idcard: cry.encrypt(this.idcard) } console.log('🚀 ~ getCheckType ~ params:', params) uni.request({ @@ -329,11 +330,10 @@ export default { const params = { hospitalId: this.hospitalInfo.id, setMealId: this.setMealId, - // checkId: '1', phyAppontTime: this.healthTime, setMealType: '2', combName: this.checkTypeContent, - token: this.token + // token: this.token } console.log('🚀 ~ handleSave ~ params:', params) console.log('🚀 ~ handleSave ~ params:', cry.encrypt(JSON.stringify(params))) @@ -341,8 +341,8 @@ export default { uni.request({ url: config.tjBaseUrl + '/app/phyappoint', method: 'post', - // data: { encryptedData: params, token: this.token }, - data: params, + data: { encryptedData: cry.encrypt(JSON.stringify(params)), token: this.token }, + // data: params, header: { 'Content-Type': 'application/x-www-form-urlencoded', token: this.token diff --git a/pages/HealthExaminationApp/index/index.vue b/pages/HealthExaminationApp/index/index.vue index cc301d7..a0cc650 100644 --- a/pages/HealthExaminationApp/index/index.vue +++ b/pages/HealthExaminationApp/index/index.vue @@ -71,6 +71,7 @@