dk-label-multiple-select.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <view>
  2. <view style="padding-left: 25rpx; display: flex;">
  3. <view class="title-class">{{name}}</view>
  4. <view style="width: 50%; font-size: 12px;text-align: right;padding-right: 25rpx;" data-key="customerFrom" bind:tap="onChangeMore">
  5. <view wx:if="{{!moreFlag && stowList.length > 0}}" class="more-class">
  6. 更多
  7. <van-icon name="arrow-down" />
  8. </view>
  9. <view wx:if="{{moreFlag}}" class="more-class">
  10. 收起
  11. <van-icon name="arrow-up" />
  12. </view>
  13. </view>
  14. </view>
  15. <!-- 更多 -->
  16. <view style="display: flex;margin-top: 25rpx; display: flex; flex-wrap: wrap;align-content: stretch;width: 100%;flex-direction: row; justify-content: flex-start;background: white; align-items: center;">
  17. <view wx:for="{{moreList}}" data-item="{{item}}">
  18. <view style="padding-left: 11rpx;margin-top: 5rpx;">
  19. <van-button wx:if="{{item.infotype === 'default'}}" color="#95A8CB" custom-style="border-radius: 10rpx;" plain data-item="{{item}}" data-typeKey="{{typeName}}" data-index="{{index}}" data-key="more" size="small" bind:click="onClickTag"><text style="font-size: 13px;">{{item.name}}</text></van-button>
  20. <van-button wx:else color="#606EB2" custom-style="border-radius: 10rpx;" data-item="{{item}}" data-typeKey="{{typeName}}" data-index="{{index}}" data-key="more" size="small" bind:click="onClickTag"><text style="font-size: 13px;">{{item.name}}</text></van-button>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- 收起 -->
  25. <view wx:if="{{moreFlag && stowList.length > 0}}">
  26. <view wx:if="{{stowList.length > 0}}" style="display: flex;margin-top: 20rpx; display: flex; flex-wrap: wrap;align-content: stretch;width: 100%;flex-direction: row; justify-content: flex-start;background: white; align-items: center;">
  27. <view wx:for="{{stowList}}" data-item="{{item}}">
  28. <view style="padding-left: 11rpx;margin-top: 5rpx;">
  29. <van-button wx:if="{{item.infotype === 'default'}}" color="#95A8CB" custom-style="border-radius: 10rpx;" plain type="{{item.infotype}}" data-item="{{item}}" data-index="{{index}}" data-key="stow" size="small" bind:click="onClickTag"><text style="font-size: 13px;">{{item.name}}</text></van-button>
  30. <van-button wx:else color="#606EB2" custom-style="border-radius: 10rpx;" type="{{item.infotype}}" data-item="{{item}}" data-index="{{index}}" data-key="stow" size="small" bind:click="onClickTag"><text style="font-size: 13px;">{{item.name}}</text></van-button>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view style="margin-top: 25rpx;"></view>