myaid.wxml 2.7 KB

1
  1. <view class="content"><scroll-view class="class-box flex" scroll-x="true" scroll-left="{{scrollLeft}}" scroll-with-animation="{{true}}"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><view data-event-opts="{{[['tap',[['tabClick',[idx]]]]]}}" class="item" bindtap="__e"><view class="{{['time',(idx==tabCurrentIndex)?'action':'']}}">{{item.text}}</view></view></block></scroll-view><swiper class="swiper-box" current="{{tabCurrentIndex}}" duration="300" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="tabItem" wx:for-index="tabIndex" wx:key="tabIndex"><swiper-item class="tab-content"><scroll-view class="list-scroll-content" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loadData',['$event']]]]]}}" bindscrolltolower="__e"><block wx:if="{{tabItem.$orig.loaded===true&&tabItem.$orig.orderList.length===0}}"><empty vue-id="{{'7bd525a1-1-'+tabIndex}}" bind:__l="__l"></empty></block><block wx:for="{{tabItem.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tz',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="order-item" bindtap="__e"><view class="item-top flex"><view class="item-number">{{'项目编号:'+item.$orig.order_sn+''}}</view><block wx:if="{{item.$orig.order_status===-1}}"><view class="item-status" style="color:#999999;">{{item.$orig.status_txt}}</view></block><block wx:else><view class="item-status" style="color:#FA7E67;">{{item.$orig.status_txt==='受捐者反馈'?'已完成':item.$orig.status_txt}}</view></block></view><view class="item-main flex"><block wx:if="{{item.$orig.img}}"><image src="{{item.$orig.img}}" mode></image></block><block wx:else><image src="../../static/img/moren.png" mode></image></block><view class="item-info"><view class="info-title">{{''+item.$orig.title+''}}</view><view class="info-content">{{'项目进度: 您的捐赠'+(item.$orig.order_status===0?'正在审核中,请耐心等待':item.$orig.order_status===-1?' 审核未通过,感谢您的爱心!':'审核已通过')+''}}</view><view class="info-time">{{'申请时间 '+item.f0+''}}</view></view></view><block wx:if="{{item.$orig.order_status>=1}}"><view class="item-bottom flex"><block wx:if="{{item.$orig.order_status==6}}"><view data-event-opts="{{[['tap',[['navTo',['/pages/user/thank?project_id='+item.$orig.project_id+'&name='+item.$orig.name+'&time='+item.$orig.add_time+'&title='+item.$orig.title||'']]]]]}}" class="zs" catchtap="__e">捐赠证书</view></block></view></block></view></block><uni-load-more vue-id="{{'7bd525a1-2-'+tabIndex}}" status="{{tabItem.$orig.loadingType}}" bind:__l="__l"></uni-load-more></scroll-view></swiper-item></block></swiper></view>