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 6153ef98
authored
Jan 11, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
2c4b1845
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
209 additions
and
49 deletions
package-lock.json
package.json
src/images/phone.png
src/views/friendGroup/friendGroupAdd.vue
src/views/seckillActivity/crowdFundList.vue
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/FriendGroupPreview/index.vue
src/views/sop/editSop/components/MessagePreview/index.vue
src/views/sop/editSop/editEvent.vue
package-lock.json
View file @
6153ef9
...
@@ -7069,9 +7069,9 @@
...
@@ -7069,9 +7069,9 @@
}
}
},
},
"glsx-components_beta"
:
{
"glsx-components_beta"
:
{
"version"
:
"1.0.
2
"
,
"version"
:
"1.0.
3
"
,
"resolved"
:
"https://registry.npmmirror.com/glsx-components_beta/-/glsx-components_beta-1.0.
2
.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/glsx-components_beta/-/glsx-components_beta-1.0.
3
.tgz"
,
"integrity"
:
"sha512-
1srDgdgOnL8oi4B9d/C9uNe6yLt1PKFo1O18Y6Wcr1t7TeUGZF1ZVyann5UBb6B6iJ+Zn0systcewybrF+CfeQ
=="
,
"integrity"
:
"sha512-
E1kAPMBQPnpjMA0N2kpHnPdq7eEAXNFlnErb4GjSRT4dGBGXnbDWHrkYv5zrGR5QYgSH2aZlHQFI9rNlKo6MDw
=="
,
"requires"
:
{
"requires"
:
{
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
...
...
package.json
View file @
6153ef9
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.5.3"
,
"glsx-components"
:
"^1.5.3"
,
"glsx-components_beta"
:
"^1.0.
2
"
,
"glsx-components_beta"
:
"^1.0.
3
"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"node-sass"
:
"^4.0.0"
,
"node-sass"
:
"^4.0.0"
,
"vod-js-sdk-v6"
:
"^1.5.0"
,
"vod-js-sdk-v6"
:
"^1.5.0"
,
...
...
src/images/phone.png
0 → 100644
View file @
6153ef9
18.7 KB
src/views/friendGroup/friendGroupAdd.vue
View file @
6153ef9
...
@@ -146,6 +146,7 @@ export default {
...
@@ -146,6 +146,7 @@ export default {
togetherItem
:
[
ATT_TYPE
.
TEXT
],
//只允许文本和图片
togetherItem
:
[
ATT_TYPE
.
TEXT
],
//只允许文本和图片
limitSize
:
10
,
//限制图片大小
limitSize
:
10
,
//限制图片大小
limitNum
:
9
,
//限制图片数量
limitNum
:
9
,
//限制图片数量
limitPx
:
1555200
,
// limitWidth: 10000, //限制单张图片宽度
// limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度
// limitHeight: 10000,//限制单张图片高度
Isdraggable
:
true
,
//图片拖拽
Isdraggable
:
true
,
//图片拖拽
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
6153ef9
...
@@ -271,6 +271,11 @@ export default {
...
@@ -271,6 +271,11 @@ export default {
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
220
},
{
label
:
'浏览量(次)'
,
label
:
'浏览量(次)'
,
prop
:
'viewAmount'
,
prop
:
'viewAmount'
,
addHtml
:
'linkText'
,
addHtml
:
'linkText'
,
...
@@ -291,11 +296,6 @@ export default {
...
@@ -291,11 +296,6 @@ export default {
prop
:
'saleAmount'
prop
:
'saleAmount'
},
},
{
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
220
},
{
label
:
'缩略图'
,
label
:
'缩略图'
,
prop
:
'activityImg'
,
prop
:
'activityImg'
,
addHtml
:
'activityImg'
addHtml
:
'activityImg'
...
...
src/views/sop/editSop/baseInfo.vue
View file @
6153ef9
...
@@ -94,12 +94,14 @@
...
@@ -94,12 +94,14 @@
<p
class=
"m-r-20 txt-blue"
>
<p
class=
"m-r-20 txt-blue"
>
{{ baseData.channelTypeList.find(k => k.confId == item.pushChannelType).confName }}
</p>
{{ baseData.channelTypeList.find(k => k.confId == item.pushChannelType).confName }}
</p>
</div>
</div>
<div
class=
"event-link"
>
<div>
<!-- typeof(item.backupContent) == 'string' ? (obj,index) in JSON.parse(item.backupContent) : (obj,index) in item.backupContent-->
<div
v-for=
"(obj,index) in backupContentJson(item.backupContent)"
:key=
"index"
>
<div
v-for=
"(obj,index) in backupContentJson(item.backupContent)"
:key=
"index"
>
<div
class=
"event-content"
v-if=
"obj.attType == 1"
v-html=
"tramWord(obj.attContent)"
></div>
<div
class=
"textHidden"
:title=
"obj.attContent"
v-if=
"obj.attType == 1"
v-html=
"tramWord(obj.attContent)"
></div>
<div
class=
"event-content"
v-if=
"obj.attType == 2"
>
</div>
<img
class=
"limitPhoto"
<div
class=
"event-inline"
v-for=
"(obj,index) in backupContentJson(item.backupContent)"
:key=
"index"
>
<div
>
<div
v-if=
"obj.attType == 2"
>
<img
class=
"model-item-img"
:src=
"obj.attContent"
alt
/>
:src=
"obj.attContent"
alt
/>
</div>
</div>
<div
v-if=
"obj.attType == 3"
>
<div
v-if=
"obj.attType == 3"
>
...
@@ -114,9 +116,6 @@
...
@@ -114,9 +116,6 @@
<div
class=
"welcome-activity-desc"
>
<div
class=
"welcome-activity-desc"
>
<div
class=
"model-item-title"
>
{{ JSON.parse(obj.attContent).fileName }}
</div>
<div
class=
"model-item-title"
>
{{ JSON.parse(obj.attContent).fileName }}
</div>
</div>
</div>
<div
class=
"delete-solid"
>
<i
class=
"el-icon-delete-solid"
@
click=
"close(index)"
></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -128,9 +127,6 @@
...
@@ -128,9 +127,6 @@
v-if=
"marketingContentJSON(obj).selectType == 'coupon'"
/>
v-if=
"marketingContentJSON(obj).selectType == 'coupon'"
/>
<img
src=
"@/assets/welcomeWord/gift.png"
alt=
""
v-else
/>
<img
src=
"@/assets/welcomeWord/gift.png"
alt=
""
v-else
/>
</div>
</div>
<!-- <div class="delete-solid">-->
<!-- <i class="el-icon-delete-solid" @click="close(index)"></i>-->
<!-- </div>-->
<div
class=
"welcome-activity-desc"
>
<div
class=
"welcome-activity-desc"
>
<
template
v-if=
"marketingContentJSON(obj).selectType == 'card'"
>
<
template
v-if=
"marketingContentJSON(obj).selectType == 'card'"
>
<div
class=
"model-item-title"
:title=
"marketingContentJSON(obj).equityName"
>
<div
class=
"model-item-title"
:title=
"marketingContentJSON(obj).equityName"
>
...
@@ -190,6 +186,7 @@
...
@@ -190,6 +186,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"event-btns"
>
<div
class=
"event-btns"
>
<el-button
v-if=
"new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit =='copy'"
<el-button
v-if=
"new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit =='copy'"
class=
"default newBtnSty"
:size=
"size"
@
click=
"handleEventDelete(index)"
>
删除
class=
"default newBtnSty"
:size=
"size"
@
click=
"handleEventDelete(index)"
>
删除
...
@@ -198,14 +195,13 @@
...
@@ -198,14 +195,13 @@
content=
"请先完善sop名称和营销对象"
placement=
"top"
>
content=
"请先完善sop名称和营销对象"
placement=
"top"
>
<div>
<div>
<el-button
class=
"default-blue-btn newBtnSty"
<el-button
class=
"default-blue-btn newBtnSty"
v-if=
"new Date(item.eventStartDate) > new Date()"
:disabled=
"!editForm.customerInfoList.length || !editForm.sopName"
:disabled=
"!editForm.customerInfoList.length || !editForm.sopName"
:size=
"size"
@
click=
"handleEventEdit('edit', item, index)"
>
编辑
:size=
"size"
@
click=
"handleEventEdit('edit', item, index)"
>
编辑
</el-button>
</el-button>
</div>
</div>
</el-tooltip>
</el-tooltip>
<!-- <el-button class="default-blue-btn"-->
<!-- :size="size" @click="handleEventEdit('look', item, index)">查看-->
<!-- </el-button>-->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -452,9 +448,9 @@ export default {
...
@@ -452,9 +448,9 @@ export default {
return
htm
return
htm
},
},
backupContentJson
(
val
)
{
backupContentJson
(
val
)
{
if
(
typeof
(
val
)
==
'string'
){
if
(
typeof
(
val
)
==
'string'
)
{
return
JSON
.
parse
(
val
)
return
JSON
.
parse
(
val
)
}
else
{
}
else
{
return
val
return
val
}
}
},
},
...
@@ -921,7 +917,9 @@ export default {
...
@@ -921,7 +917,9 @@ export default {
params
.
id
=
this
.
routeInfo
.
id
params
.
id
=
this
.
routeInfo
.
id
params
.
eventList
=
[]
params
.
eventList
=
[]
var
idx
=
0
var
idx
=
0
console
.
log
(
this
.
editForm
.
eventList
)
this
.
editForm
.
eventList
.
forEach
((
item
,
index
)
=>
{
this
.
editForm
.
eventList
.
forEach
((
item
,
index
)
=>
{
console
.
log
(
item
)
if
(
new
Date
(
item
.
eventStartDate
)
>
new
Date
())
{
if
(
new
Date
(
item
.
eventStartDate
)
>
new
Date
())
{
params
.
eventList
.
push
(
params
.
eventList
.
push
(
{
{
...
@@ -950,6 +948,7 @@ export default {
...
@@ -950,6 +948,7 @@ export default {
if
(
backupContent
&&
backupContent
.
length
<=
2
)
{
if
(
backupContent
&&
backupContent
.
length
<=
2
)
{
backupContent
.
forEach
(
obj
=>
{
backupContent
.
forEach
(
obj
=>
{
if
(
obj
&&
obj
.
attType
==
1
)
{
if
(
obj
&&
obj
.
attType
==
1
)
{
console
.
log
(
params
.
eventList
[
index
])
params
.
eventList
[
index
].
eventContent
=
obj
.
attContent
params
.
eventList
[
index
].
eventContent
=
obj
.
attContent
}
}
if
(
obj
&&
obj
.
attType
==
2
)
{
if
(
obj
&&
obj
.
attType
==
2
)
{
...
@@ -964,7 +963,7 @@ export default {
...
@@ -964,7 +963,7 @@ export default {
params
.
eventList
[
index
].
objectType
=
12
params
.
eventList
[
index
].
objectType
=
12
videoImageStorage
.
push
(
obj
.
attContent
)
videoImageStorage
.
push
(
obj
.
attContent
)
params
.
eventList
[
index
].
resourceList
=
videoImageStorage
params
.
eventList
[
index
].
resourceList
=
videoImageStorage
videoImageStorage
=
[]
videoImageStorage
=
[]
}
}
// 活动
// 活动
if
(
obj
&&
obj
.
attType
==
7
)
{
if
(
obj
&&
obj
.
attType
==
7
)
{
...
@@ -1031,13 +1030,9 @@ export default {
...
@@ -1031,13 +1030,9 @@ export default {
}
}
})
})
}
}
// if (item.object) {
// params.eventList[idx].objectId = item.object.objectId
// params.eventList[idx].additionalType = item.object.additionalType
// params.eventList[idx].objectType = item.object.objectType
// delete params.eventList[idx].object
// }
idx
=
idx
+
1
idx
=
idx
+
1
}
else
{
params
.
eventList
.
push
(
item
)
}
}
})
})
}
else
{
}
else
{
...
@@ -1287,6 +1282,10 @@ export default {
...
@@ -1287,6 +1282,10 @@ export default {
line-height
:
24px
;
line-height
:
24px
;
}
}
.event-flex
{
display
:
flex
;
}
.event-btns
{
.event-btns
{
position
:
absolute
;
position
:
absolute
;
top
:
16px
;
top
:
16px
;
...
@@ -1305,10 +1304,6 @@ export default {
...
@@ -1305,10 +1304,6 @@ export default {
}
}
}
}
.limitPhoto
{
width
:
50px
;
height
:
50px
;
}
.welcome-activity-panel
{
.welcome-activity-panel
{
display
:
flex
;
display
:
flex
;
...
@@ -1416,4 +1411,15 @@ export default {
...
@@ -1416,4 +1411,15 @@ export default {
}
}
}
}
}
}
.textHidden
{
max-width
:
1000px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.event-inline
{
margin-top
:
8px
;
display
:
inline-block
}
</
style
>
</
style
>
src/views/sop/editSop/components/FriendGroupPreview/index.vue
0 → 100644
View file @
6153ef9
This diff is collapsed.
Click to expand it.
src/views/sop/editSop/components/MessagePreview/index.vue
0 → 100644
View file @
6153ef9
<
template
>
<div
class=
"form-image"
>
<img
src=
"@/images/phone.png"
/>
<div
class=
"preview-content"
>
<div
class=
"preview-info"
>
<!--
<div
class=
"preview-text text"
v-if=
"addForm.messageContext"
>
【短信签名】
{{
addForm
.
messageContext
}}
</div>
-->
<div
class=
"preview-box"
v-for=
"item in previewListFilter"
:key=
"item.id"
>
<div
class=
"preview-box-desc"
>
<template
v-if=
"item.attType == 1"
>
<div
class=
"preview-text text"
v-html=
"item.attContent"
></div>
</
template
>
<!-- <template v-if="item.attType == 7">-->
<!-- <div class="preview-text preview-link">-->
<!-- <img src="@/assets/guestCustom/preview-link.png" alt />-->
<!-- <div>{{ item.attContent[0].marketingName }}</div>-->
<!-- </div>-->
<!-- </template>-->
<!-- <template v-else-if="item.attType == 2" v-for="(imgItem, index) in item.attContent">-->
<!-- <el-image style="width: 52px; height: 52px" class="img-list" :src="imgItem" fit="fit" :key="index" :preview-src-list="item.attContent"></el-image>-->
<!-- </template>-->
<!-- <template v-else-if="item.attType == 3">-->
<!-- <!– <el-image style="width: 100px" :src="item.attContent" fit="contain"></el-image> –>-->
<!-- <div class="video-panel">-->
<!-- <video id="video" width="100%" height="100%" preload loop muted>-->
<!-- <source :src="item.attContent" type="video/mp4" />-->
<!-- </video>-->
<!-- <i-->
<!-- class="el-icon-video-play"-->
<!-- @click="-->
<!-- videoShow = true-->
<!-- videoUrl = item.attContent-->
<!-- "-->
<!-- ></i>-->
<!-- </div>-->
<!-- </template>-->
</div>
</div>
</div>
</div>
</div>
</template>
<
script
>
import
emoji
from
"@/utils/emo"
;
export
default
{
name
:
'MessagePreview'
,
props
:
{
previewView
:
Array
},
data
()
{
return
{
previewListFilter
:[]
}
},
watch
:
{
previewView
:
{
handler
(
val
)
{
const
previewVal
=
this
.
$common
.
utils
.
deepClone
(
val
).
filter
(
item
=>
item
)
console
.
log
(
previewVal
)
this
.
previewListFilter
=
[]
for
(
let
i
in
previewVal
)
{
if
(
previewVal
[
i
].
attType
==
1
)
{
const
attContent
=
previewVal
[
i
].
attContent
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
if
(
index
<
10
)
{
index
=
'00'
+
index
}
else
if
(
index
>=
10
&&
index
<
100
)
{
index
=
'0'
+
index
}
return
`<img style="width: 18px;
height: 18px;" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png">`
})
this
.
previewListFilter
.
push
({
attType
:
1
,
attContent
:
htm
})
}
else
if
(
previewVal
[
i
].
attType
==
2
)
{
const
pindex
=
this
.
previewListFilter
.
findIndex
(
item
=>
item
.
attType
==
2
)
if
(
pindex
==
-
1
)
{
this
.
previewListFilter
.
push
({
attType
:
2
,
attContent
:
[
previewVal
[
i
].
attContent
]
})
}
else
{
this
.
previewListFilter
[
pindex
].
attContent
.
push
(
previewVal
[
i
].
attContent
)
}
}
else
{
this
.
previewListFilter
.
push
({
attType
:
previewVal
[
i
].
attType
,
attContent
:
previewVal
[
i
].
attContent
})
}
}
this
.
$nextTick
(()
=>
{
this
.
previewListFilter
=
this
.
previewListFilter
.
filter
(
item
=>
item
)
})
},
deep
:
true
}
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.form-image
{
width
:
280px
;
height
:
546px
;
margin
:
20px
80px
20px
0
;
position
:
relative
;
.preview-content
{
position
:
absolute
;
width
:
250px
;
height
:
320px
;
overflow-y
:
auto
;
top
:
125px
;
left
:
50px
;
.preview-text
{
padding
:
10px
;
position
:
relative
;
width
:
160px
;
color
:
#333
;
background-color
:
#f4f4f4
;
border-radius
:
4px
;
word-wrap
:
break-word
;
margin-bottom
:
10px
;
line-height
:
15px
;
}
}
img
{
width
:
100%
;
height
:
auto
;
}
}
</
style
>
src/views/sop/editSop/editEvent.vue
View file @
6153ef9
...
@@ -63,14 +63,16 @@
...
@@ -63,14 +63,16 @@
<el-form
:model=
"editForm"
:rules=
"editRule"
ref=
"groupForm"
label-width=
"154px"
>
<el-form
:model=
"editForm"
:rules=
"editRule"
ref=
"groupForm"
label-width=
"154px"
>
<el-form-item
prop=
"eventContent"
class=
"attachment-panel"
>
<el-form-item
prop=
"eventContent"
class=
"attachment-panel"
>
<label
slot=
"label"
class=
"required"
>
营销内容:
</label>
<label
slot=
"label"
class=
"required"
>
营销内容:
</label>
<GLEditor
ref=
"welcome"
:form=
"'object'"
style=
"line-height: 12px;
"
:btnList=
"btnList"
<GLEditor
ref=
"welcome"
:form=
"'object'"
style=
"line-height: 12px;width:650px
"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor>
@
previewWord=
"previewForm"
></GLEditor>
<div
v-show=
"hasEventContent
"
class=
"el-form-item__error"
>
请输入营销内容
</div>
<div
v-show=
"hasEventContentDisplay
"
class=
"el-form-item__error"
>
请输入营销内容
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
class=
"preview"
>
<div
class=
"preview"
>
<Preview
:previewVal=
"previewList"
></Preview>
<Preview
:previewVal=
"previewList"
v-if=
"editForm.pushChannelType == 1"
></Preview>
<MessagePreview
:previewView=
"previewList"
v-if=
"editForm.pushChannelType == 2"
></MessagePreview>
<FriendGroupPreview
:previewView=
"previewList"
v-if=
"editForm.pushChannelType == 3"
></FriendGroupPreview>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -135,6 +137,8 @@ import {limitPrice} from '@/common/constant'
...
@@ -135,6 +137,8 @@ import {limitPrice} from '@/common/constant'
import
ActivityModel
from
'./components/activityModel'
import
ActivityModel
from
'./components/activityModel'
import
materialModel
from
'./components/materialModel'
import
materialModel
from
'./components/materialModel'
import
nicknameModel
from
'./components/nicknameModel'
import
nicknameModel
from
'./components/nicknameModel'
import
MessagePreview
from
'./components/MessagePreview/index'
import
FriendGroupPreview
from
'./components/FriendGroupPreview/index'
import
Preview
from
'@/views/customerTransform/components/preview.vue'
import
Preview
from
'@/views/customerTransform/components/preview.vue'
import
emoji
from
'@/utils/emo'
import
emoji
from
'@/utils/emo'
import
*
as
moment
from
'moment'
import
*
as
moment
from
'moment'
...
@@ -143,7 +147,8 @@ export default {
...
@@ -143,7 +147,8 @@ export default {
name
:
'editGift'
,
name
:
'editGift'
,
data
()
{
data
()
{
return
{
return
{
hasEventContent
:
false
,
hasShowWechat
:
false
,
hasEventContentDisplay
:
false
,
size
:
'small'
,
size
:
'small'
,
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
isMaterialVisible
:
false
,
isMaterialVisible
:
false
,
...
@@ -565,7 +570,9 @@ export default {
...
@@ -565,7 +570,9 @@ export default {
ActivityModel
,
ActivityModel
,
materialModel
,
materialModel
,
nicknameModel
,
nicknameModel
,
Preview
Preview
,
FriendGroupPreview
,
MessagePreview
},
},
watch
:
{
watch
:
{
editForm
:
{
editForm
:
{
...
@@ -583,6 +590,13 @@ export default {
...
@@ -583,6 +590,13 @@ export default {
this
.
editFormDataChannel
[
idx
].
optionList
[
1
].
isDisabled
=
val
==
'4'
this
.
editFormDataChannel
[
idx
].
optionList
[
1
].
isDisabled
=
val
==
'4'
this
.
editFormDataChannel
[
idx
].
optionList
[
2
].
isDisabled
=
[
1
,
2
,
3
].
includes
(
val
)
this
.
editFormDataChannel
[
idx
].
optionList
[
2
].
isDisabled
=
[
1
,
2
,
3
].
includes
(
val
)
},
},
'editForm.pushChannelType'
(
newValue
)
{
setTimeout
(()
=>
{
this
.
previewList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
previewList
))
})
},
},
},
created
()
{
created
()
{
...
@@ -595,7 +609,6 @@ export default {
...
@@ -595,7 +609,6 @@ export default {
mounted
()
{
mounted
()
{
Object
.
assign
(
this
.
editForm
,
this
.
eventObj
.
info
)
Object
.
assign
(
this
.
editForm
,
this
.
eventObj
.
info
)
console
.
log
(
this
.
editForm
)
this
.
getStaffTypeList
()
this
.
getStaffTypeList
()
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
this
.
editStatus
=
false
...
@@ -609,7 +622,7 @@ export default {
...
@@ -609,7 +622,7 @@ export default {
val
.
forEach
(
item
=>
{
val
.
forEach
(
item
=>
{
if
([
2
,
3
].
includes
(
item
.
attType
))
{
if
([
2
,
3
].
includes
(
item
.
attType
))
{
this
.
editFormDataChannel
[
0
].
optionList
[
1
].
isDisabled
=
true
this
.
editFormDataChannel
[
0
].
optionList
[
1
].
isDisabled
=
true
if
(
this
.
editForm
.
pushChannelType
==
2
){
if
(
this
.
editForm
.
pushChannelType
==
2
)
{
this
.
editForm
.
pushChannelType
=
''
this
.
editForm
.
pushChannelType
=
''
}
}
}
else
{
}
else
{
...
@@ -706,7 +719,7 @@ export default {
...
@@ -706,7 +719,7 @@ export default {
this
.
getCustomerNum
()
this
.
getCustomerNum
()
},
},
getWelcomeDetails
()
{
getWelcomeDetails
()
{
let
backupContent
=
typeof
(
this
.
editForm
.
backupContent
)
==
'string'
?
JSON
.
parse
(
this
.
editForm
.
backupContent
)
:
this
.
editForm
.
backupContent
let
backupContent
=
typeof
(
this
.
editForm
.
backupContent
)
==
'string'
?
JSON
.
parse
(
this
.
editForm
.
backupContent
)
:
this
.
editForm
.
backupContent
if
(
backupContent
)
{
if
(
backupContent
)
{
const
previewList
=
backupContent
.
map
(
item
=>
{
const
previewList
=
backupContent
.
map
(
item
=>
{
if
(
item
.
attType
==
7
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
if
(
item
.
attType
==
7
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
...
@@ -731,11 +744,11 @@ export default {
...
@@ -731,11 +744,11 @@ export default {
handleMarketingContent
()
{
handleMarketingContent
()
{
let
params
=
{}
let
params
=
{}
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
if
(
previewList
[
0
]
&&
previewList
[
0
].
attType
==
1
&&
previewList
[
0
].
attContent
==
''
)
{
if
(
previewList
[
0
]
&&
previewList
[
0
].
attType
==
1
&&
previewList
[
0
].
attContent
==
''
)
{
this
.
hasEventContent
=
true
this
.
hasEventContent
Display
=
true
return
return
}
else
{
}
else
{
this
.
hasEventContent
=
false
this
.
hasEventContent
Display
=
false
}
}
const
contentList
=
previewList
.
map
(
item
=>
{
const
contentList
=
previewList
.
map
(
item
=>
{
if
(
item
.
attType
==
1
)
{
if
(
item
.
attType
==
1
)
{
...
@@ -897,7 +910,7 @@ export default {
...
@@ -897,7 +910,7 @@ export default {
handleConfirm
()
{
handleConfirm
()
{
this
.
handleMarketingContent
()
this
.
handleMarketingContent
()
if
(
this
.
hasEventContent
){
if
(
this
.
hasEventContent
)
{
return
return
}
}
let
countParams
=
{
let
countParams
=
{
...
...
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