Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-tools
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 60392414
authored
Jan 16, 2024
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
活动
1 parent
7a13d84b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
118 additions
and
7 deletions
package-lock.json
package.json
src/api/modules/welcomeword.js
src/mixins/word.js
src/views/channel/addCode.vue
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
package-lock.json
View file @
6039241
...
@@ -8804,6 +8804,11 @@
...
@@ -8804,6 +8804,11 @@
"integrity"
:
"sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ=="
,
"integrity"
:
"sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ=="
,
"dev"
:
true
"dev"
:
true
},
},
"number-precision"
:
{
"version"
:
"1.6.0"
,
"resolved"
:
"https://registry.npmjs.org/number-precision/-/number-precision-1.6.0.tgz"
,
"integrity"
:
"sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ=="
},
"oauth-sign"
:
{
"oauth-sign"
:
{
"version"
:
"0.9.0"
,
"version"
:
"0.9.0"
,
"resolved"
:
"https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz"
,
...
@@ -14166,9 +14171,9 @@
...
@@ -14166,9 +14171,9 @@
}
}
},
},
"word-edit"
:
{
"word-edit"
:
{
"version"
:
"1.3.
3
"
,
"version"
:
"1.3.
6
"
,
"resolved"
:
"https://registry.npmjs.org/word-edit/-/word-edit-1.3.
3
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/word-edit/-/word-edit-1.3.
6
.tgz"
,
"integrity"
:
"sha512-
5OEKK9oYDEumFcIMMbIENvBXeTLEeBWN5mTC2mVHxHjBhPOO6CIydFhgWdUXvbFDK42gNDoa+BXVIH67ty322w
=="
,
"integrity"
:
"sha512-
7ZW/27gI21J/QLWQGzHrGgp9SHGc8YgEmSwacdsTJ0x6dwphYQrNuoe2GKVbryr7ZEuKoMu05oa3J/V+RKOsSg
=="
,
"requires"
:
{
"requires"
:
{
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
...
...
package.json
View file @
6039241
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"number-precision"
:
"^1.6.0"
,
"number-precision"
:
"^1.6.0"
,
"vod-js-sdk-v6"
:
"^1.6.2"
,
"vod-js-sdk-v6"
:
"^1.6.2"
,
"wangeditor"
:
"^4.7.15"
,
"wangeditor"
:
"^4.7.15"
,
"word-edit"
:
"^1.3.
3
"
"word-edit"
:
"^1.3.
6
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
...
...
src/api/modules/welcomeword.js
View file @
6039241
...
@@ -190,6 +190,36 @@ const channelPreview = params => {
...
@@ -190,6 +190,36 @@ const channelPreview = params => {
sign
:
true
sign
:
true
})
})
}
}
//红包玩法
const
activityRedEnvelope
=
params
=>
{
params
.
method
=
`marketing.api.activityRedEnvelope.merchant.list`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//攻略
const
strategyList
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.strategy.list`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//群接龙
const
getRelayLotteryPage
=
params
=>
{
params
.
method
=
`marketing.api.activityRedEnvelope.relay.lottery.page`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
getCard
,
getCard
,
merchant
,
merchant
,
...
@@ -209,5 +239,8 @@ export default {
...
@@ -209,5 +239,8 @@ export default {
bulgeActivity
,
bulgeActivity
,
findMerchantListByPage
,
findMerchantListByPage
,
channelPreview
,
channelPreview
,
activityQuestionnaireForm
activityRedEnvelope
,
activityQuestionnaireForm
,
strategyList
,
getRelayLotteryPage
}
}
src/mixins/word.js
View file @
6039241
...
@@ -91,7 +91,7 @@ export default {
...
@@ -91,7 +91,7 @@ export default {
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getActivity
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getActivity
,
params
:
{
params
:
{
// activityStatus: 1,
// activityStatus: 1,
activityStatusList
:
[
1
,
2
],
activityStatusList
:
[
1
,
2
],
currentPage
:
1
currentPage
:
1
}
}
},
},
...
@@ -109,6 +109,24 @@ export default {
...
@@ -109,6 +109,24 @@ export default {
params
:
{
params
:
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
}
},
{
itemName
:
'攻略'
,
itemValue
:
9
,
itemType
:
'strategy'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
strategyList
,
params
:
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
},
{
itemName
:
'群接龙'
,
itemValue
:
10
,
itemType
:
'relayDragon'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getRelayLotteryPage
,
params
:
{
merchantIdList
:
[
this
.
$globalState
.
session
.
merchantId
]
}
}
}
]
]
},
},
...
...
src/views/channel/addCode.vue
View file @
6039241
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<el-switch
v-model=
"autoWelcome"
active-color=
"#5850FF"
inactive-color=
"#999999"
></el-switch>
<el-switch
v-model=
"autoWelcome"
active-color=
"#5850FF"
inactive-color=
"#999999"
></el-switch>
</div>
</div>
<div
class=
"welcome-box"
v-show=
"autoWelcome"
>
<div
class=
"welcome-box"
v-show=
"autoWelcome"
>
<GLEditor
ref=
"welcome"
:form=
"'customer'"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor>
<GLEditor
ref=
"welcome"
:form=
"'customer'"
:btnList=
"btnList"
@
previewWord=
"previewForm"
:maxNum=
"20"
></GLEditor>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -274,6 +274,7 @@ export default {
...
@@ -274,6 +274,7 @@ export default {
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
const
attachmentList
=
previewList
.
map
(
item
=>
{
const
attachmentList
=
previewList
.
map
(
item
=>
{
if
(
item
.
attType
==
1
)
{
if
(
item
.
attType
==
1
)
{
console
.
log
(
item
.
attContent
,
' item.attContent'
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'@昵称'
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'@昵称'
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'@昵称'
,
'[@昵称]'
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'@昵称'
,
'[@昵称]'
)
}
else
if
(
item
.
attType
==
7
)
{
}
else
if
(
item
.
attType
==
7
)
{
...
...
src/views/customerTransform/addCustomer.vue
View file @
6039241
...
@@ -309,6 +309,33 @@ export default {
...
@@ -309,6 +309,33 @@ export default {
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
statuses
:
[
0
,
1
]
statuses
:
[
0
,
1
]
}
}
},
{
itemName
:
'红包玩法'
,
itemValue
:
11
,
itemType
:
'redPaper'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
activityRedEnvelope
,
params
:
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
},
{
itemName
:
'攻略'
,
itemValue
:
9
,
itemType
:
'strategy'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
strategyList
,
params
:
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
},
{
itemName
:
'群接龙'
,
itemValue
:
10
,
itemType
:
'relayDragon'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getRelayLotteryPage
,
params
:
{
merchantIdList
:
[
this
.
$globalState
.
session
.
merchantId
]
}
}
}
]
]
},
},
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
6039241
...
@@ -227,6 +227,33 @@ export default {
...
@@ -227,6 +227,33 @@ export default {
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
statuses
:
[
0
,
1
]
statuses
:
[
0
,
1
]
}
}
},
{
itemName
:
'红包玩法'
,
itemValue
:
11
,
itemType
:
'redPaper'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
activityRedEnvelope
,
params
:
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
},
{
itemName
:
'攻略'
,
itemValue
:
9
,
itemType
:
'strategy'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
strategyList
,
params
:
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
},
{
itemName
:
'群接龙'
,
itemValue
:
10
,
itemType
:
'relayDragon'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getRelayLotteryPage
,
params
:
{
merchantIdList
:
[
this
.
$globalState
.
session
.
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