Commit 35b76c1c29658e51f6f601d8626adb1538e9e67e
1 parent
4972deb2
顶部空白的优化
Showing
4 changed files
with
9 additions
and
8 deletions
components/diy_notice/diy_notice.wxml
1 | 1 | <wxs module="g_filter" src="g_filter.wxs"></wxs> |
2 | 2 | <block wx:if="{{object.style==1}}"> |
3 | 3 | <block wx:if="{{g_filter.has_char(object.wxapp_url,'plugin')>=0}}"> |
4 | - <navigator url="{{object.wxapp_url}}" class="s1_gk_a1 pd_top10" style="background-color: {{object.notice_bgcolor}}"> | |
4 | + <navigator url="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}"> | |
5 | 5 | <view class="big_border"> |
6 | 6 | <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image> |
7 | 7 | <view class="marquee"> |
... | ... | @@ -16,7 +16,7 @@ |
16 | 16 | </block> |
17 | 17 | |
18 | 18 | <block wx:else> |
19 | - <view data-url="{{object.wxapp_url}}" class="s1_gk_a1 pd_top10" bindtap="go_url" style="background-color: {{object.notice_bgcolor}}"> | |
19 | + <view data-url="{{object.wxapp_url}}" class="s1_gk_a1" bindtap="go_url" style="background-color: {{object.notice_bgcolor}}"> | |
20 | 20 | <view class="big_border"> |
21 | 21 | <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image> |
22 | 22 | <view class="marquee"> | ... | ... |
components/diy_notice/diy_notice.wxss
... | ... | @@ -2,12 +2,12 @@ |
2 | 2 | width: 100%; |
3 | 3 | height: 80rpx; |
4 | 4 | margin-left:40rpx; |
5 | - | |
5 | + display: flex; | |
6 | + align-items: center; | |
6 | 7 | } |
7 | 8 | .image_c{ |
8 | 9 | width: 35rpx; |
9 | 10 | height: 35rpx; |
10 | - margin-top: 24rpx; | |
11 | 11 | } |
12 | 12 | |
13 | 13 | .view1 { |
... | ... | @@ -41,7 +41,6 @@ |
41 | 41 | position: relative; |
42 | 42 | font-size: 28rpx; |
43 | 43 | margin-left: 50rpx; |
44 | - margin-top: -45rpx; | |
45 | 44 | } |
46 | 45 | .marquee .content{ |
47 | 46 | display: inline-block; |
... | ... | @@ -52,6 +51,5 @@ |
52 | 51 | line-height: 2rpx;font-size: 28rpx; |
53 | 52 | |
54 | 53 | } |
55 | - | |
56 | 54 | .pd_top10{margin: 10rpx 0} |
57 | 55 | ... | ... |
components/diy_searchbox/diy_searchbox.wxml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <!-- wx:if="{{object.style==1}}" --> |
3 | 3 | <!-- first --> |
4 | 4 | <block wx:if="{{object.style==1}}"> |
5 | - <view class='ss' style="position: relative;"> | |
5 | + <view class='ss' style="position: relative;background-color: #fff"> | |
6 | 6 | <view bindtap='click_sear' class="s1_gk_a1" wx:if="{{first}}"> |
7 | 7 | <view class='s_ge'> |
8 | 8 | <image src='{{imghost}}/miniapp/images/search.png'></image> | ... | ... |
pages/index/index/index.wxml
... | ... | @@ -330,7 +330,10 @@ |
330 | 330 | <!-- 撑开层 --> |
331 | 331 | <view> |
332 | 332 | <block wx:for="{{template_arr}}" > |
333 | - <view wx:if="{{item.content.is_top==1 && item.ename=='searchbox'}}" style="height: 100rpx;"></view> | |
333 | + <block wx:if="{{item.content.is_top==1 && item.ename=='searchbox'}}"> | |
334 | + <view wx:if="{{item.content.style==1}}" style="height: 115rpx;"></view> | |
335 | + <view wx:if="{{item.content.style==2}}" style="height: 89rpx;"></view> | |
336 | + </block> | |
334 | 337 | <view wx:if="{{item.content.is_top==1 && item.ename=='store_select'}}" style="height: 100rpx;"></view> |
335 | 338 | </block> |
336 | 339 | </view> | ... | ... |