37 lines
895 B
JavaScript
37 lines
895 B
JavaScript
Page({
|
||
data: {
|
||
title: '问题解决服务',
|
||
description: '提供专业的1对1远程技术支持,帮您解决项目中遇到的BUG和运行错误。'
|
||
},
|
||
|
||
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/problem/problem',
|
||
imageUrl: '' // 微信会自动使用页面截图
|
||
});
|
||
});
|
||
});
|
||
},
|
||
|
||
onShareTimeline() {
|
||
return {
|
||
title: this.data.title,
|
||
query: '',
|
||
imageUrl: '' // 微信会自动使用页面截图
|
||
}
|
||
}
|
||
})
|