Commit 70bf3a79 by chenwq

汇总页面

1 parent 61fa6b74
...@@ -28,7 +28,15 @@ Component({ ...@@ -28,7 +28,15 @@ Component({
totalPages: -1, totalPages: -1,
list: [], list: [],
tabActive: 'store', tabActive: 'store',
merchantList: [] merchantList: [],
formData: {
busiIdx: 0,
// 全部,精品升级,会员权益
timeIdx: 0,
// 售后众筹
proIdx: 0,
statusIdx: 0
},
}, },
lifetimes: { lifetimes: {
attached() { attached() {
...@@ -80,7 +88,11 @@ Component({ ...@@ -80,7 +88,11 @@ Component({
let params = { let params = {
...busiSearchData, ...busiSearchData,
merchantIds: merchantList.map(item => item.merchantId) merchantIds: merchantList.map(item => item.merchantId)
// merchantIds: ['44211227', '44211547', '10011000']
} }
this.setData({
formData: JSON.parse(JSON.stringify(totalTabModule.data.formData))
})
console.log(params, 'params--') console.log(params, 'params--')
outputApi.getBusiStatistics(params).then(res => { outputApi.getBusiStatistics(params).then(res => {
console.log(res, '汇总----') console.log(res, '汇总----')
......
...@@ -53,5 +53,16 @@ ...@@ -53,5 +53,16 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<scroll-view wx:if="{{tabActive == 'business'}}" class="client" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" bindrefresherrefresh="onBindRefresh" lower-threshold='50' scroll-top="{{scrollTop}}"></scroll-view> <scroll-view wx:if="{{tabActive == 'business'}}" class="client" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="onBindRefresh" lower-threshold='50' scroll-top="{{scrollTop}}">
<!-- 全部 -->
<view wx:if="{{formData.busiIdx == 0}}">
<view></view>
</view>
<!-- 精品升级 -->
<view wx:if="{{formData.busiIdx == 1}}">精品升级</view>
<!-- 售后众筹 -->
<view wx:if="{{formData.busiIdx == 2}}">售后众筹</view>
<!-- 会员权益/升级 -->
<view wx:if="{{formData.busiIdx == 3}}">会员权益/升级</view>
</scroll-view>
<crowdfund-poster item="{{posterItem}}" id="poster" scrollImg="{{false}}" bindlongtouch="longtouch" /> <crowdfund-poster item="{{posterItem}}" id="poster" scrollImg="{{false}}" bindlongtouch="longtouch" />
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!