Commit f83fe993 authored by zhijie.xue's avatar zhijie.xue

测试

parent 2f22d13f
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="search-wrapper"> <view class="search-wrapper">
<van-field clearable left-icon="search" placeholder="搜索" bind:confirm="search" value="{{value}}" bind:input ="setValue" auto-focus ></van-field> <van-field clearable left-icon="search" placeholder="搜索" bind:confirm="search" value="{{value}}" bind:input ="setValue" auto-focus ></van-field>
</view> </view>
<view class="search-cancel" bindtap="search">搜索</view> <view class="search-cancel" bindtap="goback">取消</view>
<view v-show="!searching"> <view v-show="!searching">
<view class="search-history"> <view class="search-history">
<text class="search-history-text">历史搜索</text> <text class="search-history-text">历史搜索</text>
...@@ -125,6 +125,9 @@ ...@@ -125,6 +125,9 @@
this.list = []; this.list = [];
this.getList(); this.getList();
}, },
goback() {
wx.navigateBack();
},
getList() { getList() {
this.isLoading = true; this.isLoading = true;
this.isDone = false; this.isDone = false;
...@@ -277,9 +280,7 @@ ...@@ -277,9 +280,7 @@
&-text { &-text {
font-size: 30rpx; font-size: 30rpx;
margin-right: 15rpx; margin-right: 15rpx;
text-overflow: ellipsis; .ellipsis();
overflow: hidden;
white-space: nowrap;
} }
&-count { &-count {
......
...@@ -43,3 +43,11 @@ ...@@ -43,3 +43,11 @@
@border-radius-sm: 4rpx; @border-radius-sm: 4rpx;
@border-radius-md: 10rpx; @border-radius-md: 10rpx;
// mixin
.ellipsis {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment