36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
![]() |
<view class="page-content padding">
|
||
|
<mp-bar background="linear-gradient(190deg, #49a5fc 0%, #f7f7f7 800rpx, #f7f7f7 100%)" title="{{title}}" color="rgba(255,255,255,0.8)"></mp-bar>
|
||
|
|
||
|
<view wx:for="{{list}}" wx:key="typeName" class="block">
|
||
|
<view class="title t2">
|
||
|
<view class="title-before"></view>{{item.typeName}}
|
||
|
</view>
|
||
|
|
||
|
|
||
|
<view wx:if="{{item.children.length >0}}">
|
||
|
<view wx:for="{{item.children}}" wx:for-item="children" wx:key="typeName" data-url="{{detail.resourceUrl}}">
|
||
|
<view class="title t3">
|
||
|
<view class="title-before"></view>{{children.typeName}}
|
||
|
</view>
|
||
|
<view class="type">
|
||
|
<view class="card" bind:tap="goDetail" wx:for="{{children.resourceDetails}}" wx:for-item="detail" wx:key="resourceUrl" data-item="{{detail}}" style="background-image: url({{url}})">
|
||
|
<view class="title">
|
||
|
<view class="title-before"></view>{{detail.resourceName}}
|
||
|
|
||
|
</view>
|
||
|
<video src="{{detail.resourceUrl}}" class="vid" wx:if="{{id == 4}}"/>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
<view class="type" wx:else>
|
||
|
<view class="card" bind:tap="goDetail" wx:for="{{item.resourceDetails}}" wx:for-item="detail" wx:key="resourceUrl" data-item="{{detail}}" style="background-image: url({{url}})">
|
||
|
<view class="title">
|
||
|
<view class="title-before"></view>{{detail.resourceName}}
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|