init
This commit is contained in:
37
pages/subpages/services/urgent/urgent.js
Normal file
37
pages/subpages/services/urgent/urgent.js
Normal file
@@ -0,0 +1,37 @@
|
||||
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: '' // 微信会自动使用页面截图
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user