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
14b25066
Commit
14b25066
authored
May 26, 2020
by
郑秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索 bug 修改
parent
e9658908
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
manifest.json
manifest.json
+1
-1
search.vue
pages/search/search.vue
+2
-2
searchhistory.vue
pages/searchhistory/searchhistory.vue
+1
-1
No files found.
manifest.json
View file @
14b25066
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
"mode"
:
"history"
,
"mode"
:
"history"
,
"base"
:
"/uni"
"base"
:
"/uni"
},
},
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
prod
/1.0.11/"
,
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
test
/1.0.11/"
,
"optimization"
:
{
"optimization"
:
{
"treeShaking"
:
{
"treeShaking"
:
{
"enable"
:
true
"enable"
:
true
...
...
pages/search/search.vue
View file @
14b25066
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<view
class=
"image-outer"
@
click=
"jumpPhpPage(`app=goods&id=$
{item._source.goods_id}`)">
<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>
<image
:src=
"item._source.default_image || $noGoodsImg"
lazy-load
@
error=
"$__reloadResource(item)"
mode=
"aspectFill"
></image>
</view>
</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
class=
"sub-title"
>
{{
item
.
_source
.
goods_subname
}}
</view>
<view
v-if=
"isLogin"
>
<view
v-if=
"isLogin"
>
<view
v-if=
"item._source.is_pro === 1"
>
<view
v-if=
"item._source.is_pro === 1"
>
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
if
(
type
===
'refresh'
){
if
(
type
===
'refresh'
){
this
.
goods_list
=
[];
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
)
=>
{
this
.
goods_list
.
map
((
item
,
key
)
=>
{
if
(
item
.
_source
.
is_pro
===
1
&&
new
Date
(
item
.
_source
.
end_time
).
getTime
()
<
new
Date
().
getTime
())
if
(
item
.
_source
.
is_pro
===
1
&&
new
Date
(
item
.
_source
.
end_time
).
getTime
()
<
new
Date
().
getTime
())
item
.
_source
.
is_pro
=
0
;
item
.
_source
.
is_pro
=
0
;
...
...
pages/searchhistory/searchhistory.vue
View file @
14b25066
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
const
{
data
}
=
res
;
const
{
data
}
=
res
;
if
(
data
.
code
==
0
){
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