diy_nav.wxml 2.66 KB
<wxs module="g_filter" src="../diy_notice/g_filter.wxs"></wxs>

<block wx:if="{{object.style==1}}">
    <view class="{{object.seticon==1?'big':object.seticon==2?'big_one_two':'big_border_three'}}">
        <block wx:for="{{nav_list}}">
            <block wx:if="{{g_filter.has_char(item.wxapp_url,'plugin')>=0}}">
                <navigator style="width:{{100/nav_list.length}}%;" url="{{item.wxapp_url}}" class="s1_gk_a1">
                    <include src="diy_nav_part1.wxml" />
                </navigator>
            </block>
            <block wx:elif="{{item.AppId}}">
                <navigator style="width:{{100/nav_list.length}}%;" target="miniProgram" app-id="{{item.AppId}}" path="{{item.wxapp_url}}">
                    <include src="diy_nav_part1.wxml" />
                </navigator>
            </block>
            <block wx:elif="{{item.finderUserName && item.video_type}}">
                <view style="width:{{100/nav_list.length}}%;" bindtap="nv_void" data-feedId="{{item.feedId}}" data-video_type="{{item.video_type}}" data-finderUserName="{{item.finderUserName}}">
                    <include src="diy_nav_part1.wxml" />
                </view>
            </block>
            <block wx:else>
                <view style="width:{{100/nav_list.length}}%;" data-url="{{item.wxapp_url}}" class="s1_gk_a1" bindtap="go_url">
                    <include src="diy_nav_part1.wxml" />
                </view>
            </block>
        </block>
    </view>
</block>

<block wx:if="{{object.style==2}}">
    <view class="big_two">
        <!-- 图片一 -->
        <block wx:for="{{nav_list}}">
            <block wx:if="{{g_filter.has_char(item.wxapp_url,'plugin')>=0}}">
                <navigator data-url="{{item.wxapp_url}}" class="s1_gk_a1" bindtap="go_url">
                    <include src="diy_nav_part2.wxml" />
                </navigator>
            </block>
            <block wx:elif="{{item.AppId}}">
                <navigator target="miniProgram" app-id="{{item.AppId}}" path="{{item.wxapp_url}}">
                    <include src="diy_nav_part2.wxml" />
                </navigator>
            </block>
            <block wx:elif="{{item.finderUserName && item.video_type}}">
                <view bindtap="nv_void" data-feedId="{{item.feedId}}" data-video_type="{{item.video_type}}" data-finderUserName="{{item.finderUserName}}">
                    <include src="diy_nav_part2.wxml" />
                </view>
            </block>
            <block wx:else>
                <view data-url="{{item.wxapp_url}}" class="s1_gk_a1" bindtap="go_url">
                    <include src="diy_nav_part2.wxml" />
                </view>
            </block>
        </block>
    </view>
</block>