Commit 60392414 by 杨明

活动

1 parent 7a13d84b
...@@ -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",
......
...@@ -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",
......
...@@ -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
} }
...@@ -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]
}
} }
] ]
}, },
......
...@@ -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) {
......
...@@ -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]
}
} }
] ]
}, },
......
...@@ -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]
}
} }
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!