index.wxml
8.63 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<view class="container" style="background-color:{{bgcolor_t}};{{is_fixed_nav==1?'padding-bottom:110rpx;':'padding-bottom:10rpx;'}}">
<block wx:if="{{is_full_screen_navigation}}">
<view class="dis_top" style="position: fixed;">
<top_nav nav_type="{{nav_type}}" nav_frontColor="{{nav_frontColor}}" nav_backgroundColor="{{nav_backgroundColor ? '#fff' :'#fff'}}" nav_title="{{nav_title}}"></top_nav>
<!-- <js_store_select bindup_storid="get_new_storid" id="js_store_select" transparent="{{searchbox_transparent}}" bgcoler="{{nav_backgroundColor ? '#fff' :'#fff'}}" anclor="{{nav_but_color}}" ></js_store_select> -->
<block wx:for="{{template_arr}}">
<block wx:if="{{item.content.is_top==1}}">
<!--如果是搜索框的时候 -->
<block wx:if="{{item.ename=='searchbox'}}">
<searchbox object="{{item.content}}" transparent="{{searchbox_transparent}}" nav_backgroundColor="{{nav_backgroundColor ? '#fff' :'#fff'}}"></searchbox>
</block>
<!-- <block wx:if="{{item.ename=='store_select'}}">
<store_select object="{{item.content}}"></store_select>
</block> -->
</block>
</block>
</view>
<block wx:for="{{template_arr}}">
<!--广告组合-->
<block wx:if="{{item.ename=='advertising' && item.content.full_screen==1 && is_full_screen_navigation_index==index}}">
<advertising object="{{item.content}}" bindbutColorEvent="bindbut_color_event_fn" is_full_screen_navigation_index="{{is_full_screen_navigation_index}}"></advertising>
</block>
</block>
</block>
<block wx:else>
<!-- 置顶层 -->
<view class="dis_top" style="position:fixed">
<top_nav nav_type="{{0}}" nav_frontColor="{{nav_frontColor}}" nav_backgroundColor="{{nav_backgroundColor}}" nav_title="{{nav_title}}"></top_nav>
<!-- 关注公众号的显示 -->
<view id="off_top" wx:if="{{is_gz_h5}}">
<official-account></official-account>
</view>
<!-- <js_store_select id="js_store_select" bindup_storid="get_new_storid" transparent="{{0}}" bgcoler="{{nav_backgroundColor}}" anclor="{{nav_but_color}}" ></js_store_select> -->
<block wx:for="{{template_arr}}">
<block wx:if="{{item.content.is_top==1}}">
<!--如果是搜索框的时候 -->
<block wx:if="{{item.ename=='searchbox'}}">
<searchbox object="{{item.content}}"></searchbox>
</block>
<!-- <block wx:if="{{item.ename=='store_select'}}">-->
<!-- <store_select object="{{item.content}}"></store_select>-->
<!-- </block>-->
</block>
</block>
</view>
<!-- 撑开层 -->
<view>
<!-- 顶部导航撑开层 -->
<top_nav nav_type="{{-1}}" nav_frontColor="{{nav_frontColor}}" nav_backgroundColor="{{nav_backgroundColor}}" nav_title="{{nav_title}}"></top_nav>
<!-- 即时零售,门店选择撑开层 -->
<!-- <view style="width: 100%;height: 88rpx;"></view> -->
<view wx:if="{{is_gz_h5 && is_ok_h5}}" style="height: 84px;flex-shrink:0"></view>
<block wx:for="{{template_arr}}">
<block wx:if="{{item.content.is_top==1}}">
<view style="height:{{item.content.style==1 ? 110 : 88 }}rpx"></view>
</block>
</block>
</view>
</block>
<block wx:for="{{template_arr}}" wx:key="{{index}}">
<view>
<!--导航-->
<block wx:if="{{item.ename=='nav'}}">
<nav object="{{item.content}}"></nav>
</block>
<!--店招-->
<block wx:if="{{item.ename=='shopname'}}">
<shopname object="{{item.content}}"></shopname>
</block>
<!--广告组合-->
<block wx:if="{{item.ename=='advertising' && item.content.full_screen!=1}}">
<advertising object="{{item.content}}"></advertising>
</block>
<!--商品分组-->
<block wx:if="{{item.ename=='goodsGroup' || item.ename=='goodsGroupNew'}}">
<goodsGroup class="{{'goodsGroup' + index}}" object="{{item.content}}"></goodsGroup>
</block>
<!-- <block wx:if="{{item.ename=='goodsGroupNew'}}">
<diy_public class="{{'goodsGroup' + index}}" object="{{item.content}}" prom_type="21"></diy_public>
</block> -->
<!--通知-->
<block wx:if="{{item.ename=='notice'}}">
<notice object="{{item.content}}"></notice>
</block>
<!--语音-->
<block wx:if="{{item.ename=='voice'}}">
<voice object="{{item.content}}"></voice>
</block>
<!--视频-->
<block wx:if="{{item.ename=='video'}}">
<mvideo object="{{item.content}}"></mvideo>
</block>
<!--搜索-->
<block wx:if="{{item.ename=='searchbox' && item.content.is_top!=1}}">
<searchbox object="{{item.content}}"></searchbox>
</block>
<!--天天拼单-->
<block wx:if="{{item.ename=='pingd_buy'}}">
<pingd_buy object="{{item.content}}"></pingd_buy>
</block>
<block wx:if="{{item.ename=='pingd_buyNew'}}">
<diy_public object="{{item.content}}" prom_type="6"></diy_public>
</block>
<!--秒杀-->
<block wx:if="{{item.ename=='seckill' || item.ename=='seckillNew'}}">
<seckill object="{{item.content}}"></seckill>
</block>
<!-- 热区切图 -->
<block wx:if="{{item.ename=='heatCutDiagram'}}">
<heat_img object="{{item.content}}"></heat_img>
</block>
<!-- <block wx:if="{{item.ename=='seckillNew'}}">
<diy_public object="{{item.content}}" prom_type="1"></diy_public>
</block> -->
<!--标题-->
<block wx:if="{{item.ename=='title'}}">
<title object="{{item.content}}"></title>
</block>
<!--辅助空白-->
<block wx:if="{{item.ename=='white'}}">
<assist object="{{item.content}}"></assist>
</block>
<!--图片组合-->
<block wx:if="{{item.ename=='picMix'}}">
<picMax object="{{item.content}}"></picMax>
</block>
<!--悬浮集-->
<block wx:if="{{item.ename=='floatingBox'}}">
<floatingBox farr="{{item.content}}" is_show_top="{{is_show_top}}" loaction_index="{{item.loaction_index}}"></floatingBox>
</block>
<!--悬浮窗口-->
<!-- <block wx:if="{{item.ename=='floatingWindow'}}">
<floatingWindow object="{{item.content}}"></floatingWindow>
</block> -->
<!--在线上客服-->
<!-- <block wx:if="{{item.ename=='onlineService'}}">
<service object="{{item.content}}"></service>
</block> -->
<!--扫一扫-->
<!-- <block wx:if="{{item.ename=='scan'}}">
<scan object="{{item.content}}"></scan>
</block> -->
<!-- 预售 -->
<block wx:if="{{item.ename=='presale'}}">
<presell object="{{item.content}}"></presell>
</block>
<block wx:if="{{item.ename=='presaleNew'}}">
<diy_public object="{{item.content}}" prom_type="8"></diy_public>
</block>
<!-- 团购 -->
<block wx:if="{{item.ename=='groupbuy'}}">
<groupbuy object="{{item.content}}"></groupbuy>
</block>
<block wx:if="{{item.ename=='groupbuyNew'}}">
<diy_public object="{{item.content}}" prom_type="2"></diy_public>
</block>
<!-- 幸运购 -->
<block wx:if="{{item.ename=='luckyactivity'}}">
<luckyGo object="{{item.content}}"></luckyGo>
</block>
<block wx:if="{{item.ename=='luckyactivityNew'}}">
<!-- <luckyGo object="{{item.content}}"></luckyGo> -->
<diy_public object="{{item.content}}" prom_type="9"></diy_public>
</block>
<!-- 服务卡项 -->
<block wx:if="{{item.ename=='servicecategory'}}">
<serviceCard object="{{item.content}}" sticky="{{template_arr[0].content.is_top}}"></serviceCard>
</block>
</view>
</block>
<!-- 技术支持 -->
<view class="logo-container t-c">
<view class="flex ai_c fs24 jc-center pdv20 white">
<image src="{{url + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" style="border-radius: 0;" lazy-load></image>提供技术支持
</view>
</view>
</view>
<div_tab_bar wx:if="{{is_fixed_nav==1}}"></div_tab_bar>
<!-- 蒙尘 -->
<block wx:if="{{is_disgraceful}}">
<view class="disgraceful">
<!-- 新人礼领取图片 -->
<view class="newreceive flex-center">
<view>
<navigator bindtap="new_nav">
<view class="flex-level">
<image class="receive" src="{{url}}{{new_image==''?'/miniapp/images/newpeople/newreceive.png':new_image}}"></image>
</view>
</navigator>
<view class="flex-level">
<image class="close" src="{{url}}/miniapp/images/plus/Close.png" bindtap="close_disgraceful"></image>
</view>
</view>
</view>
</view>
</block>