Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-app-project
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
李星剑
hs-app-project
Commits
e2477f84
Commit
e2477f84
authored
Feb 17, 2022
by
DongRuifen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页搜索
parent
4dec3e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
search.vue
src/pages/home/search.vue
+14
-7
No files found.
src/pages/home/search.vue
View file @
e2477f84
...
@@ -10,19 +10,24 @@
...
@@ -10,19 +10,24 @@
</u-navbar>
</u-navbar>
<!-- 列表 -->
<!-- 列表 -->
<view
class=
"home_con_order u-p-l-30 u-p-r-30"
>
<view
class=
"home_con_order u-p-l-30 u-p-r-30"
>
<view
class=
"u-m-t-30"
v-for=
"item in fiabricList"
><hs-material-thumbnail
@
click=
"detailFabric(item)"
:item=
"filterFiabric(item)"
></hs-material-thumbnail></view>
<!--
<view
class=
"u-m-t-30"
v-for=
"item in fiabricList"
>
-->
<!--
<hs-material-thumbnail
@
click=
"detailFabric(item)"
:item=
"filterFiabric(item)"
></hs-material-thumbnail>
-->
<fabricTitle
:tableData=
"fiabricList"
></fabricTitle>
<!--
</view>
-->
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
home
from
'./mixin/index.js'
;
import
home
from
'./mixin/index.js'
;
import
fabricTitle
from
"./components/fabricTitle.vue"
export
default
{
export
default
{
mixins
:
[
home
],
mixins
:
[
home
],
components
:{
fabricTitle
},
data
()
{
data
()
{
return
{
return
{
value
:
''
,
value
:
''
,
size
:
5
,
size
:
10
,
total
:
0
,
total
:
0
,
fiabricList
:
[]
fiabricList
:
[]
};
};
...
@@ -39,20 +44,22 @@ export default {
...
@@ -39,20 +44,22 @@ export default {
this
.
$router
.
push
(
'/pages/home/index'
);
this
.
$router
.
push
(
'/pages/home/index'
);
},
},
searchCli
()
{
searchCli
()
{
this
.
size
=
5
;
// this.size = 10
;
this
.
materialList
();
this
.
materialList
();
},
},
// 我的面料
// 我的面料
materialList
()
{
materialList
()
{
this
.
$http
(
'
orderTicket.m
aterialList'
,
{
this
.
$http
(
'
materialinfo.getM
aterialList'
,
{
size
:
this
.
size
,
size
:
this
.
size
,
materialCode
:
''
,
materialCode
:
''
,
materialName
:
this
.
value
"current"
:
1
,
"materialType"
:
"面料"
,
codeAndName
:
this
.
value
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
this
.
fiabricList
=
data
.
data
;
this
.
fiabricList
=
data
.
page
.
records
;
this
.
total
=
data
.
total
;
this
.
total
=
data
.
page
.
total
;
}
}
});
});
},
},
...
...
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