Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
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
xulili
ybf
Commits
cb89e75f
Commit
cb89e75f
authored
Apr 10, 2020
by
xd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5845db96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
15 deletions
+28
-15
addCoupon.vue
wx_application/src/views/coupon/addCoupon.vue
+28
-15
No files found.
wx_application/src/views/coupon/addCoupon.vue
View file @
cb89e75f
...
@@ -192,6 +192,7 @@
...
@@ -192,6 +192,7 @@
</van-cell>
</van-cell>
<van-cell
title=
"用券金额"
style=
"font-size:14px;"
>
<van-cell
title=
"用券金额"
style=
"font-size:14px;"
>
<
template
slot=
"default"
>
<
template
slot=
"default"
>
<div
class=
"npbr"
>
<van-field
<van-field
:value=
"addForm.usageAmount"
:value=
"addForm.usageAmount"
placeholder=
"请输入用券金额"
placeholder=
"请输入用券金额"
...
@@ -205,6 +206,7 @@
...
@@ -205,6 +206,7 @@
:maxlength=
"6"
:maxlength=
"6"
@
blur=
"usageAmountShow = false"
@
blur=
"usageAmountShow = false"
/>
/>
</div>
</
template
>
</
template
>
</van-cell>
</van-cell>
</van-cell-group>
</van-cell-group>
...
@@ -258,10 +260,20 @@ export default {
...
@@ -258,10 +260,20 @@ export default {
};
};
},
},
mounted
()
{
mounted
()
{
this
.
addForm
.
deptId
=
sessionStorage
.
getItem
(
"oyStallCode"
)
this
.
addForm
.
deptId
=
Number
(
sessionStorage
.
getItem
(
"oyStallCode"
)
)
// this.addForm.deptId = 3
// this.addForm.deptId = 3
},
},
methods
:
{
methods
:
{
// timeFormat(time) {
// let year = 1900 + time.getYear();
// let month = "0" + (time.getMonth() + 1);
// let date = "0" + time.getDate();
// let hour = time.getHours()
// let minute = time.getMinutes()
// return (
// year + "-" + month.substring(month.length - 2, month.length) + "-" + date.substring(date.length - 2, date.length) + " " + hour + ":"+minute
// );
// },
timeFormat
(
time
)
{
timeFormat
(
time
)
{
let
year
=
1900
+
time
.
getYear
();
let
year
=
1900
+
time
.
getYear
();
let
month
=
"0"
+
(
time
.
getMonth
()
+
1
);
let
month
=
"0"
+
(
time
.
getMonth
()
+
1
);
...
@@ -275,7 +287,8 @@ export default {
...
@@ -275,7 +287,8 @@ export default {
startTimeChange
(
e
)
{
startTimeChange
(
e
)
{
let
startTimeArr
=
e
.
getValues
();
let
startTimeArr
=
e
.
getValues
();
console
.
log
(
startTimeArr
,
'startTimeArr'
)
console
.
log
(
startTimeArr
,
'startTimeArr'
)
this
.
addForm
.
begin_date
=
this
.
beginDate
=
`
${
startTimeArr
[
0
]}
-
${
startTimeArr
[
1
]}
-
${
startTimeArr
[
2
]}
`
this
.
beginDate
=
`
${
startTimeArr
[
0
]}
-
${
startTimeArr
[
1
]}
-
${
startTimeArr
[
2
]}
`
;
this
.
addForm
.
begin_date
=
this
.
beginDate
},
},
handleStartTime
(
value
)
{
handleStartTime
(
value
)
{
this
.
addForm
.
begin_date
=
this
.
beginDate
=
this
.
timeFormat
(
value
)
this
.
addForm
.
begin_date
=
this
.
beginDate
=
this
.
timeFormat
(
value
)
...
@@ -286,7 +299,7 @@ export default {
...
@@ -286,7 +299,7 @@ export default {
this
.
endShow
=
false
;
this
.
endShow
=
false
;
},
},
endTimeChange
(
e
)
{
endTimeChange
(
e
)
{
let
endTimeArr
=
e
.
getValues
()
let
endTimeArr
=
e
.
getValues
()
;
this
.
addForm
.
end_date
=
this
.
endDate
=
`
${
endTimeArr
[
0
]}
-
${
endTimeArr
[
1
]}
-
${
endTimeArr
[
2
]}
`
this
.
addForm
.
end_date
=
this
.
endDate
=
`
${
endTimeArr
[
0
]}
-
${
endTimeArr
[
1
]}
-
${
endTimeArr
[
2
]}
`
},
},
onConfirm
(
val
,
index
)
{
onConfirm
(
val
,
index
)
{
...
...
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