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

37 lines
922 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: '提供专业的服务器环境安装和项目部署服务包括JDK、MySQL、Nginx等软件安装以及源码部署。'
},
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/online/online',
imageUrl: '' // 微信会自动使用页面截图
});
});
});
},
onShareTimeline() {
return {
title: this.data.title,
query: '',
imageUrl: '' // 微信会自动使用页面截图
}
}
})