[新增]企业主页,企业活动
This commit is contained in:
35
pages/home/projectSuccess/projectSuccess.js
Normal file
35
pages/home/projectSuccess/projectSuccess.js
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
info:{},//产品基本信息
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
wx.$api.companyModule.crowdfundsDetail(options.crowdfund_id).then(res => {
|
||||
this.setData({
|
||||
info: res,
|
||||
})
|
||||
}).catch(res => {
|
||||
wx.navigateBack({})
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
return {
|
||||
title: '您的好友邀请你一起',
|
||||
path: '/pages/companyModule/projectDetail/projectDetail?id=6',
|
||||
imageUrl: this.data.info.pictures[0]
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user