1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <view class="content">
- <scroll-view scroll-y>
- <view class="head">
- <text>{{information.source_name}}</text>
- <text>{{information.user_name}}</text>
- </view>
- <view class="body">
- <view class="item" s-for="data">
- <view>
- <text>{{item.t}}</text>
- <text>{{item.d}}</text>
- </view>
- <view s-if="{{item.imgs.length != 0}}" class="detail" bindtap="detailsAction" id="{{index}}">查看详情</view>
- <view class="imgBox">
- <image class="{{tools.imageClass(index, data.length)}}"
- src="../../../../../icon/mine/{{tools.imageSrc(index, data.length)}}.png"></image>
- <image s-if="{{index!=dataIndex}}" class="imageLine" src="../../../../../icon/mine/salary_line.png">
- </image>
- </view>
- </view>
- <view style="height:{{suffix?height+34:height}}px"></view>
- </view>
- </scroll-view>
- <view class="footer">
- <view class="tips" s-if="{{information.memo}}">
- <view class="line"></view>
- <text>温馨提示:{{information.memo}}</text>
- </view>
- <view s-if="{{(status && showButton)}}" class="btn{{suffix}}" bindtap="submitMaterials">{{status[0]}}</view>
- </view>
- </view>
- <filter module="tools">
- export default{
- imageClass: function(i, n) {
- if (i == 0) {
- return 'image-current'
- } else if (i == n - 1) {
- return 'image-start'
- } else {
- return 'image'
- }
- },
- imageSrc: function(i, n) {
- if (i == 0) {
- return 'finish'
- } else if (i == n - 1) {
- return 'start'
- } else {
- return 'point'
- }
- },
- textStyle: function(i, s) {
- if (i == 0){
- return s ? 'color:#333333' : 'color:#3296FB'
- }
- return ''
- },
- }
- </filter>
|