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
2258ff46
Commit
2258ff46
authored
Mar 11, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 游戏菜单调整
parent
78f9a96f
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
37 additions
and
113 deletions
+37
-113
share.vue
src/views/game/common/share.vue
+1
-1
threshold.vue
src/views/game/common/threshold.vue
+1
-1
form.vue
src/views/game/dzp/form.vue
+4
-10
index.vue
src/views/game/dzp/index.vue
+3
-10
record.vue
src/views/game/dzp/record.vue
+0
-1
form.vue
src/views/game/ggk/form.vue
+4
-10
index.vue
src/views/game/ggk/index.vue
+3
-10
record.vue
src/views/game/ggk/record.vue
+0
-1
form.vue
src/views/game/klfl/form.vue
+4
-11
index.vue
src/views/game/klfl/index.vue
+2
-10
record.vue
src/views/game/klfl/record.vue
+0
-1
form.vue
src/views/game/ptyx/form.vue
+5
-14
index.vue
src/views/game/ptyx/index.vue
+3
-10
record.vue
src/views/game/ptyx/record.vue
+0
-1
form.vue
src/views/game/znm/form.vue
+4
-11
index.vue
src/views/game/znm/index.vue
+3
-10
record.vue
src/views/game/znm/record.vue
+0
-1
No files found.
src/views/game/common/share.vue
View file @
2258ff46
<
template
>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
分享设置
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
分享设置
</h3>
<el-form-item
label=
"分享设置"
class=
"width50 is-required"
>
<el-radio-group
v-model=
"form.shareFlag"
>
<el-radio
:label=
"1"
>
可分享
</el-radio>
...
...
src/views/game/common/threshold.vue
View file @
2258ff46
<
template
>
<section
class=
"dm-form__wrap clearfix"
>
<h3
class=
"dm-title__label"
>
<h3
class=
"dm-title__label
border-bottom
"
>
参与门槛
<i
class=
"iconfont icon-xinxixianshi pl5 gray"
></i>
<span
class=
"gray fz13"
>
满足参与门槛会员才可以参与游戏
</span>
...
...
src/views/game/dzp/form.vue
View file @
2258ff46
...
...
@@ -2,7 +2,7 @@
<div>
<el-form
class=
"content"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
v-loading=
"loading"
element-loading-text=
"拼命加载中"
>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
游戏内容
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
游戏内容
</h3>
<el-form-item
label=
"游戏名称"
prop=
"gameName"
>
<dm-input
v-model=
"form.gameName"
class=
"w400"
:disabled=
"isInfo"
:maxlength=
"25"
></dm-input>
</el-form-item>
...
...
@@ -46,7 +46,7 @@
</el-form-item>
</section>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
抽奖机制
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
抽奖机制
</h3>
<el-form-item
label=
"抽奖消耗"
prop=
"gameIntegral"
>
<el-input-number
controls-position=
"right"
v-model=
"form.gameIntegral"
class=
"w400"
:min=
"0"
:precision=
"0"
:disabled=
"isInfo"
></el-input-number>
积分
<p
class=
"fz12 gray"
>
0表示免费抽奖
</p>
...
...
@@ -160,10 +160,10 @@
<
dm
-
share
:
form
=
"form"
><
/dm-share
>
<!--
参与门槛
-->
<
dm
-
threshold
:
form
=
"form"
:
isAdd
=
"isAdd"
:
creatorId
=
"creatorId"
:
thresholdData
=
"thresholdData"
ref
=
"threshold"
><
/dm-threshold
>
<
d
iv
class
=
"btn-wrap_fixed"
:
class
=
"{ on: asideShow
}
"
>
<
d
m
-
form
-
bottom
>
<
el
-
button
type
=
"primary"
@
click
=
"saveLottery('form')"
:
disabled
=
"!canEdit"
v
-
if
=
"!isInfo"
>
保
存
<
/el-button
>
<
el
-
button
@
click
=
"$router.go(-1)"
>
返
回
<
/el-button
>
<
/d
iv
>
<
/d
m-form-bottom
>
<
/el-form
>
<
vue
-
gic
-
card
:
showCardDialog
.
sync
=
"showCardDialog"
@
selectCard
=
"selectCard"
:
cardLimit
=
"3"
:
cardType
=
"null"
><
/vue-gic-card
>
<
adjust
-
stock
:
show
.
sync
=
"adjustStock"
:
totalCount
=
"currentCard.couponStock"
:
coupCardId
=
"currentCard.coupCardId"
@
backStock
=
"backStock"
><
/adjust-stock
>
...
...
@@ -312,9 +312,6 @@ export default {
created
()
{
if
(
this
.
isEdit
||
this
.
isInfo
)
{
this
.
detailLottery
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
}
,
{
name
:
'游戏营销'
,
path
:
'/game'
}
,
{
name
:
'大转盘'
,
path
:
'/game/dzp'
}
,
{
name
:
'大转盘详情'
,
path
:
'/game/dzp/add'
}
]);
// eslint-disable-line
}
else
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
}
,
{
name
:
'游戏营销'
,
path
:
'/game'
}
,
{
name
:
'大转盘'
,
path
:
'/game/dzp'
}
,
{
name
:
'大转盘新增'
,
path
:
'/game/dzp/add'
}
]);
// eslint-disable-line
}
}
,
computed
:
{
...
...
@@ -326,9 +323,6 @@ export default {
}
}
);
return
parseInt
(
this
.
form
.
gameWinningRate
)
/
result
;
}
,
asideShow
()
{
return
this
.
$store
.
state
.
marketing
.
asideShow
;
}
}
,
methods
:
{
...
...
src/views/game/dzp/index.vue
View file @
2258ff46
<
template
>
<section
class=
"dm-wrap"
v-loading=
"loading"
>
<div
class=
"page-tip"
v-if=
"lastDate"
>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
{{
lastDate
}}
</div>
<div
class=
"pb22 clearfix"
>
<el-select
class=
"dm-select"
v-model=
"listParams.gameStatus"
placeholder=
"选择游戏状态"
@
change=
"refresh"
>
<el-option
v-for=
"(v, i) in gameStatusOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
...
...
@@ -44,6 +45,7 @@ export default {
mixins
:
[
linksMixin
,
tableMethods
],
data
()
{
return
{
lastDate
:
''
,
gameStatusOptions
:
[{
value
:
''
,
label
:
'所有状态'
},
{
value
:
1
,
label
:
'待开始'
},
{
value
:
2
,
label
:
'进行中'
},
{
value
:
3
,
label
:
'已结束'
}],
// eslint-disable-line
listParams
:
{
gameStatus
:
''
,
...
...
@@ -124,20 +126,11 @@ export default {
created
()
{
this
.
getTableList
();
this
.
getGameDataUpdatetime
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
''
},
{
name
:
'大转盘'
,
path
:
'/game/dzp'
}]);
// eslint-disable-line
},
methods
:
{
getGameDataUpdatetime
()
{
getGameDataUpdatetime
().
then
(
res
=>
{
const
date
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
this
.
$store
.
commit
(
'mutations_layoutTips'
,
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
${
date
}
</div>
`
);
this
.
lastDate
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
});
},
// 拉取列表
...
...
src/views/game/dzp/record.vue
View file @
2258ff46
...
...
@@ -104,7 +104,6 @@ export default {
},
created
()
{
this
.
loadLotteryRecordList
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'大转盘'
,
path
:
'/game/dzp'
},
{
name
:
'大转盘中奖记录'
,
path
:
''
}]);
// eslint-disable-line
},
methods
:
{
async
loadLotteryRecordList
()
{
...
...
src/views/game/ggk/form.vue
View file @
2258ff46
...
...
@@ -2,7 +2,7 @@
<div>
<el-form
class=
"content"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
v-loading=
"loading"
element-loading-text=
"拼命加载中"
>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
游戏内容
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
游戏内容
</h3>
<el-form-item
label=
"游戏名称"
class=
"width50"
prop=
"gameName"
>
<dm-input
v-model=
"form.gameName"
class=
"w400"
:disabled=
"isInfo"
:maxlength=
"25"
></dm-input>
</el-form-item>
...
...
@@ -42,7 +42,7 @@
</el-form-item>
</section>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
抽奖机制
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
抽奖机制
</h3>
<el-form-item
label=
"抽奖消耗"
class=
"width50"
prop=
"gameIntegral"
>
<el-input-number
controls-position=
"right"
class=
"w400"
:min=
"0"
v-model=
"form.gameIntegral"
:precision=
"0"
:disabled=
"isInfo"
></el-input-number>
积分
<p
class=
"fz12 gray"
>
0表示免费抽奖
</p>
...
...
@@ -124,10 +124,10 @@
<
dm
-
share
:
form
=
"form"
><
/dm-share
>
<!--
参与门槛
-->
<
dm
-
threshold
:
form
=
"form"
:
isAdd
=
"isAdd"
:
creatorId
=
"creatorId"
:
thresholdData
=
"thresholdData"
ref
=
"threshold"
><
/dm-threshold
>
<
d
iv
class
=
"btn-wrap_fixed"
:
class
=
"{ on: asideShow
}
"
>
<
d
m
-
form
-
bottom
>
<
el
-
button
type
=
"primary"
@
click
=
"saveLottery('form')"
:
disabled
=
"!canEdit"
v
-
if
=
"!isInfo"
>
保
存
<
/el-button
>
<
el
-
button
@
click
=
"$router.go(-1)"
>
返
回
<
/el-button
>
<
/d
iv
>
<
/d
m-form-bottom
>
<
/el-form
>
<
vue
-
gic
-
card
:
showCardDialog
.
sync
=
"showCardDialog"
@
selectCard
=
"selectCard"
:
cardLimit
=
"3"
:
cardType
=
"null"
><
/vue-gic-card
>
<
adjust
-
stock
:
show
.
sync
=
"adjustStock"
:
totalCount
=
"currentCard.couponStock"
:
coupCardId
=
"currentCard.coupCardId"
@
backStock
=
"backStock"
><
/adjust-stock
>
...
...
@@ -256,9 +256,6 @@ export default {
created
()
{
if
(
this
.
isEdit
||
this
.
isInfo
)
{
this
.
detailLottery
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
}
,
{
name
:
'游戏营销'
,
path
:
'/game'
}
,
{
name
:
'刮刮卡'
,
path
:
'/game/ggk'
}
,
{
name
:
'刮刮卡详情'
,
path
:
''
}
]);
// eslint-disable-line
}
else
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
}
,
{
name
:
'游戏营销'
,
path
:
'/game'
}
,
{
name
:
'刮刮卡'
,
path
:
'/game/ggk'
}
,
{
name
:
'刮刮卡新增'
,
path
:
''
}
]);
// eslint-disable-line
}
}
,
computed
:
{
...
...
@@ -270,9 +267,6 @@ export default {
}
}
);
return
parseInt
(
this
.
form
.
gameWinningRate
)
/
result
;
}
,
asideShow
()
{
return
this
.
$store
.
state
.
marketing
.
asideShow
;
}
}
,
methods
:
{
...
...
src/views/game/ggk/index.vue
View file @
2258ff46
<
template
>
<section
class=
"dm-wrap"
v-loading=
"loading"
>
<div
class=
"page-tip"
v-if=
"lastDate"
>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
{{
lastDate
}}
</div>
<div
class=
"pb22 clearfix"
>
<el-select
class=
"dm-select"
v-model=
"listParams.gameStatus"
placeholder=
"选择游戏状态"
@
change=
"refresh"
>
<el-option
v-for=
"(v, i) in gameStatusOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
...
...
@@ -43,6 +44,7 @@ export default {
mixins
:
[
linksMixin
,
tableMethods
],
data
()
{
return
{
lastDate
:
''
,
gameStatusOptions
:
[{
value
:
''
,
label
:
'所有状态'
},
{
value
:
1
,
label
:
'待开始'
},
{
value
:
2
,
label
:
'进行中'
},
{
value
:
3
,
label
:
'已结束'
}],
// eslint-disable-line
listParams
:
{
gameStatus
:
''
,
...
...
@@ -123,20 +125,11 @@ export default {
created
()
{
this
.
getTableList
();
this
.
getGameDataUpdatetime
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
''
},
{
name
:
'刮刮卡'
,
path
:
'/game/ggk'
}]);
// eslint-disable-line
},
methods
:
{
getGameDataUpdatetime
()
{
getGameDataUpdatetime
().
then
(
res
=>
{
const
date
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
this
.
$store
.
commit
(
'mutations_layoutTips'
,
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
${
date
}
</div>
`
);
this
.
lastDate
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
});
},
// 拉取列表
...
...
src/views/game/ggk/record.vue
View file @
2258ff46
...
...
@@ -109,7 +109,6 @@ export default {
},
created
()
{
this
.
loadLotteryRecordList
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'刮刮卡'
,
path
:
'/game/ggk'
},
{
name
:
'刮刮卡中奖记录'
,
path
:
''
}]);
// eslint-disable-line
},
methods
:
{
async
loadLotteryRecordList
()
{
...
...
src/views/game/klfl/form.vue
View file @
2258ff46
<
template
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
class=
"ptyx-add content"
v-loading=
"loading"
loading-text=
"加载中"
>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
游戏内容
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
游戏内容
</h3>
<el-form-item
label=
"游戏名称"
prop=
"gameName"
class=
"width50"
>
<dm-input
v-model=
"form.gameName"
class=
"w400"
:maxlength=
"10"
></dm-input>
</el-form-item>
...
...
@@ -94,7 +94,7 @@
</el-form-item>
</section>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
奖项设置
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
奖项设置
</h3>
<el-form-item
label=
"首次特殊策略"
class=
"el-form-item__margin-top14"
>
<el-table
tooltipEffect=
"light"
:data=
"tableList"
style=
"width: 100%"
v-loading=
"tableLoading"
>
<el-table-column
prop=
"strategyName"
label=
"策略名称"
align=
"left"
></el-table-column>
...
...
@@ -190,10 +190,10 @@
<dm-share
:form=
"form"
></dm-share>
<!-- 参与门槛 -->
<dm-threshold
:form=
"form"
:creatorId=
"creatorId"
:isAdd=
"isAdd"
:thresholdData=
"thresholdData"
ref=
"threshold"
></dm-threshold>
<d
iv
class=
"btn-wrap_fixed"
:class=
"{ on: asideShow }"
>
<d
m-form-bottom
>
<el-button
type=
"primary"
@
click=
"klflSave('form')"
:disabled=
"!canEdit"
v-if=
"!isInfo"
>
保 存
</el-button>
<el-button
@
click=
"$router.go(-1)"
>
返 回
</el-button>
</d
iv
>
</d
m-form-bottom
>
<vue-gic-card
:showCardDialog
.
sync=
"showCardDialog"
@
selectCard=
"selectCard"
:cardLimit=
"3"
:cardType=
"null"
></vue-gic-card>
<calculate
ref=
"calculate"
:show
.
sync=
"calculateShow"
:gameId=
"form.gameActivityId"
:currentCount=
"currentObj.prizeStock"
:totalCount=
"currentObj.prizeCount"
:prizeId=
"currentObj.prizeId"
:prizeReferType=
"currentObj.prizeReferType"
:prizeReferId=
"currentObj.prizeReferId"
:useStrategy=
"0"
@
countRefresh=
"countRefresh"
></calculate>
<strategy
:show
.
sync=
"strategyShow"
:gameId=
"form.gameActivityId"
:strategyType=
"strategyType"
:dataId=
"gamePrizeStrategyId"
:gameActivityId=
"form.gameActivityId"
:cardObj=
"strategyDialog"
@
set-data=
"setStrategyCard"
@
refesh=
"klflStrategyList"
></strategy>
...
...
@@ -334,19 +334,12 @@ export default {
dmShare
,
dmThreshold
},
computed
:
{
asideShow
()
{
return
this
.
$store
.
state
.
marketing
.
asideShow
;
}
},
created
()
{
if
(
this
.
isEdit
||
this
.
isInfo
)
{
this
.
klflDetail
();
this
.
klflStrategyList
();
this
.
klflPrizeList
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
''
},
{
name
:
'口令福利'
,
path
:
'/game/klfl'
},
{
name
:
'口令福利编辑'
,
path
:
''
}]);
// eslint-disable-line
}
else
if
(
this
.
isAdd
)
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
''
},
{
name
:
'口令福利'
,
path
:
'/game/klfl'
},
{
name
:
'口令福利新增'
,
path
:
''
}]);
// eslint-disable-line
(
async
()
=>
{
await
this
.
klflDetail
(
true
);
await
this
.
klflStrategyList
();
...
...
src/views/game/klfl/index.vue
View file @
2258ff46
<
template
>
<section
class=
"dm-wrap"
v-loading=
"loading"
>
<div
class=
"page-tip"
v-if=
"lastDate"
>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
{{
lastDate
}}
</div>
<div
class=
"pb22 clearfix"
>
<el-select
class=
"dm-select"
v-model=
"listParams.gameStatus"
placeholder=
"选择游戏状态"
@
change=
"refresh"
>
<el-option
v-for=
"(v, i) in gameStatusOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
...
...
@@ -107,20 +108,11 @@ export default {
created
()
{
this
.
getTableList
();
this
.
getGameDataUpdatetime
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
''
},
{
name
:
'口令福利'
,
path
:
'/game/klfl'
}]);
// eslint-disable-line
},
methods
:
{
getGameDataUpdatetime
()
{
getGameDataUpdatetime
().
then
(
res
=>
{
const
date
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
this
.
$store
.
commit
(
'mutations_layoutTips'
,
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
${
date
}
</div>
`
);
this
.
lastDate
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
});
},
async
getTableList
()
{
...
...
src/views/game/klfl/record.vue
View file @
2258ff46
...
...
@@ -50,7 +50,6 @@ export default {
mixins
:
[
filterAvatar
],
created
()
{
this
.
klflReportList
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'口令福利'
,
path
:
'/game/klfl'
},
{
name
:
'口令福利中奖记录'
,
path
:
''
}]);
// eslint-disable-line
},
data
()
{
return
{
...
...
src/views/game/ptyx/form.vue
View file @
2258ff46
<
template
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
class=
"ptyx-add content"
v-loading=
"loading"
element-loading-text=
"拼命加载中"
>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
游戏内容
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
游戏内容
</h3>
<el-form-item
label=
"游戏名称"
prop=
"gameName"
class=
"width50"
>
<dm-input
v-model=
"form.gameName"
class=
"w400"
:disabled=
"isInfo"
:maxlength=
"25"
></dm-input>
</el-form-item>
...
...
@@ -53,7 +53,7 @@
</el-form-item>
</section>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
页面设置
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
页面设置
</h3>
<el-form-item
label=
"品牌logo"
class=
"width50 is-required"
>
<dm-upload-avatar
:model
.
sync=
"form.logoImg"
label=
"上传图片"
width=
"80"
height=
"80"
tips=
"请上传高度为85px的PNG透明背景图片"
:disabled=
"isInfo"
></dm-upload-avatar>
</el-form-item>
...
...
@@ -73,7 +73,7 @@
<!-- 游戏背景音乐设置 -->
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
游戏背景音乐设置
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
游戏背景音乐设置
</h3>
<el-form-item
label=
"游戏背景音乐"
>
<el-switch
v-model=
"form.musicFlag"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
</el-form-item>
...
...
@@ -106,10 +106,10 @@
<dm-share
:form=
"form"
></dm-share>
<!-- 参与门槛 -->
<dm-threshold
:form=
"form"
:creatorId=
"creatorId"
:isAdd=
"isAdd"
:thresholdData=
"thresholdData"
ref=
"threshold"
></dm-threshold>
<d
iv
class=
"btn-wrap_fixed"
:class=
"{ on: asideShow }"
>
<d
m-form-bottom
>
<el-button
type=
"primary"
@
click=
"savePtyx('form')"
:disabled=
"!canEdit"
v-if=
"!isInfo"
>
保 存
</el-button>
<el-button
@
click=
"$router.go(-1)"
>
返 回
</el-button>
</d
iv
>
</d
m-form-bottom
>
</el-form>
</template>
...
...
@@ -227,22 +227,13 @@ export default {
}
};
},
computed
:
{
asideShow
()
{
return
this
.
$store
.
state
.
marketing
.
asideShow
;
}
},
created
()
{
gameInfo
=
{};
if
(
this
.
$route
.
meta
.
type
===
'edit'
)
{
this
.
ptyxDetail
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'拼图游戏'
,
path
:
'/game/ptyx'
},
{
name
:
'拼图游戏编辑'
,
path
:
''
}]);
// eslint-disable-line
}
else
if
(
this
.
$route
.
meta
.
type
===
'add'
)
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'拼图游戏'
,
path
:
'/game/ptyx'
},
{
name
:
'拼图游戏新增'
,
path
:
''
}]);
// eslint-disable-line
}
if
(
this
.
$route
.
meta
.
type
===
'query'
)
{
this
.
ptyxDetail
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'拼图游戏'
,
path
:
'/game/ptyx'
},
{
name
:
'拼图游戏详情'
,
path
:
''
}]);
// eslint-disable-line
}
this
.
getGameSystemMusicList
();
},
...
...
src/views/game/ptyx/index.vue
View file @
2258ff46
<
template
>
<section
class=
"dm-wrap"
v-loading=
"loading"
>
<div
class=
"page-tip"
v-if=
"lastDate"
>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
{{
lastDate
}}
</div>
<div
class=
"pb22 clearfix"
>
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.gameStatus"
placeholder=
"选择游戏状态"
@
change=
"refresh"
>
<el-option
v-for=
"(v, i) in gameStatusOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
...
...
@@ -48,6 +49,7 @@ export default {
},
data
()
{
return
{
lastDate
:
''
,
loading
:
false
,
total
:
0
,
gameStatusOptions
:
[{
value
:
-
1
,
label
:
'所有状态'
},
{
value
:
1
,
label
:
'待开始'
},
{
value
:
2
,
label
:
'进行中'
},
{
value
:
3
,
label
:
'已结束'
}],
// eslint-disable-line
...
...
@@ -106,20 +108,11 @@ export default {
created
()
{
this
.
getTableList
();
this
.
getGameDataUpdatetime
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
''
},
{
name
:
'拼图游戏'
,
path
:
'/game/ptyx'
}]);
// eslint-disable-line
},
methods
:
{
getGameDataUpdatetime
()
{
getGameDataUpdatetime
().
then
(
res
=>
{
const
date
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
this
.
$store
.
commit
(
'mutations_layoutTips'
,
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
${
date
}
</div>
`
);
this
.
lastDate
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
});
},
async
getTableList
()
{
...
...
src/views/game/ptyx/record.vue
View file @
2258ff46
...
...
@@ -127,7 +127,6 @@ export default {
this
.
LoadPtyxRecordList
();
this
.
LoadPtyxRecordList1
();
this
.
ptyxCalcTitle
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'拼图游戏'
,
path
:
'/game/ptyx'
},
{
name
:
'拼图游戏统计'
,
path
:
''
}]);
// eslint-disable-line
},
methods
:
{
formatDateTimeByType
,
...
...
src/views/game/znm/form.vue
View file @
2258ff46
<
template
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
class=
"ptyx-add content"
v-loading=
"loading"
loading-text=
"加载中"
>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
游戏内容
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
游戏内容
</h3>
<el-form-item
label=
"游戏名称"
prop=
"gameName"
class=
"width50"
>
<dm-input
v-model=
"form.gameName"
class=
"w400"
:maxlength=
"25"
></dm-input>
</el-form-item>
...
...
@@ -28,7 +28,7 @@
</el-form-item>
</section>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
奖项设置
</h3>
<h3
class=
"dm-title__label
border-bottom
"
>
奖项设置
</h3>
<el-form-item
label=
"首次奖项设置"
class=
"width50"
>
<el-button
@
click=
"showCard('firstStrategy')"
>
{{ firstStrategy.cardName || '卡券选择' }}
</el-button>
<
template
v-if=
"!isAdd"
>
...
...
@@ -86,10 +86,10 @@
<dm-share
:form=
"form"
></dm-share>
<!-- 参与门槛 -->
<dm-threshold
:form=
"form"
:isAdd=
"isAdd"
:creatorId=
"creatorId"
:thresholdData=
"thresholdData"
ref=
"threshold"
></dm-threshold>
<d
iv
class=
"btn-wrap_fixed"
:class=
"{ on: asideShow }"
>
<d
m-form-bottom
>
<el-button
type=
"primary"
@
click=
"znmSave('form')"
:disabled=
"!canEdit"
v-if=
"!isInfo"
>
保 存
</el-button>
<el-button
@
click=
"$router.go(-1)"
>
返 回
</el-button>
</d
iv
>
</d
m-form-bottom
>
<vue-gic-card
:showCardDialog
.
sync=
"showCardDialog"
:cardLimit=
"3"
@
selectCard=
"selectCard"
></vue-gic-card>
<strategy
:show
.
sync=
"strategyShow"
:dataId=
"gamePrizeStrategyId"
:gameActivityId=
"form.gameActivityId"
:cardObj=
"dialogStrategy"
@
get-data=
"showCard"
@
refresh=
"znmStrategyList"
></strategy>
</el-form>
...
...
@@ -190,19 +190,12 @@ export default {
dmShare
,
dmThreshold
},
computed
:
{
asideShow
()
{
return
this
.
$store
.
state
.
marketing
.
asideShow
;
}
},
created
()
{
if
(
this
.
isEdit
||
this
.
isInfo
)
{
this
.
znmDetail
();
this
.
znmStrategyList
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'找你马'
,
path
:
'/game/znm'
},
{
name
:
'找你马详情'
,
path
:
''
}]);
// eslint-disable-line
}
else
if
(
this
.
isAdd
)
{
this
.
znmDetail
(
true
);
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'找你马'
,
path
:
'/game/znm'
},
{
name
:
'找你马新增'
,
path
:
''
}]);
// eslint-disable-line
}
},
methods
:
{
...
...
src/views/game/znm/index.vue
View file @
2258ff46
<
template
>
<section
class=
"dm-wrap"
v-loading=
"loading"
>
<div
class=
"page-tip"
v-if=
"lastDate"
>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
{{
lastDate
}}
</div>
<div
class=
"pb22 clearfix"
>
<el-select
class=
"dm-select"
v-model=
"listParams.gameStatus"
placeholder=
"选择游戏状态"
@
change=
"refresh"
>
<el-option
v-for=
"(v, i) in gameStatusOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
...
...
@@ -42,6 +43,7 @@ export default {
mixins
:
[
linksMixin
,
tableMethods
],
data
()
{
return
{
lastDate
:
''
,
loading
:
false
,
gameStatusOptions
:
[{
value
:
-
1
,
label
:
'所有状态'
},
{
value
:
1
,
label
:
'待开始'
},
{
value
:
2
,
label
:
'进行中'
},
{
value
:
3
,
label
:
'已结束'
}],
// eslint-disable-line
listParams
:
{
gameStatus
:
-
1
,
searchParam
:
''
,
currentPage
:
1
,
pageSize
:
20
,
showSelfFlag
:
''
},
...
...
@@ -98,20 +100,11 @@ export default {
created
()
{
this
.
getTableList
();
this
.
getGameDataUpdatetime
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
''
},
{
name
:
'找你马'
,
path
:
'/game/znm'
}]);
// eslint-disable-line
},
methods
:
{
getGameDataUpdatetime
()
{
getGameDataUpdatetime
().
then
(
res
=>
{
const
date
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
this
.
$store
.
commit
(
'mutations_layoutTips'
,
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:
${
date
}
</div>
`
);
this
.
lastDate
=
res
.
result
?
formatDateTimeByType
(
res
.
result
,
'yyyy-MM-dd HH:mm:ss'
)
:
'--'
;
});
},
async
getTableList
()
{
...
...
src/views/game/znm/record.vue
View file @
2258ff46
...
...
@@ -81,7 +81,6 @@ export default {
created
()
{
this
.
znmReportList
();
this
.
znmReportList1
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'游戏营销'
,
path
:
'/game'
},
{
name
:
'找你马'
,
path
:
'/game/znm'
},
{
name
:
'找你马统计'
,
path
:
''
}]);
// eslint-disable-line
},
data
()
{
return
{
...
...
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