Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mini-program-wepy
Commits
f83fe993
Commit
f83fe993
authored
Jul 30, 2020
by
zhijie.xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
2f22d13f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
search.wpy
src/pages/search.wpy
+5
-4
common.less
src/style/common.less
+8
-0
No files found.
src/pages/search.wpy
View file @
f83fe993
...
...
@@ -4,7 +4,7 @@
<view class="search-wrapper">
<van-field clearable left-icon="search" placeholder="搜索" bind:confirm="search" value="{{value}}" bind:input ="setValue" auto-focus ></van-field>
</view>
<view class="search-cancel" bindtap="
search">搜索
</view>
<view class="search-cancel" bindtap="
goback">取消
</view>
<view v-show="!searching">
<view class="search-history">
<text class="search-history-text">历史搜索</text>
...
...
@@ -125,6 +125,9 @@
this.list = [];
this.getList();
},
goback() {
wx.navigateBack();
},
getList() {
this.isLoading = true;
this.isDone = false;
...
...
@@ -277,9 +280,7 @@
&-text {
font-size: 30rpx;
margin-right: 15rpx;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
.ellipsis();
}
&-count {
...
...
src/style/common.less
View file @
f83fe993
...
...
@@ -43,3 +43,11 @@
@border-radius-sm: 4rpx;
@border-radius-md: 10rpx;
// mixin
.ellipsis {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment