| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!-- <My_tabs id='tabs' bind:onChange='tabChange' /> -->
- <van-tabs id='tabs' active="{{ content.type }}" color='var(--assist)' tab-active-class='tab-active-class' bind:change="tabChange">
- <van-tab title="系统消息" name='系统' />
- <van-tab title="应用消息" name='应用' />
- </van-tabs>
- <My_listBox id="ListBox" height="{{height}}" bind:getlist='getlist'>
- <view class="unread">总共{{total}}条</view>
- <navigator url="#" class='list' wx:for="{{list}}" data-item="{{item}}" bindtap="toDetails">
- <view class="title line-1">{{item.title}}</view>
- <view class="content line-1">{{item.message}}</view>
- <view class="time">
- <van-tag class="tag" wx:if="{{item.objectname}}" plain type="primary">{{type.query(item.objectname)}}</van-tag>{{item.createdate}}
- </view>
- <view wx:if="{{item.isread=='0'}}" class="unread-item" />
- </navigator>
- <My_empty wx:if="{{!list.length}}" />
- <view style="height: 180rpx;" />
- </My_listBox>
- <wxs module="type">
- module.exports.query = function (name) {
- var showName = '';
- switch (name) {
- case 'sat_courseware':
- showName = '商学院';
- break;
- case 'sat_sharematerial':
- showName = '推广素材';
- break;
- case 'sat_notice':
- showName = '通告';
- break;
- case 'sat_submitedit':
- showName = '提报';
- break;
- case 'sat_orderclue':
- showName = '销售线索';
- break;
- case 'sys_attachment':
- showName = '营销物料';
- break;
- default:
- showName = '其他应用';
- break;
- }
- return showName;
- }
- </wxs>
|