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

37 lines
930 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: {
title: '环境安装服务',
description: '提供专业的环境安装服务包括IDEA、MySQL、JDK、Node、Navicat等软件的一对一远程安装服务。'
},
onShareAppMessage() {
return new Promise((resolve) => {
wx.showLoading({
title: '生成分享图片...'
});
// 获取页面截图
wx.createSelectorQuery()
.select('.content')
.fields({
size: true,
scrollOffset: true
})
.exec((res) => {
wx.hideLoading();
resolve({
title: this.data.title,
path: '/pages/subpages/services/environment/environment',
imageUrl: '' // 微信会自动使用页面截图
});
});
});
},
onShareTimeline() {
return {
title: this.data.title,
query: '',
imageUrl: '' // 微信会自动使用页面截图
}
}
})