client.wxml 2.78 KB
<!-- pages/tab/output/components/client/client.wxml -->
<wxs src="../../index.wxs" module="filter" />
<scroll-view class="client" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" bindrefresherrefresh="onBindRefresh" lower-threshold='50' scroll-top="{{scrollTop}}">
  <!-- <view class="test">1234567890</view> -->
  <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}}" 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">
          <scene-box formData="{{item}}" hasLockIcon="{{false}}" />
          <!-- 通知 -->
          <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}}" class="end-txt">
      到底啦!
    </view>
  </view>
</scroll-view>
<crowdfund-poster item="{{posterItem}}" id="poster" scrollImg="{{false}}"  bindlongtouch="longtouch" />