This commit is contained in:
@zuopngfei 2025-08-01 13:22:34 +08:00
parent c288a88104
commit b6fb882a7e
3 changed files with 47 additions and 14 deletions

View File

@ -10,14 +10,7 @@ const app = getApp();
Page({ Page({
onShareAppMessage: function (res) {
return {
title: 'ECharts 可以在微信小程序中使用啦!',
path: '/pages/index/index',
success: function () {},
fail: function () {}
}
},
data: { data: {
ec: { ec: {
lazyLoad: true lazyLoad: true
@ -467,4 +460,17 @@ Page({
}); });
} }
}, },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
/**
* 用户点击右上角分享到朋友圈
*/
onShareTimeline() {
}
}); });

View File

@ -1,9 +1,6 @@
import request from '~/api/request'; import request from '~/api/request';
import useToastBehavior from '~/behaviors/useToast';
Page({ Page({
behaviors: [useToastBehavior],
data: { data: {
isLoad: true, isLoad: true,
service: [], service: [],
@ -45,8 +42,10 @@ Page({
risk_type: '' risk_type: ''
}, },
onLoad() { onLoad(options) {
// this.getServiceList(); if(options.scrm_userid){
this.scrmBindTag(options.scrm_userid)
}
}, },
handelClick(e) { handelClick(e) {
@ -134,6 +133,32 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: '/pages/emergency/index', url: '/pages/emergency/index',
}) })
},
// 通过分享页面设置手术时间标签
scrmBindTag(user_id){
request('patient/bind_tag', 'post', {
wx_user_id: user_id,
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
/**
* 用户点击右上角分享到朋友圈
*/
onShareTimeline() {
} }
}); });

View File

@ -2,5 +2,7 @@
"navigationStyle": "custom", "navigationStyle": "custom",
"usingComponents": { "usingComponents": {
"t-navbar": "tdesign-miniprogram/navbar/navbar" "t-navbar": "tdesign-miniprogram/navbar/navbar"
} },
"enableShareAppMessage": true,
"enableShareTimeline": true
} }