Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
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
王旭
mt-education-mobile
Commits
f36c8d9a
Commit
f36c8d9a
authored
Feb 20, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
24483 【客户_二阶段】ios,新建培训,点击报名/培训时间字段,弹出时间选择框,点击可滑动
parent
7b1c2757
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
index.vue
src/views/addTrain/index.vue
+28
-2
No files found.
src/views/addTrain/index.vue
View file @
f36c8d9a
...
...
@@ -127,6 +127,8 @@
placeholder=
"开始时间"
@
click=
"DateClick('applyStartDate')"
readonly
unselectable=
'on'
onfocus=
"this.blur();"
>
<span
class=
"distantceSpan"
>
~
</span>
<input
...
...
@@ -135,6 +137,8 @@
placeholder=
"结束时间"
@
click=
"DateClick('applyOverDate')"
readonly
unselectable=
'on'
onfocus=
"this.blur();"
>
</
template
>
</van-field>
...
...
@@ -157,6 +161,8 @@
@
click=
"DateClick('trainStartDate')"
:min-date=
"minDate"
readonly
unselectable=
'on'
onfocus=
"this.blur();"
>
<span
class=
"distantceSpan"
>
~
</span>
<input
...
...
@@ -165,6 +171,8 @@
placeholder=
"结束时间"
@
click=
"DateClick('trainOverDate')"
readonly
unselectable=
'on'
onfocus=
"this.blur();"
>
</
template
>
</van-field>
...
...
@@ -318,6 +326,7 @@
v-model=
"datePopupIsShow"
position=
"bottom"
:style=
"{ height: '40%' }"
@
close=
"touchmoveFlag='0'"
>
<van-datetime-picker
v-if=
"datePopupIsShow"
...
...
@@ -327,7 +336,7 @@
:max-date=
"maxDate"
:formatter=
"formatter"
@
confirm=
"dateConfirmClick"
@
cancel=
"datePopupIsShow = false"
@
cancel=
"datePopupIsShow = false
,touchmoveFlag='0'
"
/>
</popup>
<!--签到时间 弹出层-->
...
...
@@ -503,7 +512,8 @@ export default {
trainInfo
:
{
},
saveLoading
:
false
saveLoading
:
false
,
touchmoveFlag
:
'0'
}
},
methods
:
{
...
...
@@ -1259,6 +1269,7 @@ export default {
break
}
this
.
datePopupIsShow
=
true
this
.
touchmoveFlag
=
'1'
},
// 日期时间格式化
formatter
(
type
,
value
)
{
...
...
@@ -1278,6 +1289,7 @@ export default {
// 点击 日期 时间 完成 按钮 事件
dateConfirmClick
()
{
this
.
datePopupIsShow
=
false
this
.
touchmoveFlag
=
'0'
switch
(
this
.
type
)
{
case
'applyStartDate'
:
this
.
formData
.
applyStartDate
=
moment
(
this
.
currentDate
.
getTime
()).
format
(
'YYYY/MM/DD HH:mm'
)
...
...
@@ -1358,6 +1370,20 @@ export default {
this
.
slId
=
this
.
$route
.
query
.
slId
this
.
queryTrainInformation
()
this
.
userPublishValue
()
const
that
=
this
document
.
addEventListener
(
'touchmove'
,
function
(
event
)
{
if
(
that
.
touchmoveFlag
===
'1'
)
{
event
.
preventDefault
()
}
},
{
passive
:
false
})
},
beforeDestroy
()
{
const
that
=
this
document
.
removeEventListener
(
'touchmove'
,
function
(
event
)
{
if
(
that
.
touchmoveFlag
===
'1'
)
{
event
.
preventDefault
()
}
},
false
)
}
}
</
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