Commit f8c1035924a9fd6d690a811c307093f58fdaf1ed
1 parent
d8757032
OA单
Showing
1 changed file
with
4 additions
and
4 deletions
components/diy_goodsGroup/diy_goodsGroup.wxml
| ... | ... | @@ -11,8 +11,8 @@ |
| 11 | 11 | <view class="{{'tabBox ' + (object.menu_style==2 ? 'tab2' :'')}}"> |
| 12 | 12 | <!--样式一--> |
| 13 | 13 | <block wx:if="{{object.menu_style==1}}"> |
| 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> | |
| 14 | + <view wx:if="{{object.show_all==1}}" style="padding: 0 35rpx;font-size: {{object.title_font_size*2}}rpx;color: {{title_index==10 ? (object.title_color_action ? object.title_color_action : '#ff0000') : object.title_color}};" class="{{'tab ' }}" >全部<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: {{index==title_index ? (object.title_color_action ? object.title_color_action : '#ff0000') : object.title_color}};" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}" class="{{'tab ' }}">{{item.title}}<span class="tab1" style="background-color: {{(object.title_color_action ? object.title_color_action : '#ff0000')}};" wx:if="{{index==title_index}}"></span></view> | |
| 16 | 16 | </block> |
| 17 | 17 | <!--样式二--> |
| 18 | 18 | <block wx:if="{{object.menu_style==2}}"> |
| ... | ... | @@ -33,14 +33,14 @@ |
| 33 | 33 | <mp-sticky wx:if="{{sticky == 1}}" container="{{container}}"> |
| 34 | 34 | <view class="flex gr_title_list" style="overflow-x: auto;"> |
| 35 | 35 | <view class="gr_title_item" wx:for="{{nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}"> |
| 36 | - <text class="{{index==title_index?'t_red':''}}" style="{{title_class}}">{{item.title}}</text> | |
| 36 | + <text style="{{title_class + (index==title_index ? ('color:'+object.title_color_action) : '')}}">{{item.title}}</text> | |
| 37 | 37 | </view> |
| 38 | 38 | </view> |
| 39 | 39 | </mp-sticky> |
| 40 | 40 | |
| 41 | 41 | <view class="flex gr_title_list" style="overflow-x: auto;" wx:else> |
| 42 | 42 | <view class="gr_title_item" wx:for="{{nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}"> |
| 43 | - <text class="{{index==title_index?'t_red':''}}" style="{{title_class}}">{{item.title}}</text> | |
| 43 | + <text style="{{title_class + (index==title_index ? ('color:'+object.title_color_action) : '')}}">{{item.title}}</text> | |
| 44 | 44 | </view> |
| 45 | 45 | </view> |
| 46 | 46 | </block> | ... | ... |