Ver Fonte

修改扫码进注册页

张田田 há 1 ano atrás
pai
commit
472c0bda21
1 ficheiros alterados com 3 adições e 0 exclusões
  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);