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

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,28 @@
Page({
data: {
lists: [], //列表
crowdfund_id:''
},
/**
* 页面的初始数据
*/
onLoad(e) {
this.setData({
lists: JSON.parse(e.lists),
crowdfund_id:e.crowdfund_id
})
},
/**
* 跳转到确认订单
*/
beSure(e) {
console.log('besure');
wx.navigateTo({
url: '../beSureOrder/beSureOrder?crowdfund_item_id='+e.currentTarget.dataset.id+'&crowdfund_id='+this.data.crowdfund_id,
})
},
})

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "项目回报",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#378fff"
}

View File

@@ -0,0 +1,40 @@
<scroll-view scroll-y="true" style="height: {{height+'px'}};" class="scroll"
scroll-into-view="{{ classificationIdNav }}" scroll-with-animation="true">
<!-- 项目回报 -->
<view class="project_detail_html" id='classificationIdNav2' wx:if='{{lists.length>0}}'>
<view class="project_list" wx:for='{{lists}}'>
<view class="title">{{item.title}} <span>¥{{item.price}}</span></view>
<view class="fast">快速发货</view>
<view class="project_item">
<view class="item_title">回报内容</view>
<view class="item_content">
<view class="des">{{item.remark}}</view>
<view class="imglist">
<image wx:for='{{item.pictures}}' wx:for-item='it' src="{{it}}" mode="aspectFill"></image>
</view>
</view>
</view>
<view class="project_item">
<view class="item_title">回报时间</view>
<view class="item_content">
<view class="des">{{item.time}}</view>
</view>
</view>
<view class="project_item">
<view class="item_title">配送说明</view>
<view class="item_content">
<view class="des">{{item.shipping}}</view>
</view>
</view>
<view class="seeAll">
{{item.all_users}}人已支持/{{item.quantity}} <span catchtap="beSure" data-id='{{item.crowdfund_item_id}}'>立即支持</span>
</view>
</view>
</view>
<view class="no_list" wx:elif='{{lists.length>0}}'>没有更多~</view>
<view wx:else class="no_list">
<image src="/static/images/no_list.png" mode="widthFix"></image>
暂无数据
</view>
</scroll-view>

View File

@@ -0,0 +1,120 @@
.project_detail_html {
padding: 20rpx;
background-color: #fff;
padding-top: 30rpx;
}
/* 项目回报列表 */
.project_list {
width: 100%;
background-color: #ffffff;
border-radius: 10rpx;
box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.2);
padding: 30rpx 20rpx 20rpx 20rpx;
margin-bottom: 30rpx;
box-sizing: border-box;
}
.project_list .title {
font-size: 34rpx;
font-weight: bold;
color: #333;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
}
.project_list .fast {
font-size: 26rpx;
color: #999;
border: solid 1rpx #999;
display: inline-block;
padding: 2rpx 12rpx;
border-radius: 6rpx;
margin-top: 13rpx;
}
.project_list .des {
font-size: 28rpx;
color: #333;
}
.project_list .imglist {
display: flex;
flex-direction: row;
justify-content: start;
align-items: center;
box-sizing: border-box;
flex-wrap: wrap;
}
.project_list .imglist image {
width: 150rpx;
height: 150rpx;
margin-top: 10rpx;
margin-right: 10rpx;
}
.project_list .seeAll {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding-top: 20rpx;
font-size: 26rpx;
color: #999;
}
.project_list .seeAll span {
background-color: #378fff;
color: #fff;
padding: 10rpx 30rpx;
font-size: 24rpx;
border-radius: 10rpx;
}
.scroll {
box-sizing: border-box;
}
.project_item{
display: flex;
flex-direction: row;
justify-content: start;
align-items: flex-start;
box-sizing: border-box;
padding: 20rpx 0;
border-bottom: solid 2rpx #f7f7f7;
}
.item_title{
color: #999;
font-weight: normal;
font-size: 28rpx;
margin-right: 20rpx;
}
.item_content{
flex: 1;
}
/* 没有列表 */
.no_list{
color: #999;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-sizing: border-box;
padding-top: 100rpx;
font-size: 26rpx;
}
.no_list image{
width: 200rpx;
margin-bottom: 20rpx;
}