Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 19da8a13
authored
Sep 23, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
复制
1 parent
2cd79f24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
221 additions
and
712 deletions
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/seckillActivity/crowdFundList.vue
View file @
19da8a1
...
@@ -2,103 +2,36 @@
...
@@ -2,103 +2,36 @@
<
template
>
<
template
>
<div
class=
"marketing"
>
<div
class=
"marketing"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<GLButton
<GLButton
:size=
"size"
class=
"default-blue-btn el-icon-plus"
type=
"default"
@
click=
"handleEdit('add')"
fn=
"新增众筹"
mode=
"el-button"
>
新建众筹
</GLButton>
:size=
"size"
<el-button
:size=
"size"
type=
"default"
class=
"default-blue-btn"
@
click=
"handleJump"
>
订单管理
</el-button>
class=
"default-blue-btn el-icon-plus"
type=
"default"
@
click=
"handleEdit('add')"
fn=
"新增众筹"
mode=
"el-button"
>
新建众筹
</GLButton>
<el-button
:size=
"size"
type=
"default"
class=
"default-blue-btn"
@
click=
"handleJump"
>
订单管理
</el-button>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex m-b-10 w-100-percent"
>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
></span>
<span
class=
"table-title"
></span>
<el-button
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
<GLTable
ref=
"activity"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
ref=
"activity"
<div
slot=
"activityImg"
class=
"table-image"
slot-scope=
"scope"
>
:getListApi=
"getListApi"
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
:noDataImg=
"url"
<img
class=
"table-popover-img"
:src=
"scope.scope.activityImg"
/>
:searchForm=
"tableSearchForm"
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.activityImg"
/>
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"activityImg"
class=
"table-image"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.activityImg"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.activityImg"
/>
</el-popover>
</el-popover>
</div>
</div>
<div
<div
slot=
"linkText"
slot-scope=
"scope"
>
slot=
"linkText"
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope)"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</p>
slot-scope=
"scope"
>
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope)"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</p>
</div>
</div>
<div
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
class=
"table-btns"
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 分享 -->
<!-- 分享 -->
<share-dialog
<share-dialog
:isShareVisible=
"isShareVisible"
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
></share-dialog>
:isShareVisible=
"isShareVisible"
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
></share-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -109,7 +42,7 @@ import url from '@/assets/empty.png'
...
@@ -109,7 +42,7 @@ import url from '@/assets/empty.png'
import
{
exportFn
}
from
'@/common/constant'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'crowdFundList'
,
name
:
'crowdFundList'
,
data
()
{
data
()
{
return
{
return
{
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
...
@@ -237,7 +170,9 @@ export default {
...
@@ -237,7 +170,9 @@ export default {
type
:
'text'
type
:
'text'
},
},
listeners
:
{
listeners
:
{
// click:
click
:
row
=>
{
this
.
handleEdit
(
'copy'
,
row
)
}
}
}
},
},
{
{
...
@@ -371,16 +306,16 @@ export default {
...
@@ -371,16 +306,16 @@ export default {
shareDialog
shareDialog
},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
return
params
return
params
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
this
.
tableSearchForm
=
this
.
getParams
()
// delete this.tableSearchForm.createDate
// delete this.tableSearchForm.createDate
...
@@ -388,13 +323,13 @@ export default {
...
@@ -388,13 +323,13 @@ export default {
})
})
},
},
handleJump
(
path
,
row
=
{})
{
handleJump
(
path
,
row
=
{})
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
path
||
'/orderManage/index'
path
:
path
||
'/orderManage/index'
})
})
},
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
this
.
$confirm
(
txt
,
title
,
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -417,16 +352,16 @@ export default {
...
@@ -417,16 +352,16 @@ export default {
},
},
//开始
//开始
start
(
item
)
{
start
(
item
)
{
this
.
startOrEndConfirm
(
'开始'
,
item
)
this
.
startOrEndConfirm
(
'开始'
,
item
)
},
},
//结束
//结束
end
(
item
)
{
end
(
item
)
{
this
.
startOrEndConfirm
(
'结束'
,
item
)
this
.
startOrEndConfirm
(
'结束'
,
item
)
},
},
startOrEndConfirm
(
txt
,
row
)
{
startOrEndConfirm
(
txt
,
row
)
{
var
title
=
txt
var
title
=
txt
var
params
=
{}
var
params
=
{}
params
.
id
=
row
.
id
params
.
id
=
row
.
id
...
@@ -439,24 +374,29 @@ export default {
...
@@ -439,24 +374,29 @@ export default {
},
},
//置顶
//置顶
topping
(
row
)
{
topping
(
row
)
{
var
params
=
{}
var
params
=
{}
params
.
id
=
row
.
id
params
.
id
=
row
.
id
this
.
secondConfirm
(
'删除'
,
'确定置顶此活动?'
,
'seckillActivity'
,
'topActivityApi'
,
params
)
this
.
secondConfirm
(
'删除'
,
'确定置顶此活动?'
,
'seckillActivity'
,
'topActivityApi'
,
params
)
},
},
//删除
//删除
del
(
row
)
{
del
(
row
)
{
var
params
=
{}
var
params
=
{}
params
.
id
=
row
.
id
params
.
id
=
row
.
id
this
.
secondConfirm
(
'删除'
,
'确定删除此活动?'
,
'seckillActivity'
,
'deleteActivityApi'
,
params
)
this
.
secondConfirm
(
'删除'
,
'确定删除此活动?'
,
'seckillActivity'
,
'deleteActivityApi'
,
params
)
},
},
// 1-新增;2-编辑
// 1-新增;2-编辑
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
var
txtObj
=
{
add
:
'新建'
,
edit
:
'编辑'
,
copy
:
'复制'
}[
addOrEdit
]
var
params
=
{
var
params
=
{
addOrEdit
:
addOrEdit
,
addOrEdit
:
addOrEdit
,
$title
:
encodeURI
(
addOrEdit
==
'add'
?
'新建众筹活动'
:
'编辑
众筹活动'
)
$title
:
encodeURI
(
txtObj
+
'
众筹活动'
)
}
}
if
(
addOrEdit
!=
'add'
)
{
if
(
addOrEdit
!=
'add'
)
{
params
.
id
=
row
.
id
params
.
id
=
row
.
id
...
@@ -467,12 +407,12 @@ export default {
...
@@ -467,12 +407,12 @@ export default {
query
:
params
query
:
params
})
})
},
},
test
(
option
)
{
test
(
option
)
{
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
option
)))
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
option
)))
},
},
// 明细
// 明细
handleDetail
({
prop
,
scope
})
{
handleDetail
({
prop
,
scope
})
{
let
data
=
{
let
data
=
{
viewAmount
:
{
viewAmount
:
{
type
:
1
,
type
:
1
,
...
@@ -498,25 +438,25 @@ export default {
...
@@ -498,25 +438,25 @@ export default {
})
})
},
},
handleExport
()
{
handleExport
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
seckillActivity
.
exportCrowdfundApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
exportCrowdfundApi
(
params
).
then
(
res
=>
{
exportFn
(
res
)
exportFn
(
res
)
})
})
},
},
handleShare
(
row
)
{
handleShare
(
row
)
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
shareForm
=
res
this
.
shareForm
=
res
this
.
handleShareClose
()
this
.
handleShareClose
()
})
})
},
},
handleShareClose
()
{
handleShareClose
()
{
this
.
isShareVisible
=
!
this
.
isShareVisible
this
.
isShareVisible
=
!
this
.
isShareVisible
},
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
...
@@ -542,11 +482,11 @@ export default {
...
@@ -542,11 +482,11 @@ export default {
}
}
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
activity
.
refreshTable
()
this
.
$refs
.
activity
.
refreshTable
()
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
activityName
:
''
,
activityName
:
''
,
activityStatus
:
''
activityStatus
:
''
...
@@ -554,7 +494,7 @@ export default {
...
@@ -554,7 +494,7 @@ export default {
this
.
handleSearch
()
this
.
handleSearch
()
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
activity
.
data
.
length
?
(
this
.
$refs
.
activity
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activity
.
setTableHeightFun
()
this
.
$refs
.
activity
.
data
.
length
?
(
this
.
$refs
.
activity
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activity
.
setTableHeightFun
()
}
}
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
19da8a1
<!-- 众筹活动 -->
<!-- 众筹活动 -->
<
template
>
<
template
>
<div
<div
v-loading=
"loading"
class=
"edit-activity"
>
v-loading=
"loading"
class=
"edit-activity"
>
<!-- 导航 -->
<!-- 导航 -->
<el-tabs
<el-tabs
:tab-position=
"tabPosition"
v-model=
"tabName"
class=
"nav-tabs"
@
tab-click=
"whereToGo(tabName)"
>
:tab-position=
"tabPosition"
<el-tab-pane
label=
"基本信息"
name=
"basic"
></el-tab-pane>
v-model=
"tabName"
<el-tab-pane
label=
"活动配置"
name=
"config"
></el-tab-pane>
class=
"nav-tabs"
@
tab-click=
"whereToGo(tabName)"
>
<el-tab-pane
label=
"基本信息"
name=
"basic"
></el-tab-pane>
<el-tab-pane
label=
"活动配置"
name=
"config"
></el-tab-pane>
<el-tab-pane
name=
"activityServices"
>
<el-tab-pane
name=
"activityServices"
>
<span
<span
class=
"p-l-23"
slot=
"label"
>
服务说明
</span>
class=
"p-l-23"
slot=
"label"
>
服务说明
</span>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
name=
"activityCommoditys"
>
<el-tab-pane
name=
"activityCommoditys"
>
<span
<span
class=
"p-l-23"
slot=
"label"
>
商品答疑
</span>
class=
"p-l-23"
slot=
"label"
>
商品答疑
</span>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
name=
"activityExperienceDTOs"
>
<el-tab-pane
name=
"activityExperienceDTOs"
>
<span
<span
class=
"p-l-23"
slot=
"label"
>
玩家心得
</span>
class=
"p-l-23"
slot=
"label"
>
玩家心得
</span>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
name=
"live"
>
<el-tab-pane
name=
"live"
>
<span
<span
class=
"p-l-23"
slot=
"label"
>
直播配置
</span>
class=
"p-l-23"
slot=
"label"
>
直播配置
</span>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"marketing edit-box"
>
<div
class=
"marketing edit-box"
>
<!-- 基本信息 -->
<!-- 基本信息 -->
<div
<div
class=
"container edit-container"
style=
"min-height: 520px !important;"
>
class=
"container edit-container"
<p
class=
"edit-title"
id=
"basic"
>
基本信息
</p>
style=
"min-height: 520px !important;"
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<p
<template
slot=
"activityTimeHtml"
slot-scope=
"scope"
>
class=
"edit-title"
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
@
change=
"e => handleTimeChange(e, scope.scope)"
></el-date-picker>
id=
"basic"
>
基本信息
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<template
slot=
"activityTimeHtml"
slot-scope=
"scope"
>
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
@
change=
"e => handleTimeChange(e, scope.scope)"
></el-date-picker>
</
template
>
</
template
>
<div
slot=
"goodsHtml"
>
<div
slot=
"goodsHtml"
>
<el-button
<el-button
type=
"default"
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
type=
"default"
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top: 10px"
>
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top: 10px"
>
<p>
<p>
<img
<img
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元
商品库存 {{ selectedProInfo.goodsStock }}件
零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元
商品库存 {{ selectedProInfo.goodsStock }}件
</p>
</p>
<el-form-item
<el-form-item
label=
"设置秒杀价:"
prop=
"activityPrice"
id=
"activityPrice"
>
label=
"设置秒杀价:"
<el-input
v-model=
"editForm.activityPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
prop=
"activityPrice"
id=
"activityPrice"
>
<el-input
v-model=
"editForm.activityPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"活动库存:"
prop=
"goodsStock"
id=
"goodsStock"
>
label=
"活动库存:"
<el-input
v-model=
"editForm.goodsStock"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
件
</span></el-input>
prop=
"goodsStock"
id=
"goodsStock"
>
<el-input
v-model=
"editForm.goodsStock"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
件
</span></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</div>
</div>
<div
<div
slot=
"specificationsHtml"
v-if=
"specificationDetailList.length"
class=
"flex"
style=
"min-width: 600px"
id=
"specificationDetailList"
>
slot=
"specificationsHtml"
v-if=
"specificationDetailList.length"
class=
"flex"
style=
"min-width: 600px"
id=
"specificationDetailList"
>
<div
style=
"width: calc(100%)"
>
<div
style=
"width: calc(100%)"
>
<table
<table
class=
"table-spesc"
style=
"width: calc(100%)"
>
class=
"table-spesc"
style=
"width: calc(100%)"
>
<tbody>
<tbody>
<tr>
<tr>
<td
<td
:style=
"{ width: specsWidth }"
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
{{ subItem.specificationName }}
</td>
:style=
"{ width: specsWidth }"
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
{{ subItem.specificationName }}
</td>
<td
:style=
"{ width: specsWidth }"
>
零售价(元)
</td>
<td
:style=
"{ width: specsWidth }"
>
零售价(元)
</td>
<td
:style=
"{ width: specsWidth }"
>
库存
</td>
<td
:style=
"{ width: specsWidth }"
>
库存
</td>
<td
:style=
"{ width: specsWidth }"
>
设置秒杀价
</td>
<td
:style=
"{ width: specsWidth }"
>
设置秒杀价
</td>
...
@@ -152,73 +55,31 @@
...
@@ -152,73 +55,31 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<table
<table
class=
"table-spesc"
style=
"max-height: 400px"
>
class=
"table-spesc"
style=
"max-height: 400px"
>
<tbody>
<tbody>
<tr
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235)"
v-for=
"(item, index) in nameToValSpecsList"
:key=
"index"
>
style=
"border-bottom: 1px solid rgb(235, 235, 235)"
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in item.specsValueList"
:key=
"idx"
>
{{ n }}
</td>
v-for=
"(item, index) in nameToValSpecsList"
:key=
"index"
>
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in item.specsValueList"
:key=
"idx"
>
{{ n }}
</td>
<td
:style=
"{ width: specsWidth }"
>
{{ item.retailPrice }}元
</td>
<td
:style=
"{ width: specsWidth }"
>
{{ item.retailPrice }}元
</td>
<td
:style=
"{ width: specsWidth }"
>
{{ item.stock }}件
</td>
<td
:style=
"{ width: specsWidth }"
>
{{ item.stock }}件
</td>
<td
:style=
"{ width: specsWidth }"
>
<td
:style=
"{ width: specsWidth }"
>
<el-input
<el-input
:disabled=
"isDisabled"
placeholder=
"秒杀价"
style=
"width: 90%"
v-model=
"item.activityPrice"
@
input=
"item.activityPrice = activityPrice_input($event, item.retailPrice)"
></el-input>
:disabled=
"isDisabled"
placeholder=
"秒杀价"
style=
"width: 90%"
v-model=
"item.activityPrice"
@
input=
"item.activityPrice = activityPrice_input($event, item.retailPrice)"
></el-input>
</td>
</td>
<td
:style=
"{ width: specsWidth }"
>
<td
:style=
"{ width: specsWidth }"
>
<el-input
<el-input
:disabled=
"isDisabled"
placeholder=
"活动库存"
style=
"width: 90%"
v-model=
"item.goodsStock"
@
input=
"item.goodsStock = goodsStock_input($event, item.stock)"
></el-input>
:disabled=
"isDisabled"
placeholder=
"活动库存"
style=
"width: 90%"
v-model=
"item.goodsStock"
@
input=
"item.goodsStock = goodsStock_input($event, item.stock)"
></el-input>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
<
template
<
template
slot=
"limitPurchaseFlag"
slot-scope=
"scope"
>
slot=
"limitPurchaseFlag"
<el-radio-group
v-model=
"editForm[scope.scope.name]"
@
change=
"handleIsLimit"
>
slot-scope=
"scope"
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
:disabled=
"isDisabled"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
@
change=
"handleIsLimit"
>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
:disabled=
"isDisabled"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
</el-radio-group>
</el-radio-group>
<p
<p
v-if=
"editForm[scope.scope.name] == 2"
id=
"limitPurchaseNumber"
style=
"color: #333333;"
>
v-if=
"editForm[scope.scope.name] == 2"
id=
"limitPurchaseNumber"
style=
"color: #333333;"
>
每人限购
每人限购
<el-form-item
prop=
"limitPurchaseNumber"
>
<el-form-item
prop=
"limitPurchaseNumber"
>
<el-input
<el-input
v-model=
"editForm.limitPurchaseNumber"
placeholder=
"请输入限购次数"
:disabled=
"isDisabled"
></el-input>
v-model=
"editForm.limitPurchaseNumber"
placeholder=
"请输入限购次数"
:disabled=
"isDisabled"
></el-input>
</el-form-item>
</el-form-item>
件
件
</p>
</p>
...
@@ -227,105 +88,35 @@
...
@@ -227,105 +88,35 @@
</div>
</div>
<!-- 活动配置 -->
<!-- 活动配置 -->
<div
class=
"container edit-container crowd-config"
>
<div
class=
"container edit-container crowd-config"
>
<p
<p
class=
"edit-title"
id=
"config"
>
活动配置
</p>
class=
"edit-title"
<glsx-combi-form
class=
"edit-form-container"
ref=
"configEditFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"configEditFormData"
:formRules=
"editRule"
>
id=
"config"
<
template
slot=
"customerServiceFlag"
slot-scope=
"scope"
>
>
活动配置
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"configEditFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"configEditFormData"
:formRules=
"editRule"
>
<
template
slot=
"customerServiceFlag"
slot-scope=
"scope"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
>
<el-radio
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
</el-radio-group>
</el-radio-group>
<div
<div
class=
"customer-service"
v-if=
"editForm[scope.scope.name] == 2"
id=
"customerServiceFlag"
>
class=
"customer-service"
<glsx-combi-form
class=
"edit-form-container"
ref=
"customerEditFormRef"
:isEdit=
"true"
:isBlock=
"false"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"customerEditFormData"
:formRules=
"editRule"
></glsx-combi-form>
v-if=
"editForm[scope.scope.name] == 2"
id=
"customerServiceFlag"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"customerEditFormRef"
:isEdit=
"true"
:isBlock=
"false"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"customerEditFormData"
:formRules=
"editRule"
></glsx-combi-form>
</div>
</div>
</
template
>
</
template
>
<
template
<
template
slot=
"activityMusic"
slot-scope=
"scope"
>
slot=
"activityMusic"
slot-scope=
"scope"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
<div
class=
"music-box flex-center"
v-for=
"(item, index) in musicList"
:key=
"index"
@
click=
"handleMusicChange(index)"
>
class=
"music-box flex-center"
<div
class=
"music-icon"
@
click
.
stop=
"handleMusic(item, index)"
>
v-for=
"(item, index) in musicList"
:key=
"index"
@
click=
"handleMusicChange(index)"
>
<div
class=
"music-icon"
@
click
.
stop=
"handleMusic(item, index)"
>
<div
:class=
"[index != playObj.idx ? 'icon-start' : 'icon-stop']"
></div>
<div
:class=
"[index != playObj.idx ? 'icon-start' : 'icon-stop']"
></div>
<img
src=
"@/assets/seckillActivity/icon-music-default.png"
/>
<img
src=
"@/assets/seckillActivity/icon-music-default.png"
/>
</div>
</div>
<div
class=
"music-name"
>
<div
class=
"music-name"
>
<p
<p
class=
"ellipsis-1"
style=
"max-width: 90%;"
>
{{
item
.
name
}}
</p>
class=
"ellipsis-1"
style=
"max-width: 90%;"
>
{{
item
.
name
}}
</p>
.mp3
.mp3
</div>
</div>
<img
<img
v-show=
"item.isCheck"
:class=
"
{ 'icon-check': item.isCheck }" src="@/assets/seckillActivity/icon-check.png" />
v-show=
"item.isCheck"
:class=
"
{ 'icon-check': item.isCheck }"
src="@/assets/seckillActivity/icon-check.png"
/>
</div>
</div>
</div>
</div>
<el-upload
<el-upload
class=
"m-t-10"
action=
""
accept=
"audio/mp3, audio/m4a"
:show-file-list=
"false"
:http-request=
"handleMusicUpload"
:before-upload=
"e => handleMusicBeforeUpload(e, scope.scope)"
:file-list=
"fileList"
>
class=
"m-t-10"
<el-button
class=
"el-icon-plus"
size=
"small"
type=
"default"
>
背景音乐
</el-button>
action=
""
accept=
"audio/mp3, audio/m4a"
:show-file-list=
"false"
:http-request=
"handleMusicUpload"
:before-upload=
"e => handleMusicBeforeUpload(e, scope.scope)"
:file-list=
"fileList"
>
<el-button
class=
"el-icon-plus"
size=
"small"
type=
"default"
>
背景音乐
</el-button>
</el-upload>
</el-upload>
<audio
<audio
v-if=
"playObj.src"
style=
"display: none;"
id=
"music-audio"
controls
>
v-if=
"playObj.src"
<source
type=
"audio/mpeg"
:src=
"playObj.src"
/>
style=
"display: none;"
id=
"music-audio"
controls
>
<source
type=
"audio/mpeg"
:src=
"playObj.src"
/>
</audio>
</audio>
<!--
<div
v-if=
"editForm[scope.scope.name]"
class=
"flex"
>
<!--
<div
v-if=
"editForm[scope.scope.name]"
class=
"flex"
>
<audio
controls
>
<audio
controls
>
...
@@ -335,103 +126,33 @@
...
@@ -335,103 +126,33 @@
</div>
-->
</div>
-->
</
template
>
</
template
>
<
template
slot=
"fictitious"
>
<
template
slot=
"fictitious"
>
<div
<div
class=
"fictitious"
id=
"fictitious"
>
class=
"fictitious"
<el-form-item
label=
"参团:"
prop=
"fictitiousGroupQuantity"
labelWidth=
"60px"
>
id=
"fictitious"
<el-input
v-model=
"editForm.fictitiousGroupQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"参团人数"
></el-input>
>
<el-form-item
label=
"参团:"
prop=
"fictitiousGroupQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousGroupQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"参团人数"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
id=
"fictitiousLadderQuantity"
label=
"阶梯人数:"
prop=
"fictitiousLadderQuantity"
labelWidth=
"90px"
>
id=
"fictitiousLadderQuantity"
<el-input
v-model=
"editForm.fictitiousLadderQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"阶梯人数"
></el-input>
label=
"阶梯人数:"
prop=
"fictitiousLadderQuantity"
labelWidth=
"90px"
>
<el-input
v-model=
"editForm.fictitiousLadderQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"阶梯人数"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
id=
"fictitiousViewQuantity"
label=
"浏览:"
prop=
"fictitiousViewQuantity"
labelWidth=
"60px"
>
id=
"fictitiousViewQuantity"
<el-input
v-model=
"editForm.fictitiousViewQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"浏览人数"
></el-input>
label=
"浏览:"
prop=
"fictitiousViewQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousViewQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"浏览人数"
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</
template
>
</
template
>
<div
<div
slot=
"activityBigImg"
class=
"edit-tips m-t-8"
>
建议尺寸750*1258
</div>
slot=
"activityBigImg"
<div
slot=
"activityVideos"
class=
"edit-tips m-t-8"
>
最多上传6个视频
</div>
class=
"edit-tips m-t-8"
<div
slot=
"posterImg"
class=
"edit-tips m-t-8"
>
建议尺寸640*1008
</div>
>
建议尺寸750*1258
</div>
<div
class=
"form-describe-box"
slot=
"formDescribe"
>
<div
slot=
"activityVideos"
class=
"edit-tips m-t-8"
>
最多上传6个视频
</div>
<div
slot=
"posterImg"
class=
"edit-tips m-t-8"
>
建议尺寸640*1008
</div>
<div
class=
"form-describe-box"
slot=
"formDescribe"
>
<el-checkbox-group
v-model=
"editForm.formDescribeCheck"
>
<el-checkbox-group
v-model=
"editForm.formDescribeCheck"
>
<el-checkbox
<el-checkbox
v-for=
"(item, index) in formDescribeCheckList"
:label=
"item.value"
:key=
"index"
>
{{ item.label }}
</el-checkbox>
v-for=
"(item, index) in formDescribeCheckList"
:label=
"item.value"
:key=
"index"
>
{{ item.label }}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
<div
<div
v-for=
"(item, index) in formDescribeList"
:key=
"index"
class=
"form-describe flex-default"
>
v-for=
"(item, index) in formDescribeList"
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
></el-input>
:key=
"index"
class=
"form-describe flex-default"
>
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
></el-input>
<p
class=
"describe-delete"
>
<p
class=
"describe-delete"
>
<img
<img
v-show=
"!(index == 0 && formDescribeList.length == 1)"
@
click=
"handleDescribeDelete(index)"
src=
"@/assets/icon-delete.png"
/>
v-show=
"!(index == 0 && formDescribeList.length == 1)"
@
click=
"handleDescribeDelete(index)"
src=
"@/assets/icon-delete.png"
/>
</p>
</p>
</div>
</div>
<el-button
<el-button
class=
"btn-basic"
v-show=
"formDescribeList.length < describeNum"
:size=
"size"
type=
"text"
@
click=
"handleDescribeAdd"
>
class=
"btn-basic"
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
v-show=
"formDescribeList.length < describeNum"
:size=
"size"
type=
"text"
@
click=
"handleDescribeAdd"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增表单
新增表单
</el-button>
</el-button>
</div>
</div>
...
@@ -442,194 +163,75 @@
...
@@ -442,194 +163,75 @@
</el-radio-group>
</el-radio-group>
</div>
</div>
<!-- 服务说明 -->
<!-- 服务说明 -->
<div
<div
slot=
"activityServices"
id=
"activityServices"
class=
"flex-default"
>
slot=
"activityServices"
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityServices')"
:style=
"{ width: defaultLabelWidth }"
>
id=
"activityServices"
class=
"flex-default"
>
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityServices')"
:style=
"{ width: defaultLabelWidth }"
>
<i
:class=
"[arrowFlagObj.activityServices == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
<i
:class=
"[arrowFlagObj.activityServices == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
服务说明:
服务说明:
</span>
</span>
<div
class=
"form-show-box"
>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']"
>
<div
:class=
"['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']"
>
<el-button
<el-button
:class=
"[editForm.activityServices.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('services', 'activityServices', 9)"
>
:class=
"[editForm.activityServices.length < 9 ? 'btn-basic' : 'btn-disable']"
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
:size=
"size"
type=
"text"
@
click=
"handleAddItem('services', 'activityServices', 9)"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增一项
新增一项
</el-button>
</el-button>
</div>
</div>
<div
:class=
"['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"
>
<div
:class=
"['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"
>
<div
<div
v-for=
"(item, index) in editForm.activityServices"
:key=
"index"
:class=
"['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']"
>
v-for=
"(item, index) in editForm.activityServices"
<glsx-combi-form
class=
"p-t-20"
ref=
"serviceEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"serviceEditFormData"
:formRules=
"serviceEditRule"
></glsx-combi-form>
:key=
"index"
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('services', 'activityServices', index)"
>
:class=
"['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']"
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
>
<glsx-combi-form
class=
"p-t-20"
ref=
"serviceEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"serviceEditFormData"
:formRules=
"serviceEditRule"
></glsx-combi-form>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('services', 'activityServices', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 商品答疑 -->
<!-- 商品答疑 -->
<div
<div
slot=
"activityCommoditys"
id=
"activityCommoditys"
class=
"flex-default"
>
slot=
"activityCommoditys"
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityCommoditys')"
:style=
"{ width: defaultLabelWidth }"
>
id=
"activityCommoditys"
class=
"flex-default"
>
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityCommoditys')"
:style=
"{ width: defaultLabelWidth }"
>
<i
:class=
"[arrowFlagObj.activityCommoditys == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
<i
:class=
"[arrowFlagObj.activityCommoditys == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
商品答疑:
商品答疑:
</span>
</span>
<div
class=
"form-show-box"
>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']"
>
<div
:class=
"['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']"
>
<el-button
<el-button
:class=
"[editForm.activityCommoditys.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('commoditys', 'activityCommoditys', 9)"
>
:class=
"[editForm.activityCommoditys.length < 9 ? 'btn-basic' : 'btn-disable']"
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
:size=
"size"
type=
"text"
@
click=
"handleAddItem('commoditys', 'activityCommoditys', 9)"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增一项
新增一项
</el-button>
</el-button>
</div>
</div>
<div
:class=
"['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"
>
<div
:class=
"['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"
>
<div
<div
v-for=
"(item, index) in editForm.activityCommoditys"
:key=
"index"
:class=
"['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']"
>
v-for=
"(item, index) in editForm.activityCommoditys"
<glsx-combi-form
class=
"p-t-20"
ref=
"commoditysEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"commoditysEditFormData"
:formRules=
"commoditysEditRule"
></glsx-combi-form>
:key=
"index"
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('commoditys', 'activityCommoditys', index)"
>
:class=
"['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']"
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
>
<glsx-combi-form
class=
"p-t-20"
ref=
"commoditysEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"commoditysEditFormData"
:formRules=
"commoditysEditRule"
></glsx-combi-form>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('commoditys', 'activityCommoditys', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 玩家心得 -->
<!-- 玩家心得 -->
<div
<div
slot=
"activityExperienceDTOs"
id=
"activityExperienceDTOs"
class=
"flex-default"
>
slot=
"activityExperienceDTOs"
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityExperienceDTOs')"
:style=
"{ width: defaultLabelWidth }"
>
id=
"activityExperienceDTOs"
class=
"flex-default"
>
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityExperienceDTOs')"
:style=
"{ width: defaultLabelWidth }"
>
<i
:class=
"[arrowFlagObj.activityExperienceDTOs == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
<i
:class=
"[arrowFlagObj.activityExperienceDTOs == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
玩家心得:
玩家心得:
</span>
</span>
<div
class=
"form-show-box"
>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']"
>
<div
:class=
"['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']"
>
<el-button
<el-button
:class=
"[editForm.activityExperienceDTOs.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('experiences', 'activityExperienceDTOs', 9)"
>
:class=
"[editForm.activityExperienceDTOs.length < 9 ? 'btn-basic' : 'btn-disable']"
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
:size=
"size"
type=
"text"
@
click=
"handleAddItem('experiences', 'activityExperienceDTOs', 9)"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增一项
新增一项
</el-button>
</el-button>
</div>
</div>
<div
:class=
"['form-show-block', arrowFlagObj.activityExperienceDTOs == 'close' ? 'form-close' : 'form-open']"
>
<div
:class=
"['form-show-block', arrowFlagObj.activityExperienceDTOs == 'close' ? 'form-close' : 'form-open']"
>
<div
<div
v-for=
"(item, index) in editForm.activityExperienceDTOs"
:key=
"index"
:class=
"['form-show-item', editForm.activityExperienceDTOs.length > index + 1 ? 'line' : '']"
>
v-for=
"(item, index) in editForm.activityExperienceDTOs"
:key=
"index"
:class=
"['form-show-item', editForm.activityExperienceDTOs.length > index + 1 ? 'line' : '']"
>
<div
class=
"head-box"
>
<div
class=
"head-box"
>
<img
<img
class=
"icon-head"
src=
"@/assets/seckillActivity/icon-default-head.png"
/>
class=
"icon-head"
src=
"@/assets/seckillActivity/icon-default-head.png"
/>
<span>
虚拟人物{{ index + 1 }}
</span>
<span>
虚拟人物{{ index + 1 }}
</span>
</div>
</div>
<glsx-combi-form
<glsx-combi-form
class=
"p-t-20"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"editForm"
:formData=
"experiencesEditFormData"
:formRules=
"editRule"
>
class=
"p-t-20"
<div
slot=
"activityExperienceImgs"
class=
"edit-tips m-t-8"
>
建议尺寸:图片大小不超过5m,最多可添加9张图片
</div>
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"editForm"
:formData=
"experiencesEditFormData"
:formRules=
"editRule"
>
<div
slot=
"activityExperienceImgs"
class=
"edit-tips m-t-8"
>
建议尺寸:图片大小不超过5m,最多可添加9张图片
</div>
</glsx-combi-form>
</glsx-combi-form>
<el-button
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('experiences', 'activityExperienceDTOs', index)"
>
:class=
"['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']"
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('experiences', 'activityExperienceDTOs', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
</div>
</div>
...
@@ -638,35 +240,13 @@
...
@@ -638,35 +240,13 @@
<!-- 直播配置 -->
<!-- 直播配置 -->
<div
slot=
"live"
>
<div
slot=
"live"
>
<el-switch
v-model=
"editForm.liveFlag"
></el-switch>
<el-switch
v-model=
"editForm.liveFlag"
></el-switch>
<div
<div
class=
"customer-service"
v-if=
"editForm.liveFlag"
id=
"liveFlag"
>
class=
"customer-service"
<glsx-combi-form
class=
"edit-form-container"
ref=
"liveEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"false"
:formObj=
"editForm"
:formData=
"liveEditFormData"
:formRules=
"liveEditRule"
>
v-if=
"editForm.liveFlag"
<div
slot=
"groupQrCode"
class=
"edit-tips m-t-8"
>
建议尺寸:284*284
</div>
id=
"liveFlag"
<div
slot=
"defaultImg"
class=
"default-live-img"
>
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"liveEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"false"
:formObj=
"editForm"
:formData=
"liveEditFormData"
:formRules=
"liveEditRule"
>
<div
slot=
"groupQrCode"
class=
"edit-tips m-t-8"
>
建议尺寸:284*284
</div>
<div
slot=
"defaultImg"
class=
"default-live-img"
>
<img
:src=
"defaultFloatingMaskDiagram"
/>
<img
:src=
"defaultFloatingMaskDiagram"
/>
</div>
</div>
<div
<div
slot=
"floatingMaskDiagram"
class=
"edit-tips m-t-8"
>
建议格式:GIF,尺寸228*346
</div>
slot=
"floatingMaskDiagram"
class=
"edit-tips m-t-8"
>
建议格式:GIF,尺寸228*346
</div>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
</div>
</div>
...
@@ -674,43 +254,15 @@
...
@@ -674,43 +254,15 @@
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<GLFooter>
<GLFooter>
<el-button
<el-button
@
click=
"handleCancel"
size=
"medium"
>
{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}
</el-button>
@
click=
"handleCancel"
<el-button
@
click=
"handleWechat"
size=
"medium"
>
预览
</el-button>
size=
"medium"
<el-button
v-if=
"routeInfo.addOrEdit != 'detail'"
type=
"primary"
@
click=
"handleConfirm"
size=
"medium"
:loading=
"loading"
>
提交
</el-button>
>
{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}
</el-button>
<el-button
@
click=
"handleWechat"
size=
"medium"
>
预览
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != 'detail'"
type=
"primary"
@
click=
"handleConfirm"
size=
"medium"
:loading=
"loading"
>
提交
</el-button>
</GLFooter>
</GLFooter>
<!-- 展示 -->
<!-- 展示 -->
<GLDialog
<GLDialog
bigTitle=
"预览"
mode=
"big"
:visible
.
sync=
"wechatVisible"
@
onOk=
"handleWechat"
@
onCancel=
"handleWechat"
>
bigTitle=
"预览"
<crowdEditWechat
ref=
"crowdEditWechat"
:editForm=
"editForm"
:countDownObj=
"countDownObj"
></crowdEditWechat>
mode=
"big"
:visible
.
sync=
"wechatVisible"
@
onOk=
"handleWechat"
@
onCancel=
"handleWechat"
>
<crowdEditWechat
ref=
"crowdEditWechat"
:editForm=
"editForm"
:countDownObj=
"countDownObj"
></crowdEditWechat>
</GLDialog>
</GLDialog>
<select-single-pro-dialog
<select-single-pro-dialog
v-if=
"isSingleSelectVisible"
:isSingleSelectVisible=
"isSingleSelectVisible"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose(true)"
></select-single-pro-dialog>
v-if=
"isSingleSelectVisible"
:isSingleSelectVisible=
"isSingleSelectVisible"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose(true)"
></select-single-pro-dialog>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -723,7 +275,7 @@ export default {
...
@@ -723,7 +275,7 @@ export default {
components
:
{
components
:
{
crowdEditWechat
crowdEditWechat
},
},
data
()
{
data
()
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
if
(
value
&&
!
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
0123456789
]
|17
[
678
]
|18
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
.
test
(
value
))
{
if
(
value
&&
!
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
0123456789
]
|17
[
678
]
|18
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
.
test
(
value
))
{
callback
(
new
Error
(
'手机号格式错误'
))
callback
(
new
Error
(
'手机号格式错误'
))
...
@@ -744,7 +296,7 @@ export default {
...
@@ -744,7 +296,7 @@ export default {
// },
// },
routeInfo
:
{
routeInfo
:
{
// 1-新增;2-编辑;3-查看
// 1-新增;2-编辑;3-查看
// add-新增;edit-编辑;detail-详情
// add-新增;edit-编辑;detail-详情
;copy-复制
addOrEdit
:
'add'
,
addOrEdit
:
'add'
,
id
:
''
,
id
:
''
,
activityStatus
:
''
activityStatus
:
''
...
@@ -1444,7 +996,7 @@ export default {
...
@@ -1444,7 +996,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getLiveList
()
this
.
getLiveList
()
this
.
setMinHeight
(
'.crowd-config'
)
this
.
setMinHeight
(
'.crowd-config'
)
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
=
this
.
$route
.
query
...
@@ -1469,45 +1021,45 @@ export default {
...
@@ -1469,45 +1021,45 @@ export default {
watch
:
{
watch
:
{
editForm
:
{
editForm
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
editStatus
=
true
this
.
editStatus
=
true
},
},
deep
:
true
deep
:
true
},
},
'editForm.activityPrice'
(
newValue
,
oldValue
)
{
'editForm.activityPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
activityPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
)
this
.
editForm
.
activityPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
)
},
},
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
},
},
'editForm.activityTime'
(
newValue
)
{
'editForm.activityTime'
(
newValue
)
{
newValue
&&
newValue
.
length
&&
this
.
countDown
()
newValue
&&
newValue
.
length
&&
this
.
countDown
()
},
},
'editForm.predictVolume'
(
newValue
,
oldValue
)
{
'editForm.predictVolume'
(
newValue
,
oldValue
)
{
this
.
editForm
.
predictVolume
=
limitPrice
(
newValue
,
oldValue
,
7
,
2
,
0
,
1000000
)
this
.
editForm
.
predictVolume
=
limitPrice
(
newValue
,
oldValue
,
7
,
2
,
0
,
1000000
)
},
},
'editForm.fictitiousGroupQuantity'
(
newValue
,
oldValue
)
{
'editForm.fictitiousGroupQuantity'
(
newValue
,
oldValue
)
{
this
.
editForm
.
fictitiousGroupQuantity
=
limitPrice
(
newValue
,
oldValue
,
3
,
0
,
0
,
100
)
this
.
editForm
.
fictitiousGroupQuantity
=
limitPrice
(
newValue
,
oldValue
,
3
,
0
,
0
,
100
)
},
},
'editForm.fictitiousLadderQuantity'
(
newValue
,
oldValue
)
{
'editForm.fictitiousLadderQuantity'
(
newValue
,
oldValue
)
{
this
.
editForm
.
fictitiousLadderQuantity
=
limitPrice
(
newValue
,
oldValue
,
7
,
0
,
0
)
this
.
editForm
.
fictitiousLadderQuantity
=
limitPrice
(
newValue
,
oldValue
,
7
,
0
,
0
)
},
},
'editForm.fictitiousViewQuantity'
(
newValue
,
oldValue
)
{
'editForm.fictitiousViewQuantity'
(
newValue
,
oldValue
)
{
this
.
editForm
.
fictitiousViewQuantity
=
limitPrice
(
newValue
,
oldValue
,
7
,
0
,
0
)
this
.
editForm
.
fictitiousViewQuantity
=
limitPrice
(
newValue
,
oldValue
,
7
,
0
,
0
)
},
},
'editForm.liveBroadcastRoomId'
(
newValue
,
oldValue
)
{
'editForm.liveBroadcastRoomId'
(
newValue
,
oldValue
)
{
this
.
editForm
.
liveFlag
=
newValue
?
true
:
false
this
.
editForm
.
liveFlag
=
newValue
?
true
:
false
}
}
},
},
methods
:
{
methods
:
{
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
labelList
.
forEach
(
item
=>
{
labelList
.
forEach
(
item
=>
{
let
idx
=
this
[
formName
].
findIndex
(
k
=>
k
.
label
==
item
)
let
idx
=
this
[
formName
].
findIndex
(
k
=>
k
.
label
==
item
)
this
[
formName
][
idx
][
attrName
]
=
attrValue
this
[
formName
][
idx
][
attrName
]
=
attrValue
})
})
},
},
limitPriceForInput
(
val
,
intergerDigit
,
pointDigit
,
minValue
,
maxValue
,
regRule
)
{
limitPriceForInput
(
val
,
intergerDigit
,
pointDigit
,
minValue
,
maxValue
,
regRule
)
{
var
_regRule
=
regRule
||
'priceReg'
var
_regRule
=
regRule
||
'priceReg'
if
(
val
&&
this
.
reg
[
_regRule
].
test
(
val
+
''
))
{
if
(
val
&&
this
.
reg
[
_regRule
].
test
(
val
+
''
))
{
maxValue
=
typeof
maxValue
==
'string'
?
parseFloat
(
maxValue
)
:
maxValue
maxValue
=
typeof
maxValue
==
'string'
?
parseFloat
(
maxValue
)
:
maxValue
...
@@ -1531,12 +1083,12 @@ export default {
...
@@ -1531,12 +1083,12 @@ export default {
}
}
},
},
addZero
(
i
)
{
addZero
(
i
)
{
return
i
<
10
?
`0
${
i
}
`
:
`
${
i
}
`
return
i
<
10
?
`0
${
i
}
`
:
`
${
i
}
`
},
},
findCountDownTime
()
{
findCountDownTime
()
{
let
startTime
=
new
Date
(
this
.
editForm
.
activityTime
[
0
])
let
startTime
=
new
Date
(
this
.
editForm
.
activityTime
[
0
])
let
endTime
=
new
Date
(
this
.
editForm
.
activityTime
[
1
])
let
endTime
=
new
Date
(
this
.
editForm
.
activityTime
[
1
])
let
currentTime
=
new
Date
()
let
currentTime
=
new
Date
()
...
@@ -1549,7 +1101,7 @@ export default {
...
@@ -1549,7 +1101,7 @@ export default {
}
}
},
},
countDown
()
{
countDown
()
{
if
(
this
.
editForm
.
activityTime
&&
this
.
editForm
.
activityTime
.
length
)
{
if
(
this
.
editForm
.
activityTime
&&
this
.
editForm
.
activityTime
.
length
)
{
let
{
activityStatus
,
startTime
,
endTime
}
=
this
.
findCountDownTime
()
let
{
activityStatus
,
startTime
,
endTime
}
=
this
.
findCountDownTime
()
let
lefttime
=
parseInt
((
endTime
.
getTime
()
-
startTime
.
getTime
())
/
1000
)
let
lefttime
=
parseInt
((
endTime
.
getTime
()
-
startTime
.
getTime
())
/
1000
)
...
@@ -1588,25 +1140,25 @@ export default {
...
@@ -1588,25 +1140,25 @@ export default {
}
}
},
},
handleTimeChange
(
value
,
targetItem
)
{
handleTimeChange
(
value
,
targetItem
)
{
!
value
&&
(
this
.
editForm
[
targetItem
.
name
]
=
[])
!
value
&&
(
this
.
editForm
[
targetItem
.
name
]
=
[])
},
},
handleIsLimit
(
val
)
{
handleIsLimit
(
val
)
{
this
.
editForm
.
limitPurchaseNumber
=
val
==
1
?
''
:
'1'
this
.
editForm
.
limitPurchaseNumber
=
val
==
1
?
''
:
'1'
this
.
editRule
.
limitPurchaseNumber
[
0
].
required
=
val
!=
1
this
.
editRule
.
limitPurchaseNumber
[
0
].
required
=
val
!=
1
},
},
handleRelateProChange
(
val
)
{
handleRelateProChange
(
val
)
{
this
.
editRule
.
goodsId
[
0
].
required
=
val
==
2
this
.
editRule
.
goodsId
[
0
].
required
=
val
==
2
var
idx
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'goodsId'
)
var
idx
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'goodsId'
)
this
.
editFormData
[
idx
].
isHide
=
val
!=
2
this
.
editFormData
[
idx
].
isHide
=
val
!=
2
},
},
handleRelateProClose
(
targetItem
)
{
handleRelateProClose
(
targetItem
)
{
this
.
selectedProInfo
=
this
.
editForm
.
goodsId
?
{
id
:
this
.
editForm
.
goodsId
}
:
{}
this
.
selectedProInfo
=
this
.
editForm
.
goodsId
?
{
id
:
this
.
editForm
.
goodsId
}
:
{}
this
.
handleSingleSelectClose
()
this
.
handleSingleSelectClose
()
},
},
handleSingleSelectConfirm
(
selectedProInfo
)
{
handleSingleSelectConfirm
(
selectedProInfo
)
{
this
.
editForm
.
activityPrice
=
''
this
.
editForm
.
activityPrice
=
''
this
.
editForm
.
goodsStock
=
''
this
.
editForm
.
goodsStock
=
''
this
.
handleSingleSelectClose
()
this
.
handleSingleSelectClose
()
...
@@ -1615,14 +1167,14 @@ export default {
...
@@ -1615,14 +1167,14 @@ export default {
this
.
getGoodInfo
(
selectedProInfo
.
id
)
this
.
getGoodInfo
(
selectedProInfo
.
id
)
}
}
},
},
handleSingleSelectClose
(
isCancel
=
false
)
{
handleSingleSelectClose
(
isCancel
=
false
)
{
if
(
isCancel
)
{
if
(
isCancel
)
{
this
.
selectedProInfo
.
id
&&
this
.
getGoodInfo
(
this
.
selectedProInfo
.
id
)
this
.
selectedProInfo
.
id
&&
this
.
getGoodInfo
(
this
.
selectedProInfo
.
id
)
}
}
this
.
isSingleSelectVisible
=
!
this
.
isSingleSelectVisible
this
.
isSingleSelectVisible
=
!
this
.
isSingleSelectVisible
},
},
getGoodInfo
(
id
)
{
getGoodInfo
(
id
)
{
this
.
$apis
.
proManage
.
getProInfoApi
({
id
:
id
}).
then
(
res
=>
{
this
.
$apis
.
proManage
.
getProInfoApi
({
id
:
id
}).
then
(
res
=>
{
this
.
selectedProInfo
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
selectedProInfo
=
this
.
$common
.
utils
.
deepClone
(
res
)
if
(
this
.
selectedProInfo
.
specificationDetailList
.
length
)
{
if
(
this
.
selectedProInfo
.
specificationDetailList
.
length
)
{
...
@@ -1638,7 +1190,7 @@ export default {
...
@@ -1638,7 +1190,7 @@ export default {
},
},
// 规格值解构
// 规格值解构
changeSpecs
(
isRecovery
)
{
changeSpecs
(
isRecovery
)
{
this
.
specsWidth
=
100
/
(
this
.
specificationDetailList
.
length
+
4
)
+
'%'
this
.
specsWidth
=
100
/
(
this
.
specificationDetailList
.
length
+
4
)
+
'%'
this
.
nameToValSpecsList
=
[]
this
.
nameToValSpecsList
=
[]
var
markIdx
=
0
var
markIdx
=
0
...
@@ -1707,7 +1259,7 @@ export default {
...
@@ -1707,7 +1259,7 @@ export default {
}
}
// console.log(this.nameToValSpecsList)
// console.log(this.nameToValSpecsList)
},
},
setLocaleCompare
(
params
)
{
setLocaleCompare
(
params
)
{
let
keys
=
[]
let
keys
=
[]
let
obj
=
[]
let
obj
=
[]
Object
.
keys
(
params
).
forEach
(
item
=>
{
Object
.
keys
(
params
).
forEach
(
item
=>
{
...
@@ -1720,24 +1272,24 @@ export default {
...
@@ -1720,24 +1272,24 @@ export default {
return
obj
.
join
(
'&'
).
replace
(
/,/g
,
'-'
)
return
obj
.
join
(
'&'
).
replace
(
/,/g
,
'-'
)
},
},
// 恢复规格值
// 恢复规格值
recoverySpec
()
{
recoverySpec
()
{
this
.
changeSpecs
(
true
)
this
.
changeSpecs
(
true
)
},
},
//规格-秒杀价输入控制
//规格-秒杀价输入控制
activityPrice_input
(
val
,
maxValue
)
{
activityPrice_input
(
val
,
maxValue
)
{
return
this
.
limitPriceForInput
(
val
,
5
,
2
,
0
,
maxValue
)
return
this
.
limitPriceForInput
(
val
,
5
,
2
,
0
,
maxValue
)
},
},
//规格-活动库存输入控制
//规格-活动库存输入控制
goodsStock_input
(
val
,
maxValue
)
{
goodsStock_input
(
val
,
maxValue
)
{
return
this
.
limitPriceForInput
(
val
,
5
,
0
,
0
,
maxValue
)
return
this
.
limitPriceForInput
(
val
,
5
,
0
,
0
,
maxValue
)
},
},
// 音乐
// 音乐
handleMusicUpload
()
{
},
handleMusicUpload
()
{
},
musicUpload
(
e
,
targetItem
)
{
musicUpload
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
var
file
=
e
var
file
=
e
// 默认1MB
// 默认1MB
...
@@ -1776,7 +1328,7 @@ export default {
...
@@ -1776,7 +1328,7 @@ export default {
},
},
// 音乐
// 音乐
handleMusic
(
targetItem
,
idx
)
{
handleMusic
(
targetItem
,
idx
)
{
// stop-音频结束;play-音频播放
// stop-音频结束;play-音频播放
var
playFlag
=
this
.
playObj
.
idx
!=
-
1
&&
this
.
playObj
.
idx
==
idx
?
'stop'
:
'play'
var
playFlag
=
this
.
playObj
.
idx
!=
-
1
&&
this
.
playObj
.
idx
==
idx
?
'stop'
:
'play'
var
audioDom
=
document
.
getElementById
(
'music-audio'
)
var
audioDom
=
document
.
getElementById
(
'music-audio'
)
...
@@ -1796,12 +1348,12 @@ export default {
...
@@ -1796,12 +1348,12 @@ export default {
})
})
},
},
stopMusic
()
{
stopMusic
()
{
this
.
playObj
.
idx
=
-
1
this
.
playObj
.
idx
=
-
1
this
.
playObj
.
src
=
''
this
.
playObj
.
src
=
''
},
},
handleMusicChange
(
idx
)
{
handleMusicChange
(
idx
)
{
this
.
musicList
.
forEach
((
item
,
index
)
=>
{
this
.
musicList
.
forEach
((
item
,
index
)
=>
{
if
(
index
!=
idx
)
{
if
(
index
!=
idx
)
{
item
.
isCheck
=
false
item
.
isCheck
=
false
...
@@ -1811,23 +1363,23 @@ export default {
...
@@ -1811,23 +1363,23 @@ export default {
this
.
editForm
.
activityMusic
=
this
.
musicList
[
idx
].
isCheck
?
this
.
musicList
[
idx
].
addr
:
''
this
.
editForm
.
activityMusic
=
this
.
musicList
[
idx
].
isCheck
?
this
.
musicList
[
idx
].
addr
:
''
},
},
handleMusicBeforeUpload
(
file
,
targetItem
)
{
handleMusicBeforeUpload
(
file
,
targetItem
)
{
this
.
stopMusic
()
this
.
stopMusic
()
this
.
musicUpload
(
file
,
targetItem
)
this
.
musicUpload
(
file
,
targetItem
)
},
},
handleMusicDelete
(
targetItem
)
{
handleMusicDelete
(
targetItem
)
{
this
.
$set
(
this
.
editForm
,
targetItem
.
name
,
''
)
this
.
$set
(
this
.
editForm
,
targetItem
.
name
,
''
)
this
.
fileList
=
[]
this
.
fileList
=
[]
},
},
// 表单设置
// 表单设置
handleDescribeAdd
()
{
handleDescribeAdd
()
{
this
.
formDescribeList
.
push
({
this
.
formDescribeList
.
push
({
value
:
''
value
:
''
})
})
},
},
handleDescribeDelete
(
idx
)
{
handleDescribeDelete
(
idx
)
{
this
.
$messageBox
.
confirm
(
'是否删除该表单设置?'
,
'删除'
,
{
this
.
$messageBox
.
confirm
(
'是否删除该表单设置?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -1840,13 +1392,13 @@ export default {
...
@@ -1840,13 +1392,13 @@ export default {
})
})
},
},
listAddIdx
(
list
)
{
listAddIdx
(
list
)
{
list
.
forEach
((
item
,
index
)
=>
{
list
.
forEach
((
item
,
index
)
=>
{
item
.
idx
=
index
item
.
idx
=
index
})
})
},
},
dealItem
(
attr
,
formAttr
)
{
dealItem
(
attr
,
formAttr
)
{
switch
(
attr
)
{
switch
(
attr
)
{
case
'services'
:
case
'services'
:
break
break
...
@@ -1859,7 +1411,7 @@ export default {
...
@@ -1859,7 +1411,7 @@ export default {
},
},
// 服务说明,商品答疑,玩家心得
// 服务说明,商品答疑,玩家心得
handleAddItem
(
attr
,
formAttr
,
limitNum
)
{
handleAddItem
(
attr
,
formAttr
,
limitNum
)
{
if
(
this
.
editForm
[
formAttr
].
length
>=
limitNum
)
{
if
(
this
.
editForm
[
formAttr
].
length
>=
limitNum
)
{
return
true
return
true
}
}
...
@@ -1868,7 +1420,7 @@ export default {
...
@@ -1868,7 +1420,7 @@ export default {
this
.
dealItem
(
attr
,
formAttr
)
this
.
dealItem
(
attr
,
formAttr
)
},
},
handleDeleteItem
(
attr
,
formAttr
,
idx
)
{
handleDeleteItem
(
attr
,
formAttr
,
idx
)
{
this
.
$confirm
(
'是否删除该项?'
,
'删除'
,
{
this
.
$confirm
(
'是否删除该项?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -1882,7 +1434,7 @@ export default {
...
@@ -1882,7 +1434,7 @@ export default {
})
})
},
},
getMerchantInfo
()
{
getMerchantInfo
()
{
this
.
loading
=
true
this
.
loading
=
true
let
merchantId
=
this
.
$globalState
.
session
.
merchantId
let
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
$apis
.
common
this
.
$apis
.
common
...
@@ -1911,7 +1463,7 @@ export default {
...
@@ -1911,7 +1463,7 @@ export default {
})
})
},
},
getInfo
()
{
getInfo
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
seckillActivity
this
.
$apis
.
seckillActivity
.
getActivityDetailApi
({
id
:
this
.
routeInfo
.
id
})
.
getActivityDetailApi
({
id
:
this
.
routeInfo
.
id
})
...
@@ -1988,6 +1540,11 @@ export default {
...
@@ -1988,6 +1540,11 @@ export default {
item
.
activityExperienceImgs
=
item
.
activityExperienceImgs
.
map
(
item
=>
item
.
imageUrl
)
item
.
activityExperienceImgs
=
item
.
activityExperienceImgs
.
map
(
item
=>
item
.
imageUrl
)
})
})
}
}
// 复制
if
(
this
.
routeInfo
.
addOrEdit
==
'copy'
)
{
let
resetArr
=
[{
name
:
'id'
},
{
name
:
'activityTime'
,
type
:
'array'
},
{
name
:
'liveBroadcastRoomId'
},
{
name
:
'groupQrCode'
},
{
name
:
'floatingMaskDiagram'
}]
this
.
copyReset
(
resetArr
)
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
this
.
editStatus
=
false
})
})
...
@@ -1997,7 +1554,19 @@ export default {
...
@@ -1997,7 +1554,19 @@ export default {
})
})
},
},
validateRules
()
{
copyReset
(
arr
)
{
arr
.
forEach
(
item
=>
{
switch
(
item
.
type
)
{
case
'array'
:
this
.
editForm
[
item
.
name
]
=
[]
break
default
:
this
.
editForm
[
item
.
name
]
=
''
}
})
},
validateRules
()
{
if
(
this
.
specificationDetailList
.
length
)
{
if
(
this
.
specificationDetailList
.
length
)
{
this
.
editRule
.
activityPrice
[
0
].
required
=
false
this
.
editRule
.
activityPrice
[
0
].
required
=
false
this
.
editRule
.
goodsStock
[
0
].
required
=
false
this
.
editRule
.
goodsStock
[
0
].
required
=
false
...
@@ -2007,7 +1576,7 @@ export default {
...
@@ -2007,7 +1576,7 @@ export default {
}
}
},
},
getCouponInfoParams
()
{
getCouponInfoParams
()
{
var
_this
=
this
var
_this
=
this
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
param
.
marketingType
=
3
param
.
marketingType
=
3
...
@@ -2059,27 +1628,27 @@ export default {
...
@@ -2059,27 +1628,27 @@ export default {
})
})
//直播
//直播
if
(
param
.
liveFlag
)
{
if
(
param
.
liveFlag
)
{
if
(
!
param
.
floatingMaskDiagram
)
param
.
floatingMaskDiagram
=
this
.
defaultFloatingMaskDiagram
if
(
!
param
.
floatingMaskDiagram
)
param
.
floatingMaskDiagram
=
this
.
defaultFloatingMaskDiagram
}
}
delete
param
.
liveFlag
delete
param
.
liveFlag
return
param
return
param
},
},
// 服务说明
// 服务说明
handleArrow
(
attr
)
{
handleArrow
(
attr
)
{
this
.
arrowFlagObj
[
attr
]
=
this
.
arrowFlagObj
[
attr
]
==
'open'
?
'close'
:
'open'
this
.
arrowFlagObj
[
attr
]
=
this
.
arrowFlagObj
[
attr
]
==
'open'
?
'close'
:
'open'
},
},
handleWechat
()
{
handleWechat
()
{
this
.
wechatVisible
=
!
this
.
wechatVisible
this
.
wechatVisible
=
!
this
.
wechatVisible
},
},
// 跳转
// 跳转
whereToGo
(
id
)
{
whereToGo
(
id
)
{
document
.
getElementById
(
id
).
scrollIntoView
()
document
.
getElementById
(
id
).
scrollIntoView
()
},
},
checkValid
(
validList
)
{
checkValid
(
validList
)
{
for
(
let
i
=
0
;
i
<
validList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
validList
.
length
;
i
++
)
{
let
item
=
validList
[
i
]
let
item
=
validList
[
i
]
if
(
item
.
valid
)
{
if
(
item
.
valid
)
{
...
@@ -2090,7 +1659,7 @@ export default {
...
@@ -2090,7 +1659,7 @@ export default {
return
true
return
true
},
},
addOrUpdate
()
{
addOrUpdate
()
{
this
.
loading
=
true
this
.
loading
=
true
var
params
=
this
.
getCouponInfoParams
()
var
params
=
this
.
getCouponInfoParams
()
...
@@ -2111,7 +1680,7 @@ export default {
...
@@ -2111,7 +1680,7 @@ export default {
},
},
// 去掉list空值
// 去掉list空值
delListAllEmpty
(
listName
,
attrParamsList
)
{
delListAllEmpty
(
listName
,
attrParamsList
)
{
if
(
!
this
.
editForm
[
listName
].
length
)
{
if
(
!
this
.
editForm
[
listName
].
length
)
{
return
this
.
editForm
[
listName
]
return
this
.
editForm
[
listName
]
}
}
...
@@ -2134,7 +1703,7 @@ export default {
...
@@ -2134,7 +1703,7 @@ export default {
return
list
return
list
},
},
handleConfirm
()
{
handleConfirm
()
{
this
.
stopMusic
()
this
.
stopMusic
()
this
.
editForm
.
activityServices
=
this
.
delListAllEmpty
(
'activityServices'
,
[
'title'
,
'content'
])
this
.
editForm
.
activityServices
=
this
.
delListAllEmpty
(
'activityServices'
,
[
'title'
,
'content'
])
this
.
editForm
.
activityCommoditys
=
this
.
delListAllEmpty
(
'activityCommoditys'
,
[
'question'
,
'answer'
])
this
.
editForm
.
activityCommoditys
=
this
.
delListAllEmpty
(
'activityCommoditys'
,
[
'question'
,
'answer'
])
...
@@ -2224,12 +1793,12 @@ export default {
...
@@ -2224,12 +1793,12 @@ export default {
})
})
})
})
},
},
cancelJump
()
{
cancelJump
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/seckillActivity/crowdFundList'
path
:
'/seckillActivity/crowdFundList'
})
})
},
},
handleCancel
()
{
handleCancel
()
{
if
(
this
.
editStatus
)
{
if
(
this
.
editStatus
)
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -2245,7 +1814,7 @@ export default {
...
@@ -2245,7 +1814,7 @@ export default {
}
}
},
},
//获取跟进员工
//获取跟进员工
getLiveList
()
{
getLiveList
()
{
this
.
$apis
.
seckillActivity
.
getLiveListApi
({}).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
getLiveListApi
({}).
then
(
res
=>
{
if
(
res
.
length
==
0
)
return
''
if
(
res
.
length
==
0
)
return
''
const
index
=
this
.
liveEditFormData
.
findIndex
(
item
=>
{
const
index
=
this
.
liveEditFormData
.
findIndex
(
item
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment