37 lines
933 B
JavaScript
37 lines
933 B
JavaScript
Page({
|
|
data: {
|
|
title: '项目定制服务',
|
|
description: '提供专业的项目定制开发服务,包括需求分析、开发实现、环境部署和售后服务的一站式解决方案。'
|
|
},
|
|
|
|
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/custom/custom',
|
|
imageUrl: '' // 微信会自动使用页面截图
|
|
});
|
|
});
|
|
});
|
|
},
|
|
|
|
onShareTimeline() {
|
|
return {
|
|
title: this.data.title,
|
|
query: '',
|
|
imageUrl: '' // 微信会自动使用页面截图
|
|
}
|
|
}
|
|
})
|