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