diy_top_nav.wxml 3.74 KB
<!--components/diy_top_nav/diy_top_nav.wxml-->
<!-- 支撑作用 -->
<block wx:if="{{!is_pc}}">

<view wx:if="{{nav_type==-1}}" style="padding-bottom:{{nav_pb}}px;color: {{nav_frontColor}};">
  <view  style="height: {{nav_h}}px;width: 100%;"></view>
  <view style="width: 100%;height:{{mentButt_h}}px;line-height:{{mentButt_h}}px;text-align: center;"></view>
</view>


<!-- 默认没有返回按钮 -->
<view wx:if="{{nav_type==0}}" style="padding-bottom:{{nav_pb}}px;background-color:{{nav_backgroundColor}};color: {{nav_frontColor}};">
  <view  style="height: {{nav_h}}px;width: 100%;"></view>
  <view style="width: 100%;height:{{mentButt_h}}px;line-height:{{mentButt_h}}px;text-align: center;">{{nav_title}}</view>
</view>
<!-- 默认有返回按钮 -->
<view wx:if="{{nav_type==5}}" style="padding-bottom:{{nav_pb}}px;background-color:{{nav_backgroundColor}};color: {{nav_frontColor}};">
  <view  style="height: {{nav_h}}px;width: 100%;"></view>
  <view style="width: 100%;height:{{mentButt_h}}px;line-height:{{mentButt_h}}px;text-align: center;position: relative;">
    <view catchtap="call_back" class="call_back_box">
          <text class="nav_fh" ></text>
        </view> 
    {{nav_title}}
  </view>
</view>

<!-- 广告轮播时 -->
<view wx:if="{{nav_type==1}}" style="padding-bottom:{{nav_pb}}px;color: {{nav_frontColor}};">
  <view  style="height: {{nav_h}}px;width: 100%;"></view>
  <view style="width: 100%;height:{{mentButt_h}}px;line-height:{{mentButt_h}}px;text-align: center;">{{nav_title}}</view>
</view>

<!-- 详情页面 -->
<view wx:if="{{nav_type==2}}" style="padding-bottom:{{nav_pb}}px;{{ istop ? '' : ('background-color:'+nav_backgroundColor)}};color:{{nav_frontColor}};">
  <!-- 显示一下user_id -->
  <view  style="position:relative;height: {{nav_h}}px;width: 100%; ">
       <view wx:if="{{user_no}}" class="tb_con" >ID:{{user_no}}</view>
  </view>
  <view style="width: 100%;height:{{mentButt_h}}px;line-height:{{mentButt_h}}px;display: flex;">
    <view class="nav_left" style="width: {{nav_left_w}}px;padding: 0 {{navleft_pb}}px;">
      <view class="navl_left flex" style="width:{{navleft_w}}px;padding: 0;">
        <!-- <text class="iconfont1 icon-line-homeshouye-01" style="color: #000;font-size: 20px;"></text> -->
        <view catchtap="call_back" class="flex nav_left_box">
          <text class="nav_fh" ></text>
        </view> 
        <text class="navl_left_b"></text>
        <!-- <text  class="iconfont icon-xingyungou" style="color:#898989;"></text> -->
        <view catchtap="show_menu_fn"  class="flex nav_left_box">
          <view class="iconfont icon-fenlei" style="color: #000;position: relative;" >
            <view class="list_menu" wx:if="{{show_menu}}">
              <view class="list_menu_top"></view>
              <view wx:for="{{men_list}}" class="menu_item" data-url="{{item.url}}" catchtap="nav_menu">
                <image src="{{imghots + item.img}}" class="logo" lazy-load></image>
                <view>{{item.name}}</view>
              </view>
            </view>
          </view>
        </view>
      </view>
      <view wx:if="{{!istop}}" catchtap="nav_search" class="navl_minddle ellipsis-1" style="margin: 0 {{navleft_pb}}px;display: block">
        <icon type="search" size="28rpx" color="#898989" class="sear_fangda" />
        <text>搜索商品</text>
      </view>
      <view  wx:else ></view>
      <view wx:if="{{is_share}}" class="navl_right" catchtap="fenx_fn" style="height:{{mentButt_h}}px;width:{{mentButt_h}}px;">
        <text  class="iconfont icon-weixin" style="color:rgb(4, 174, 15);size: 16rpx;"></text>
	 			  <!-- <image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image> -->
      </view>
      <view wx:else></view>
    </view>
    <view class="nav_right">1212121</view>
  </view>
</view>

</block>