dk-goos-list.wxml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  2. <view class="dk-card-outer-class">
  3. <view class="dk-card-class">
  4. <view wx:if="{{title}}" class="item-class">
  5. <view class="item-title-class">{{title}}
  6. <view style="font-size: 13px;font-weight: 500;">{{no ? list[0][no] : ''}}</view>
  7. </view>
  8. <view>
  9. <dk-tag type="primary" padding="0 20rpx" height="40rpx" color="#9FAEE5" textColor="#FFFFFF" radius="5rpx" roundFlag="{{true}}" value="{{!expand?'展开':'收起'}}" catchtap="expandCard" data-item="{{card}}" data-index="{{cardIndex}}"></dk-tag>
  10. </view>
  11. </view>
  12. <view></view>
  13. <view wx:for="{{list}}" data-item="{{item}}" wx:for-item="item" wx:key="index" border="{{ false }}">
  14. <van-card wx:if="{{item.show || item.show == undefined}}">
  15. <view slot="thumb">
  16. <van-image radius="5px" width="90" height="90" src="{{item[iconCol] }}" />
  17. </view>
  18. <view slot="title" style="display: flex;">
  19. <view style="display: flex;">
  20. <dk-title titleTag="{{item[titleTagCol]}}" title="{{item[titleCol]}}"></dk-title>
  21. </view>
  22. </view>
  23. <view slot="desc" data-item="{{item}}">
  24. <view style="display:flex;width: 100%;">
  25. <dk-text fontWeight="nomal" value="{{item[descCol]}}"></dk-text>
  26. </view>
  27. </view>
  28. <view slot="price">
  29. <view style="display: flex;width: 100%;justify-content: center;align-items: center;">
  30. <view style="width: 60%;">
  31. <dk-cell contentFontSize="16" height="25rpx" fontWeight="700" left="0rpx" contentColor="#FF7B1A" title="" content="{{ item[priceCol]}}"></dk-cell>
  32. </view>
  33. <view style="width: 40%;text-align: right;">
  34. <dk-text fontWeight="nomal" fontWeight="700" value="{{'x ' + item[quantityCol]}}"></dk-text>
  35. </view>
  36. </view>
  37. </view>
  38. </van-card>
  39. <view style="width: 50%;text-align: left;font-size:14px;color: #95A8CB;">
  40. <van-image width="20px" height="20px" src="/static/image/edit.png" />
  41. 备注:<span style="line-height:56rpx;">{{item['remarks'] ? item['remarks'] : '请输入内容'}}</span>
  42. </view>
  43. <!-- 明细左下 -->
  44. <view wx:if="{{card.contentBottomLeft}}" wx:for="{{card.contentBottomLeft}}" style="display: flex;width: 100%;margin-top:5px;align-items: center;" wx:for-item="item_" data-item="{{item_}}" wx:for-index="index_" catchtap="openContentBottomLeft">
  45. <view wx:if="{{item_.type=='remarks'}}" style="width: 50%;text-align: left;font-size:14px;color: #95A8CB;">
  46. <van-image width="20px" height="20px" src="/static/image/edit.png" />
  47. 备注:<span style="line-height:56rpx;">{{item[item_.code] ? item[item_.code] : '请输入内容'}}</span>
  48. </view>
  49. </view>
  50. </view>
  51. <block style="text-align: center; " wx:if="{{card.displayNum && list.length > card.displayNum}}">
  52. <view wx:if="{{card.showMore}}" class="expand-class" data-card="{{card}}" data-index="{{cardIndex}}" bindtap='expand'>
  53. 点击收起部分
  54. <van-icon name="arrow-up" />
  55. </view>
  56. <view wx:else class="expand-class" data-card="{{card}}" data-index="{{cardIndex}}" bindtap='expand'>
  57. 展开查看更多
  58. <van-icon name="arrow-down" />
  59. </view>
  60. </block>
  61. <view class="amount-item-class" style="display: flex;" wx:if="{{type === 'sale'}}">
  62. <dk-cell titleColor="#95A8CB;" title="{{'共计 ' + (sumQuantity ? list[0][sumQuantity] : '') + '件'}}" amount="{{false}}"></dk-cell>
  63. <dk-cell fontSize="16" fontWeight="bold" contentFontWeight="700" contentColor="#FF7B1A" titleColor="#1B365D;" title="合计" content="{{sumAmountCol ? list[0][sumAmountCol] : ''}}"></dk-cell>
  64. </view>
  65. </view>
  66. </view>