Commit df729ebc594c5054016c6e5e0bca01fe2b8fcf56
1 parent
b0255891
优化
Showing
2 changed files
with
13 additions
and
1 deletions
components/diy_public/diy_public.wxml
| ... | ... | @@ -102,10 +102,12 @@ |
| 102 | 102 | <view class="mgr10 lineh24" wx:if="{{object.group_size}}">{{aitem.ct_num}}人团</view> |
| 103 | 103 | <view class="lineh24" wx:if="{{object.group_type}}">{{kttypeArr[aitem.kttype]}}团</view> |
| 104 | 104 | </view> |
| 105 | + | |
| 105 | 106 | <view wx:if="{{object.seconds_num || object.remaining_inventory}}" class="new_item1_price pdlf10 clor7b" style="{{'font-size:20rpx;' + 'display:block;'+(object.text_align==2 ?'text-align:center;':'')+(object.text_style==2 ? 'font-weight: bold;':'')}}"> |
| 106 | - <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 107 | + <text class="{{prom_type==2 ? 'group':'' }}" wx:if="{{object.seconds_num}}">{{prom_text}}<text class="{{prom_type==2 ? '':'clor'}}">{{aitem.buy_num}}</text>件</text> | |
| 107 | 108 | <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> |
| 108 | 109 | </view> |
| 110 | + | |
| 109 | 111 | <view class="new_item1_price pdlf10" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> |
| 110 | 112 | <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> |
| 111 | 113 | <view style="{{(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | ... | ... |
components/diy_public/diy_public.wxss
| ... | ... | @@ -545,4 +545,14 @@ swiper { |
| 545 | 545 | } |
| 546 | 546 | .lineh24{ |
| 547 | 547 | line-height: 24rpx !important; |
| 548 | + } | |
| 549 | + .group{ | |
| 550 | + padding: 10rpx; | |
| 551 | + background-color:#f23030; | |
| 552 | + color: #fff; | |
| 553 | + /* margin-top: 10rpx; */ | |
| 554 | + line-height: 28rpx; | |
| 555 | + border-radius: 10rpx; | |
| 556 | + margin-right: 10rpx; | |
| 557 | + opacity: .8; | |
| 548 | 558 | } |
| 549 | 559 | \ No newline at end of file | ... | ... |