dk-multi-owner.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <wxs src='/utils/numberFormat.wxs' module="numberFormat"></wxs>
  2. <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  3. <van-empty wx:if="{{list.length<=0}}" description="暂无数据" />
  4. <view wx:for="{{list}}" data-item="{{item}}" class="main-class">
  5. <view class="main-foot" style="border-radius: 15rpx;">
  6. <view class="table">
  7. <view style="display:flex;">
  8. <view style="display: flex;justify-content: center;align-items: center;width: 12%;" data-value="{{item.checked}}" bind:tap="onChangeFlag" data-index="{{index}}">
  9. <van-checkbox value="{{item.checked}}" data-index="{{index}}" checked-color="#1989FA" />
  10. </view>
  11. <view style="width: 88%;font-size: 14px;color:#1B365D;">
  12. <view wx:for="{{content}}" wx:for-item="col" data-item="{{col}}" wx:for-index="colIndex">
  13. <view wx:if="{{col.type !== 'switch' && col.type!== 'commission'}}" style="padding:10rpx;display: flex;justify-content: left;">
  14. <view style="width: 30%;text-align: left;">{{col.title}}</view>
  15. <view> {{item[col.code] ? item[col.code] : ''}}</view>
  16. </view>
  17. <view wx:if="{{col.type == 'switch'}}" style="padding:10rpx;display: flex;justify-content: left;align-items: center;">
  18. <view style="width: 30%;text-align: left;">{{col.title}}</view>
  19. <van-switch size="30rpx" custom-class='switch' data-index="{{index}}" checked="{{ item[col.code] }}" catchtap="onChangeSwitch" />
  20. </view>
  21. <view style="display: flex;padding:10rpx;" wx:if="{{col.type == 'commission'}}">
  22. <view style="width: 30%;">{{col.title}}</view>
  23. <view wx:if="{{item.checked}}">
  24. <input style=" width: 120rpx; display: inline-block;vertical-align: middle;" type="digit" bindinput="inputChange" data-key="{{col.code}}" data-id="{{item[col.idKey]}}" bindblur="inputBlurChange" data-index="{{index}}" value="{{item[col.code]}}" placeholder="" />
  25. </view>
  26. <view wx:else>
  27. {{item[col.code]}}
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <van-divider wx:if="{{nomore}}" contentPosition="center" borderColor="#DCDCDC">到底了~</van-divider>
  37. <view style="height:200rpx;width:100%"></view>
  38. <view class="bottom-class-1">
  39. <view style="position:fixed;bottom:0;z-index: 10;text-align: center;width: 100%; margin-bottom: 42rpx;">
  40. <van-button color="#3E69F6;" type="info" custom-style="width: 640rpx;height: 88rpx;" block round bindtap="btnOK">确定</van-button>
  41. </view>
  42. </view>