Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
7c13269a
Commit
7c13269a
authored
Jun 30, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/游戏营销'
# Conflicts: # src/views/ai/task/components/defineTime.vue
parents
7940e4b7
d413620a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
18 deletions
+13
-18
defineTime.vue
src/views/ai/task/components/defineTime.vue
+6
-11
form.vue
src/views/game/cmh/form.vue
+4
-3
index.vue
src/views/game/cmh/index.vue
+3
-4
No files found.
src/views/ai/task/components/defineTime.vue
View file @
7c13269a
<
template
>
<div
class=
"defineTime"
>
<p
class=
"tips"
>
自定义时段不少于
4
个小时
</p>
<p
class=
"tips"
>
自定义时段不少于
2
个小时
</p>
<el-form
:model=
"form"
ref=
"defineTime"
>
<div
class=
"flex"
v-for=
"(v, i) in form.timeRangeList"
:key=
"i"
>
<el-form-item
class=
"mt10"
:prop=
"'timeRangeList.' + i + '.startTime'"
:rules=
"[
{ validator: validateTime(i) }, { validator: validateStarTime(v, i) }]">
<el-time-select
placeholder=
"起始时间"
v-model=
"v.startTime"
@
change=
"$emit('change')"
:picker-options=
"
{
start: '09:00',
step: '00:30',
...
...
@@ -21,7 +20,6 @@
<el-time-select
placeholder=
"结束时间"
v-model=
"v.endTime"
@
change=
"$emit('change')"
:picker-options=
"
{
start: '09:00',
step: '00:30',
...
...
@@ -126,7 +124,7 @@ export default {
}
this
.
form
.
timeRangeList
.
push
({});
},
// 提交时校验是否超过
4
小时
// 提交时校验是否超过
2
小时
handleCallTime
()
{
let
minutes
=
0
;
this
.
form
.
timeRangeList
.
forEach
(
item
=>
{
...
...
@@ -134,8 +132,8 @@ export default {
let
start
=
new
Date
(
new
Date
().
toLocaleDateString
()
+
' '
+
item
.
startTime
).
getTime
();
minutes
=
(
end
-
start
)
/
60000
+
minutes
;
});
if
(
minutes
<
24
0
)
{
this
.
$message
.
error
(
'自定义时段不少于
4
个小时'
);
if
(
minutes
<
12
0
)
{
this
.
$message
.
error
(
'自定义时段不少于
2
个小时'
);
return
false
;
}
else
{
return
true
;
...
...
@@ -143,11 +141,8 @@ export default {
},
submit
()
{
return
new
Promise
(
resolve
=>
{
if
(
!
this
.
handleCallTime
())
{
resolve
(
false
);
return
;
}
this
.
$refs
.
defineTime
.
validate
((
val
,
obj
)
=>
{
this
.
handleCallTime
();
this
.
$refs
.
defineTime
.
validate
(
val
=>
{
if
(
val
)
{
resolve
(
this
.
form
);
}
else
{
...
...
src/views/game/cmh/form.vue
View file @
7c13269a
...
...
@@ -379,7 +379,6 @@ export default {
const
{
result
}
=
res
;
this
.
$message
.
success
(
'发布成功'
);
this
.
getLink
(
result
);
this
.
$route
.
meta
.
refresh
=
true
;
}
})
.
finally
(
_
=>
{
...
...
@@ -414,10 +413,12 @@ export default {
editRenew
()
{
window
.
location
.
href
=
window
.
location
.
origin
+
`/marketing/#/game/cmh/edit/
${
this
.
gameId
}
`
;
window
.
location
.
reload
();
// this.$router.push(`/game/cmh/edit/${this.gameId}`);
},
goList
()
{
window
.
close
();
if
(
this
.
isAdd
)
{
this
.
$route
.
meta
.
refresh
=
true
;
}
this
.
$router
.
push
(
'/game/cmh'
);
}
}
};
...
...
src/views/game/cmh/index.vue
View file @
7c13269a
...
...
@@ -94,6 +94,7 @@ import links from '../common/links';
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
import
img
from
'@/assets/img/template1/mould_share_page.png'
;
import
dmDropdown
from
'@/components/dm-drop-down/dm-drop-down'
;
export
default
{
components
:
{
dmDropdown
,
...
...
@@ -257,10 +258,6 @@ export default {
}
next
();
},
destroyed
()
{
const
data
=
{
dateTime
:
this
.
dateTime
,
listParams
:
this
.
listParams
};
sessionStorage
.
setItem
(
'listParams'
,
JSON
.
stringify
(
data
));
},
methods
:
{
goDetail
()
{
window
.
open
(
'https://www.yuque.com/exnmlu/hpbb1c/yf16om'
);
...
...
@@ -325,6 +322,8 @@ export default {
this
.
listParams
.
endTime
=
''
;
}
this
.
loading
=
true
;
const
data
=
{
dateTime
:
this
.
dateTime
,
listParams
:
this
.
listParams
};
sessionStorage
.
setItem
(
'listParams'
,
JSON
.
stringify
(
data
));
cmhPage
(
this
.
listParams
)
.
then
(
res
=>
{
this
.
tableList
=
res
.
result
.
list
||
[];
...
...
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