Explorar o código

修改扫码进注册页

张田田 hai 11 meses
pai
achega
472c0bda21
Modificáronse 1 ficheiros con 3 adicións e 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) {
         console.log("没有患者");
+        if(wx.getStorageSync("doctorId")){
+          toCertificationPage();
+        }
       }else {
         this.setData({ patient });
         this.observerPatient(patient);