Commit 8311ec21 by chenwq

售后众筹

1 parent 9c7b7283
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
width: 256rpx; width: 256rpx;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
border: 1.6rpx solid #DDDDDD;
border-radius: 12rpx;
font-size: 24rpx; font-size: 24rpx;
color: #5A6066; color: #5A6066;
text-align: center; text-align: center;
......
...@@ -67,13 +67,20 @@ Component({ ...@@ -67,13 +67,20 @@ Component({
if (searchForm.sceneType == 3) { if (searchForm.sceneType == 3) {
curInfo?.merchantDataList.length && curInfo?.merchantDataList.forEach(item => { curInfo?.merchantDataList.length && curInfo?.merchantDataList.forEach(item => {
let productCodes = item.productCodes || [] let productCodes = item.productCodes || []
item.activityTotal = 0
item.orderTotal = 0
item?.curMonthTotalData?.length && item?.curMonthTotalData?.forEach(subItem => { item?.curMonthTotalData?.length && item?.curMonthTotalData?.forEach(subItem => {
subItem.isShow = productCodes.includes(subItem.productCode) subItem.isShow = productCodes.includes(subItem.productCode)
if(subItem.isShow) {
item.activityTotal = item.activityTotal + subItem.activityTotal
item.orderTotal = item.orderTotal + subItem.orderTotal
}
}) })
}) })
this.setData({ this.setData({
curInfo: curInfo curInfo: curInfo
}) })
console.log(curInfo)
} }
}, },
dealData() { dealData() {
......
...@@ -195,6 +195,15 @@ ...@@ -195,6 +195,15 @@
align-items: center; align-items: center;
margin: 8rpx 0; margin: 8rpx 0;
.crowdfund-total {
height: 40rpx;
line-height: 40rpx;
font-size: 22rpx;
color: #B6B7B7;
margin: 0 40rpx;
flex-shrink: 1;
}
.com-month { .com-month {
width: 66rpx; width: 66rpx;
height: 40rpx; height: 40rpx;
...@@ -209,6 +218,10 @@ ...@@ -209,6 +218,10 @@
height: 0.3rpx; height: 0.3rpx;
background-color: #F2F3F7; background-color: #F2F3F7;
} }
.crowdfund.line {
width: calc((100% - 260rpx) / 2);
}
} }
.cur-block { .cur-block {
...@@ -231,9 +244,13 @@ ...@@ -231,9 +244,13 @@
// } // }
} }
.list-content.crowdfund { .list-content.crowdfund-box {
padding: 8rpx 24rpx 36rpx;
.flex-wrap {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
}
.crowdfund-item { .crowdfund-item {
width: 50%; width: 50%;
......
...@@ -42,11 +42,18 @@ ...@@ -42,11 +42,18 @@
<view class="num-blue">¥{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view> <view class="num-blue">¥{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view>
</view> </view>
<!-- 内容 - 售后众筹 --> <!-- 内容 - 售后众筹 -->
<view wx:if="{{sceneObj.name == 'crowdfund'}}" class="list-content crowdfund"> <view wx:if="{{sceneObj.name == 'crowdfund'}}" class="list-content crowdfund-box">
<view class="com-box">
<view class="line crowdfund"></view>
<view class="crowdfund-total">{{item.activityTotal}}场 | {{item.orderTotal}}单</view>
<view class="line crowdfund"></view>
</view>
<view class="flex-wrap">
<view wx:for="{{item.curMonthTotalData}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="crowdfund-item"> <view wx:for="{{item.curMonthTotalData}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="crowdfund-item">
<view wx:if="{{subItem.isShow}}"> <view wx:if="{{subItem.isShow}}">
<view class="label">{{subItem.productName}}</view> <view class="label">{{subItem.productName}}</view>
<view class="num">{{subItem.activityTotal || 0}}场/{{subItem.orderTotal || 0}}单/¥{{filter.money_three_for_two_thousands(subItem.bizTotal || 0)}}</view> <view class="num">{{subItem.activityTotal || 0}}场<text class="num-grey">/</text>{{subItem.orderTotal || 0}}单<text class="num-grey">/</text>¥{{filter.money_three_for_two_thousands(subItem.bizTotal || 0)}}</view>
</view>
</view> </view>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!