123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <navigator url="#" class="item" wx:for="{{list}}" wx:key="sonum">
- <view class="top">
- 单据日期 : {{item.billdate || ' --'}} <text style="color:{{set.color(item.status)}}">{{item.status}}</text>
- </view>
- <view class="content">
- <view class="num">
- 单号:{{item.sonum}}
- </view>
- <view class="exp">
- 单据号(订单/退货单):{{item.billno || '--'}}
- </view>
- <view class="exp">
- 居间合同号:{{item.billno_contract || '--'}}
- </view>
- <view class="amount">
- 居间费:¥{{item.rebate || '--'}}元
- </view>
- <view class="exp">
- 备注{{item.remarks || '--'}}
- </view>
- </view>
- <view wx:if="{{item.contacts.length}}" class="bottom line-1">
- <text style="margin-right: 10rpx;">{{item.contacts[0].name}}</text>
- <text style="margin-right: 10rpx;">{{item.contacts[0].phonenumber}}</text>
- <text style="margin-right: 10rpx;">{{item.contacts[0].address}}</text>
- </view>
- <view wx:else class="bottom">
- 暂无更多信息
- </view>
- </navigator>
- <Yl_Empty wx:if="{{list.length==0}}" />
- <wxs module="set">
- module.exports = {
- color: function (statu) {
- var color = '#999999';
- switch (statu) {
- case "审核":
- color = '#FA8C16';
- break;
- case "提交":
- color = '#52C41A';
- break;
- case "新建":
- color = '#333333';
- break;
- };
- return color;
- }
- }
- </wxs>
|