20 changed files with 251 additions and 54 deletions
@ -0,0 +1,8 @@ |
|||
Component({ |
|||
data: { |
|||
|
|||
}, |
|||
methods: { |
|||
|
|||
} |
|||
}) |
@ -0,0 +1,3 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -0,0 +1,3 @@ |
|||
<view class="preload-archives-detail"> |
|||
<view class="detail-item" wx:for="{{[1,2,3,4,5,6]}}"></view> |
|||
</view> |
@ -0,0 +1,30 @@ |
|||
.preload-archives-detail { |
|||
width: 100%; |
|||
background: #fff; |
|||
box-sizing: border-box; |
|||
border-radius: 16rpx; |
|||
padding: 0 24rpx; |
|||
overflow: hidden; |
|||
margin-bottom: 20rpx; |
|||
} |
|||
|
|||
.preload-archives-detail .detail-item { |
|||
width: 100%; |
|||
height: 80rpx; |
|||
border-radius: 8rpx; |
|||
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); |
|||
animation: loading 1.4s ease infinite; |
|||
background-size: 400% 100%; |
|||
margin-top: 20rpx; |
|||
} |
|||
|
|||
|
|||
@keyframes loading { |
|||
0% { |
|||
background-position: 100% 50% |
|||
} |
|||
|
|||
100% { |
|||
background-position: 0 50% |
|||
} |
|||
} |
After Width: | Height: | Size: 192 KiB |
After Width: | Height: | Size: 586 B |
@ -1,4 +1,6 @@ |
|||
{ |
|||
"usingComponents": {}, |
|||
"usingComponents": { |
|||
"preload-archives-detail": "../../compontents/preLoadArchivesDetail/preLoadArchivesDetail" |
|||
}, |
|||
"navigationBarTitleText": "档案内容" |
|||
} |
@ -1,2 +1,20 @@ |
|||
<!--subpages/understandJs/pages/archivesDetail/archivesDetail.wxml--> |
|||
<view>{{archiveContent}}</view> |
|||
<wxs module="filter" src="../../../../utils/filter.wxs"></wxs> |
|||
<block wx:if="{{!preloadVisible}}"> |
|||
<view class="archive-item">档号: {{archiveContent.archivesNum||'无'}}</view> |
|||
<view class="archive-line"></view> |
|||
<view class="archive-item">文号: {{archiveContent.docNum||'无'}}</view> |
|||
<view class="archive-line"></view> |
|||
<view class="archive-item">责任人: {{archiveContent.responsible||'无'}}</view> |
|||
<view class="archive-line"></view> |
|||
<view class="archive-item">题名: {{archiveContent.title||'无'}}</view> |
|||
<view class="archive-line"></view> |
|||
<view class="archive-item">日期: {{filter.formatTime(archiveContent.archiveTime,'yyyyMMdd')||'无'}}</view> |
|||
<view class="archive-line"></view> |
|||
<view class="archive-item">页数: {{archiveContent.pageSize||'无'}}</view> |
|||
<view class="archive-line"></view> |
|||
<view class="archive-item">备注: {{archiveContent.remark||'无'}}</view> |
|||
<view class="archive-line"></view> |
|||
</block> |
|||
<preload-archives-detail wx:else></preload-archives-detail> |
|||
|
|||
|
@ -1 +1,15 @@ |
|||
/* subpages/understandJs/pages/archivesDetail/archivesDetail.wxss */ |
|||
.archive-item { |
|||
font-size: 32rpx; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
color: rgba(51,51,51,1); |
|||
margin: 34rpx 32rpx; |
|||
} |
|||
.archive-line { |
|||
width:690rpx; |
|||
height:1px; |
|||
background:rgba(242,242,242,1); |
|||
border-radius:1px; |
|||
margin: 0 auto; |
|||
} |
Loading…
Reference in new issue