37 lines
1.8 KiB
Plaintext
37 lines
1.8 KiB
Plaintext
<view class="container">
|
|
<!-- <header-nav>寄托港校租房</header-nav> -->
|
|
<header-nav>{{ topTitle }}</header-nav>
|
|
<block wx:for="{{ template }}" wx:key="index">
|
|
<image class='head-img' bindtap='previewImg' data-img="{{ item.data.url }}" mode='widthFix' wx:if="{{ item['type']=='bigpicture' }}" src='{{ item.data.url }}'></image>
|
|
<view class='content'>
|
|
<view class='main-title' wx:if="{{ item['type']=='title' }}">{{ item.title }}</view>
|
|
<view class='second-title' wx:if="{{ item['type']=='subtitle' }}">
|
|
<view class='i' wx:for="{{ item.data.value }}" wx:for-item="i" wx:key="i">{{ i }}</view>
|
|
</view>
|
|
<view class='grey-black' wx:if="{{ item['type']=='graytext' }}">
|
|
<view class='i' wx:for="{{ item.data.value }}" wx:for-item="i" wx:key="i">{{ i }}</view>
|
|
</view>
|
|
<view class='title' wx:if="{{ item['type']=='articletitle' }}">{{ item.articletitle }}</view>
|
|
<view class='text' wx:if="{{ item['type']=='text' }}">
|
|
<view class='i' wx:for="{{ item.data.value }}" wx:for-item="i" wx:key="i">{{ i }}</view>
|
|
</view>
|
|
<image class='img' bindtap='previewImg' data-img="{{ item.data.url }}" wx:if="{{ item['type']=='image' }}" mode='widthFix' src='{{ item.data.url }}'></image>
|
|
|
|
<view class='button' wx:if="{{ item['type']=='copybutton' }}">
|
|
<view class='btn' bindtap='copy' data-value='{{ item.data.value }}'>
|
|
<form-id>
|
|
<view class='text'>{{ item.data.text}}</view>
|
|
</form-id>
|
|
</view>
|
|
</view>
|
|
|
|
<view class='button' wx:if="{{ item['type']=='linkbutton' }}">
|
|
<navigator hover-class='hover' url="{{'/' + item.data.value }}" class='btn url'>
|
|
<form-id>
|
|
<view class='text'>{{ item.data.text }}</view>
|
|
</form-id>
|
|
</navigator>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view> |