添加页面及附件查看
This commit is contained in:
14
miniprogram/pages/base/viewAttachment/viewAttachment.wxml
Normal file
14
miniprogram/pages/base/viewAttachment/viewAttachment.wxml
Normal file
@@ -0,0 +1,14 @@
|
||||
<page-plugin isAuth="{{true}}" loading="{{loading}}" is-login="{{isLogin}}"
|
||||
bind:handleLogin="handleLogin">
|
||||
<t-cell-group custom-style="margin: 0">
|
||||
<block wx:for="{{list}}" wx:key="index">
|
||||
<t-cell title="{{item.file_name}}" image="{{item._file_type == 'image' ? item.file_path: ''}}"
|
||||
hover="{{item._file_type != 'file'}}" arrow="{{item._file_type != 'file'}}"
|
||||
description="{{item._file_size}}" bind:tap="onPreview" data-index="{{index}}">
|
||||
<block wx:if="{{item._file_type != 'image'}}">
|
||||
<t-icon slot="left-icon" name="{{fileIcon[item._file_type]}}" color="#999" size="96rpx" />
|
||||
</block>
|
||||
</t-cell>
|
||||
</block>
|
||||
</t-cell-group>
|
||||
</page-plugin>
|
||||
Reference in New Issue
Block a user