Commit 2f0866ad by chenwq

众筹样式,数据拼凑

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