<!-- components/diy-content/content.wxml -->
<block wx:if="{{column == 'template1'}}">
    <view class="one_index" style="width:{{style.width}}%;background:{{style.background}};margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;border-radius: {{style.borderRadius * 2}}rpx;">
        <block wx:for="{{list}}" wx:key="index" wx:for-item="contents">
            <view class="one_info" bindtap="goNovaURL" data-id="{{item.objectId}}" data-url="{{item.url}}" style="width:{{style.articleWidth}}%;background:{{style.articleBackground}};margin:{{style.articleMargin.top * 2}}rpx {{style.articleMargin.right * 2}}rpx {{style.articleMargin.bottom * 2}}rpx {{style.articleMargin.left * 2}}rpx;padding:{{style.articlePadding.top * 2}}rpx {{style.articlePadding.right * 2}}rpx {{style.articlePadding.bottom * 2}}rpx {{style.articlePadding.left * 2}}rpx;border-radius: {{style.articleBorderRadius * 2}}rpx;">
                <image class="one_image" style="border-radius: {{style.articleBorderRadius * 2}}rpx  {{style.articleBorderRadius * 2}}rpx 0 0;" src="{{contents.image}}" mode="widthFix" lazy-load="false" binderror="" bindload="" />
                <view class="one_name" style="font-size:{{style.titleSize * 2}}rpx;color:{{style.titleColor}}">
                    {{contents.title}}
                </view>
                <view class="tags" wx:if="{{data.showTag}}">
                    <block wx:for="{{contents.tag}}" wx:key="index">
                        <van-tag color="#ffe1e1" text-color="#000000" custom-class="tag">
                            #{{item}}
                        </van-tag>
                    </block>
                </view>
                <view class="one_down">
                    <view class="reading">
                        <view class="read">阅读 {{contents.pageView}}</view>
                        <view class="autor" style="font-size:{{style.autorSize * 2}}rpx" wx:if="{{data.showAuth}}">
                            作者：{{contents.author_name ? contents.author_name : '暂无'}}
                        </view>
                    </view>
                    <view class="praise" wx:if="{{data.showLike}}">
                        <van-icon name="like-o" size="24rpx" />
                        {{contents.likeCount}}
                    </view>
                </view>
            </view>
        </block>
    </view>
</block>
<block wx:if="{{column == 'template2'}}">
    <view class="two_index" style="width:{{style.width}}%;background:{{style.background}};margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;border-radius: {{style.borderRadius * 2}}rpx;">
        <block wx:for="{{list}}" wx:key="index" wx:for-item="contents">
            <view class="two_info" bindtap="goNovaURL" data-id="{{item.objectId}}" data-url="{{item.url}}" style="border-radius: {{style.articleBorderRadius * 2}}rpx;width:{{style.articleWidth}}%;margin:{{style.articleMargin.top * 2}}rpx {{style.articleMargin.right * 2}}rpx {{style.articleMargin.bottom * 2}}rpx {{style.articleMargin.left * 2}}rpx;padding:{{style.articlePadding.top * 2}}rpx {{style.articlePadding.right * 2}}rpx {{style.articlePadding.bottom * 2}}rpx {{style.articlePadding.left * 2}}rpx;background:{{style.articleBackground}}">
                <image class="two_image" style="border-radius: {{style.articleBorderRadius * 2}}rpx  {{style.articleBorderRadius * 2}}rpx 0 0;" src="{{contents.image}}" mode="widthFix" lazy-load="false" binderror="" bindload="" />
                <view class="two_name" style="font-size:{{style.titleSize * 2}}rpx;color:{{style.titleColor}}">
                    {{contents.title}}
                </view>
                <view class="tags" wx:if="{{data.showTag}}">
                    <block wx:for="{{contents.tag}}" wx:key="index">
                        <van-tag color="#ffe1e1" text-color="#000000" custom-class="tag">
                            #{{item}}
                        </van-tag>
                    </block>
                </view>
                <view class="two_down">
                    <view class="reading">
                        <view class="read">阅读 {{contents.pageView}}</view>
                        <view class="autor" style="font-size:{{style.autorSize * 2}}rpx" wx:if="{{data.showAuth}}">
                            作者：{{contents.author_name ? contents.author_name : '暂无'}}
                        </view>
                    </view>
                    <view class="praise" wx:if="{{data.showLike}}">
                        <van-icon name="like-o" size="24rpx" />
                        {{contents.likeCount}}
                    </view>
                </view>
            </view>
        </block>
    </view>
</block>
<block wx:if="{{column == 'template3'}}">
    <scroll-view scroll-x="true" style="width:{{style.width}}%;background:{{style.background}};margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;border-radius: {{style.borderRadius * 2}}rpx;">
        <view class="three_index">
            <block wx:for="{{list}}" wx:key="index" wx:for-item="contents">
                <view class="three_info" bindtap="goNovaURL" data-id="{{item.objectId}}" data-url="{{item.url}}" style="border-radius: {{style.articleBorderRadius * 2}}rpx;width:{{style.articleWidth}}%;margin:{{style.articleMargin.top * 2}}rpx {{style.articleMargin.right * 2}}rpx {{style.articleMargin.bottom * 2}}rpx {{style.articleMargin.left * 2}}rpx;padding:{{style.articlePadding.top * 2}}rpx {{style.articlePadding.right * 2}}rpx {{style.articlePadding.bottom * 2}}rpx {{style.articlePadding.left * 2}}rpx;background:{{style.articleBackground}}">
                    <image class="three_image" style="border-radius: {{style.articleBorderRadius * 2}}rpx  {{style.articleBorderRadius * 2}}rpx 0 0;" src="{{contents.image}}" mode="widthFix" lazy-load="false" binderror="" bindload="" />
                    <view class="three_name" style="font-size:{{style.titleSize * 2}}rpx;color:{{style.titleColor}}">
                        {{contents.title}}
                    </view>
                    <view class="tags" wx:if="{{data.showTag}}">
                        <block wx:for="{{contents.tag}}" wx:key="index">
                            <van-tag color="#ffe1e1" text-color="#000000" custom-class="tag">
                                #{{item}}
                            </van-tag>
                        </block>
                    </view>
                    <view class="three_down">
                        <view class="reading">
                            <view class="read">阅读 {{contents.pageView}}</view>
                            <view class="autor" style="font-size:{{style.autorSize * 2}}rpx" wx:if="{{data.showAuth}}">
                                作者：{{contents.author_name ? contents.author_name : '暂无'}}
                            </view>
                        </view>
                        <view class="praise" wx:if="{{data.showLike}}">
                            <van-icon name="like-o" size="24rpx" />
                            {{contents.likeCount}}
                        </view>
                    </view>
                </view>
            </block>
        </view>
    </scroll-view>
</block>
<!-- <block wx:if="{{column == 'template4'}}">
    <view class="four_index" style="width:{{styleFour.width}}%;margin:{{styleFour.margin * 2}}rpx auto;border-radius:{{styleFour.radius * 2}}rpx">
        <view class="four_info" style="background-image:url('{{fourTop.image}}');border-radius:{{styleFour.radius * 2}}rpx {{styleFour.radius * 2}}rpx 0 0;height:{{styleFour.height * 2}}rpx;">
            <view class="four_name" style="font-weight:{{styleFour.fontWeight}}">
                {{fourTop.name}}
            </view>
            <view class="tags" wx:if="{{styleFour.tags}}">
                <block wx:for="{{fourTop.tags}}" wx:key="index">
                    <van-tag color="#e3e3e3" text-color="#000000" custom-class="tag">
                        {{item.tag}}
                    </van-tag>
                </block>
                <view class="reading" wx:if="{{styleFour.reading}}">阅读 {{fourTop.readingNum}}</view>
                <view class="praise" wx:if="{{styleFour.praise}}">
                    <van-icon name="like-o" />
                    {{fourTop.praiseNum}}
                </view>
            </view>
        </view>
        <block wx:for="{{fourTop.fourInfo}}" wx:key="index">
            <view class="down_info">
                <view class="left_info">
                    <view class="name" style="font-weight:{{styleFour.fontWeight}}">
                        {{item.name}}
                    </view>
                    <view class="tags" wx:if="{{styleFour.tags}}">
                        <block wx:for="{{item.tags}}" wx:key="index">
                            <van-tag color="#e3e3e3" text-color="#000000" custom-class="tag">
                                {{item.tag}}
                            </van-tag>
                        </block>
                    </view>
                    <view class="four_down">
                        <view class="reading" wx:if="{{styleFour.reading}}">
                            阅读 {{item.readingNum}}
                        </view>
                        <view class="praise" wx:if="{{styleFour.praise}}">
                            <van-icon name="like-o" />
                            {{item.praiseNum}}
                        </view>
                    </view>
                </view>
                <image class="four_image" style="width:{{styleFour.imageWidth * 2}}rpx;height:{{styleFour.imageHeight * 2}}rpx;border-radius:{{styleFour.imageRadius * 2}}rpx" src="{{item.image}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
            </view>
        </block>
    </view>
</block> -->
<block wx:if="{{column == 'template5'}}">
    <view class="five_index" style="width:{{style.width}}%;background:{{style.background}};margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;border-radius: {{style.borderRadius * 2}}rpx;">
        <block wx:for="{{list}}" wx:key="index" wx:for-item="contents">
            <view class="five_info" bindtap="goNovaURL" data-id="{{contents.objectId}}" data-url="{{contents.url}}" data-pageView="{{contents.pageView}}" style="border-radius: {{style.articleBorderRadius * 2}}rpx;width:{{style.articleWidth}}%;margin:{{style.articleMargin.top * 2}}rpx {{style.articleMargin.right * 2}}rpx {{style.articleMargin.bottom * 2}}rpx {{style.articleMargin.left * 2}}rpx;padding:{{style.articlePadding.top * 2}}rpx {{style.articlePadding.right * 2}}rpx {{style.articlePadding.bottom * 2}}rpx {{style.articlePadding.left * 2}}rpx;background:{{style.articleBackground}}">
                <view class="left_info">
                    <view class="name" style="font-size:{{style.titleSize * 2}}rpx;color:{{style.titleColor}}">
                        {{contents.title}}
                    </view>
                    <view class="tags" wx:if="{{data.showTag}}">
                        <block wx:for="{{contents.tag}}" wx:key="index">
                            <van-tag color="#e3e3e3" text-color="#000000" custom-class="tag">
                                #{{item}}
                            </van-tag>
                        </block>
                    </view>
                    <view class="five_down">
                        <view class="reading">
                            <view class="read">阅读 {{contents.pageView}}</view>
                            <view class="autor" style="font-size:{{style.autorSize * 2}}rpx" wx:if="{{data.showAuth}}">
                                作者：{{contents.author_name ? contents.author_name : '暂无'}}
                            </view>
                        </view>
                        <view class="praise" wx:if="{{data.showLike}}">
                            <van-icon name="like-o" size="24rpx" />
                            {{contents.likeCount}}
                        </view>
                    </view>
                </view>
                <image class="five_image" style="border-radius: 0 {{style.articleBorderRadius * 2}}rpx {{style.articleBorderRadius * 2}}rpx 0" src="{{contents.image}}" lazy-load="false" binderror="" bindload="" />
            </view>
        </block>
    </view>
</block>