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 e6bc6b47
authored
Jan 11, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮bug修复
1 parent
1ed5406d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
30 deletions
src/components/preview/index.vue
src/store/modules/channel.js
src/views/store/components/activity.vue
src/views/store/components/carChannel.vue
src/views/store/components/certificate.vue
src/views/store/edit.vue
src/components/preview/index.vue
View file @
e6bc6b4
...
@@ -104,7 +104,6 @@ export default {
...
@@ -104,7 +104,6 @@ export default {
},
},
// 预览图文
// 预览图文
handleEnlarge
(
src
,
type
)
{
handleEnlarge
(
src
,
type
)
{
console
.
log
(
src
)
this
.
dialogVisibleImg
=
true
this
.
dialogVisibleImg
=
true
this
.
dialogSrc
=
src
this
.
dialogSrc
=
src
this
.
dialogType
=
type
?
type
:
'img'
this
.
dialogType
=
type
?
type
:
'img'
...
@@ -119,7 +118,7 @@ export default {
...
@@ -119,7 +118,7 @@ export default {
case
'img'
:
case
'img'
:
this
.
imageUrlArr
.
splice
(
index
,
1
)
this
.
imageUrlArr
.
splice
(
index
,
1
)
console
.
log
(
this
.
imageUrlArr
)
console
.
log
(
this
.
imageUrlArr
)
this
.
$emit
(
'change'
,
{
arr
:
this
.
imageUrlArr
,
key
:
this
.
picOptions
.
key
,
id
:
1
})
this
.
$emit
(
'change'
,
{
arr
:
this
.
imageUrlArr
,
key
:
this
.
picOptions
.
key
,
id
:
1
,
index
:
this
.
index
})
break
break
default
:
default
:
this
.
videoUrl
=
''
this
.
videoUrl
=
''
...
...
src/store/modules/channel.js
View file @
e6bc6b4
...
@@ -5,7 +5,8 @@ export default {
...
@@ -5,7 +5,8 @@ export default {
videoList
:
[],
videoList
:
[],
topicDetail
:
{},
topicDetail
:
{},
merchantId
:
''
,
merchantId
:
''
,
channelStyle
:
1
channelStyle
:
1
,
channelType
:
''
},
},
mutations
:
{
mutations
:
{
// 设置视频
// 设置视频
...
@@ -22,8 +23,13 @@ export default {
...
@@ -22,8 +23,13 @@ export default {
},
},
// 设置频道主题
// 设置频道主题
[
'SET_CHANNEL_STYLE'
](
state
,
payload
)
{
[
'SET_CHANNEL_STYLE'
](
state
,
payload
)
{
console
.
log
(
payload
)
state
.
channelStyle
=
payload
.
channelStyle
state
.
channelStyle
=
payload
.
channelStyle
},
[
'SET_CHANNEL_TYPE'
](
state
,
payload
)
{
// console.log(payload)
// localStorage.setItem('channelType', payload.channelType)
// console.log(localStorage.getItem('channelType'))
state
.
channelType
=
payload
.
channelType
}
}
},
},
actions
:
{
actions
:
{
...
...
src/views/store/components/activity.vue
View file @
e6bc6b4
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<el-input
v-model=
"activityForm.topicTitle"
maxlength=
"6"
></el-input>
<el-input
v-model=
"activityForm.topicTitle"
maxlength=
"6"
></el-input>
</el-form-item>
</el-form-item>
<template
v-if=
"channelType == 3"
>
<template
v-if=
"channelType == 3"
>
<el-form-item
label=
"卡片背景图:"
prop=
"background
Type
"
>
<el-form-item
label=
"卡片背景图:"
prop=
"background
Img
"
>
<el-radio-group
v-model=
"activityForm.backgroundType"
@
input=
"changeBackgroundType"
>
<el-radio-group
v-model=
"activityForm.backgroundType"
@
input=
"changeBackgroundType"
>
<el-radio
:label=
"1"
>
单个
</el-radio>
<el-radio
:label=
"1"
>
单个
</el-radio>
<el-radio
:label=
"2"
>
套餐
</el-radio>
<el-radio
:label=
"2"
>
套餐
</el-radio>
...
@@ -127,15 +127,15 @@ export default {
...
@@ -127,15 +127,15 @@ export default {
subscribe
:
2
subscribe
:
2
}
}
},
},
{
//
{
itemName
:
'商品'
,
//
itemName: '商品',
itemValue
:
5
,
//
itemValue: 5,
itemType
:
'goods'
,
//
itemType: 'goods',
getInterfaceApi
:
this
.
$apis
.
store
.
goodsActivity
,
//
getInterfaceApi: this.$apis.store.goodsActivity,
params
:
{
//
params: {
currentPage
:
1
//
currentPage: 1
}
//
}
}
//
}
]
]
}
}
},
},
...
@@ -212,11 +212,12 @@ export default {
...
@@ -212,11 +212,12 @@ export default {
},
},
selectActivity
(
data
)
{
selectActivity
(
data
)
{
this
.
activityForm
.
activityDetails
=
{
this
.
activityForm
.
activityDetails
=
{
data
,
...
data
,
...
data
.
marketingContent
,
...
data
.
marketingContent
,
contentName
:
data
.
marketingName
contentName
:
data
.
marketingName
}
}
this
.
activityForm
.
pagePathContent
=
data
.
marketingId
this
.
activityForm
.
pagePathContent
=
data
.
marketingId
console
.
log
(
this
.
activityForm
.
activityDetails
)
if
(
this
.
activityForm
.
activityDetails
.
selectType
==
'goods'
)
{
if
(
this
.
activityForm
.
activityDetails
.
selectType
==
'goods'
)
{
this
.
activityForm
.
pagePathType
=
2
this
.
activityForm
.
pagePathType
=
2
this
.
activityForm
.
productPrice
=
this
.
activityForm
.
activityDetails
.
originalPrice
this
.
activityForm
.
productPrice
=
this
.
activityForm
.
activityDetails
.
originalPrice
...
@@ -226,8 +227,8 @@ export default {
...
@@ -226,8 +227,8 @@ export default {
this
.
activityForm
.
activityDetails
.
contentPrice
=
this
.
activityForm
.
activityDetails
.
originalPrice
this
.
activityForm
.
activityDetails
.
contentPrice
=
this
.
activityForm
.
activityDetails
.
originalPrice
}
else
{
}
else
{
this
.
activityForm
.
pagePathType
=
1
this
.
activityForm
.
pagePathType
=
1
this
.
activityForm
.
productPrice
=
this
.
activityForm
.
activityDetails
.
crowdFundingPrice
this
.
activityForm
.
productPrice
=
Number
(
this
.
activityForm
.
activityDetails
.
crowdFundingPrice
)
/
100
this
.
activityForm
.
activityPrice
=
this
.
activityForm
.
activityDetails
.
activityPrice
this
.
activityForm
.
activityPrice
=
Number
(
this
.
activityForm
.
activityDetails
.
activityPrice
)
/
100
this
.
activityForm
.
activityDetails
.
contentName
=
this
.
activityForm
.
activityDetails
.
activityName
this
.
activityForm
.
activityDetails
.
contentName
=
this
.
activityForm
.
activityDetails
.
activityName
}
}
...
...
src/views/store/components/carChannel.vue
View file @
e6bc6b4
...
@@ -341,12 +341,14 @@ export default {
...
@@ -341,12 +341,14 @@ export default {
label
:
'产品价值/元'
,
label
:
'产品价值/元'
,
name
:
'productPrice'
,
name
:
'productPrice'
,
type
:
'input'
,
type
:
'input'
,
isDisabled
:
true
,
filter
:
'3'
filter
:
'3'
},
},
{
{
label
:
'活动价/元'
,
label
:
'活动价/元'
,
name
:
'activityPrice'
,
name
:
'activityPrice'
,
type
:
'input'
,
type
:
'input'
,
isDisabled
:
true
,
filter
:
'3'
filter
:
'3'
},
},
...
@@ -456,7 +458,7 @@ export default {
...
@@ -456,7 +458,7 @@ export default {
activityDetails
:
item
.
pageContentItem
,
activityDetails
:
item
.
pageContentItem
,
...
item
,
...
item
,
...
item
.
mediaList
[
0
],
...
item
.
mediaList
[
0
],
mediaCoverArr
:
[
item
.
mediaList
[
0
].
mediaCover
],
mediaCoverArr
:
item
.
mediaList
[
0
].
mediaCover
&&
[
item
.
mediaList
[
0
].
mediaCover
],
publicPraise
:
publicPraiseArr
publicPraise
:
publicPraiseArr
})
})
})
})
...
@@ -648,7 +650,7 @@ export default {
...
@@ -648,7 +650,7 @@ export default {
selectActivity
(
data
)
{
selectActivity
(
data
)
{
if
(
this
.
currentPath
==
-
1
)
{
if
(
this
.
currentPath
==
-
1
)
{
this
.
editForm
.
activityDetails
=
{
this
.
editForm
.
activityDetails
=
{
data
,
...
data
,
...
data
.
marketingContent
,
...
data
.
marketingContent
,
contentName
:
data
.
marketingName
,
contentName
:
data
.
marketingName
,
pagePathType
:
data
.
marketingContent
.
selectType
==
'goods'
?
2
:
1
pagePathType
:
data
.
marketingContent
.
selectType
==
'goods'
?
2
:
1
...
@@ -665,8 +667,8 @@ export default {
...
@@ -665,8 +667,8 @@ export default {
this
.
editForm
.
activityDetails
.
contentPrice
=
this
.
editForm
.
activityDetails
.
originalPrice
this
.
editForm
.
activityDetails
.
contentPrice
=
this
.
editForm
.
activityDetails
.
originalPrice
}
else
{
}
else
{
this
.
editForm
.
pagePathType
=
1
this
.
editForm
.
pagePathType
=
1
this
.
editForm
.
productPrice
=
this
.
editForm
.
activityDetails
.
crowdFundingPrice
this
.
editForm
.
productPrice
=
Number
(
this
.
editForm
.
activityDetails
.
crowdFundingPrice
)
/
100
this
.
editForm
.
activityPrice
=
this
.
editForm
.
activityDetails
.
activityPrice
this
.
editForm
.
activityPrice
=
Number
(
this
.
editForm
.
activityDetails
.
activityPrice
)
/
100
this
.
editForm
.
activityDetails
.
pagePathType
=
1
this
.
editForm
.
activityDetails
.
pagePathType
=
1
this
.
editForm
.
activityDetails
.
contentName
=
this
.
editForm
.
activityDetails
.
activityName
this
.
editForm
.
activityDetails
.
contentName
=
this
.
editForm
.
activityDetails
.
activityName
}
}
...
@@ -740,6 +742,11 @@ export default {
...
@@ -740,6 +742,11 @@ export default {
]
]
if
(
this
.
editForm
.
topicStyle
!=
3
)
{
if
(
this
.
editForm
.
topicStyle
!=
3
)
{
this
.
editForm
.
mediaType
=
1
this
.
editForm
.
mediaType
=
1
}
else
{
this
.
editForm
.
mediaUrl
=
''
this
.
editForm
.
mediaType
=
2
}
this
.
editForm
.
productUrl
=
''
this
.
editForm
.
mediaUrlArr
=
[]
this
.
editForm
.
mediaUrlArr
=
[]
this
.
editForm
.
mediaName
=
''
this
.
editForm
.
mediaName
=
''
this
.
editForm
.
mediaCover
=
''
this
.
editForm
.
mediaCover
=
''
...
@@ -748,9 +755,6 @@ export default {
...
@@ -748,9 +755,6 @@ export default {
this
.
editForm
.
activityDetails
=
''
this
.
editForm
.
activityDetails
=
''
this
.
editForm
.
activityPrice
=
''
this
.
editForm
.
activityPrice
=
''
this
.
editForm
.
pagePathContent
=
''
this
.
editForm
.
pagePathContent
=
''
}
else
{
this
.
editForm
.
mediaType
=
2
}
this
.
initParams
()
this
.
initParams
()
},
},
...
@@ -763,10 +767,12 @@ export default {
...
@@ -763,10 +767,12 @@ export default {
})
})
},
},
changeChannelImg
(
val
)
{
changeChannelImg
(
val
)
{
console
.
log
(
val
)
if
(
val
.
index
!=
-
1
)
{
if
(
val
.
index
!=
-
1
)
{
this
.
editForm
.
contentList
[
val
.
index
][
val
.
key
]
=
val
.
arr
[
0
]
this
.
editForm
.
contentList
[
val
.
index
][
val
.
key
]
=
val
.
arr
[
0
]
}
else
{
}
else
{
this
.
editForm
[
val
.
key
]
=
val
.
arr
[
0
]
this
.
editForm
[
val
.
key
]
=
val
.
arr
[
0
]
console
.
log
(
this
.
editForm
[
val
.
key
],
'9999999'
)
}
}
if
(
this
.
editForm
.
topicStyle
==
3
||
val
.
index
==
-
1
)
{
if
(
this
.
editForm
.
topicStyle
==
3
||
val
.
index
==
-
1
)
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
val
.
key
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
val
.
key
)
...
...
src/views/store/components/certificate.vue
View file @
e6bc6b4
...
@@ -198,7 +198,8 @@ export default {
...
@@ -198,7 +198,8 @@ export default {
})
})
let
params
=
{
let
params
=
{
topicId
:
this
.
topicId
,
topicId
:
this
.
topicId
,
couponIds
couponIds
,
couponNames
:
this
.
tableData
[
0
].
couponName
}
}
console
.
log
(
this
.
tableData
)
console
.
log
(
this
.
tableData
)
this
.
$apis
.
store
.
configCoupons
(
params
).
then
(
res
=>
{
this
.
$apis
.
store
.
configCoupons
(
params
).
then
(
res
=>
{
...
...
src/views/store/edit.vue
View file @
e6bc6b4
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.contentType == 1"
@
click=
"handleConfig(scope.scope)"
>
{{ scope.scope.status == 0 ? '待配置' : '编辑' }}
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.contentType == 1"
@
click=
"handleConfig(scope.scope)"
>
{{ scope.scope.status == 0 ? '待配置' : '编辑' }}
</el-button>
<
template
v-else
>
<
template
v-else
>
<el-button
type=
"text"
v-if=
"scope.scope.
status == 1
"
@
click=
"handleTop(scope.scope)"
>
置顶
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.
topStatus == 0
"
@
click=
"handleTop(scope.scope)"
>
置顶
</el-button>
<el-button
type=
"text"
@
click=
"handleAddContent(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleAddContent(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 1"
@
click=
"handleOut(scope.scope, '下架')"
>
下架
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 1"
@
click=
"handleOut(scope.scope, '下架')"
>
下架
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 2"
@
click=
"handleOut(scope.scope, '上架')"
>
上架
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 2"
@
click=
"handleOut(scope.scope, '上架')"
>
上架
</el-button>
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
{
{
label
:
'操作'
,
label
:
'操作'
,
addHtml
:
'auth-button'
,
addHtml
:
'auth-button'
,
width
:
2
0
0
,
width
:
2
2
0
,
fixed
:
'right'
fixed
:
'right'
}
}
],
],
...
@@ -221,10 +221,16 @@ export default {
...
@@ -221,10 +221,16 @@ export default {
this
.
getconfigMerchant
()
this
.
getconfigMerchant
()
},
},
mounted
()
{},
mounted
()
{},
computed
:
{
...
mapState
({
channelType
:
state
=>
state
.
channel
.
channelType
})
},
methods
:
{
methods
:
{
...
mapMutations
({
...
mapMutations
({
SET_MERCHANT_ID
:
'channel/SET_MERCHANT_ID'
,
SET_MERCHANT_ID
:
'channel/SET_MERCHANT_ID'
,
SET_CHANNEL_STYLE
:
'channel/SET_CHANNEL_STYLE'
SET_CHANNEL_STYLE
:
'channel/SET_CHANNEL_STYLE'
,
SET_CHANNEL_TYPE
:
'channel/SET_CHANNEL_TYPE'
}),
}),
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
))
...
@@ -278,14 +284,17 @@ export default {
...
@@ -278,14 +284,17 @@ export default {
merchantChannelId
:
item
.
id
merchantChannelId
:
item
.
id
})
})
})
})
console
.
log
(
res
)
this
.
SET_MERCHANT_ID
({
id
:
this
.
merchantId
})
this
.
SET_MERCHANT_ID
({
id
:
this
.
merchantId
})
this
.
SET_CHANNEL_STYLE
({
channelStyle
:
res
[
0
].
channelStyle
})
this
.
SET_CHANNEL_STYLE
({
channelStyle
:
res
[
0
].
channelStyle
})
!
this
.
channelType
&&
this
.
SET_CHANNEL_TYPE
({
channelType
:
res
[
0
].
channelType
})
this
.
activeName
=
res
[
0
].
channelType
this
.
activeName
=
res
[
0
].
channelType
this
.
merchantChannelId
=
res
[
0
].
id
this
.
merchantChannelId
=
res
[
0
].
id
this
.
tabPaneText
=
res
[
0
].
channelName
this
.
tabPaneText
=
res
[
0
].
channelName
this
.
isFlag
=
true
this
.
isFlag
=
true
this
.
initParams
()
if
(
this
.
channelType
)
{
this
.
activeName
=
this
.
channelType
this
.
handleClick
()
}
})
})
},
},
//新增编辑内容
//新增编辑内容
...
@@ -301,11 +310,14 @@ export default {
...
@@ -301,11 +310,14 @@ export default {
this
.
$router
.
push
(
`/store/content?topicId=
${
val
.
topicId
}
&channelType=-1`
)
this
.
$router
.
push
(
`/store/content?topicId=
${
val
.
topicId
}
&channelType=-1`
)
},
},
handleClick
()
{
handleClick
()
{
this
.
SET_CHANNEL_TYPE
({
channelType
:
this
.
activeName
})
this
.
tabPaneList
.
forEach
(
item
=>
{
this
.
tabPaneList
.
forEach
(
item
=>
{
item
.
name
==
this
.
activeName
?
((
this
.
merchantChannelId
=
item
.
merchantChannelId
),
(
this
.
tabPaneText
=
item
.
label
))
:
''
item
.
name
==
this
.
activeName
?
((
this
.
merchantChannelId
=
item
.
merchantChannelId
),
(
this
.
tabPaneText
=
item
.
label
))
:
''
})
})
this
.
initParams
()
this
.
initParams
()
this
.
$nextTick
(()
=>
{
this
.
handleSearch
()
this
.
handleSearch
()
})
},
},
handleAdd
(
scope
)
{
handleAdd
(
scope
)
{
this
.
$router
.
push
(
`/channel/add?merchantChannelId=
${
this
.
merchantChannelId
}
`
)
this
.
$router
.
push
(
`/channel/add?merchantChannelId=
${
this
.
merchantChannelId
}
`
)
...
...
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