Compare commits

...

2 Commits

Author SHA1 Message Date
wzy 7ec5923340 ’0605‘
8 months ago
wzy 3cc52a4e6b '0605'
8 months ago

@ -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.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

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

Loading…
Cancel
Save