Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 77ed1cb

Browse files
committed
no results
1 parent 5f93931 commit 77ed1cb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pages/results/results.wxml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Search Results ({{numResults}})
2828
<!-- end test card-->
2929

3030
<!-- loop through all results -->
31+
<view class="notfound" wx:if="{{!numResults}}">没有搜索结果!</view>
3132
<block wx:for="{{shipments}}" wx:for-item="combo" wx:for-index="index">
3233
<view class="card col">
3334
<view class="card-head">

pages/results/results.wxss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
justify-content: space-around;
99
padding: 3%;
1010
}
11-
11+
.notfound {
12+
width: 100vw;
13+
text-align: center;
14+
}
1215
.card {
1316
margin-top: 10rpx;
1417
width: 90vw;

0 commit comments

Comments
 (0)