123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <scroll-view scroll-y class="bg-scroll-view">
- <view class="header">
- <text>{{information.source_name}}</text>
- <text>{{information.user_name}} {{item.city_name ? item.city_name : ''}}</text>
- </view>
- <view style="width:100%;height:60rpx;"></view>
- <view wx:for="{{data}}" wx:key="" class="{{index == 0 ? 'item-current' : 'item'}}">
- <view>
- <image class="{{tools.imageClass(index, data.length)}}" src="../../../../icon/mine/{{tools.imageSrc(index, data.length)}}.png" mode="aspectFit"></image>
- <view wx:if="{{index != data.length - 1}}">
- <view></view>
- </view>
- </view>
- <view>
- <view>
- <text style="{{tools.textStyle(index, status)}};">{{item.t}}</text>
- <view wx:if="{{item.imgs.length != 0}}" bindtap="detailsAction" id="{{index}}">查看详情</view>
- </view>
- <text>{{item.d}}</text>
- </view>
- </view>
- <view style="height:{{ui.scrollBottom}}px;"></view>
- </scroll-view>
- <view class="wfdd-bottom-view" wx:if="{{tips || (status && showButton)}}" id="srollBottom">
- <view></view>
- <text wx:if="{{information.memo}}">温馨提示:{{information.memo}}</text>
- <view wx:if="{{(status && showButton)}}">
- <view bindtap="submitMaterials">{{status[0]}}</view>
- </view>
- <view style="height:{{adapter.suffix == '-X' ? '68rpx' : '0'}};"></view>
- </view>
- <wxs module="tools">
- var imageClass = function(i, n) {
- if (i == 0) {
- return 'image-current'
- } else if (i == n - 1) {
- return 'image-start'
- } else {
- return 'image'
- }
- }
- var imageSrc = function(i, n) {
- if (i == 0) {
- return 'finish'
- } else if (i == n - 1) {
- return 'start'
- } else {
- return 'point'
- }
- }
- var textStyle = function(i, s) {
- if (i == 0){
- return s ? 'color:#333333' : 'color:#3296FB'
- }
- return ''
- }
- module.exports.imageSrc = imageSrc
- module.exports.imageClass = imageClass
- module.exports.textStyle = textStyle
- </wxs>
|