Commit afc260dcfaf387190d7de14e0215fd63a7284af4
1 parent
2dd758aa
等级卡修改
Showing
3 changed files
with
26 additions
and
9 deletions
components/goods_list/goods_list.wxml
| ... | ... | @@ -88,12 +88,12 @@ |
| 88 | 88 | </view> |
| 89 | 89 | <view class="flex" style="line-height: 28rpx;"> |
| 90 | 90 | <!-- 等级价 --> |
| 91 | - <view class="price flex ai_and"> | |
| 92 | - <view class="fs22">¥</view> | |
| 93 | - <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view> | |
| 94 | - <view class="card_bg"> | |
| 95 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></ image>{{g_filter.get_card_price(item,card_list,1)}}</view> | |
| 96 | - </view> | |
| 91 | + <view class="price flex ai_and"> | |
| 92 | + <view class="fs22">¥</view> | |
| 93 | + <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view> | |
| 94 | + <view class="card_bg ellipsis-1"> | |
| 95 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></ image>{{g_filter.get_card_price(item,card_list,1)}}</view> | |
| 96 | + </view> | |
| 97 | 97 | </view> |
| 98 | 98 | </block> |
| 99 | 99 | <block wx:else> | ... | ... |
components/goods_list/goods_list.wxss
| ... | ... | @@ -37,6 +37,20 @@ |
| 37 | 37 | align-items: center; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | +.ellipsis-1 { | |
| 41 | + overflow: hidden; | |
| 42 | + white-space: nowrap; | |
| 43 | + text-overflow: ellipsis; | |
| 44 | +} | |
| 45 | + | |
| 46 | +/* .ellipsis-1x { | |
| 47 | + overflow: hidden; | |
| 48 | + text-overflow: ellipsis; | |
| 49 | + display: -webkit-box; | |
| 50 | + -webkit-box-orient: vertical; | |
| 51 | + -webkit-line-clamp: 1; | |
| 52 | +} */ | |
| 53 | + | |
| 40 | 54 | .xc-wc { |
| 41 | 55 | color: #d60021; |
| 42 | 56 | } |
| ... | ... | @@ -167,17 +181,19 @@ |
| 167 | 181 | } |
| 168 | 182 | |
| 169 | 183 | .card_bg { |
| 170 | - display: flex; | |
| 184 | + box-sizing: border-box; | |
| 185 | + /* display: flex; */ | |
| 171 | 186 | padding: 2rpx 10rpx; |
| 172 | 187 | height: 25rpx; |
| 173 | - align-items: center; | |
| 188 | + /* align-items: center; */ | |
| 174 | 189 | border-radius: 26rpx; |
| 175 | 190 | font-size: 19rpx; |
| 176 | 191 | line-height: 1em; |
| 177 | 192 | /* max-width: 110rpx; */ |
| 193 | + max-width: 220rpx; | |
| 178 | 194 | background: #333; |
| 179 | 195 | color: #fff; |
| 180 | - justify-content: center; | |
| 196 | + /* justify-content: center; */ | |
| 181 | 197 | margin-left: 8rpx; |
| 182 | 198 | } |
| 183 | 199 | ... | ... |
pages/goods/goodsInfo/goodsInfo.wxss