|
|
@@ -1,4 +1,4 @@
|
|
|
-import { login } from "./lib/logic"
|
|
|
+import { login } from "./lib/logic";
|
|
|
import { appUpdate } from "./lib/wx/update";
|
|
|
import { useRouteQuery } from "./utils/route-query";
|
|
|
// import { Get } from "./lib/request/method";
|
|
|
@@ -6,16 +6,18 @@ import { useRouteQuery } from "./utils/route-query";
|
|
|
// app.ts
|
|
|
App<IAppOption>({
|
|
|
globalData: {
|
|
|
- doctorId: '',
|
|
|
- patientId: '',
|
|
|
+ doctorId: "",
|
|
|
+ patientId: "",
|
|
|
dictionaries: [],
|
|
|
},
|
|
|
onLaunch(options: WechatMiniprogram.App.LaunchShowOption) {
|
|
|
appUpdate(true);
|
|
|
const query = useRouteQuery(options.query.scene);
|
|
|
+ const scene = decodeURIComponent(query.scene);
|
|
|
+ wx.setStorageSync("scene", scene);
|
|
|
const doctorId = query.ys;
|
|
|
this.globalData.doctorId = doctorId;
|
|
|
- wx.setStorageSync('doctorId', doctorId);
|
|
|
+ wx.setStorageSync("doctorId", doctorId);
|
|
|
login();
|
|
|
},
|
|
|
-})
|
|
|
+});
|