|
@@ -0,0 +1,72 @@
|
|
|
|
|
+<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
|
|
|
|
|
+<view class="dk-card-outer-class">
|
|
|
|
|
+ <view class="dk-card-class">
|
|
|
|
|
+ <view wx:if="{{title}}" class="item-class">
|
|
|
|
|
+ <view class="item-title-class">{{title}}
|
|
|
|
|
+ <view style="font-size: 13px;font-weight: 500;">{{no ? list[0][no] : ''}}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view></view>
|
|
|
|
|
+ <view wx:for="{{list}}" data-item="{{item}}" wx:for-item="item" wx:key="index" border="{{ false }}">
|
|
|
|
|
+
|
|
|
|
|
+ <van-card wx:if="{{item.show || item.show == undefined}}">
|
|
|
|
|
+ <view slot="thumb">
|
|
|
|
|
+ <van-image radius="5px" width="90" height="90" src="{{item[iconCol] }}" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view slot="title" style="display: flex;">
|
|
|
|
|
+ <view style="display: flex;">
|
|
|
|
|
+ <dk-title titleTag="{{item[titleTagCol]}}" title="{{item[titleCol]}}"></dk-title>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view slot="desc" data-item="{{item}}">
|
|
|
|
|
+ <view style="display:flex;width: 100%;">
|
|
|
|
|
+ <dk-text fontWeight="nomal" value="{{item[descCol]}}"></dk-text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view slot="price">
|
|
|
|
|
+ <view style="display: flex;width: 100%;justify-content: center;align-items: center;">
|
|
|
|
|
+ <view style="width: 60%;">
|
|
|
|
|
+ <dk-cell contentFontSize="16" height="25rpx" fontWeight="700" left="0rpx" contentColor="#FF7B1A" title="" content="{{ item[priceCol]}}"></dk-cell>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view style="width: 40%;text-align: right;">
|
|
|
|
|
+ <dk-text fontWeight="nomal" fontWeight="700" value="{{'x ' + item[quantityCol]}}"></dk-text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </van-card>
|
|
|
|
|
+ <view style="width: 50%;text-align: left;font-size:14px;color: #95A8CB;">
|
|
|
|
|
+ <van-image width="20px" height="20px" src="/static/image/edit.png" />
|
|
|
|
|
+ 备注:<span style="line-height:56rpx;">{{item['remarks'] ? item['remarks'] : '请输入内容'}}</span>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- 明细左下 -->
|
|
|
|
|
+ <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">
|
|
|
|
|
+ <view wx:if="{{item_.type=='remarks'}}" style="width: 50%;text-align: left;font-size:14px;color: #95A8CB;">
|
|
|
|
|
+ <van-image width="20px" height="20px" src="/static/image/edit.png" />
|
|
|
|
|
+ 备注:<span style="line-height:56rpx;">{{item[item_.code] ? item[item_.code] : '请输入内容'}}</span>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <block style="text-align: center; " wx:if="{{card.displayNum && list.length > card.displayNum}}">
|
|
|
|
|
+ <view wx:if="{{card.showMore}}" class="expand-class" data-card="{{card}}" data-index="{{cardIndex}}" bindtap='expand'>
|
|
|
|
|
+ 点击收起部分
|
|
|
|
|
+ <van-icon name="arrow-up" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view wx:else class="expand-class" data-card="{{card}}" data-index="{{cardIndex}}" bindtap='expand'>
|
|
|
|
|
+ 展开查看更多
|
|
|
|
|
+ <van-icon name="arrow-down" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <view class="amount-item-class" style="display: flex;" wx:if="{{type === 'sale'}}">
|
|
|
|
|
+
|
|
|
|
|
+ <dk-cell titleColor="#95A8CB;" title="{{'共计 ' + (sumQuantity ? list[0][sumQuantity] : '') + '件'}}" amount="{{false}}"></dk-cell>
|
|
|
|
|
+
|
|
|
|
|
+ <dk-cell fontSize="16" fontWeight="bold" contentFontWeight="700" contentColor="#FF7B1A" titleColor="#1B365D;" title="合计" content="{{sumAmountCol ? list[0][sumAmountCol] : ''}}"></dk-cell>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+</view>
|