| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <!-- 底部工具栏-保存 -->
- <view class="{{cssType == 'shopping' ? 'bottom-class-2':'bottom-class-1'}}" id="saveButton">
- <!-- 订单开单保存 -->
- <view class="btn-main-class" style="display: {{contentLineFlag?'block':'flex'}}">
- <!-- <view wx:if="{{contentList && contentList.length > 0}}" style="width: 50%;"> -->
- <view wx:if="{{contentList && contentList.length > 0}}" class="{{contentLineFlag?'content-line-class':''}}">
- <view wx:for="{{contentList}}" wx:for-item="item" data-item="{{item}}" wx:key="index">
- <!--文本-->
- <view wx:if="{{item.type == 'str'}}" style="color: {{item.color?item.color:'#002340'}};font-size: {{item.fontSize?item.fontSize:'15px'}};font-weight:600;">
- {{item.title}}
- </view>
- <!--数字-->
- <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'}}" spaceWidth="10rpx" fontWeight="{{item.fontWeight?item.fontWeight:600}}" left="0rpx" contentColor="{{item.color?item.color:'#FF7B1A'}}" titleColor="{{'#002340'}}" title="{{item.title}}" content="{{ item.content}}" amount="{{true}}"></dk-cell>
- <!--选择框-->
- <view wx:if="{{item.type=='checkbox'}}" style="display: flex;margin-top: 10rpx; margin-bottom: 10rpx;">
- <van-checkbox disabled="{{item.disabled}}" value="{{ form[item.code] }}" icon-size="{{item.iconSize?item.iconSize:'16px'}}" data-code="{{item.code}}" bind:change="change"></van-checkbox>
- <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>
- </view>
- <!--单数和件数-->
- <view wx:if="{{item.type == 'count'}}" style="display: flex ;margin-top: 10rpx;color: {{item.color?item.color:'#2B2B2B'}};font-size: {{item.fontSize?item.fontSize:'12px'}}">
- <view wx:if="{{item.bill || item.bill == 0}}">共:{{item.bill}}{{item.tail?item.tail:'单'}}</view>
- <view wx:if="{{item.quantity!=null}}" style="padding-left: {{(item.bill || item.bill == 0)?'20rpx':''}} ">{{countName}}:{{item.quantity}}{{countEnd}}
- </view>
- </view>
- </view>
- </view>
- <!-- 保存确定区域 -->
- <!-- <view style="display: flex;width: {{contentList && contentList.length > 0?'50%':'100%'}};justify-content: {{btnRightFlag?'flex-end':'left'}};"> -->
- <view style="display: flex;width: {{contentList && contentList.length > 0?'auto':'100%'}};justify-content: {{btnRightFlag?'flex-end':'left'}};min-width:236rpx;">
- <view class="btn-class" style="margin-right: {{(btnAutoWidthFlag && index != buttonList.length - 1)?'20rpx':''}}; width:{{btnAutoWidthFlag?(100/buttonList.length + '%'): (item.width?item.width:'156rpx')}};" wx:for="{{buttonList}}" wx:for-item="item" data-item="{{item}}" wx:key="index">
- <van-button size="large" plain="{{item.plain}}" data-item="{{item}}" color="{{item.color?item.color:'#3E69F6'}}" custom-style="height:88rpx;border-radius:15rpx ; color:{{item.plain?'#3E69F6':'#FFFFFF'}};background:{{item.plain?'#FFFFFF':'#3E69F6'}}" bind:click="submit" type="info">{{item.title}}
- </van-button>
- </view>
- </view>
- </view>
- </view>
|