[新增]企业主页,企业活动

This commit is contained in:
zdx
2020-12-28 10:38:29 +08:00
parent d3fa1d743c
commit 3a559141d1
106 changed files with 4587 additions and 164 deletions

View 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]
}
}
})

View File

@@ -0,0 +1,6 @@
{
"usingComponents": {},
"navigationBarTitleText": "提交成功",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#378fff"
}

View File

@@ -0,0 +1,13 @@
<view class="content">
<image class="active_cover" src="/static/images/paysuccess.png" mode="aspectFill"></image>
<view class="txt1">支付成功</view>
<view class="txt3" catchtap="beSure">查看订单</view>
<view class="share_content">
<image src="{{info.pictures[0]}}" class="share_bg" mode="aspectFill"></image>
<view class="title">{{info.title}}</view>
<view class="des">{{info.city}}/{{info.category}}</view>
<button class="bottom" open-type='share'>
<image src="/static/images/iconshare.png" class="icon_share" mode="widthFix" />分享项目给好友
</button>
</view>
</view>

View File

@@ -0,0 +1,110 @@
page {
height: 100%;
}
.content {
padding-top: 160rpx;
width: 100%;
height: 100%;
background-color: #fff;
position: relative;
z-index: 3;
border-radius: 20rpx;
text-align: center;
padding-bottom: 30rpx;
box-sizing: border-box;
}
.content .active_cover {
width: 150rpx;
height: 150rpx;
border-radius: 50%;
}
.content .txt1 {
font-size: 36rpx;
font-weight: 600;
color: #333;
padding-top: 40rpx;
}
.content .txt2 {
padding-top: 20rpx;
font-size: 24rpx;
color: #999;
}
.content .txt3 {
font-size: 28rpx;
color: #fff;
background-color: #378fff;
font-weight: 600;
width: 70%;
margin-left: 15%;
box-sizing: border-box;
padding: 20rpx 30rpx;
border-radius: 50rpx;
margin-top: 80rpx;
}
.content .txt4 {
font-size: 26rpx;
color: #999;
padding: 20rpx 30rpx;
}
/* 分享 */
.share_content {
width: 86%;
height: 400rpx;
position: relative;
margin-left: 7%;
margin-top: 40rpx;
border-radius: 2rpx;
overflow: hidden;
background: rgba(0, 0, 0, 0.3);
}
.share_bg {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.share_content .title{
margin-top: 100rpx;
text-align: left;
color: #fff;
font-size: 34rpx;
padding: 0 30rpx;
}
.share_content .des{
color: #fff;
text-align: left;
font-size: 24rpx;
margin-top: 10rpx;
padding: 0 30rpx;
}
.share_content .bottom{
position: absolute;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 1);
color: #Fff;
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
box-sizing: border-box;
font-size: 28rpx;
padding: 20rpx 0;
}
.share_content .icon_share{
width: 30rpx;
margin-right: 10rpx;
}