|
@@ -5,6 +5,8 @@ import { login } from "../../lib/logic";
|
|
|
const { shared, Easing, timing } = wx.worklet
|
|
const { shared, Easing, timing } = wx.worklet
|
|
|
const offset = shared(0);
|
|
const offset = shared(0);
|
|
|
|
|
|
|
|
|
|
+const menus = ['shareAppMessage', 'shareTimeline'];
|
|
|
|
|
+
|
|
|
// pages/home/home.ts
|
|
// pages/home/home.ts
|
|
|
import { getPatients, healthReportMethod, healthIndexMethod, getSolarTerms, getShortScienceList, getPatientDescription } from "./request";
|
|
import { getPatients, healthReportMethod, healthIndexMethod, getSolarTerms, getShortScienceList, getPatientDescription } from "./request";
|
|
|
import { toCertificationPage } from "./router";
|
|
import { toCertificationPage } from "./router";
|
|
@@ -16,16 +18,14 @@ Page({
|
|
|
DraggableSheetBehavior('.draggable-sheet-wrapper'),
|
|
DraggableSheetBehavior('.draggable-sheet-wrapper'),
|
|
|
],
|
|
],
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
- // wx.showShareMenu({
|
|
|
|
|
- // withShareTicket: true,
|
|
|
|
|
- // menus: ['shareAppMessage', 'shareTimeline']
|
|
|
|
|
- // });
|
|
|
|
|
this.initFabAnimated();
|
|
this.initFabAnimated();
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
+ wx.showShareMenu({ withShareTicket: true, menus }).then();
|
|
|
this.load();
|
|
this.load();
|
|
|
},
|
|
},
|
|
|
onHide() {
|
|
onHide() {
|
|
|
|
|
+ wx.hideShareMenu({menus}).then();
|
|
|
offset.value = timing(0, { duration: 100, easing: (<any>Easing).linear }, () => { 'worklet' });
|
|
offset.value = timing(0, { duration: 100, easing: (<any>Easing).linear }, () => { 'worklet' });
|
|
|
},
|
|
},
|
|
|
onShareAppMessage(opts): WechatMiniprogram.Page.ICustomShareContent {
|
|
onShareAppMessage(opts): WechatMiniprogram.Page.ICustomShareContent {
|