Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
front-end-dev
techbook
Commits
4af60785
Commit
4af60785
authored
May 18, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索
parent
9d4ede8b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
0 deletions
+53
-0
phone.scss
public/css/phone.scss
+32
-0
commonApi.js
src/common/commonApi.js
+15
-0
mobileTop.vue
src/components/mobile/mobileTop.vue
+6
-0
search.vue
src/views/mobile/search/search.vue
+0
-0
No files found.
public/css/phone.scss
View file @
4af60785
...
...
@@ -726,6 +726,38 @@ i, em {
}
}
.articleHasImgAndContentValidity
{
.articleTitle
{
font-size
:
.28rem
;
}
.contentValidity
{
display
:
flex
;
padding-top
:
.2rem
;
.leftInfo
{
width
:calc
(
100
%
-
2
.32rem
)
;
>
div
{
display
:
-
webkit-box
;
text-overflow
:
ellipsis
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
word-break
:
break-all
;
overflow
:
hidden
;
height
:
1rem
;
}
.mainIntro
{
margin-top
:
0
;
}
padding-right
:
.2rem
;
}
.rightInfo
{
width
:
2
.32rem
;
height
:
1
.54rem
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
}
}
}
.itemButton
{
font-size
:
.22rem
;
display
:
flex
;
...
...
src/common/commonApi.js
View file @
4af60785
...
...
@@ -67,5 +67,20 @@ export default {
//埋点
maiDianAxios
(
params
){
return
api
.
fetchLogin
(
"/business/log/activityLog"
,
params
);
},
//热门搜索
hotSearchAxios
(){
return
api
.
fetchGet
(
"/business/search/getHotWords"
);
},
//历史搜索
historySearchAxios
(
params
){
return
api
.
fetchGet
(
"/business/search/getHistoryWords?"
+
Qs
.
stringify
(
params
));
},
//删除历史搜索
deleteSearchAxios
(
params
){
return
api
.
fetchLogin
(
"/business/search/mvHistoryWords?"
+
Qs
.
stringify
(
params
))
}
}
src/components/mobile/mobileTop.vue
View file @
4af60785
...
...
@@ -277,4 +277,9 @@
margin-right
:
.2rem
;
}
}
.header-right-h5
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
</
style
>
\ No newline at end of file
src/views/mobile/search/search.vue
View file @
4af60785
This diff is collapsed.
Click to expand it.
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