Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
3a2418ef
Commit
3a2418ef
authored
Jul 15, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 填写记账
parent
69194fe9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
124 additions
and
6 deletions
+124
-6
index.vue
components/fab-view/index.vue
+4
-3
index.vue
components/navbar-right/index.vue
+1
-1
pages.json
pages.json
+10
-1
create.vue
pages/maintain-bill/create.vue
+101
-0
index.vue
pages/maintain-bill/index.vue
+8
-1
No files found.
components/fab-view/index.vue
View file @
3a2418ef
...
...
@@ -21,6 +21,7 @@
<
script
>
const
sys
=
uni
.
getSystemInfoSync
()
const
edgeWidth
=
58
export
default
{
props
:
{
// 是否启用自动停靠
...
...
@@ -49,8 +50,8 @@ export default {
data
()
{
return
{
clicked
:
1
,
top
:
sys
.
windowHeight
-
58
,
left
:
sys
.
windowWidth
-
58
,
top
:
sys
.
windowHeight
-
edgeWidth
,
left
:
sys
.
windowWidth
-
edgeWidth
,
width
:
0
,
height
:
0
,
offsetWidth
:
0
,
...
...
@@ -135,7 +136,7 @@ export default {
// #ifdef H5
clientY
+=
this
.
height
// #endif
let
edgeBottom
=
this
.
windowHeight
-
58
let
edgeBottom
=
this
.
windowHeight
-
edgeWidth
// 上下触及边界
if
(
clientY
<
this
.
edge
)
{
...
...
components/navbar-right/index.vue
View file @
3a2418ef
...
...
@@ -26,7 +26,7 @@ export default {
},
text
:
{
type
:
String
,
default
:
'
导出账单
'
,
default
:
''
,
},
image
:
{
type
:
String
,
...
...
pages.json
View file @
3a2418ef
...
...
@@ -147,13 +147,22 @@
}
},{
"path"
:
"detail"
,
"name"
:
"maintain-bill"
,
"name"
:
"maintain-bill
-detail
"
,
"style"
:
{
"navigationBarTitleText"
:
"详情"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
},{
"path"
:
"create"
,
"name"
:
"maintain-bill-create"
,
"style"
:
{
"navigationBarTitleText"
:
"填写"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
}]
}],
"globalStyle"
:
{
...
...
pages/maintain-bill/create.vue
0 → 100644
View file @
3a2418ef
<
template
>
<view
class=
"maintain-create"
>
<NavbarRight
title=
"维修记账"
/>
<view
class=
"content-view"
>
</view>
</view>
</
template
>
<
script
>
import
NavbarRight
from
'@/components/navbar-right'
export
default
{
components
:
{
NavbarRight
,
},
data
()
{
return
{
loading
:
false
,
info
:
{}
}
},
computed
:
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
params
()
{
return
{}
}
},
onLoad
(
options
)
{
if
(
options
&&
options
.
billId
)
{
this
.
billId
=
options
.
billId
this
.
loading
=
true
this
.
init
()
}
},
onUnload
()
{
},
onShow
()
{},
methods
:
{
init
()
{
this
.
loading
=
false
this
.
info
=
{
id
:
'766766777878'
,
name
:
'张三'
,
phone
:
'18589096795'
,
location
:
'发大事发声范德萨范飞大帅府撒风萨顶顶发大水德萨范德萨范德萨范德萨范大师范德萨范德萨发大水'
,
time
:
'2099-33-09 33:90'
,
statusA
:
'未确认'
,
statusB
:
'未结清'
,
a
:
'22'
,
b
:
'33'
,
c
:
'44'
,
remark
:
`发大水发烧发大水范德萨
范德萨范大师发大水范德萨发送范德萨范德萨范德萨
范德萨范德萨`
,
images
:
[
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png'
,
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png'
,
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png'
,
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png'
,
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png'
,
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png'
,
],
records
:
[
{
name
:
'待发货'
,
time
:
'2022-30-33 90:09'
,
},
{
name
:
'待签收'
,
time
:
'2022-30-33 90:09'
,
},
{
name
:
'待确认'
,
time
:
'2022-30-33 90:09'
,
},
],
}
},
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.maintain-bill
{
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
background-color
:
#f6f7fa
;
.content-view
{
height
:
100%
;
overflow
:
auto
;
padding
:
0
24rpx
44rpx
24rpx
;
}
}
</
style
>
pages/maintain-bill/index.vue
View file @
3a2418ef
...
...
@@ -78,7 +78,7 @@
<NoData
v-else-if=
"!loading"
customStyle=
"margin-top:100rpx"
:image=
"currentNoData.image"
:text=
"currentNoData.text"
/>
</view>
<PopNormal
title=
"操作提醒"
:visible
.
sync=
"visible"
@
confirm=
"handleClickConfirm"
cancelText=
"取消"
confirmText=
"导出"
content=
"确认导出账单吗?"
/>
<FabView/>
<FabView
@
click=
"handleClickFab"
/>
</view>
</
template
>
...
...
@@ -201,6 +201,13 @@ export default {
},
})
},
handleClickFab
()
{
this
.
$u
.
route
({
url
:
'pages/maintain-bill/create'
,
params
:
{
},
})
},
handlClickOut
()
{
this
.
visible
=
true
},
...
...
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