Explorar el Código

修改扫码进注册页

张田田 hace 10 meses
padre
commit
472c0bda21
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      miniprogram/pages/home/home.ts

+ 3 - 0
miniprogram/pages/home/home.ts

@@ -235,6 +235,9 @@ Page({
       // if (!patient) await toCertificationPage();
       // if (!patient) await toCertificationPage();
       if (!patient) {
       if (!patient) {
         console.log("没有患者");
         console.log("没有患者");
+        if(wx.getStorageSync("doctorId")){
+          toCertificationPage();
+        }
       }else {
       }else {
         this.setData({ patient });
         this.setData({ patient });
         this.observerPatient(patient);
         this.observerPatient(patient);