【实例简介】
在线查看校园 公告等信息
【实例截图】
【核心代码】
<mescroll-uni vue-id="ebd76128-1" up="{{upOption}}" down="{{downOption}}" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="list"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="listm flex flex-between"><image class="listmpic mt10" src="/static/exam-index/paper.png" mode="widthFix"></image><view class="listmr"><view class="col3 f30 elip mb15">{{item.$orig.title}}</view><view class="col3 f30 elip mb15"><block wx:if="{{item.$orig.isdone=='开放'}}"><button class="cu-btn bg-green sm">公开</button></block><block wx:if="{{item.$orig.isdone=='关闭'}}"><button class="cu-btn bg-red sm">私人</button></block></view><view class="colb f24 lh35">{{item.$orig.content.length>50?item.g0 '... ...':item.$orig.content}}</view><block wx:if="{{item.$orig.addtime}}"><view class="colb f24 lh35">{{"发布时间" item.$orig.addtime}}</view></block><view class="flex flex-align-center mt20"><text class="colb f25"><button data-event-opts="{{[['tap',[['onDetailTap',['$0'],[[['list','',index,'id']]]]]]]}}" class="cu-btn bg-green shadow" bindtap="__e">查看</button><button data-event-opts="{{[['tap',[['onUpdateTap',['$0'],[[['list','',index,'id']]]]]]]}}" class="cu-btn bg-blue shadow" style="margin-left:20rpx;" bindtap="__e">修改</button><button data-event-opts="{{[['tap',[['onDeleteTap',['$0'],[[['list','',index,'id']]]]]]]}}" class="cu-btn bg-red shadow" style="margin-left:20rpx;" bindtap="__e">删除</button></text></view></view></view></block></view></mescroll-uni>
网友评论
我要评论