Browse Source

优化 服务团 服务对样式

release
zhaoyongnian 3 years ago
parent
commit
ca9c7231a9
  1. 45
      pages/heartNew/heartNew.wxml
  2. 18
      pages/heartNew/heartNew.wxss

45
pages/heartNew/heartNew.wxml

@ -116,7 +116,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="container"> <!-- <view class="container">
<view class="tab-container"> <view class="tab-container">
<view <view
class="default {{volunteerlistType=='expend'? 'expend-active': ''}}" class="default {{volunteerlistType=='expend'? 'expend-active': ''}}"
@ -129,25 +129,50 @@
data-type="earning" data-type="earning"
>服务队</view> >服务队</view>
</view> </view>
</view> </view> -->
<block wx:if="{{volunteerlistType=='expend'}}"> <!-- <block wx:if="{{volunteerlistType=='expend'}}"> -->
<scroll-view scroll-x="{{true}}" class="scroll-tag"> <view class="new-add">
<view class="new-title">服务团 :</view>
<view class="new-content">
<scroll-view scroll-x="{{true}}" class="scroll-tag">
<view class="volunteer-tag">
<view class="tag {{volunteerTagId == item.id ? 'sel' : ''}}" wx:for="{{tagGroupList}}" wx:key="index" data-id="{{item.id}}" bindtap="changeTag">
{{item.tagName}}
</view>
</view>
</scroll-view>
</view>
<!-- <scroll-view scroll-x="{{true}}" class="scroll-tag">
<view class="volunteer-tag"> <view class="volunteer-tag">
<view class="tag {{volunteerTagId == item.id ? 'sel' : ''}}" wx:for="{{tagGroupList}}" wx:key="index" data-id="{{item.id}}" bindtap="changeTag"> <view class="tag {{volunteerTagId == item.id ? 'sel' : ''}}" wx:for="{{tagGroupList}}" wx:key="index" data-id="{{item.id}}" bindtap="changeTag">
{{item.tagName}} {{item.tagName}}
</view> </view>
</view> </view>
</scroll-view> </scroll-view> -->
</block> </view>
<block wx:if="{{volunteerlistType=='earning'}}"> <view class="new-add">
<scroll-view scroll-x="{{true}}" class="scroll-tag"> <view class="new-title">服务队 :</view>
<view class="new-content">
<scroll-view scroll-x="{{true}}" class="scroll-tag">
<view class="volunteer-tag">
<view class="tag {{volunteerTagId == item.id ? 'sel' : ''}}" wx:for="{{tagTeamList}}" wx:key="index" data-id="{{item.id}}" bindtap="changeTag">
{{item.tagName}}
</view>
</view>
</scroll-view>
</view>
</view>
<!-- </block> -->
<!-- <block wx:if="{{volunteerlistType=='earning'}}"> -->
<!-- <scroll-view scroll-x="{{true}}" class="scroll-tag">
<view class="volunteer-tag"> <view class="volunteer-tag">
<view class="tag {{volunteerTagId == item.id ? 'sel' : ''}}" wx:for="{{tagTeamList}}" wx:key="index" data-id="{{item.id}}" bindtap="changeTag"> <view class="tag {{volunteerTagId == item.id ? 'sel' : ''}}" wx:for="{{tagTeamList}}" wx:key="index" data-id="{{item.id}}" bindtap="changeTag">
{{item.tagName}} {{item.tagName}}
</view> </view>
</view> </view>
</scroll-view> </scroll-view> -->
</block> <!-- </block> -->
</view> </view>
<view class="volunteer-box"> <view class="volunteer-box">
<volunteer-list bind:clickImage="clickImage" wx:for="{{volunteerlist}}" volunteerItemObj="{{item}}" wx:for-index="index" wx:for-item="item" wx:key="index"></volunteer-list> <volunteer-list bind:clickImage="clickImage" wx:for="{{volunteerlist}}" volunteerItemObj="{{item}}" wx:for-index="index" wx:for-item="item" wx:key="index"></volunteer-list>

18
pages/heartNew/heartNew.wxss

@ -627,3 +627,21 @@ button:last-child {
text-align: center; text-align: center;
background-color: rgba(229, 15, 0, 1); background-color: rgba(229, 15, 0, 1);
} }
.new-add {
width: 100%;
height: auto;
display: flex;
align-items: center;
/* justify-content: center; */
}
.new-add .new-title {
text-align: left;
width: 120rpx;
font-size: 30rpx;
color: #333333;
font-weight: 900;
}
.new-add .new-content{
width: calc(100% - 120rpx);
}
Loading…
Cancel
Save