index.wxml 5.44 KB
Newer Older
程智春 committed
1 2
<!--static/nativeComponents/MerchantsList/index.wxml-->
<view class="merchants-list" wx:if="{{showList}}" style="border-radius:{{datas.componentData.moduleRadius * 2}}rpx;padding-top:{{datas.componentData.levelMargin * 2}}rpx;padding-bottom:{{datas.componentData.levelMargin * 2}}rpx;padding-left:{{datas.componentData.verticalMargin * 2}}rpx;padding-right:{{datas.componentData.verticalMargin * 2}}rpx;--modelBackgroundColor:{{datas.componentData.modelBackgroundColor}};--lineHeight:{{datas.componentData.lineHeight * 2}}rpx;--columnHeight:{{datas.componentData.columnHeight * 2}}rpx;--columnDistance:{{datas.componentData.columnHeight}}rpx;--pictureBackgroundColor:{{datas.componentData.pictureBackgroundColor}}">
程智春 committed
3 4 5 6 7 8 9 10 11 12 13
  <view wx:if="{{skeletonLoading}}">
    <view wx:if="{{datas.componentData.layoutType == 0}}">
      <skeleton-block loading="{{skeletonLoading}}" type="{{'flow'}}"></skeleton-block>
    </view>
    <view wx:if="{{datas.componentData.layoutType == 1}}">
      <skeleton-block loading="{{skeletonLoading}}" type="{{'row'}}" height="30" row="1" col="4"></skeleton-block>
    </view>
    <view wx:if="{{datas.componentData.layoutType == 2}}">
      <skeleton-block loading="{{skeletonLoading}}" type="{{'col'}}" row="1" col="2" height="50"></skeleton-block>
    </view>
  </view>
程智春 committed
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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
  <view wx:if="{{datas.componentData.layoutType == 0}}" id="ItemModule0">
    <view class="layoutType0">
      <view class="type-l">
        <view wx:for="{{WaterfallFlowListL}}" :wx:key="index">
          <view wx:for="{{item}}" wx:for-item="item1" wx:for-index="index1">
            <view class="ItemModule ItemModule3" bindtap="itemClick" data-item="{{item1}}">
              <view class="product-item">
                <view class="product-img">
                  <image src="{{item1.logoUrl}}" mode="widthFix"></image>
                </view>
                <view class="product-info">
                  <text class="name">{{item1.shopName}}</text>
                  <view class="des">{{item1.remark}}</view>
                  <view class="label">
                    <view class="labelItem" wx:for="{{item1.tagInfoResponseDTOS}}" wx:for-index="idx" wx:for-item="itemName">{{itemName.tagName}}</view>
                  </view>
                </view>
              </view>
            </view>
          </view>
        </view>
      </view>
      <view class="type-r ">
        <view wx:for="{{WaterfallFlowListR}}" wx:key="index">
          <view wx:for="{{item}}" wx:for-item="item1" wx:for-index="index1">
            <view class="ItemModule ItemModule3" bindtap="itemClick" data-item="{{item1}}">
              <view class="product-item">
                <view class="product-img">
                  <image src="{{item1.logoUrl}}" mode="widthFix"></image>
                </view>
                <view class="product-info">
                  <text class="name">{{item1.shopName}}</text>
                  <view class="des">{{item1.remark}}</view>
                  <view class="label">
                    <view class="labelItem" wx:for="{{item1.tagInfoResponseDTOS}}" wx:for-index="idx" wx:for-item="itemName">{{itemName.tagName}}</view>
                  </view>
                </view>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="placeholderRect">{{ !finished ? "加载中" : "没有更多了" }}</view>
  </view>
  <view wx:elif="{{datas.componentData.layoutType == 1}}"  id="ItemModule1">
    <view wx:for="{{WaterfallFlowList}}" wx:key="index">
      <view wx:for="{{item}}" wx:for-item="item1" wx:for-index="index1">
        <view class="ItemModule ItemModule1" bindtap="itemClick"  data-item="{{item1}}">
          <view class="product-item item-row" >
            <view class="product-img">
              <image mode="aspectFill" src="{{item1.logoUrl}}"></image>
            </view>
            <view class="product-info">
              <text class="name">{{item1.shopName}}</text>
              <view class="des">{{item1.remark}}</view>
              <view class="label">
                <view class="labelItem" wx:for="{{item1.tagInfoResponseDTOS}}" wx:for-index="idx" wx:for-item="itemName">{{itemName.tagName}}</view>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="placeholderRect">{{ !finished ? "加载中" : "没有更多了" }}</view>
  </view>
  <view wx:elif="{{datas.componentData.layoutType == 2}}">
    <view class="layoutType2">
      <scroll-view scroll-x="true" bindscrolltolower="scrolltolower" class="HorizontalRoll">
      <view style="display:flex;">
        <view wx:for="{{WaterfallFlowList}}" wx:key="index" style="display:inline-block">
        
          <view class="layoutType2-content" wx:for="{{item}}" wx:for-item="item1" wx:for-index="index1">
            <view class="ItemModule ItemModule2" bindtap="itemClick" data-item="{{item1}}">
              <view class="product-item">
                <view class="product-img">
                  <image mode="aspectFill" src="{{item1.logoUrl}}"></image>
                </view>
                <view class="product-info">
                  <text class="name">{{item1.shopName}}</text>
                  <view class="des">{{item1.remark}}</view>
                </view>
              </view>
            </view>
          </view>
        </view>
        <view class="bottom" ref="bottomDom">
          <view>{{ !finished ? "" : "没有更多了" }}</view>
        </view>
        </view>
      </scroll-view>
    </view>
  </view>
</view>