Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
Project
Project
Details
Activity
Releases
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
郑秀明
shop_mobile_uni
Commits
88fd3fb9
Commit
88fd3fb9
authored
Mar 11, 2020
by
郑秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zxm_home_dev' into develop
parents
3f4b42f0
33df427f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
search.vue
pages/search/search.vue
+4
-4
searchhistory.vue
pages/searchhistory/searchhistory.vue
+16
-1
No files found.
pages/search/search.vue
View file @
88fd3fb9
...
@@ -9,11 +9,11 @@
...
@@ -9,11 +9,11 @@
</view>
</view>
</view>
</view>
<view
class=
"search-condition"
>
<view
class=
"search-condition"
>
<view
class=
"search-condition_item"
:class=
"
{current: param.label === '
default'}" @click="tabClick('default
')">
<view
class=
"search-condition_item"
:class=
"
{current: param.label === '
synthesize'}" @click="tabClick('synthesize
')">
<text>
综合排序
</text>
<text>
综合排序
</text>
<view
class=
"icon_tips"
>
<view
class=
"icon_tips"
>
<text
:class=
"
{active: param.order === 'asc'
&&
param.label === '
default
'}" class="yticon">
</text>
<text
:class=
"
{active: param.order === 'asc'
&&
param.label === '
synthesize
'}" class="yticon">
</text>
<text
:class=
"
{active: param.order === 'desc'
&&
param.label === '
default
'}" class="yticon">
</text>
<text
:class=
"
{active: param.order === 'desc'
&&
param.label === '
synthesize
'}" class="yticon">
</text>
</view>
</view>
</view>
</view>
<view
class=
"search-condition_item"
:class=
"
{current: param.label === 'sales'}" @click="tabClick('sales')">
<view
class=
"search-condition_item"
:class=
"
{current: param.label === 'sales'}" @click="tabClick('sales')">
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
keyword
:
''
,
keyword
:
''
,
pageSize
:
20
,
pageSize
:
20
,
current
:
1
,
current
:
1
,
label
:
'
default
'
,
label
:
'
synthesize
'
,
order
:
'desc'
order
:
'desc'
}
}
};
};
...
...
pages/searchhistory/searchhistory.vue
View file @
88fd3fb9
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"search-content"
>
<view
class=
"search-content"
>
<uni-icons
color=
"#212121"
class=
"search-icon-arrowleft"
size=
"24"
type=
"arrowleft"
@
click=
"goBack"
/>
<uni-icons
color=
"#212121"
class=
"search-icon-arrowleft"
size=
"24"
type=
"arrowleft"
@
click=
"goBack"
/>
<view
class=
"search-input_box"
:class=
"
{active: active}">
<view
class=
"search-input_box"
:class=
"
{active: active}">
<uni-icons
color=
"#999999"
class=
"uni-searchbar__box-icon-search"
size=
"20"
type=
"search"
/>
<uni-icons
color=
"#999999"
class=
"uni-searchbar__box-icon-search"
@
click=
"handleIconSearch"
size=
"20"
type=
"search"
/>
<input
type=
"text"
:focus=
"showSync"
class=
"search-input"
v-model=
"searchVal"
confirm-type=
"search"
@
focus=
"handlefocus"
@
confirm=
"handleSearch"
/>
<input
type=
"text"
:focus=
"showSync"
class=
"search-input"
v-model=
"searchVal"
confirm-type=
"search"
@
focus=
"handlefocus"
@
confirm=
"handleSearch"
/>
<uni-icons
v-if=
"searchVal!==''"
@
click=
"clear"
color=
"#AEAEAE"
class=
"search-close"
size=
"20"
type=
"clear"
/>
<uni-icons
v-if=
"searchVal!==''"
@
click=
"clear"
color=
"#AEAEAE"
class=
"search-close"
size=
"20"
type=
"clear"
/>
</view>
</view>
...
@@ -101,7 +101,22 @@
...
@@ -101,7 +101,22 @@
goBack
()
{
goBack
()
{
history
.
back
();
history
.
back
();
},
},
handleIconSearch
(){
// #ifndef APP-PLUS
uni
.
hideKeyboard
()
// #endif
// #ifdef APP-PLUS
plus
.
key
.
hideSoftKeybord
()
// #endif
const
value
=
this
.
searchVal
;
this
.
setLocalStorage
(
value
);
// 跳转商品搜索页面
uni
.
navigateTo
({
url
:
`/pages/search/search?keyword=
${
value
}
`
})
},
jumpPage
(
goods_name
)
{
jumpPage
(
goods_name
)
{
this
.
setLocalStorage
(
goods_name
);
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/search/search?keyword=
${
goods_name
}
`
url
:
`/pages/search/search?keyword=
${
goods_name
}
`
})
})
...
...
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