Skip to content

Commit 89d7cff

Browse files
zhc525349965hongchen.zhang
authored andcommitted
fix(status_show): 修复status_show组件在非全屏下的显示问题 (#787)
Co-authored-by: hongchen.zhang <[email protected]>
1 parent 0811013 commit 89d7cff

File tree

7 files changed

+12
-14
lines changed

7 files changed

+12
-14
lines changed

dist/status-show/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/status-show/index.wxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<view wx:if="{{show}}" class="l-status-container l-class {{fullScreen ? 'content': ''}}" style="{{'background:'+bgColor}}" bind:tap="tapStatusShow">
1+
<view wx:if="{{show}}" class="l-status-container l-class {{fullScreen ? 'content': ''}}" style="{{'background:'+bgColor}};{{fullScreen ?'align-items:center;':''}}" bind:tap="tapStatusShow">
22
<block wx:if="{{custom}}">
33
<slot/>
44
</block>
55
<block wx:else>
66
<image wx:if="{{image}}" class="left-img l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{image}}"></image>
7-
<image wx:else class="{{type==='success'||type==='error'?'left-img':'top-img'}} {{type==='address'?'ad-img':''}} l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{typeImage}}"></image>
7+
<image wx:else class="{{type=='success'||type=='error'?'left-img':'top-img'}} {{type=='address'?'ad-img':''}} l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{typeImage}}"></image>
88
<text wx:if="{{describe}}" class="status-text l-describe-class">{{describe}}</text>
99
<text wx:else class="status-text l-describe-class">{{typeText}}</text>
1010
<l-button l-class="l-button-class button_margin_top" wx:if="{{buttonText}}">
@@ -17,4 +17,4 @@
1717
<view>去逛逛</view>
1818
</l-button>
1919
</block>
20-
</view>
20+
</view>

dist/status-show/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.l-status-container{background-color:#fff;flex-direction:column;display:flex;align-items:center;justify-content:center;width:500rpx}.content{position:fixed;top:0;left:0;background:#fff;height:100%;width:100%}.ad-img{width:198rpx!important;height:204rpx!important}.top-img{width:264rpx;height:204rpx}.left-img{width:120rpx;height:184rpx}.image_margin_top{margin-top:-250rpx}.status-text{font-size:30rpx;color:#45526b;margin-top:40rpx}.button_margin_top{margin-top:80rpx}
1+
.l-status-container{background-color:#fff;flex-direction:column;display:flex;justify-content:center}.content{position:fixed;top:0;left:0;background:#fff;height:100%;width:100%}.ad-img{width:198rpx!important;height:204rpx!important}.top-img{width:264rpx;height:204rpx}.left-img{width:120rpx;height:184rpx}.image_margin_top{margin-top:-250rpx}.status-text{font-size:30rpx;color:#45526b;margin-top:40rpx}.button_margin_top{margin-top:80rpx}

examples/dist/status-show/index.wxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<view wx:if="{{show}}" class="l-status-container l-class {{fullScreen ? 'content': ''}}" style="{{'background:'+bgColor}}" bind:tap="tapStatusShow">
1+
<view wx:if="{{show}}" class="l-status-container l-class {{fullScreen ? 'content': ''}}" style="{{'background:'+bgColor}};{{fullScreen ?'align-items:center;':''}}" bind:tap="tapStatusShow">
22
<block wx:if="{{custom}}">
33
<slot />
44
</block>
55
<block wx:else>
66
<image wx:if="{{image}}" class="left-img l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{image}}"></image>
7-
<image wx:else class="{{type==='success'||type==='error'?'left-img':'top-img'}} {{type==='address'?'ad-img':''}} l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{typeImage}}"></image>
7+
<image wx:else class="{{type=='success'||type=='error'?'left-img':'top-img'}} {{type=='address'?'ad-img':''}} l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{typeImage}}"></image>
88
<text wx:if="{{describe}}" class="status-text l-describe-class">{{describe}}</text>
99
<text wx:else class="status-text l-describe-class">{{typeText}}</text>
1010
<l-button l-class="l-button-class button_margin_top" wx:if="{{buttonText}}">
@@ -17,4 +17,4 @@
1717
<view>去逛逛</view>
1818
</l-button>
1919
</block>
20-
</view>
20+
</view>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.l-status-container{background-color:#fff;flex-direction:column;display:flex;align-items:center;justify-content:center;width:500rpx}.content{position:fixed;top:0;left:0;background:#fff;height:100%;width:100%}.ad-img{width:198rpx!important;height:204rpx!important}.top-img{width:264rpx;height:204rpx}.left-img{width:120rpx;height:184rpx}.image_margin_top{margin-top:-250rpx}.status-text{font-size:30rpx;color:#45526b;margin-top:40rpx}.button_margin_top{margin-top:80rpx}
1+
.l-status-container{background-color:#fff;flex-direction:column;display:flex;justify-content:center}.content{position:fixed;top:0;left:0;background:#fff;height:100%;width:100%}.ad-img{width:198rpx!important;height:204rpx!important}.top-img{width:264rpx;height:204rpx}.left-img{width:120rpx;height:184rpx}.image_margin_top{margin-top:-250rpx}.status-text{font-size:30rpx;color:#45526b;margin-top:40rpx}.button_margin_top{margin-top:80rpx}

src/status-show/index.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
background-color: #fff;
33
flex-direction: column;
44
display: flex;
5-
align-items: center;
65
justify-content: center;
7-
width: 500rpx;
86
}
97

108
.content {

src/status-show/index.wxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<view wx:if="{{show}}" class="l-status-container l-class {{fullScreen ? 'content': ''}}" style="{{'background:'+bgColor}}" bind:tap="tapStatusShow">
1+
<view wx:if="{{show}}" class="l-status-container l-class {{fullScreen ? 'content': ''}}" style="{{'background:'+bgColor}};{{fullScreen ?'align-items:center;':''}}" bind:tap="tapStatusShow">
22
<block wx:if="{{custom}}">
33
<slot />
44
</block>
55
<block wx:else>
66
<image wx:if="{{image}}" class="left-img l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{image}}"></image>
7-
<image wx:else class="{{type==='success'||type==='error'?'left-img':'top-img'}} {{type==='address'?'ad-img':''}} l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{typeImage}}"></image>
7+
<image wx:else class="{{type=='success'||type=='error'?'left-img':'top-img'}} {{type=='address'?'ad-img':''}} l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{typeImage}}"></image>
88
<text wx:if="{{describe}}" class="status-text l-describe-class">{{describe}}</text>
99
<text wx:else class="status-text l-describe-class">{{typeText}}</text>
1010
<l-button l-class="l-button-class button_margin_top" wx:if="{{buttonText}}">
@@ -17,4 +17,4 @@
1717
<view>去逛逛</view>
1818
</l-button>
1919
</block>
20-
</view>
20+
</view>

0 commit comments

Comments
 (0)