Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayMobile
Overview
Overview
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
fengzhaoyu
mingPayMobile
Commits
c1a0aec4
Commit
c1a0aec4
authored
Sep 06, 2019
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改:津贴,津贴详情,账单,账单详情,时间不足两位的补0
parent
8408b0c8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
app.js
app.js
+2
-2
allowanceList.js
pages/allowanceList/allowanceList.js
+2
-1
allowanceRecordList.js
pages/allowanceRecordList/allowanceRecordList.js
+2
-1
billDetails.js
pages/billDetails/billDetails.js
+1
-1
recordList.js
pages/recordList/recordList.js
+3
-2
No files found.
app.js
View file @
c1a0aec4
...
@@ -18,7 +18,7 @@ App({
...
@@ -18,7 +18,7 @@ App({
globalData
:
{
globalData
:
{
loadingType
:
0
,
loadingType
:
0
,
// globalUrl: '192.168.1.106:8400'
// globalUrl: '192.168.1.106:8400'
globalUrl
:
'192.168.1.102:8400'
//
globalUrl: '192.168.1.102:8400'
//
globalUrl: '139.196.213.18:8400'
globalUrl
:
'139.196.213.18:8400'
}
}
});
});
pages/allowanceList/allowanceList.js
View file @
c1a0aec4
...
@@ -33,7 +33,8 @@ Page({
...
@@ -33,7 +33,8 @@ Page({
let
date
=
timeData
.
getDate
()
let
date
=
timeData
.
getDate
()
let
hour
=
timeData
.
getHours
()
let
hour
=
timeData
.
getHours
()
let
minute
=
timeData
.
getMinutes
()
let
minute
=
timeData
.
getMinutes
()
return
`
${
year
}
年
${
month
}
月
${
date
}
日`
return
`
${
year
}
年
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
月
${
date
.
toString
().
length
>
1
?
date
:
'0'
+
date
}
日
${
hour
.
toString
().
length
>
1
?
hour
:
'0'
+
hour
}
:
${
minute
.
toString
().
length
>
1
?
minute
:
'0'
+
minute
}
`
},
},
changeType
(
event
)
{
changeType
(
event
)
{
this
.
setData
({
this
.
setData
({
...
...
pages/allowanceRecordList/allowanceRecordList.js
View file @
c1a0aec4
...
@@ -74,7 +74,8 @@ Page({
...
@@ -74,7 +74,8 @@ Page({
let
date
=
timeData
.
getDate
()
let
date
=
timeData
.
getDate
()
let
hour
=
timeData
.
getHours
()
let
hour
=
timeData
.
getHours
()
let
minute
=
timeData
.
getMinutes
()
let
minute
=
timeData
.
getMinutes
()
return
`
${
year
}
年
${
month
}
月
${
date
}
日
${
hour
}
:
${
minute
}
`
return
`
${
year
}
年
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
月
${
date
.
toString
().
length
>
1
?
date
:
'0'
+
date
}
日
${
hour
.
toString
().
length
>
1
?
hour
:
'0'
+
hour
}
:
${
minute
.
toString
().
length
>
1
?
minute
:
'0'
+
minute
}
`
},
},
onShow
()
{
onShow
()
{
// 页面显示
// 页面显示
...
...
pages/billDetails/billDetails.js
View file @
c1a0aec4
...
@@ -23,7 +23,7 @@ Page({
...
@@ -23,7 +23,7 @@ Page({
let
date
=
timeData
.
getDate
()
let
date
=
timeData
.
getDate
()
let
hour
=
timeData
.
getHours
()
let
hour
=
timeData
.
getHours
()
let
minute
=
timeData
.
getMinutes
()
let
minute
=
timeData
.
getMinutes
()
return
`
${
year
}
年
${
month
}
月
${
date
}
日
${
hour
}
:
${
minute
}
`
return
`
${
year
}
年
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
月
${
date
.
toString
().
length
>
1
?
date
:
'0'
+
date
}
日
${
hour
.
toString
().
length
>
1
?
hour
:
'0'
+
hour
}
:
${
minute
.
toString
().
length
>
1
?
minute
:
'0'
+
minute
}
`
},
},
queryListPaymentRecord
()
{
queryListPaymentRecord
()
{
const
_that
=
this
;
const
_that
=
this
;
...
...
pages/recordList/recordList.js
View file @
c1a0aec4
...
@@ -22,7 +22,8 @@ Page({
...
@@ -22,7 +22,8 @@ Page({
let
month
=
date
.
getMonth
()
+
1
;
let
month
=
date
.
getMonth
()
+
1
;
let
day
=
(
new
Date
(
year
,
month
,
0
).
getDate
().
toString
()).
length
>
1
?
new
Date
(
year
,
month
,
0
).
getDate
()
:
'0'
+
new
Date
(
year
,
month
,
0
).
getDate
()
let
day
=
(
new
Date
(
year
,
month
,
0
).
getDate
().
toString
()).
length
>
1
?
new
Date
(
year
,
month
,
0
).
getDate
()
:
'0'
+
new
Date
(
year
,
month
,
0
).
getDate
()
this
.
setData
({
this
.
setData
({
time
:
`
${
year
}
-
${
month
}
`
,
// 刚进入账单记录页面,时间不够两位补0
time
:
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
`
,
orderStartTime
:
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
-01`
,
orderStartTime
:
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
-01`
,
orderEndTime
:
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
-
${
day
}
`
orderEndTime
:
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
-
${
day
}
`
})
})
...
@@ -188,7 +189,7 @@ Page({
...
@@ -188,7 +189,7 @@ Page({
let
date
=
timeData
.
getDate
()
let
date
=
timeData
.
getDate
()
let
hour
=
timeData
.
getHours
()
let
hour
=
timeData
.
getHours
()
let
minute
=
timeData
.
getMinutes
()
let
minute
=
timeData
.
getMinutes
()
return
`
${
year
}
年
${
month
}
月
${
date
}
日
${
hour
}
:
${
minute
}
`
return
`
${
year
}
年
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
月
${
date
.
toString
().
length
>
1
?
date
:
'0'
+
date
}
日
${
hour
.
toString
().
length
>
1
?
hour
:
'0'
+
hour
}
:
${
minute
.
toString
().
length
>
1
?
minute
:
'0'
+
minute
}
`
},
},
onShow
()
{
onShow
()
{
// 页面显示
// 页面显示
...
...
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