Commit 3c7855abe336447a6f5d6e9bf06f69e9fed2d10b

Authored by WXD-SEASON\season
2 parents bace0fb8 f1352a89

Merge branch 'dev_oa_luo36' into dev

components/diy_goodsGroup/diy_goodsGroup.wxml
@@ -11,17 +11,17 @@ @@ -11,17 +11,17 @@
11 <view class="{{'tabBox ' + (object.menu_style==2 ? 'tab2' :'')}}"> 11 <view class="{{'tabBox ' + (object.menu_style==2 ? 'tab2' :'')}}">
12 <!--样式一--> 12 <!--样式一-->
13 <block wx:if="{{object.menu_style==1}}"> 13 <block wx:if="{{object.menu_style==1}}">
14 - <view wx:if="{{object.show_all==1}}" style="padding: 0 35rpx;" class="{{'tab ' + (title_index == 10 ? 'clor ' :'')}}" >全部<span class="tab1" wx:if="{{10==title_index}}"></span></view>  
15 - <view wx:for="{{object.nav_list}}" style="padding: 0 35rpx;" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}" class="{{'tab ' + (index==title_index ? 'clor ' :'')}}">{{item.title}}<span class="tab1" wx:if="{{index==title_index}}"></span></view> 14 + <view wx:if="{{object.show_all==1}}" style="padding: 0 35rpx;font-size: {{object.title_font_size*2}}rpx;color: {{object.title_color}};" class="{{'tab ' + (title_index == 10 ? 'clor ' :'')}}" >全部<span class="tab1" wx:if="{{10==title_index}}"></span></view>
  15 + <view wx:for="{{object.nav_list}}" style="padding: 0 35rpx;font-size: {{object.title_font_size*2}}rpx;color: {{object.title_color}};" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}" class="{{'tab ' + (index==title_index ? 'clor ' :'')}}">{{item.title}}<span class="tab1" wx:if="{{index==title_index}}"></span></view>
16 </block> 16 </block>
17 <!--样式二--> 17 <!--样式二-->
18 <block wx:if="{{object.menu_style==2}}"> 18 <block wx:if="{{object.menu_style==2}}">
19 - <view wx:for="{{object.nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}" class="{{'tab ' + (index==title_index ? 'tab_action' : '')}}"> {{item.title}}</view> 19 + <view wx:for="{{object.nav_list}}" style="font-size: {{object.title_font_size*2}}rpx;color: {{object.title_color}};" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}" class="{{'tab ' + (index==title_index ? 'tab_action' : '')}}"> {{item.title}}</view>
20 </block> 20 </block>
21 <!--样式三--> 21 <!--样式三-->
22 <block wx:if="{{object.menu_style==3}}"> 22 <block wx:if="{{object.menu_style==3}}">
23 <view wx:for="{{object.nav_list}}" class="tab "> 23 <view wx:for="{{object.nav_list}}" class="tab ">
24 - <view class="{{'tab3 ' + (index==title_index ? 'tab_action' : '')}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}"> 24 + <view class="{{'tab3 ' + (index==title_index ? 'tab_action' : '')}}" style="font-size: {{object.title_font_size*2}}rpx;color: {{object.title_color}};" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}">
25 {{item.title}} 25 {{item.title}}
26 </view> 26 </view>
27 </view> 27 </view>
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 <block wx:if="{{goods_array.length > 0 }}"> 50 <block wx:if="{{goods_array.length > 0 }}">
51 <!-- 大图模式 --> 51 <!-- 大图模式 -->
52 <block wx:if="{{object.style==1}}"> 52 <block wx:if="{{object.style==1}}">
53 - <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> 53 + <view style="{{'padding-top:'+object.product_spacing+'px;padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(object.product_style==2 ? ('background-color:'+object.bg_color) :'' )}}" class="{{'new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}">
54 <!-- <block wx:for="{{goods_array}}"> --> 54 <!-- <block wx:for="{{goods_array}}"> -->
55 <view wx:for="{{goods_array}}" wx:for-item="aitem" wx:for-index="aind" class="{{'new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}"> 55 <view wx:for="{{goods_array}}" wx:for-item="aitem" wx:for-index="aind" class="{{'new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}">
56 <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> 56 <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1">
@@ -91,7 +91,7 @@ @@ -91,7 +91,7 @@
91 </block> 91 </block>
92 <!-- 一行两个 --> 92 <!-- 一行两个 -->
93 <block wx:if="{{object.style==2}}"> 93 <block wx:if="{{object.style==2}}">
94 - <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') }}"> 94 + <view style="{{'padding-top:'+object.product_spacing+'px;padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(object.product_style==2 ? ('background-color:'+object.bg_color) :'' )}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') }}">
95 <!-- <block wx:for="{{goods_array}}"> --> 95 <!-- <block wx:for="{{goods_array}}"> -->
96 <view wx:for="{{goods_array}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')+ (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'')}}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/2 - ' + object.product_spacing/2+'px)')}}"> 96 <view wx:for="{{goods_array}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')+ (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'')}}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/2 - ' + object.product_spacing/2+'px)')}}">
97 <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> 97 <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1">
@@ -139,7 +139,7 @@ @@ -139,7 +139,7 @@
139 </block> 139 </block>
140 <!-- 一行三个 --> 140 <!-- 一行三个 -->
141 <block wx:if="{{object.style==3}}"> 141 <block wx:if="{{object.style==3}}">
142 - <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> 142 + <view style="{{'padding-top:'+object.product_spacing+'px;padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(object.product_style==2 ? ('background-color:'+object.bg_color) :'' )}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}">
143 <!-- <block wx:for="{{goods_array}}"> --> 143 <!-- <block wx:for="{{goods_array}}"> -->
144 <view wx:for="{{goods_array}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/3 - ' + (object.product_spacing*2)/3+'px)')}}"> 144 <view wx:for="{{goods_array}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/3 - ' + (object.product_spacing*2)/3+'px)')}}">
145 <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> 145 <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1">
@@ -187,7 +187,7 @@ @@ -187,7 +187,7 @@
187 </block> 187 </block>
188 <!-- 详细列表 --> 188 <!-- 详细列表 -->
189 <block wx:if="{{object.style==4}}"> 189 <block wx:if="{{object.style==4}}">
190 - <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') }}"> 190 + <view style="{{'padding-top:'+object.product_spacing+'px;padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(object.product_style==2 ? ('background-color:'+object.bg_color) :'' )}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') }}">
191 <!-- <block wx:for="{{goods_array}}"> --> 191 <!-- <block wx:for="{{goods_array}}"> -->
192 <view wx:for="{{goods_array}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}"> 192 <view wx:for="{{goods_array}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}">
193 <navigator style="display: flex;" url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> 193 <navigator style="display: flex;" url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1">
@@ -235,7 +235,7 @@ @@ -235,7 +235,7 @@
235 </block> 235 </block>
236 <!-- 一大一小 --> 236 <!-- 一大一小 -->
237 <block wx:if="{{object.style==5}}"> 237 <block wx:if="{{object.style==5}}">
238 - <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> 238 + <view style="{{'padding-top:'+object.product_spacing+'px;padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(object.product_style==2 ? ('background-color:'+object.bg_color) :'' )}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}">
239 <block wx:for="{{goods_array}}"> 239 <block wx:for="{{goods_array}}">
240 <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind"> 240 <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
241 <view wx:if="{{aind==0}}" class="{{'new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}"> 241 <view wx:if="{{aind==0}}" class="{{'new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}">
@@ -413,7 +413,7 @@ @@ -413,7 +413,7 @@
413 413
414 </block> 414 </block>
415 <!-- 横向滑动 3个--> 415 <!-- 横向滑动 3个-->
416 - <block wx:if="{{object.style==6}}"> 416 + <view wx:if="{{object.style==6}}" style="padding-top:{{object.product_spacing}}px;{{(object.product_style==2 ? ('background-color:'+object.bg_color) :'' )}}">
417 <!-- <swiper indicator-dots circular> --> 417 <!-- <swiper indicator-dots circular> -->
418 <swiper indicator-dots style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(swiperHeight ? ('height:'+swiperHeight+';'):'' )}}" class="{{' new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> 418 <swiper indicator-dots style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(swiperHeight ? ('height:'+swiperHeight+';'):'' )}}" class="{{' new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}">
419 <swiper-item wx:for="{{goods_array}}" class="flex2" style="padding: 5rpx;"> 419 <swiper-item wx:for="{{goods_array}}" class="flex2" style="padding: 5rpx;">
@@ -459,7 +459,7 @@ @@ -459,7 +459,7 @@
459 </swiper> 459 </swiper>
460 <!-- </swiper> --> 460 <!-- </swiper> -->
461 461
462 - </block> 462 + </view>
463 463
464 <block wx:if="{{object.style!=6}}"> 464 <block wx:if="{{object.style!=6}}">
465 <block wx:if="{{classstyle_id=='1' }}"> 465 <block wx:if="{{classstyle_id=='1' }}">
components/diy_goodsGroup/diy_goodsGroup.wxss
@@ -1025,6 +1025,7 @@ top: 10rpx; @@ -1025,6 +1025,7 @@ top: 10rpx;
1025 .boxsha{ 1025 .boxsha{
1026 /* box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25); */ 1026 /* box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25); */
1027 /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */ 1027 /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
  1028 + background-color: #fff;
1028 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19); 1029 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
1029 } 1030 }
1030 .but_radius85{ 1031 .but_radius85{
@@ -1151,7 +1152,7 @@ top: 10rpx; @@ -1151,7 +1152,7 @@ top: 10rpx;
1151 font-size: 28rpx; 1152 font-size: 28rpx;
1152 font-weight: bold; 1153 font-weight: bold;
1153 overflow-x: auto; 1154 overflow-x: auto;
1154 - margin-bottom: 20rpx; 1155 + /* margin-bottom: 20rpx; */
1155 /* min-width: 25%; */ 1156 /* min-width: 25%; */
1156 } 1157 }
1157 1158
@@ -1188,7 +1189,7 @@ top: 10rpx; @@ -1188,7 +1189,7 @@ top: 10rpx;
1188 } 1189 }
1189 .tab_action{ 1190 .tab_action{
1190 background-color: #f23030; 1191 background-color: #f23030;
1191 - color: #fff; 1192 + color: #fff !important;
1192 border: none !important; 1193 border: none !important;
1193 opacity: .8; 1194 opacity: .8;
1194 /* border-color: #f23030 !important; */ 1195 /* border-color: #f23030 !important; */
packageA/pages/distribution/shop/shop.js
@@ -33,6 +33,7 @@ Page({ @@ -33,6 +33,7 @@ Page({
33 isAll: true, 33 isAll: true,
34 is_no_plus:1, 34 is_no_plus:1,
35 default_img: '/miniapp/images/default_g_img.gif', 35 default_img: '/miniapp/images/default_g_img.gif',
  36 + is_distribut:0, //是否是分销
36 }, 37 },
37 38
38 /** 39 /**
@@ -190,8 +191,8 @@ Page({ @@ -190,8 +191,8 @@ Page({
190 var th = this; 191 var th = this;
191 //更新一下会员的信息 192 //更新一下会员的信息
192 if (getApp().globalData.user_id) { 193 if (getApp().globalData.user_id) {
193 - if (!getApp().globalData.userInfo['is_distribut']) {  
194 - th.setData({ ishidden_comise: 1 }) 194 + if (getApp().globalData.userInfo['is_distribut']) {
  195 + th.setData({ is_distribut: 1 })
195 } 196 }
196 getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + getApp().globalData.user_id, { 197 getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + getApp().globalData.user_id, {
197 isShowLoading: false, 198 isShowLoading: false,
packageA/pages/distribution/shop/shop.wxml
@@ -207,9 +207,9 @@ @@ -207,9 +207,9 @@
207 <!-- 分层金额 --> 207 <!-- 分层金额 -->
208 <!-- <view hidden="{{ishidden_comise}}" class="fs24 c-a"> 208 <!-- <view hidden="{{ishidden_comise}}" class="fs24 c-a">
209 分成金额: 209 分成金额:
210 - <text class="money c-red">{{filter.toFix(item.commission,2)}}</text> 210 + <text class="money c-red">{{filter.toFix(item.commission,2)}}</text>
211 </view> --> 211 </view> -->
212 - <view hidden="{{ishidden_comise}}"> 212 + <view wx:if="{{is_distribut || (!is_distribut && storeDistribut && storeDistribut.is_commission_displayed==1)}}">
213 <view class="fs24 c-a" wx:if="{{item.distribut_level >= 1 && item.new_fir_rate !=0}}"> 213 <view class="fs24 c-a" wx:if="{{item.distribut_level >= 1 && item.new_fir_rate !=0}}">
214 一级分成: 214 一级分成:
215 <text class="money c-red">{{filter.toFix(item.new_fir_rate,2)}}</text> 215 <text class="money c-red">{{filter.toFix(item.new_fir_rate,2)}}</text>
@@ -369,18 +369,20 @@ @@ -369,18 +369,20 @@
369 分成金额: 369 分成金额:
370 <text class="money c-red">{{filter.toFix(item.commission,2)}}</text> 370 <text class="money c-red">{{filter.toFix(item.commission,2)}}</text>
371 </view> --> 371 </view> -->
372 - <view class="fs24 c-a" wx:if="{{item.distribut_level >= 1 && item.new_fir_rate !=0}}">  
373 - 一级分成:  
374 - <text class="money c-red">{{filter.toFix(item.new_fir_rate,2)}}</text>  
375 - </view>  
376 - <view class="fs24 c-a" wx:if="{{item.distribut_level >= 2 && item.new_sec_rate !=0}}">  
377 - 二级分成:  
378 - <text class="money c-red">{{filter.toFix(item.new_sec_rate,2)}}</text>  
379 - </view>  
380 - <view class="fs24 c-a" wx:if="{{item.distribut_level >= 3 && item.new_thi_rate !=0}}">  
381 - 三级分成:  
382 - <text class="money c-red">{{filter.toFix(item.new_thi_rate,2)}}</text>  
383 - </view> 372 + <block wx:if="{{is_distribut || (!is_distribut && storeDistribut && storeDistribut.is_commission_displayed==1)}}">
  373 + <view class="fs24 c-a" wx:if="{{item.distribut_level >= 1 && item.new_fir_rate !=0}}">
  374 + 一级分成:
  375 + <text class="money c-red">{{filter.toFix(item.new_fir_rate,2)}}</text>
  376 + </view>
  377 + <view class="fs24 c-a" wx:if="{{item.distribut_level >= 2 && item.new_sec_rate !=0}}">
  378 + 二级分成:
  379 + <text class="money c-red">{{filter.toFix(item.new_sec_rate,2)}}</text>
  380 + </view>
  381 + <view class="fs24 c-a" wx:if="{{item.distribut_level >= 3 && item.new_thi_rate !=0}}">
  382 + 三级分成:
  383 + <text class="money c-red">{{filter.toFix(item.new_thi_rate,2)}}</text>
  384 + </view>
  385 + </block>
384 </view> 386 </view>
385 </view> 387 </view>
386 </view> 388 </view>
packageA/pages/profile/profile.js
@@ -1159,22 +1159,43 @@ Page({ @@ -1159,22 +1159,43 @@ Page({
1159 console.log(e); 1159 console.log(e);
1160 let b = this.getInput(e); 1160 let b = this.getInput(e);
1161 let reg=/^[0-9\-]*$/ 1161 let reg=/^[0-9\-]*$/
  1162 + // let reg=/^\d{4}-\d{1,2}-\d{1,2}$/
1162 if (!(reg.test(b))){ 1163 if (!(reg.test(b))){
1163 return this.data.oldbirthday 1164 return this.data.oldbirthday
1164 } 1165 }
  1166 +
1165 let length = b.length; 1167 let length = b.length;
1166 let oldBirtthDayLength=this.data.oldBirtthDayLength 1168 let oldBirtthDayLength=this.data.oldBirtthDayLength
1167 if (length > oldBirtthDayLength) { 1169 if (length > oldBirtthDayLength) {
  1170 +
1168 if (b.length==4) { 1171 if (b.length==4) {
1169 b+='-' 1172 b+='-'
1170 } 1173 }
  1174 + if (b.length==6 && b[5] >1) {
  1175 + console.log(b[5]);
  1176 + return this.data.oldbirthday
  1177 + }
  1178 +
1171 if (b.length==7) { 1179 if (b.length==7) {
1172 - b+='-' 1180 + if (b[6]=='-') {
  1181 + let lb = b.split('');
  1182 + lb.splice(5, 0, 0);
  1183 + b = lb.join('');
  1184 + }else{
  1185 + b+='-'
  1186 + }
  1187 +
  1188 + }
  1189 +
  1190 + if (b.length==10) {
  1191 + let a=b[8]+b[9];
  1192 + if (a*1>31) {
  1193 + return this.data.oldbirthday
  1194 + }
1173 } 1195 }
1174 - // if (b.length==6 && b[5] >1) {  
1175 - // console.log(b[5]);  
1176 1196
1177 - // } 1197 +
  1198 +
1178 } 1199 }
1179 this.setData({ 1200 this.setData({
1180 datet: b, 1201 datet: b,
pages/goods/categoryList/categoryList.js
@@ -75,8 +75,8 @@ Page({ @@ -75,8 +75,8 @@ Page({
75 load: 0, 75 load: 0,
76 xmlist: null, 76 xmlist: null,
77 77
78 - is_retail_price:0 //是否显示零售价  
79 - 78 + is_retail_price:0, //是否显示零售价
  79 + banner: null, //分类广告
80 80
81 }, 81 },
82 82
@@ -173,7 +173,7 @@ Page({ @@ -173,7 +173,7 @@ Page({
173 if (0 != this.data.cat_id) { 173 if (0 != this.data.cat_id) {
174 url += "&cat_id=" + this.data.cat_id; 174 url += "&cat_id=" + this.data.cat_id;
175 } 175 }
176 - 176 +
177 // this.requestGoodsList(url); 177 // this.requestGoodsList(url);
178 getApp().getConfig2(function (rs) { 178 getApp().getConfig2(function (rs) {
179 //计算等级价相关 179 //计算等级价相关
@@ -202,9 +202,9 @@ Page({ @@ -202,9 +202,9 @@ Page({
202 //调用底部导航 202 //调用底部导航
203 //t.editTabBar(that,getApp().globalData.setting.stoid,getApp().globalData.url); 203 //t.editTabBar(that,getApp().globalData.setting.stoid,getApp().globalData.url);
204 //this.requestFirstCategoris(); 204 //this.requestFirstCategoris();
205 - setTimeout(function () { 205 + // setTimeout(function () {
206 //if (getApp().globalData.user_id) getApp().requestCardNum(that); 206 //if (getApp().globalData.user_id) getApp().requestCardNum(that);
207 - }, 500) 207 + // }, 500)
208 208
209 if (this.data.load) return false; 209 if (this.data.load) return false;
210 210
@@ -228,11 +228,17 @@ Page({ @@ -228,11 +228,17 @@ Page({
228 if (e.categoryset.indexOf("," + 2 + ",") != -1) { that.setData({ is_show_gb: 1 }); } 228 if (e.categoryset.indexOf("," + 2 + ",") != -1) { that.setData({ is_show_gb: 1 }); }
229 if (e.categoryset.indexOf("," + 4 + ",") != -1) { that.setData({ is_show_xm: 1 }); } 229 if (e.categoryset.indexOf("," + 4 + ",") != -1) { that.setData({ is_show_xm: 1 }); }
230 that.setData({ store_config: e, is_do: 1 }); 230 that.setData({ store_config: e, is_do: 1 });
231 - 231 + //请求自定义分类数据
  232 + // that.requestFirstCategoris_diy()
232 //---有勾品类--- 233 //---有勾品类---
233 if (that.data.is_show_pl) { 234 if (that.data.is_show_pl) {
234 - that.requestFirstCategoris(); 235 + if (is_newsgoodstype==1) { //如果是风格2,则请求自定义分类
  236 + that.requestFirstCategoris_diy();
  237 + }else{
  238 + that.requestFirstCategoris();
  239 + }
235 } 240 }
  241 +
236 if (that.data.is_show_xm != 1 && that.data.is_show_gb != 1 && that.data.is_show_pp != 1 && that.data.is_show_pl) { 242 if (that.data.is_show_xm != 1 && that.data.is_show_gb != 1 && that.data.is_show_pp != 1 && that.data.is_show_pl) {
237 that.data.pl_timer = setInterval(function () { 243 that.data.pl_timer = setInterval(function () {
238 if (that.data.one_level_classify.length > 0) { 244 if (that.data.one_level_classify.length > 0) {
@@ -300,17 +306,159 @@ Page({ @@ -300,17 +306,159 @@ Page({
300 306
301 }, 307 },
302 308
  309 +
  310 + //---------------自定义分类请求接口,数据进行拼装------------------
  311 + requestFirstCategoris_diy: function () {
  312 + var t = this;
  313 + let that=this;
  314 + e.get("/api/weshop/customizeCategory/page", {
  315 + data: { store_id: oo.stoid, pageSize: 6600, is_show: 1 },
  316 + success: function (e) {
  317 +
  318 + if (e.data.code !=0) {
  319 + that.requestFirstCategoris();
  320 + return
  321 + }
  322 + var arr = new Array();
  323 + var dda = e.data.data.pageData;
  324 + if (dda != null && dda != "" && dda != undefined) {
  325 + t.setData({ is_pl_time: 1 });
  326 + }
  327 +
  328 + if (t.data.is_used_share == 0) {//is_used_share控制新旧版本
  329 + for (var i = 0; i < dda.length; i++) {
  330 + if (parseInt(dda[i].level) == 1) {
  331 + var item = { items: dda[i], array: new Array(),diy_class:1 } //增加一个diy_class 标识表示为自定义分类
  332 + arr.push(item);
  333 + } else if (parseInt(dda[i].level) == 2) {
  334 + for (var j = 0; j < arr.length; j++) {
  335 + if (parseInt(dda[i].parent_id) == parseInt(arr[j].items.id)) {
  336 + arr[j].array.push(dda[i]); break;
  337 + }
  338 + }
  339 + } else {
  340 + continue;
  341 + }
  342 + }
  343 + t.setData({ catelist: arr });
  344 + } else if (t.data.is_used_share == 1 || t.data.is_used_share == 2) {
  345 +
  346 + //---------新的版本----------------
  347 + for (var i = 0; i < dda.length; i++) {
  348 + //--要排队的元素---
  349 + var need_to_insert = dda[i];
  350 + if (parseInt(need_to_insert.level) == 1) {
  351 + //判断数组的长度看看有没有2级菜单
  352 + var item = { items: need_to_insert, array: new Array(),diy_class:1 } //增加一个diy_class 标识表示为自定义分类
  353 + arr.push(item);
  354 + } else if (parseInt(need_to_insert.level) == 2) {
  355 +
  356 + for (var j = 0; j < arr.length; j++) {
  357 +
  358 +
  359 + if (parseInt(need_to_insert.parent_id) == parseInt(arr[j].items.id)) {
  360 +
  361 + var ishaf_two = { items: need_to_insert, arrays: new Array(),diy_class:1 };
  362 + arr[j].array.push(ishaf_two); arr.ishaf_two = 0;
  363 + }
  364 + }
  365 + } else if (parseInt(need_to_insert.level) == 3) {//判断有3级的时候在二级里添加一个数组
  366 +
  367 + for (var dd = 0; dd < arr.length; dd++) {
  368 + for (var pp = 0; pp < arr[dd].array.length; pp++) {
  369 + //--判断二级--
  370 + var two_item = arr[dd].array;
  371 +
  372 + if (two_item && two_item.length > 0) {
  373 +
  374 + if (parseInt(need_to_insert.parent_id) == parseInt(two_item[pp].items.id)) {
  375 +
  376 + arr[dd].array[pp].arrays.push(need_to_insert); arr.ishaf_three = 0; break;
  377 + }
  378 + }
  379 + }
  380 + }
  381 + }
  382 + }
  383 + for (var i = 0; i < arr.length; i++) {
  384 + arr[i]['items']['is_show_class'] = false;
  385 + var mobile_name = arr[i]['items']['name']
  386 + //if(mobile_name.length > 4){
  387 + //arr[i]['items']['name'] = mobile_name.substring(0, 4)
  388 + //}
  389 + }
  390 + if (t.data.is_show_pl == 1 && t.data.is_show_pp != 1 && t.data.is_show_gb != 1) {
  391 + arr[0]['items']['is_show_class'] = true;
  392 + }
  393 + //console.log(arr)
  394 + t.setData({ one_level_classify: arr });
  395 + //---有勾品类---
  396 + // if (that.data.is_show_pl) {
  397 + that.requestFirstCategoris();
  398 + // }
  399 + if (t.data.select_classify_on == 0) {
  400 + var item = arr[0];
  401 +
  402 + var name = item.items.name;
  403 + var cid = item.items.id;
  404 + var arr = item.array;
  405 +
  406 + console.log("11111", item);
  407 + console.log(arr.length);
  408 +
  409 + if (arr.length == 0) {
  410 + t.setData({
  411 + select_classify_on: 0, index: 0, classify_name: name, cat_id: cid,
  412 + goodslist: null, is_level_three: 0
  413 + });
  414 +
  415 + if (t.data.is_used_share == 2)
  416 + t.style(t.data.stylePage, cid)
  417 +
  418 + return false;
  419 + }
  420 + if (arr.length != 0) {
  421 + var is_lev_thr = 0
  422 + for (var i = 0; i < arr.length; i++) {
  423 + if (arr[i].arrays.length > 0) { is_lev_thr = 1; break; }
  424 + }
  425 + t.setData({ is_level_three: is_lev_thr ,cat_id:cid});
  426 +
  427 + if (this.data.is_level_three != 1) {
  428 + t.setData({ index: 0, classify_name: name, goodslist: arr });
  429 + // t.setData({ index: 0, classify_name: name });
  430 + } else {
  431 + // t.setData({ index: 0});
  432 + t.setData({ index: 0, goodslist: arr });
  433 + }
  434 + }
  435 +
  436 + if (t.data.is_used_share == 2){
  437 + t.style(t.data.stylePage, cid)
  438 + }
  439 +
  440 + }
  441 +
  442 + }
  443 + }
  444 + });
  445 + },
  446 +
303 //---------------分类请求接口,数据进行拼装------------------ 447 //---------------分类请求接口,数据进行拼装------------------
304 requestFirstCategoris: function () { 448 requestFirstCategoris: function () {
  449 +
305 var t = this; 450 var t = this;
306 e.get("/api/weshop/goodscategory/page", { 451 e.get("/api/weshop/goodscategory/page", {
307 data: { store_id: oo.stoid, pageSize: 6600, is_show: 1 }, 452 data: { store_id: oo.stoid, pageSize: 6600, is_show: 1 },
308 success: function (e) { 453 success: function (e) {
  454 + if (e.data.code !=0) {
  455 + return
  456 + }
309 var arr = new Array(); 457 var arr = new Array();
310 var dda = e.data.data.pageData; 458 var dda = e.data.data.pageData;
311 if (dda != null && dda != "" && dda != undefined) { 459 if (dda != null && dda != "" && dda != undefined) {
312 t.setData({ is_pl_time: 1 }); 460 t.setData({ is_pl_time: 1 });
313 - } 461 + }
314 462
315 if (t.data.is_used_share == 0) {//is_used_share控制新旧版本 463 if (t.data.is_used_share == 0) {//is_used_share控制新旧版本
316 for (var i = 0; i < dda.length; i++) { 464 for (var i = 0; i < dda.length; i++) {
@@ -377,46 +525,53 @@ Page({ @@ -377,46 +525,53 @@ Page({
377 arr[0]['items']['is_show_class'] = true; 525 arr[0]['items']['is_show_class'] = true;
378 } 526 }
379 //console.log(arr) 527 //console.log(arr)
380 - t.setData({ one_level_classify: arr });  
381 - if (t.data.select_classify_on == 0) {  
382 - var item = arr[0];  
383 -  
384 - var name = item.items.name;  
385 - var cid = item.items.id;  
386 - var arr = item.array;  
387 -  
388 - console.log("11111", item);  
389 - console.log(arr.length);  
390 -  
391 - if (arr.length == 0) {  
392 - t.setData({  
393 - select_classify_on: 0, index: 0, classify_name: name, cat_id: cid,  
394 - goodslist: null, is_level_three: 0  
395 - });  
396 -  
397 - if (t.data.is_used_share == 2)  
398 - t.style(t.data.stylePage, cid)  
399 -  
400 - return false;  
401 - }  
402 - if (arr.length != 0) {  
403 - var is_lev_thr = 0  
404 - for (var i = 0; i < arr.length; i++) {  
405 - if (arr[i].arrays.length > 0) { is_lev_thr = 1; break; } 528 + if (t.data.one_level_classify.length>0) {
  529 + let one_level_classify = t.data.one_level_classify;
  530 + one_level_classify.push(...arr)
  531 + t.setData({ one_level_classify: one_level_classify });
  532 + }else{
  533 + t.setData({ one_level_classify: arr });
  534 + if (t.data.select_classify_on == 0) {
  535 + var item = arr[0];
  536 +
  537 + var name = item.items.name;
  538 + var cid = item.items.id;
  539 + var arr = item.array;
  540 +
  541 + console.log("11111", item);
  542 + console.log(arr.length);
  543 +
  544 + if (arr.length == 0) {
  545 + t.setData({
  546 + select_classify_on: 0, index: 0, classify_name: name, cat_id: cid,
  547 + goodslist: null, is_level_three: 0
  548 + });
  549 +
  550 + if (t.data.is_used_share == 2)
  551 + t.style(t.data.stylePage, cid)
  552 +
  553 + return false;
  554 + }
  555 + if (arr.length != 0) {
  556 + var is_lev_thr = 0
  557 + for (var i = 0; i < arr.length; i++) {
  558 + if (arr[i].arrays.length > 0) { is_lev_thr = 1; break; }
  559 + }
  560 + t.setData({ is_level_three: is_lev_thr ,cat_id:cid});
  561 +
  562 + if (this.data.is_level_three != 1) {
  563 + t.setData({ index: 0, classify_name: name, goodslist: arr });
  564 + } else {
  565 + t.setData({ index: 0, goodslist: arr });
  566 + }
406 } 567 }
407 - t.setData({ is_level_three: is_lev_thr ,cat_id:cid}); 568 + if (t.data.is_used_share == 2){
408 569
409 - if (this.data.is_level_three != 1) {  
410 - t.setData({ index: 0, classify_name: name, goodslist: arr });  
411 - } else {  
412 - t.setData({ index: 0, goodslist: arr }); 570 + t.style(t.data.stylePage, cid)
413 } 571 }
  572 +
414 } 573 }
415 -  
416 - t.style(t.data.stylePage, cid)  
417 -  
418 } 574 }
419 -  
420 } 575 }
421 } 576 }
422 }); 577 });
@@ -842,6 +997,14 @@ Page({ @@ -842,6 +997,14 @@ Page({
842 } 997 }
843 this.setData({ select_classify_on: indexs, index: indexs, classify_name: name, cat_id: cid, stylePage: 1, lastMsg: false, }); 998 this.setData({ select_classify_on: indexs, index: indexs, classify_name: name, cat_id: cid, stylePage: 1, lastMsg: false, });
844 } 999 }
  1000 + //==1的时候,样式2的时候分类广告切换
  1001 + if (this.data.is_used_share==1) {
  1002 + let banner=null;
  1003 +
  1004 + this.setData({
  1005 + banner
  1006 + })
  1007 + }
845 1008
846 }, 1009 },
847 1010
@@ -906,6 +1069,7 @@ Page({ @@ -906,6 +1069,7 @@ Page({
906 requestGoodsList: function (t) { 1069 requestGoodsList: function (t) {
907 var that = this; 1070 var that = this;
908 that.data.requestUrl = t; 1071 that.data.requestUrl = t;
  1072 + console.error(666666);
909 e.get("/api/weshop/goods/page?1=1", { 1073 e.get("/api/weshop/goods/page?1=1", {
910 data: { page: that.data.stylePage, cat_id: that.data.cat_id, parent_id: 0, orderField: 'sort', orderType: 'asc', is_mainshow: 1, isonsale: 1, store_id: oo.stoid, is_recommend: 1 }, 1074 data: { page: that.data.stylePage, cat_id: that.data.cat_id, parent_id: 0, orderField: 'sort', orderType: 'asc', is_mainshow: 1, isonsale: 1, store_id: oo.stoid, is_recommend: 1 },
911 success: function (data) { 1075 success: function (data) {
@@ -1202,7 +1366,12 @@ Page({ @@ -1202,7 +1366,12 @@ Page({
1202 resetData: function () { 1366 resetData: function () {
1203 a.resetConfig(), this.data.requestData = null, this.data.currentPage = 1; 1367 a.resetConfig(), this.data.requestData = null, this.data.currentPage = 1;
1204 }, 1368 },
1205 - 1369 + go_ad: function (e) {
  1370 + var url = e.currentTarget.dataset.url;
  1371 + if (!url || url == '') return;
  1372 + if (url[0] != '/') url = '/' + url;
  1373 + getApp().goto(url);
  1374 + },
1206 //---回复最初的设置--- 1375 //---回复最初的设置---
1207 restoreData: function () { 1376 restoreData: function () {
1208 this.setData({ 1377 this.setData({
pages/goods/categoryList/categoryList.wxml
@@ -296,11 +296,19 @@ @@ -296,11 +296,19 @@
296 <!-- 品类--> 296 <!-- 品类-->
297 <block wx:if="{{is_show_pl&&select_classify_on!=221&&select_classify_on!=220&&select_classify_on!=223}}"> 297 <block wx:if="{{is_show_pl&&select_classify_on!=221&&select_classify_on!=220&&select_classify_on!=223}}">
298 <!-- <block wx:if="{{select_classify_on!=221&&select_classify_on!=220&&select_classify_on!=223&&is_level_three!=1}}"> --> 298 <!-- <block wx:if="{{select_classify_on!=221&&select_classify_on!=220&&select_classify_on!=223&&is_level_three!=1}}"> -->
299 - 299 + <view wx:if="{{one_level_classify && one_level_classify[select_classify_on] && one_level_classify[select_classify_on].items && one_level_classify[select_classify_on].items.ad_list && one_level_classify[select_classify_on].items.ad_list.length>0}}" style="width: 515rpx;height: 200rpx;margin: 0 auto;">
  300 + <swiper circular="true" indicator-dots indicator-active-color="#fff" autoplay="true" class="swiper_box" duration="1000" interval="3000" vertical="" bindchange="bannerSwiperChange" style="height:200rpx;min-height: 200rpx;">
  301 + <swiper-item wx:for="{{one_level_classify[select_classify_on].items.ad_list}}" wx:key="banner" class="swiperItem">
  302 + <view class="slide-image-frame">
  303 + <image bindtap='go_ad' data-url="{{item.ad_weapplink}}" style="width: 100%;height:200rpx;" class="slide-image" src="{{ iurl + item.ad_code}}" data-index="{{index}}" lazy-load="true" ></image>
  304 + </view>
  305 + </swiper-item>
  306 + </swiper>
  307 + </view>
300 <view class="my-container"> 308 <view class="my-container">
301 - <view class="classify_name fs28 flex-space-between ai-center" data-pid="0" data-cid="{{cat_id}}" bindtap='select_more'> 309 + <view class="classify_name fs28 flex-space-between ai-center" data-pid="0" data-cid="{{cat_id}}" bindtap="{{(one_level_classify[select_classify_on].diy_class) ? '' :'select_more'}} ">
302 <view class="classify_title ellipsis-1">{{classify_name}}</view> 310 <view class="classify_title ellipsis-1">{{classify_name}}</view>
303 - <view class="flex select_more ai-center"> 311 + <view class="flex select_more ai-center" wx:if="{{!(one_level_classify[select_classify_on].diy_class)}}">
304 <view class="red-co fs24">更多</view> 312 <view class="red-co fs24">更多</view>
305 <view class="bg_right width_height" style="margin-top: 0;"></view> 313 <view class="bg_right width_height" style="margin-top: 0;"></view>
306 </view> 314 </view>
@@ -332,10 +340,10 @@ @@ -332,10 +340,10 @@
332 <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="inds"> 340 <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="inds">
333 <view> 341 <view>
334 342
335 - <view class="classify_name fs28 flex-space-between ai-center" data-pid="{{goods.items.parent_id}}" data-cid="{{goods.items.id}}" bindtap='select_more'> 343 + <view class="classify_name fs28 flex-space-between ai-center" data-pid="{{goods.items.parent_id}}" data-cid="{{goods.items.id}}" bindtap="{{one_level_classify[select_classify_on][diy_class] ? '' :'select_more'}} ">
336 344
337 <view class="classify_title ellipsis-1" style="margin-left: 25rpx;">{{goods.items.name}}</view> 345 <view class="classify_title ellipsis-1" style="margin-left: 25rpx;">{{goods.items.name}}</view>
338 - <view class="flex select_more ai-center"> 346 + <view class="flex select_more ai-center" wx:if="{{!one_level_classify[select_classify_on].diy_class}}">
339 <view class="red-co fs24">更多</view> 347 <view class="red-co fs24">更多</view>
340 <view class="bg_right width_height" style="margin-top: 0;"></view> 348 <view class="bg_right width_height" style="margin-top: 0;"></view>
341 </view> 349 </view>
@@ -343,7 +351,7 @@ @@ -343,7 +351,7 @@
343 351
344 <block wx:if="{{goods.arrays.length>0}}"> 352 <block wx:if="{{goods.arrays.length>0}}">
345 <view class="classify_content-frame flex-wrap" style="margin-left: 50rpx;"> 353 <view class="classify_content-frame flex-wrap" style="margin-left: 50rpx;">
346 - <view class="type_img_frame t-c ib" data-cid="{{item.id}}" data-pid="three" wx:for="{{goods.arrays}}" wx:for-index="index" wx:for-item="item" bindtap="go_cate"> 354 + <view class="type_img_frame t-c ib" data-cid="{{item.id}}" data-pid="three" wx:for="{{goods.arrays}}" data-url="{{item.weapp_path_url}}" wx:for-index="index" wx:for-item="item" bindtap="{{goods.diy_class ? 'go_ad':'go_cate'}}">
347 <image class=" type_img" src="{{item.icoimg==null||item.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':item.icoimg}}" binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image> 355 <image class=" type_img" src="{{item.icoimg==null||item.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':item.icoimg}}" binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image>
348 <view class="brand_img_name fs24 ellipsis-1 pdh10">{{item.name}}</view> 356 <view class="brand_img_name fs24 ellipsis-1 pdh10">{{item.name}}</view>
349 </view> 357 </view>
@@ -357,7 +365,7 @@ @@ -357,7 +365,7 @@
357 365
358 <block wx:else> 366 <block wx:else>
359 <view class="classify_content-frame flex-wrap" style="margin-left: 50rpx;"> 367 <view class="classify_content-frame flex-wrap" style="margin-left: 50rpx;">
360 - <view class="type_img_frame t-c ib" data-cid="{{item.items.id}}" data-pid="three" wx:for="{{goodslist}}" wx:for-index="index" wx:for-item="item" bindtap="go_cate"> 368 + <view class="type_img_frame t-c ib" data-cid="{{item.items.id}}" data-pid="three" wx:for="{{goodslist}}" data-url="{{item.items.weapp_path_url}}" wx:for-index="index" wx:for-item="item" bindtap="{{item.diy_class ? 'go_ad':'go_cate'}}">
361 <image class=" type_img" src="{{item.items.icoimg==null||item.items.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':item.items.icoimg}}" binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image> 369 <image class=" type_img" src="{{item.items.icoimg==null||item.items.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':item.items.icoimg}}" binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image>
362 <view class="brand_img_name fs24 ellipsis-1 pdh10">{{item.items.name}}</view> 370 <view class="brand_img_name fs24 ellipsis-1 pdh10">{{item.items.name}}</view>
363 </view> 371 </view>
pages/goods/categoryList/categoryList.wxss
@@ -194,7 +194,7 @@ line-height: 50rpx; @@ -194,7 +194,7 @@ line-height: 50rpx;
194 z-index: 10; 194 z-index: 10;
195 background: #fff; 195 background: #fff;
196 /* border-top: 4rpx solid #eee; */ 196 /* border-top: 4rpx solid #eee; */
197 - border-bottom: 1rpx solid #f4f4f4; 197 + /* border-bottom: 1rpx solid #f4f4f4; */
198 padding: 20rpx; 198 padding: 20rpx;
199 } 199 }
200 200
pages/template/index.js
@@ -27,6 +27,7 @@ Page({ @@ -27,6 +27,7 @@ Page({
27 // nav_bg_color:'#e823e8', //导航按钮颜色 27 // nav_bg_color:'#e823e8', //导航按钮颜色
28 //---------------- 28 //----------------
29 is_show_top: 0, //是否置顶显示 29 is_show_top: 0, //是否置顶显示
  30 + is_fixed_nav:0,//是否显示固定底部导航
30 }, 31 },
31 32
32 onLoad: function (e) { 33 onLoad: function (e) {
@@ -192,7 +193,8 @@ Page({ @@ -192,7 +193,8 @@ Page({
192 share_title: temp_data.page_title, 193 share_title: temp_data.page_title,
193 template_arr: t_arr, 194 template_arr: t_arr,
194 isTemplate: 1, 195 isTemplate: 1,
195 - bgcolor_t: temp_data.bkcolor 196 + bgcolor_t: temp_data.bkcolor,
  197 + is_fixed_nav:temp_data.is_fixed_nav
196 }); 198 });
197 setTimeout(() => { 199 setTimeout(() => {
198 th.newGoodsGroup() 200 th.newGoodsGroup()
pages/template/index.json
@@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
26 "scan": "/components/diy_scan/diy_scan", 26 "scan": "/components/diy_scan/diy_scan",
27 "floatingWindow": "/components/diy_floatingWindow/diy_floatingWindow", 27 "floatingWindow": "/components/diy_floatingWindow/diy_floatingWindow",
28 "floatingBox": "/components/diy_floatingBox/diy_floatingBox", 28 "floatingBox": "/components/diy_floatingBox/diy_floatingBox",
  29 + "div_tab_bar": "/custom-tab-bar/index",
29 "presell": "/components/diy_pregoods/diy_pregoods" 30 "presell": "/components/diy_pregoods/diy_pregoods"
30 }, 31 },
31 "enablePullDownRefresh": false, 32 "enablePullDownRefresh": false,
pages/template/index.wxml
@@ -180,7 +180,8 @@ @@ -180,7 +180,8 @@
180 </view> 180 </view>
181 </block> 181 </block>
182 </view> 182 </view>
183 -<!-- 蒙尘 --> 183 +<div_tab_bar wx:if="{{is_fixed_nav==1}}"></div_tab_bar>
  184 +<!-- 蒙尘 -->
184 <block wx:if="{{is_disgraceful}}"> 185 <block wx:if="{{is_disgraceful}}">
185 <view class="disgraceful"> 186 <view class="disgraceful">
186 <!-- 新人礼领取图片 --> 187 <!-- 新人礼领取图片 -->