diy_top_nav.wxml
3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!--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>