File tree Expand file tree Collapse file tree 7 files changed +12
-14
lines changed
examples/dist/status-show Expand file tree Collapse file tree 7 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 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">
2
2
<block wx:if="{{custom}}">
3
3
<slot/>
4
4
</block>
5
5
<block wx:else>
6
6
<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>
8
8
<text wx:if="{{describe}}" class="status-text l-describe-class">{{describe}}</text>
9
9
<text wx:else class="status-text l-describe-class">{{typeText}}</text>
10
10
<l-button l-class="l-button-class button_margin_top" wx:if="{{buttonText}}">
17
17
<view>去逛逛</view>
18
18
</l-button>
19
19
</block>
20
- </view>
20
+ </view>
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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">
2
2
<block wx:if="{{custom}}">
3
3
<slot />
4
4
</block>
5
5
<block wx:else>
6
6
<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>
8
8
<text wx:if="{{describe}}" class="status-text l-describe-class">{{describe}}</text>
9
9
<text wx:else class="status-text l-describe-class">{{typeText}}</text>
10
10
<l-button l-class="l-button-class button_margin_top" wx:if="{{buttonText}}">
17
17
<view>去逛逛</view>
18
18
</l-button>
19
19
</block>
20
- </view>
20
+ </view>
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 2
2
background-color : #fff ;
3
3
flex-direction : column ;
4
4
display : flex ;
5
- align-items : center ;
6
5
justify-content : center ;
7
- width : 500 rpx;
8
6
}
9
7
10
8
.content {
Original file line number Diff line number Diff line change 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">
2
2
<block wx:if="{{custom}}">
3
3
<slot />
4
4
</block>
5
5
<block wx:else>
6
6
<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>
8
8
<text wx:if="{{describe}}" class="status-text l-describe-class">{{describe}}</text>
9
9
<text wx:else class="status-text l-describe-class">{{typeText}}</text>
10
10
<l-button l-class="l-button-class button_margin_top" wx:if="{{buttonText}}">
17
17
<view>去逛逛</view>
18
18
</l-button>
19
19
</block>
20
- </view>
20
+ </view>
You can’t perform that action at this time.
0 commit comments