Commit 2f0866ad by chenwq

众筹样式,数据拼凑

1 parent 7c046a4e
......@@ -3,7 +3,7 @@
<view class="busi-card">
<view class="title-box">
<glsx-image src="output/icon-head.png" class="icon" />
<view class="title">{{info.merchantName4s || ''}}</view>
<view class="title">{{info.merchantName || info.merchantName4s || ''}}</view>
</view>
<view class="content">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="content-item">
......
......@@ -115,6 +115,7 @@ Component({
_list.forEach(n => {
let _activityList = n?.activityList || []
_activityList.forEach(k => {
k.merchantName = item.merchantActivityRevenueDTO.merchantName
// 时间
k.time = k.startTime.slice(0, 16).replace(/-/g, '.') + ' - ' + k.endTime.slice(0, 16).replace(/-/g, '.')
let startTimeFormat = k.startTime.slice(0, 10).replace(/-/g, '/') + ' 00:00:00'
......@@ -168,23 +169,39 @@ Component({
outputApi.getBusiStatistics(params).then(res => {
this.resetBusiData()
// console.log(res, '汇总----')
if(isReset) {
if (isReset) {
this.setData({
busiScrollTop: 0,
triggered: false
busiScrollTop: 0
})
}
this.setData({
triggered: false
})
if (formData.sceneCode == 'SC004') {
this.dealCrowdObj(res)
} else {
if(formData.sceneCode == 'SC002') {
res.merchantList.forEach(item => {
item.calUpPrice = Math.round(item.totalSubOrderOrderMoney / item.upgradeCount).toFixed(2)
})
let _list = []
switch (formData.sceneCode) {
case '-1':
_list = res.merchantList || []
break
case 'SC002':
res.merchantList.forEach(item => {
let _dto = item.orderSummaryTotalDTO
item.orderSummaryTotalDTO.calUpPrice = Math.round(_dto.totalSubOrderOrderMoney / _dto.upgradeCount).toFixed(2)
_list.push(item.orderSummaryTotalDTO)
})
break
case 'SC001':
res.merchantList.forEach(item => {
_list.push(item.quotationMerchantStatisticsDTO)
})
break
}
console.log(_list)
this.setData({
busiObj: res,
busiTotalList: res.merchantList || []
busiTotalList: _list
})
}
})
......
......@@ -49,7 +49,6 @@
box-sizing: border-box;
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
// height: 70rpx;
// line-height: 70rpx;
......@@ -60,8 +59,15 @@
border-bottom: 1rpx dashed #CCCED1;
margin-bottom: 16rpx;
.icon {
width: 40rpx;
height: 40rpx;
}
&-title {
width: 70%;
font-size: 24rpx;
color: #323436;
margin-left: 8rpx;
}
&-link {
......@@ -105,6 +111,13 @@
.content {
&-title {
font-size: 28rpx;
color: #323436;
font-weight: 600;
padding-bottom: 28rpx;
}
// 表单
&-row {
display: flex;
......
......@@ -14,9 +14,8 @@
<view class="crowdfund-box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<!-- text-hide -->
<view class=" head-title" bindtap="handleJumpH5" data-item="{{item}}">
{{item.activityName}}
</view>
<glsx-image src="output/icon-head.png" class="icon" />
<view class="head-title">{{item.merchantName}}</view>
<!-- <view class="head-link" bindtap="download" data-item="{{item}}">
<image src="{{IMAGES.download}}" class="downloadIcon" webp></image>
母链海报
......@@ -24,6 +23,9 @@
<!-- <view class="down-tips" wx:if="{{index == 0 && isShowTip}}">下载活动海报分享给门店开展活动</view> -->
</view>
<view class="content">
<view class="content-title" data-item="{{item}}">
{{item.activityName}}
</view>
<view class="content-row" wx:for="{{merchantFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="content-label">{{subItem.label}}</view>
<view class="content-txt {{subItem.className}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!