[新增]企业主页,企业活动
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]
|
||||
}
|
||||
}
|
||||
})
|
||||
6
pages/home/projectSuccess/projectSuccess.json
Normal file
6
pages/home/projectSuccess/projectSuccess.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "提交成功",
|
||||
"navigationBarTextStyle": "white",
|
||||
"navigationBarBackgroundColor": "#378fff"
|
||||
}
|
||||
13
pages/home/projectSuccess/projectSuccess.wxml
Normal file
13
pages/home/projectSuccess/projectSuccess.wxml
Normal 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>
|
||||
110
pages/home/projectSuccess/projectSuccess.wxss
Normal file
110
pages/home/projectSuccess/projectSuccess.wxss
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user