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
8f16aa70
Commit
8f16aa70
authored
Feb 17, 2022
by
DongRuifen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑成功提示
parent
e2477f84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
10 deletions
+38
-10
detail.vue
src/pages/home/detail.vue
+9
-1
editFabric.vue
src/pages/home/editFabric.vue
+18
-7
fabricList.vue
src/pages/home/fabricList.vue
+11
-2
No files found.
src/pages/home/detail.vue
View file @
8f16aa70
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view
class=
"back"
:style=
"topHeight==0?'':
{'padding-top':resultpx}">
<view
class=
"back"
:style=
"topHeight==0?'':
{'padding-top':resultpx}">
<!--
<view
class=
"back"
>
-->
<!--
<view
class=
"back"
>
-->
<view
class=
"u-flex"
>
<view
class=
"u-flex"
>
<u-navbar
:is-back=
"true"
:background=
"
{ backgroundColor: '#F5F5F5' }" title="面料详情">
<u-navbar
:is-back=
"true"
:
custom-back=
"backPush"
:
background=
"
{ backgroundColor: '#F5F5F5' }" title="面料详情">
<template
v-slot:right
>
<template
v-slot:right
>
<view
class=
"nav-nav"
@
click=
"edit()"
>
编辑
</view>
<view
class=
"nav-nav"
@
click=
"edit()"
>
编辑
</view>
</
template
>
</
template
>
...
@@ -177,6 +177,14 @@
...
@@ -177,6 +177,14 @@
id
:
this
.
id
id
:
this
.
id
}
}
})
})
},
backPush
(){
this
.
$Router
.
push
({
path
:
"/pages/home/fabricList"
,
// query: {
// id: this.id
// }
})
}
}
}
}
}
}
...
...
src/pages/home/editFabric.vue
View file @
8f16aa70
...
@@ -76,14 +76,25 @@
...
@@ -76,14 +76,25 @@
data
data
}
=
res
;
}
=
res
;
if
(
code
===
200
)
{
if
(
code
===
200
)
{
this
.
$router
.
push
({
uni
.
showToast
({
path
:
"/pages/home/detail"
,
title
:
'操作成功'
,
query
:
{
// icon: 'none'
id
:
this
.
id
// duration: 2000
}
});
})
setTimeout
(()
=>
{
this
.
$router
.
push
({
path
:
"/pages/home/detail"
,
query
:
{
id
:
this
.
id
}
})
},
1000
)
}
else
{
}
else
{
uni
.
showToast
({
title
:
'操作失败'
,
icon
:
'none'
// duration: 2000
});
}
}
});
});
}
}
...
...
src/pages/home/fabricList.vue
View file @
8f16aa70
<
template
>
<
template
>
<view
class=
""
>
<view
class=
""
>
<u-navbar
:is-back=
"true"
: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"
>
...
@@ -47,6 +47,7 @@ export default {
...
@@ -47,6 +47,7 @@ export default {
},
},
// 上拉加载更多
// 上拉加载更多
onReachBottom
()
{
onReachBottom
()
{
console
,
log
(
"jiazai"
)
if
(
this
.
total
>
this
.
fiabricList
.
length
)
{
if
(
this
.
total
>
this
.
fiabricList
.
length
)
{
this
.
size
=
this
.
size
+
5
;
this
.
size
=
this
.
size
+
5
;
this
.
materialList
();
this
.
materialList
();
...
@@ -83,7 +84,15 @@ export default {
...
@@ -83,7 +84,15 @@ export default {
this
.
total
=
data
.
page
.
total
;
this
.
total
=
data
.
page
.
total
;
}
}
});
});
}
},
backPush
(){
this
.
$Router
.
push
({
path
:
"/pages/home/index"
,
// query: {
// id: this.id
// }
})
}
}
}
};
};
</
script
>
</
script
>
...
...
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