Compare commits

..

No commits in common. '7ec59233406a0d69eea1f2bf9efd48359e026ced' and '696daff2e37b215b6ac54eaf7c8cf7ee0f2b0997' have entirely different histories.

@ -22,7 +22,7 @@ class PatientLoginView(View): # 患者登录
request.session['patient'] = patient_list[0].name request.session['patient'] = patient_list[0].name
return HttpResponseRedirect("/patientcenter/") return HttpResponseRedirect("/patientcenter/")
else: else:
return HttpResponseRedirect("/patientlogin/") return HttpResponseRedirect("/patientlogin")
class DoctorLoginView(View): class DoctorLoginView(View):
def get(self, request): def get(self, request):
@ -36,7 +36,7 @@ class DoctorLoginView(View):
request.session['doctor_image'] = str(doctor_list[0].img) request.session['doctor_image'] = str(doctor_list[0].img)
return HttpResponseRedirect("/doctorcenter/") return HttpResponseRedirect("/doctorcenter/")
else: else:
return HttpResponseRedirect("/doctorlogin/") return HttpResponseRedirect("/doctorlogin")
class PatientRegisterView(View): # 患者注册 class PatientRegisterView(View): # 患者注册
def get(self, request): def get(self, request):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

@ -43,8 +43,8 @@
} }
.service-box { .service-box {
width: 600px; width: 200px;
height: 600px; height: 200px;
border: 3px solid #ccc; border: 3px solid #ccc;
border-radius: 4px; border-radius: 4px;
text-align: center; text-align: center;

Loading…
Cancel
Save