Commit 330cbfa3d0d3a49cf6dcd27999a2059eb539f089
1 parent
d4a0495f
分类-商品列表-等级卡修改
Showing
3 changed files
with
28 additions
and
10 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -3336,10 +3336,15 @@ Page({ |
3336 | 3336 | context.lineTo(520 * unit, 710 * unit) |
3337 | 3337 | context.stroke(); |
3338 | 3338 | //---文字--- |
3339 | - context.setFontSize(22 * unit) | |
3340 | 3339 | context.setFillStyle("black") |
3341 | - context.fillText("优惠乐翻天,精彩就在你身边", 40 * unit, 776 * unit); | |
3342 | - context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 826 * unit); | |
3340 | + context.setFontSize(22 * unit) | |
3341 | + // 原来start ---> | |
3342 | + context.fillText("优惠乐翻天,精彩就在你身边", 40 * unit, 776 * unit); | |
3343 | + context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 826 * unit); | |
3344 | + // <--- 原来end | |
3345 | + // context.fillText("优惠乐翻天,精彩就在你身边", 40 * unit, 816 * unit); | |
3346 | + // context.setFontSize(18 * unit) | |
3347 | + // context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 850 * unit); | |
3343 | 3348 | //---二维吗图--- |
3344 | 3349 | context.drawImage(vpath, 380 * unit, 736 * unit, 120 * unit, 120 * unit); |
3345 | 3350 | break; |
... | ... | @@ -3353,7 +3358,7 @@ Page({ |
3353 | 3358 | //画秒杀的图片 |
3354 | 3359 | var miaos_path = '../../../images/share/miao_share.png'; |
3355 | 3360 | context.drawImage(miaos_path, 43 * unit, 700 * unit, 222 * unit, 40 * unit); |
3356 | - | |
3361 | + | |
3357 | 3362 | //---文字--- |
3358 | 3363 | context.setFontSize(22 * unit) |
3359 | 3364 | context.setFillStyle("black") | ... | ... |
pages/goods/goodsList/goodsList.wxml
... | ... | @@ -67,9 +67,9 @@ |
67 | 67 | <block wx:if="{{card_field}}"> |
68 | 68 | <!-- 等级价>0 --> |
69 | 69 | <block wx:if="{{item[card_field]>0}}"> |
70 | - <view class="flex ai_and"> | |
70 | + <view class="flex ai-center"> | |
71 | 71 | <view class="price">¥{{item[card_field]}}</view> |
72 | - <view class="card_bg"> | |
72 | + <view class="card_bg ellipsis-1"> | |
73 | 73 | <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> |
74 | 74 | <view class="card_name">{{card_name}}</view> |
75 | 75 | </view> |
... | ... | @@ -94,9 +94,9 @@ |
94 | 94 | <view class="word-line xc-ash mk_price">¥{{item.market_price}}</view> |
95 | 95 | </view> |
96 | 96 | <view class="comment flex jc_sb"> |
97 | - <view class="flex ai_and"> | |
97 | + <view class="flex ai-center"> | |
98 | 98 | <view class="">¥{{g_filter.get_card_price(item,card_list,0)}}</view> |
99 | - <view class="card_bg"> | |
99 | + <view class="card_bg ellipsis-1"> | |
100 | 100 | <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> |
101 | 101 | {{g_filter.get_card_price(item,card_list,1)}} |
102 | 102 | </view> | ... | ... |
pages/goods/goodsList/goodsList.wxss
... | ... | @@ -157,7 +157,7 @@ |
157 | 157 | } |
158 | 158 | |
159 | 159 | .card_bg { |
160 | - display: flex; | |
160 | + /* display: flex; | |
161 | 161 | max-width: 110rpx; |
162 | 162 | height: 25rpx; |
163 | 163 | align-items: center; |
... | ... | @@ -170,7 +170,20 @@ |
170 | 170 | margin-top: 7rpx; |
171 | 171 | line-height: 25rpx; |
172 | 172 | padding: 2rpx 10rpx; |
173 | - width: auto; | |
173 | + width: auto; */ | |
174 | + | |
175 | + | |
176 | + box-sizing: border-box; | |
177 | + padding: 2rpx 10rpx; | |
178 | + height: 25rpx; | |
179 | + border-radius: 26rpx; | |
180 | + font-size: 19rpx; | |
181 | + line-height: 1em; | |
182 | + max-width: 220rpx; | |
183 | + background: #333; | |
184 | + color: #fff; | |
185 | + margin-left: 8rpx; | |
186 | + | |
174 | 187 | } |
175 | 188 | |
176 | 189 | .card_bg .card_name { | ... | ... |