Commit 46437ef1 by 匡雅琴

样式调整

1 parent e55bbdde
...@@ -30,6 +30,16 @@ Page({ ...@@ -30,6 +30,16 @@ Page({
this.handleFreeCard(bingInfo) this.handleFreeCard(bingInfo)
} }
}, },
navbarReady(e) {
let {
height
} = e.detail
this.setData({
user_box_style: `padding-top:${height + 15}px`
})
},
onShow() { onShow() {
let authComponent = this.selectComponent('#authorize') let authComponent = this.selectComponent('#authorize')
if (authComponent) authComponent.check() if (authComponent) authComponent.check()
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
background: #ffffff; background: #ffffff;
} }
.save-money-box { // .save-money-box {
padding-top: 84px; // padding-top: 120rpx;
.save-money-box-content { .save-money-box-content {
padding: 30rpx; padding: 30rpx;
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
align-items: flex-end; align-items: flex-end;
} }
} }
} // }
.flex { .flex {
display: flex; display: flex;
......
<view class="navigation-bar"> <view class="navigation-bar">
<navigation-bar bindnavbarReady="navbarReady" page-title="省钱专区">省钱专区</navigation-bar> <navigation-bar bindnavbarReady="navbarReady" page-title="省钱专区">省钱专区</navigation-bar>
</view> </view>
<view class="save-money-box"> <!-- <view class="save-money-box"> -->
<view class="save-money-box-content" hover-class="none" hover-stop-propagation="false"> <view class="save-money-box-content" style="{{user_box_style}}">
<glsx-image webp src="home/homelife_bg.png" class="save-money-img"></glsx-image> <glsx-image webp src="home/homelife_bg.png" class="save-money-img"></glsx-image>
<view class="save-money-order-box"> <view class="save-money-order-box">
<glsx-image webp src="savemoney/save_order.png" class="save-money-order-img"></glsx-image> <glsx-image webp src="savemoney/save_order.png" class="save-money-order-img"></glsx-image>
...@@ -39,6 +39,6 @@ ...@@ -39,6 +39,6 @@
</view> </view>
</view> </view>
</view> </view>
</view> <!-- </view> -->
<authorize id="authorize" scopeType="userLocation" isShowCheck="{{false}}" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize> <authorize id="authorize" scopeType="userLocation" isShowCheck="{{false}}" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> --> <!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file \ No newline at end of file
...@@ -20,7 +20,7 @@ Page({ ...@@ -20,7 +20,7 @@ Page({
height height
} = e.detail } = e.detail
this.setData({ this.setData({
user_box_style: `padding-top:${height + 20}px` user_box_style: `padding-top:${height + 15}px`
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!