diff --git a/pages/home/index.js b/pages/home/index.js index b45107f..13a3ad3 100644 --- a/pages/home/index.js +++ b/pages/home/index.js @@ -10,14 +10,7 @@ const app = getApp(); Page({ - onShareAppMessage: function (res) { - return { - title: 'ECharts 可以在微信小程序中使用啦!', - path: '/pages/index/index', - success: function () {}, - fail: function () {} - } - }, + data: { ec: { lazyLoad: true @@ -467,4 +460,17 @@ Page({ }); } }, + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + }, + + /** + * 用户点击右上角分享到朋友圈 + */ + onShareTimeline() { + + } }); \ No newline at end of file diff --git a/pages/my/index.js b/pages/my/index.js index f7f0164..5f016c3 100644 --- a/pages/my/index.js +++ b/pages/my/index.js @@ -1,9 +1,6 @@ import request from '~/api/request'; -import useToastBehavior from '~/behaviors/useToast'; Page({ - behaviors: [useToastBehavior], - data: { isLoad: true, service: [], @@ -45,8 +42,10 @@ Page({ risk_type: '' }, - onLoad() { - // this.getServiceList(); + onLoad(options) { + if(options.scrm_userid){ + this.scrmBindTag(options.scrm_userid) + } }, handelClick(e) { @@ -134,6 +133,32 @@ Page({ wx.navigateTo({ url: '/pages/emergency/index', }) + }, + + + // 通过分享页面设置手术时间标签 + + scrmBindTag(user_id){ + request('patient/bind_tag', 'post', { + wx_user_id: user_id, + }) + }, + + + + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + }, + + /** + * 用户点击右上角分享到朋友圈 + */ + onShareTimeline() { + } }); diff --git a/pages/my/index.json b/pages/my/index.json index 1a94c57..f5d81dc 100644 --- a/pages/my/index.json +++ b/pages/my/index.json @@ -2,5 +2,7 @@ "navigationStyle": "custom", "usingComponents": { "t-navbar": "tdesign-miniprogram/navbar/navbar" - } + }, + "enableShareAppMessage": true, + "enableShareTimeline": true }