|
|
@@ -1,6 +1,8 @@
|
|
|
import PageContainerBehavior from "../../core/behavior/page-container.behavior";
|
|
|
import { DraggableSheetBehavior, getDraggableSheetContext } from "../../core/behavior/draggableSheet.behavior";
|
|
|
import { login } from "../../lib/logic";
|
|
|
+import { useRouteQuery } from "../../utils/route-query";
|
|
|
+import { appUpdate } from "../../lib/wx/update";
|
|
|
|
|
|
const { shared, Easing, timing } = wx.worklet
|
|
|
const offset = shared(0);
|
|
|
@@ -17,7 +19,12 @@ Page({
|
|
|
PageContainerBehavior,
|
|
|
DraggableSheetBehavior('.draggable-sheet-wrapper'),
|
|
|
],
|
|
|
- onLoad() {
|
|
|
+ onLoad(options) {
|
|
|
+ appUpdate();
|
|
|
+
|
|
|
+ const query = useRouteQuery(options.scene!);
|
|
|
+ if (query.ys) wx.setStorageSync('doctorId', query.ys);
|
|
|
+
|
|
|
this.initFabAnimated();
|
|
|
},
|
|
|
onShow() {
|
|
|
@@ -25,7 +32,7 @@ Page({
|
|
|
this.load();
|
|
|
},
|
|
|
onHide() {
|
|
|
- wx.hideShareMenu({menus}).then();
|
|
|
+ wx.hideShareMenu({ menus }).then();
|
|
|
offset.value = timing(0, { duration: 100, easing: (<any>Easing).linear }, () => { 'worklet' });
|
|
|
},
|
|
|
onShareAppMessage(opts): WechatMiniprogram.Page.ICustomShareContent {
|