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

37 lines
924 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等软件安装和项目的完整部署。'
},
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/deploy/deploy',
imageUrl: '' // 微信会自动使用页面截图
});
});
});
},
onShareTimeline() {
return {
title: this.data.title,
query: '',
imageUrl: '' // 微信会自动使用页面截图
}
}
})