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
24d04ce8
Commit
24d04ce8
authored
Feb 18, 2022
by
Zheng Shang Jun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://47.110.145.204:8085/lixingjian/hs-app-project
into dev
parents
4559a3af
a688a363
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
80 deletions
+101
-80
fabricList.vue
src/pages/home/fabricList.vue
+101
-80
No files found.
src/pages/home/fabricList.vue
View file @
24d04ce8
<
template
>
<
template
>
<view
class=
""
>
<view
class=
""
>
<u-navbar
:is-back=
"true"
:custom-back=
"backPush"
:background=
"
{ backgroundColor: '#F5F5F5' }" title="我的面料">
</u-navbar>
<u-navbar
:is-back=
"true"
:custom-back=
"backPush"
:background=
"
{ backgroundColor: '#F5F5F5' }" title="我的面料">
</u-navbar>
<view
class=
"content background_fff u-p-30"
>
<view
class=
"content background_fff u-p-30"
>
<!-- 正文内容 -->
<!-- 正文内容 -->
<u-sticky
offset-top=
"15"
>
<u-sticky
offset-top=
"15"
>
<u-search
@
search=
"searchCli"
class=
""
bg-color=
"#fff"
border-color=
"#ececec"
placeholder=
"请输入面料名称"
:show-action=
"false"
v-model=
"search"
></u-search>
<u-search
@
search=
"searchCli"
class=
""
bg-color=
"#fff"
border-color=
"#ececec"
placeholder=
"请输入面料名称"
:show-action=
"false"
v-model=
"search"
></u-search>
</u-sticky>
</u-sticky>
<view>
<view>
<view
class=
"u-m-t-30"
>
<view
class=
"u-m-t-30"
>
...
@@ -18,87 +20,106 @@
...
@@ -18,87 +20,106 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
home
from
'./mixin/index.js'
import
home
from
'./mixin/index.js'
import
fabricTitle
from
"./components/fabricTitle.vue"
import
fabricTitle
from
"./components/fabricTitle.vue"
export
default
{
export
default
{
mixins
:[
home
],
mixins
:
[
home
],
components
:{
fabricTitle
},
components
:
{
data
()
{
fabricTitle
return
{
},
size
:
10
,
data
()
{
search
:
''
,
return
{
fiabricList
:
[],
size
:
10
,
// dataList:[],
search
:
''
,
total
:
0
fiabricList
:
[],
};
// dataList:[],
},
total
:
0
,
onLoad
()
{
current
:
1
,
this
.
materialList
();
isLoad
:
false
,
// this.$http("category.query", {}).then(res => {
};
// let {
},
// code,
onLoad
()
{
// data
// } = res;
// if (code === 200) {
// this.dataList = data;
// }
// })
},
// 上拉加载更多
onReachBottom
()
{
// console,log("jiazai")
if
(
this
.
total
>
this
.
fiabricList
.
length
)
{
this
.
size
=
this
.
size
+
5
;
this
.
materialList
();
}
},
methods
:
{
searchCli
()
{
// this.size = 5;
this
.
materialList
();
this
.
materialList
();
// this.$http("category.query", {}).then(res => {
// let {
// code,
// data
// } = res;
// if (code === 200) {
// this.dataList = data;
// }
// })
},
},
// 我的面料
// 上拉加载更多
materialList
()
{
onReachBottom
()
{
// this.$http('orderTicket.materialList', {
// console,log("jiazai")
// size: this.size,
if
(
this
.
total
>
this
.
fiabricList
.
length
)
{
// materialCode: '',
// this.size = this.size + 5;
// materialName: this.search
this
.
current
+=
1
// }).then(res => {
this
.
materialList
();
// let { code, data } = res;
}
// if (code == 200) {
// this.fiabricList = data.data;
// this.total = data.total;
// }
// });
this
.
$http
(
'materialinfo.getMaterialList'
,
{
size
:
this
.
size
,
materialCode
:
''
,
"current"
:
1
,
"materialType"
:
"面料"
,
codeAndName
:
this
.
search
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
this
.
fiabricList
=
data
.
page
.
records
;
this
.
total
=
data
.
page
.
total
;
}
});
},
},
backPush
(){
methods
:
{
this
.
$Router
.
push
({
searchCli
()
{
path
:
"/pages/home/index"
,
// this.size = 5;
// query: {
this
.
current
=
1
// id: this.id
this
.
isLoad
=
true
// }
this
.
materialList
();
})
}
},
}
// 我的面料
};
materialList
()
{
// this.$http('orderTicket.materialList', {
// size: this.size,
// materialCode: '',
// materialName: this.search
// }).then(res => {
// let { code, data } = res;
// if (code == 200) {
// this.fiabricList = data.data;
// this.total = data.total;
// }
// });
this
.
$http
(
'materialinfo.getMaterialList'
,
{
size
:
this
.
size
,
materialCode
:
''
,
"current"
:
this
.
current
,
"materialType"
:
"面料"
,
codeAndName
:
this
.
search
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
// 搜索
if
(
this
.
isLoad
)
{
console
.
log
(
"load"
)
this
.
fiabricList
=
[]
this
.
fiabricList
=
data
.
page
.
records
;
this
.
isLoad
=
false
}
else
{
this
.
fiabricList
=
this
.
fiabricList
.
concat
(
data
.
page
.
records
);
}
this
.
total
=
data
.
page
.
total
;
}
});
},
backPush
()
{
this
.
$Router
.
push
({
path
:
"/pages/home/index"
,
// query: {
// id: this.id
// }
})
}
}
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.background_fff
{
.background_fff
{
background
:
#fff
;
background
:
#fff
;
}
}
</
style
>
</
style
>
\ No newline at end of file
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