dk-save-button.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!-- 底部工具栏-保存 -->
  2. <view class="{{cssType == 'shopping' ? 'bottom-class-2':'bottom-class-1'}}">
  3. <!-- 订单开单保存 -->
  4. <view class="btn-main-class">
  5. <view wx:if="{{contentList && contentList.length > 0}}" style="width: 50%;">
  6. <view wx:for="{{contentList}}" wx:for-item="item" data-item="{{item}}" wx:key="index">
  7. <!--文本-->
  8. <view wx:if="{{item.type == 'str'}}" style="color: {{item.color?item.color:'#CAA977'}};font-size: {{item.fontSize?item.fontSize:'15px'}}">
  9. {{item.title}}
  10. </view>
  11. <!--数字-->
  12. <dk-cell wx:if="{{item.type=='number'}}" fontSize="{{item.fontSize?item.fontSize:16}}" contentFontSize="{{item.fontSize?item.fontSize:16}}" height="{{item.height?item.height:'44rpx'}}" fontWeight="{{item.fontWeight?item.fontWeight:600}}" left="0rpx" contentColor="{{item.color?item.color:'#CAA977'}}" title="{{item.title}}" content="{{ item.content}}" amount="{{true}}"></dk-cell>
  13. <!--选择框-->
  14. <view wx:if="{{item.type=='checkbox'}}" style="display: flex;margin-top: 10rpx; margin-bottom: 10rpx;">
  15. <van-checkbox value="{{ form[item.code] }}" icon-size="{{item.iconSize?item.iconSize:'16px'}}" data-code="{{item.code}}" bind:change="change"></van-checkbox>
  16. <view style=" margin-left: 15rpx;color:{{item.color?item.color:'#1B365D'}}; font-size:{{item.fontSize?item.fontSize:'14px'}};font-weight: {{form[item.code]?'bold':'normal'}};">{{item.title}}</view>
  17. </view>
  18. <!--单数和件数-->
  19. <view wx:if="{{item.type == 'count'}}" style="display: flex ;margin-top: 10rpx;color: {{item.color?item.color:'#95A8CB'}};font-size: {{item.fontSize?item.fontSize:'12px'}}">
  20. <view wx:if="{{item.bill}}">共:{{item.bill}}{{item.tail?item.tail:'单'}}</view>
  21. <view wx:if="{{item.quantity}}" style="padding-left: {{item.bill?'20rpx':''}} ">数量:{{item.quantity}}件 </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- 保存确定区域 -->
  26. <view style="display: flex;width: {{contentList && contentList.length > 0?'50%':'100%'}};justify-content: {{btnRightFlag?'flex-end':'left'}};">
  27. <view class="btn-class" style="margin-right: {{btnAutoWidthFlag?'20rpx':''}}; width:{{btnAutoWidthFlag?(100/buttonList.length + '%'): (item.width?item.width:'196rpx')}}" wx:for="{{buttonList}}" wx:for-item="item" data-item="{{item}}" wx:key="index">
  28. <van-button round size="large" plain="{{item.plain}}" data-item="{{item}}" color="{{item.color?item.color:'#1B365D'}}" custom-style="height:88rpx;" bind:click="submit" type="info">{{item.title}}
  29. </van-button>
  30. </view>
  31. </view>
  32. </view>
  33. </view>