Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 fcf3168a
authored
Jul 13, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
ae881105
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
17 deletions
src/store/modules/marketing.js
src/views/activityLink/components/MarketingContent.vue
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/PhoneView.vue
src/store/modules/marketing.js
View file @
fcf3168
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33
* @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
2 11:25:34
* @LastEditTime: 2023-07-1
3 15:37:03
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
...
src/views/activityLink/components/MarketingContent.vue
View file @
fcf3168
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 1
1:09:28
* @LastEditTime: 2023-07-13 1
6:29:17
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -209,7 +209,7 @@ export default {
...
@@ -209,7 +209,7 @@ export default {
deep
:
true
deep
:
true
},
},
subscribe
(
val
)
{
subscribe
(
val
)
{
if
(
val
==
5
)
{
if
(
val
==
5
&&
this
.
$route
.
query
.
addOrEdit
==
'add'
)
{
this
.
editFormData
[
0
].
isHide
=
false
this
.
editFormData
[
0
].
isHide
=
false
}
else
{
}
else
{
this
.
editFormData
[
0
].
isHide
=
true
this
.
editFormData
[
0
].
isHide
=
true
...
@@ -217,6 +217,7 @@ export default {
...
@@ -217,6 +217,7 @@ export default {
},
},
merchantInfo
:
{
merchantInfo
:
{
handler
(
val
)
{
handler
(
val
)
{
if
(
this
.
$route
.
query
.
addOrEdit
==
'edit'
)
return
if
(
!
this
.
editForm
.
merchantname
)
{
if
(
!
this
.
editForm
.
merchantname
)
{
this
.
editForm
.
merchantname
=
val
.
merchantName
this
.
editForm
.
merchantname
=
val
.
merchantName
}
}
...
@@ -234,6 +235,7 @@ export default {
...
@@ -234,6 +235,7 @@ export default {
},
},
activityInfo
:
{
activityInfo
:
{
handler
(
info
)
{
handler
(
info
)
{
console
.
log
(
Object
.
keys
(
info
),
9
)
if
(
Object
.
keys
(
info
).
length
==
0
)
{
if
(
Object
.
keys
(
info
).
length
==
0
)
{
return
(
this
.
editForm
=
{
return
(
this
.
editForm
=
{
marketingTitle
:
''
,
marketingTitle
:
''
,
...
@@ -251,7 +253,7 @@ export default {
...
@@ -251,7 +253,7 @@ export default {
}
else
{
}
else
{
this
.
editRule
.
detailImage
[
0
].
required
=
false
this
.
editRule
.
detailImage
[
0
].
required
=
false
}
}
if
(
info
.
subT
itle
)
{
if
(
info
.
t
itle
)
{
this
.
setDetail
(
info
)
this
.
setDetail
(
info
)
return
return
}
}
...
@@ -283,15 +285,23 @@ export default {
...
@@ -283,15 +285,23 @@ export default {
methods
:
{
methods
:
{
...
mapActions
(
'marketing'
,
[
'setProcess'
,
'getTemplateInfo'
]),
...
mapActions
(
'marketing'
,
[
'setProcess'
,
'getTemplateInfo'
]),
setDetail
(
info
)
{
setDetail
(
info
)
{
const
{
title
,
subTitle
,
startTime
,
endTime
,
backgroundImg
,
captionImg
,
titleStyle
,
subTitleStyle
,
codeId
}
=
this
.
$common
.
utils
.
deepClone
(
info
||
{})
this
.
editForm
=
{}
this
.
editForm
.
codeId
=
codeId
const
{
title
,
subTitle
,
startTime
,
endTime
,
backgroundImg
,
captionImg
,
titleStyle
,
subTitleStyle
,
codeId
,
detailImage
=
''
,
merchantLog
=
''
}
=
this
.
$common
.
utils
.
deepClone
(
info
||
{})
this
.
editForm
.
marketingTitle
=
title
this
.
$nextTick
(()
=>
{
this
.
editForm
.
marketingSubtitle
=
subTitle
this
.
editForm
=
{
this
.
editForm
.
backgroundImage
=
backgroundImg
codeId
,
this
.
editForm
.
detailImage
=
captionImg
marketingTitle
:
title
,
this
.
editForm
.
titleStyle
=
titleStyle
marketingSubtitle
:
subTitle
,
this
.
editForm
.
subTitleStyle
=
subTitleStyle
backgroundImage
:
backgroundImg
,
this
.
editForm
.
activityTime
=
[
startTime
+
' 00:00:00'
,
endTime
+
' 00:00:00'
]
detailImage
:
captionImg
,
titleStyle
:
titleStyle
,
subTitleStyle
:
subTitleStyle
,
activityTime
:
[
startTime
+
' 00:00:00'
,
endTime
+
' 00:00:00'
],
merchantname
:
this
.
merchantInfo
.
merchantName
,
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
,
merchantLog
}
})
},
},
handleSure
(
val
)
{
handleSure
(
val
)
{
this
.
modelVisible
=
false
this
.
modelVisible
=
false
...
...
src/views/activityLink/components/MarketingGift.vue
View file @
fcf3168
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
isInit
:
t
rue
,
isInit
:
t
his
.
$route
.
query
.
addOrEdit
==
'add'
,
giftValue
:
''
,
giftValue
:
''
,
editForm
:
{
editForm
:
{
giftList
:
1
,
giftList
:
1
,
...
@@ -381,7 +381,6 @@ export default {
...
@@ -381,7 +381,6 @@ export default {
},
},
//用车权益
//用车权益
async
getCarList
()
{
async
getCarList
()
{
console
.
log
(
this
.
selectedCarList
)
let
equities
=
{}
let
equities
=
{}
if
(
this
.
isInit
)
{
if
(
this
.
isInit
)
{
let
res
=
await
this
.
$apis
.
giftBag
.
packageDefault
({
merchantId
:
this
.
merchantId
,
activitySubscribe
:
this
.
subscribe
})
let
res
=
await
this
.
$apis
.
giftBag
.
packageDefault
({
merchantId
:
this
.
merchantId
,
activitySubscribe
:
this
.
subscribe
})
...
...
src/views/activityLink/components/PhoneView.vue
View file @
fcf3168
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 1
4:46:57
* @LastEditTime: 2023-07-13 1
5:03:11
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -298,7 +298,6 @@ export default {
...
@@ -298,7 +298,6 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
detail
=
this
.
activityInfo
this
.
detail
=
this
.
activityInfo
this
.
detailCoupon
=
this
.
detail
this
.
detailCoupon
=
this
.
detail
console
.
log
(
this
.
activityInfo
,
888
,
this
.
detail
)
this
.
isFestival
=
false
this
.
isFestival
=
false
this
.
isRenewal
=
false
this
.
isRenewal
=
false
if
(
!
this
.
detail
)
return
if
(
!
this
.
detail
)
return
...
...
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