Files
fesatcodeMiniApp/pages/subpages/services/document/document.js
王鹏 0c2edb6036 init
2025-08-14 14:52:01 +08:00

47 lines
1008 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Page({
data: {
// 页面数据
},
onLoad() {
// 页面加载时的逻辑
},
contactService() {
wx.showModal({
title: '联系客服',
content: '请添加客服微信XXXXX替换为实际客服微信号',
showCancel: false,
success(res) {
if (res.confirm) {
// 可以在这里添加复制微信号到剪贴板的功能
wx.setClipboardData({
data: 'XXXXX',
success(res) {
wx.showToast({
title: '微信号已复制',
icon: 'success'
});
}
});
}
}
});
},
onShareAppMessage() {
return {
title: '文档服务',
path: '/pages/subpages/services/document/document',
imageUrl: '' // 微信会自动使用页面截图
};
},
onShareTimeline() {
return {
title: '文档服务',
query: '',
imageUrl: '' // 微信会自动使用页面截图
};
}
});