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({
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() {
}
});

View File

@ -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() {
}
});

View File

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