Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 b274f9e2
authored
Jan 11, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
ca983e78
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
27 deletions
package.json
src/views/store/components/carChannel.vue
src/views/store/edit.vue
src/views/store/index.vue
package.json
View file @
b274f9e
...
...
@@ -14,7 +14,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.
2.5
"
,
"glsx-components"
:
"^1.
5.4
"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
,
...
...
src/views/store/components/carChannel.vue
View file @
b274f9e
...
...
@@ -116,13 +116,14 @@
</el-form-item>
</span>
<el-form-item
label=
"口碑文案:"
:key=
"index"
:class=
"index != 0 ? 'publicPraise-box' : 'publicPraise-wrap'"
v-for=
"(text, index) in editForm.contentList[0].publicPraise"
>
<el-form-item
label=
"口碑文案:"
:key=
"index"
:class=
"index != 0 ? 'publicPraise-box' : 'publicPraise-wrap'"
v-for=
"(text, index) in editForm.contentList[0].publicPraise"
>
<span
class=
"txt-red"
>
*
</span>
<el-input
type=
"text"
v-model=
"text.value"
maxlength=
"20"
></el-input>
<div
class=
"dele-publicPraise"
@
click=
"handleDelePraise(index)"
>
<img
class=
"icon-dele"
src=
"@/assets/channel/dele.png"
/>
</div>
</el-form-item>
<!-- <div class="el-form-item__error">请输入口碑文案</div> -->
<div
class=
"btn-basic"
style=
"margin-left: 154px; margin-bottom: 10px"
@
click=
"handleAddPraise"
>
<img
class=
"icon-add"
src=
"@/assets/channel/icon-add.png"
/>
<div>
新增一条文案
</div>
...
...
@@ -446,22 +447,30 @@ export default {
let
publicPraiseArr
=
[]
let
mediaUrlArr
=
[]
if
(
data1
)
{
data1
.
contentList
.
forEach
(
item
=>
{
item
.
publicPraise
&&
item
.
publicPraise
.
split
(
'|'
).
forEach
(
text
=>
{
publicPraiseArr
.
push
({
value
:
text
console
.
log
(
data1
.
contentList
,
'99999'
)
data1
.
contentList
.
length
&&
data1
.
contentList
.
forEach
(
item
=>
{
item
.
publicPraise
&&
item
.
publicPraise
.
split
(
'|'
).
forEach
(
text
=>
{
publicPraiseArr
.
push
({
value
:
text
})
})
// if (!publicPraiseArr.length) {
// this.$message({
// message: '请输入口碑文案',
// type: 'error'
// })
// return
// }
contentList
.
push
({
activityDetails
:
item
.
pageContentItem
,
...
item
,
...
item
.
mediaList
[
0
],
mediaCoverArr
:
item
.
mediaList
[
0
].
mediaCover
&&
[
item
.
mediaList
[
0
].
mediaCover
],
publicPraise
:
publicPraiseArr
})
contentList
.
push
({
activityDetails
:
item
.
pageContentItem
,
...
item
,
...
item
.
mediaList
[
0
],
mediaCoverArr
:
item
.
mediaList
[
0
].
mediaCover
&&
[
item
.
mediaList
[
0
].
mediaCover
],
publicPraise
:
publicPraiseArr
})
})
if
(
contentList
[
0
].
mediaType
==
2
)
{
contentList
[
0
].
mediaList
.
forEach
(
item
=>
{
mediaUrlArr
.
push
(
item
.
mediaUrl
)
...
...
@@ -767,12 +776,12 @@ export default {
})
},
changeChannelImg
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
if
(
val
.
index
!=
-
1
)
{
this
.
editForm
.
contentList
[
val
.
index
][
val
.
key
]
=
val
.
arr
[
0
]
}
else
{
this
.
editForm
[
val
.
key
]
=
val
.
arr
[
0
]
console
.
log
(
this
.
editForm
[
val
.
key
],
'9999999'
)
console
.
log
(
this
.
editForm
[
val
.
key
],
'9999999'
)
}
if
(
this
.
editForm
.
topicStyle
==
3
||
val
.
index
==
-
1
)
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
val
.
key
)
...
...
@@ -917,10 +926,23 @@ export default {
width
:
100%
;
}
}
.publicPraise-wrap
:before
{
content
:
"*"
;
color
:
#f56c6c
;
display
:
inline-block
;
margin-right
:
4px
;
.publicPraise-wrap
{
position
:
relative
;
/deep/
.el-form-item__content
{
.txt-red
{
//
content
:
'*'
;
color
:
#f56c6c
;
left
:
-80px
;
position
:
absolute
;
}
}
}
.publicPraise-box
{
.txt-red
{
//
content
:
'*'
;
color
:
#fff
;
left
:
-80px
;
position
:
absolute
;
}
}
</
style
>
\ No newline at end of file
src/views/store/edit.vue
View file @
b274f9e
...
...
@@ -103,14 +103,12 @@ export default {
{
label
:
'频道卡片主标题'
,
prop
:
'topicTitle'
,
minWidth
:
180
,
filter
:
'1'
,
line
:
1
},
{
label
:
'卡片样式'
,
prop
:
'topicStyle'
,
width
:
150
,
filter
:
'1'
,
formatter
:
cellValue
=>
{
const
data
=
this
.
baseData
.
styleList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
topicStyle
)
...
...
@@ -121,7 +119,8 @@ export default {
{
label
:
'宣传文案'
,
prop
:
'promotion'
,
minWidth
:
100
,
line
:
1
,
minWidth
:
200
,
formatter
:
cellValue
=>
{
return
cellValue
.
contentList
[
0
].
promotion
},
...
...
@@ -141,7 +140,8 @@ export default {
{
label
:
'活动名称'
,
prop
:
'activityName'
,
minWidth
:
100
,
width
:
150
,
line
:
1
,
filter
:
'3,4'
,
formatter
:
cellValue
=>
{
return
cellValue
.
contentList
[
0
].
activityName
...
...
src/views/store/index.vue
View file @
b274f9e
...
...
@@ -104,6 +104,7 @@
<
script
>
import
url
from
'@/assets/empty.png'
import
*
as
dayjs
from
'dayjs'
import
{
mapMutations
}
from
'vuex'
export
default
{
name
:
'App'
,
data
()
{
...
...
@@ -196,6 +197,9 @@ export default {
created
()
{},
mounted
()
{},
methods
:
{
...
mapMutations
({
SET_CHANNEL_TYPE
:
'channel/SET_CHANNEL_TYPE'
}),
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
))
if
(
this
.
tableSearchForm
.
createDate
.
length
)
{
...
...
@@ -285,6 +289,7 @@ export default {
}
},
handleEdit
(
val
)
{
this
.
SET_CHANNEL_TYPE
({
channelType
:
''
})
this
.
$router
.
push
({
path
:
`/store/edit?merchantId=
${
val
.
merchantId
}
`
})
...
...
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