Bläddra i källkod

服务包标题显示修复

张田田 7 månader sedan
förälder
incheckning
04e17a1a36
2 ändrade filer med 2 tillägg och 16 borttagningar
  1. 0 1
      miniprogram/app.ts
  2. 2 15
      miniprogram/module/care/pages/careDetail/careDetail.ts

+ 0 - 1
miniprogram/app.ts

@@ -11,7 +11,6 @@ App<IAppOption>({
     dictionaries: [],
   },
   onLaunch(options: WechatMiniprogram.App.LaunchShowOption) {
-    console.log('log:AppLaunch-->', options);
     appUpdate(true);
     const query = useRouteQuery(options.query.scene);
     const doctorId = query.ys;

+ 2 - 15
miniprogram/module/care/pages/careDetail/careDetail.ts

@@ -1,4 +1,3 @@
-import { show } from "tdesign-miniprogram/miniprogram_dist/action-sheet/show";
 import { Post } from "../../../../lib/request/method";
 import { fromHealthReportSymptom } from "../../../../utils/util";
 Page({
@@ -8,26 +7,15 @@ Page({
       this.getCareDetail(Number(options.id));
     }
     // 设置页面标题
-    if (options.name) {
+    if (options.name && options.name !== "null") {
       this.setData({
         name: options.name,
       });
-    } else {
-      this.setData({
-        name: "服务包详情",
-      });
     }
-
-    // const patientName = wx.getStorageSync("patientName");
-    // if (patientName) {
-    //   this.setData({
-    //     patientName,
-    //   });
-    // }
   },
   data: {
     address: "",
-    name: "",
+    name: "服务包详情",
     // patientName: "",
     showAddress: false,
     careDetail: {},
@@ -305,7 +293,6 @@ Page({
               healthReports: processedReports,
             });
 
-            console.log(this.data.healthReports, "healthReports");
           }
         }
         this.setData({