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
f2cf115d
Commit
f2cf115d
authored
May 26, 2020
by
王建威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into wjw_logistics
parents
a9ba6289
15684fd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
search.vue
pages/search/search.vue
+2
-2
searchhistory.vue
pages/searchhistory/searchhistory.vue
+1
-1
No files found.
pages/search/search.vue
View file @
f2cf115d
...
...
@@ -48,7 +48,7 @@
<view
class=
"image-outer"
@
click=
"jumpPhpPage(`app=goods&id=$
{item._source.goods_id}`)">
<image
:src=
"item._source.default_image || $noGoodsImg"
lazy-load
@
error=
"$__reloadResource(item)"
mode=
"aspectFill"
></image>
</view>
<view
class=
"title"
>
{{
item
.
_source
.
goods_name
}}
</view>
<view
class=
"title"
>
{{
item
.
_source
.
brand
}}
{{
item
.
_source
.
goods_name
}}
</view>
<view
class=
"sub-title"
>
{{
item
.
_source
.
goods_subname
}}
</view>
<view
v-if=
"isLogin"
>
<view
v-if=
"item._source.is_pro === 1"
>
...
...
@@ -180,7 +180,7 @@
if
(
type
===
'refresh'
){
this
.
goods_list
=
[];
}
this
.
goods_list
=
this
.
goods_list
.
concat
(
data
.
data
);
this
.
goods_list
=
this
.
goods_list
.
concat
(
data
.
data
||
[]
);
this
.
goods_list
.
map
((
item
,
key
)
=>
{
if
(
item
.
_source
.
is_pro
===
1
&&
new
Date
(
item
.
_source
.
end_time
).
getTime
()
<
new
Date
().
getTime
())
item
.
_source
.
is_pro
=
0
;
...
...
pages/searchhistory/searchhistory.vue
View file @
f2cf115d
...
...
@@ -90,7 +90,7 @@
success
:
(
res
)
=>
{
const
{
data
}
=
res
;
if
(
data
.
code
==
0
){
this
.
goods_names
=
data
.
data
;
this
.
goods_names
=
data
.
data
||
[]
;
}
}
});
...
...
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