client.wxml
5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!-- pages/tab/output/components/client/client.wxml -->
<wxs src="../../index.wxs" module="filter" />
<total-tab id="totalTab" bindbusiSearch="handleBusiSearch" bindtabChange="handleTabChange"></total-tab>
<view class="sort-fix {{stickyScrollTop >= 96 ? '' : 'sort-hide'}}" wx:if="{{tabActive == 'business' && formData.sceneCode != 'SC004' && formData.sceneCode != 'SC003'}}">
<sort-tab id="sortTabFix" sceneCode="{{formData.sceneCode}}" bindhandleSort="handleSort"></sort-tab>
</view>
<scroll-view wx:if="{{tabActive == 'store'}}" class="client" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" bindrefresherrefresh="onBindRefresh" lower-threshold='50' scroll-top="{{scrollTop}}">
<view class="client-box">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{filter.money_three_for_two_thousands(totalProfit || 0.00)}}</text>
</view>
<view wx:for="{{list}}" class="shadow" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view class="box {{item.activityLastUnSharedInfo ? 'share' : ''}}">
<view class="head flex-between">
<view class="name ">{{item.merchantName}}</view>
<view class="price-txt ">¥{{filter.money_three_for_two_thousands(item.totalMoney || 0.00)}}</view>
</view>
<!-- 场景内容 -->
<view class="box-content">
<view catchtap="sceneCatch">
<scene-box sceneInfo="{{item}}" hasLockIcon="{{false}}" scenePriceList="{{item.scenePriceList}}" listIdx="{{index}}" bindhandleSceneChange="handleSceneChange"/>
</view>
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view class="flex-between tip-row" wx:for="{{item.msgList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view>{{subItem.msg}}</view>
<view class="time">{{subItem.createTime}}</view>
</view>
</view>
</view>
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
<view>
运营建议:您的门店尚未开展活动,暂无产值。建议
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
拓展营收范围。
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 分享海报 -->
<view wx:if="{{item.activityLastUnSharedInfo}}" class="box-share">
<view>{{item.activityLastUnSharedInfo.activityName}}正在进行,分享母链海报开展业务</view>
<view class="btn-share" catchtap="handleShare" data-idx="{{index}}">去分享</view>
</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == (totalPages + 1)}}" class="end-txt">
到底啦!
</view>
</view>
</scroll-view>
<scroll-view wx:if="{{tabActive == 'business'}}" class="client" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="handleSort" lower-threshold='50' bind:scroll="handleBusiScroll" scroll-top="{{busiScrollTop}}">
<view class="client-box">
<!-- 总收益 -->
<view wx:if="{{formData.sceneCode != 'SC004' && formData.sceneCode != 'SC003'}}">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{filter.money_three_for_two_thousands(busiObj.totalAmount || 0.00)}}</text>
</view>
<view>
<sort-tab id="sortTab" sceneCode="{{formData.sceneCode}}" bindhandleSort="handleSort"></sort-tab>
</view>
</view>
<!-- 售后众筹 -->
<view class="output-box" wx:if="{{formData.sceneCode == 'SC004' || formData.sceneCode == 'SC003'}}">
<output-crowdfund wx:if="{{formData.sceneCode == 'SC004' || formData.sceneCode == 'SC003'}}" orderObj="{{crowdOrderObj}}" sceneCode="{{formData.sceneCode}}" proIdx="{{formData.sceneCode == 'SC003' ? '0' : formData.proIdx}}" bindhandleReport="handleReport" bindhandleXiReport="handleXiReport"></output-crowdfund>
<view class="end-txt">
{{ crowdOrderObj.activityList.length ? '到底啦!' : '暂无数据' }}
</view>
</view>
<!-- 0:全部;1:精品升级;3:会员权益/升级 -->
<view wx:else>
<view wx:for="{{busiTotalList}}" wx:key="index">
<busi-card info="{{item}}" sceneCode="{{formData.sceneCode}}" bindhandleItemTap="handleBusiCardTap" data-idx="{{index}}"></busi-card>
</view>
<view class="end-txt">
{{busiTotalList.length ? '到底啦!' : '暂无数据'}}
</view>
</view>
</view>
</scroll-view>
<crowdfund-poster item="{{posterItem}}" id="poster" scrollImg="{{false}}" bindlongtouch="longtouch" />