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 434399dd
authored
Jul 18, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
2919f79b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
248 additions
and
113 deletions
package-lock.json
package.json
src/mixins/gift.js
src/store/modules/marketing.js
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/MarketingTask.vue
src/views/activityLink/components/Process.vue
src/views/activityLink/components/SelectInsure.vue
src/views/activityLink/editActivity.vue
package-lock.json
View file @
434399d
...
...
@@ -15,6 +15,11 @@
"js-message"
:
"1.0.7"
}
},
"@amap/amap-jsapi-loader"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz"
,
"integrity"
:
"sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz"
,
...
...
@@ -1888,51 +1893,6 @@
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"dev"
:
true
},
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"ssri"
:
{
"version"
:
"8.0.1"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
...
...
@@ -1941,28 +1901,6 @@
"requires"
:
{
"minipass"
:
"^3.1.1"
}
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
}
}
}
},
...
...
@@ -6504,17 +6442,27 @@
}
},
"glsx-components"
:
{
"version"
:
"1.5.
2
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.
2
.tgz"
,
"integrity"
:
"sha512-
5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzK
g=="
,
"version"
:
"1.5.
7
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.
7
.tgz"
,
"integrity"
:
"sha512-
WEWt1Ev7uf8VgILrEr15ZHxOreqWEVEY2WRP5EmZKzYKTVF/7dQU/oI84+Xo4vSmlz7ltblaATyrwm1U1LDnH
g=="
,
"requires"
:
{
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^1.4.9"
,
"vue"
:
"^2.6.11"
,
"vue-amap"
:
"^0.5.10"
,
"vuedraggable"
:
"^2.24.3"
},
"dependencies"
:
{
"axios"
:
{
"version"
:
"0.21.4"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz"
,
"integrity"
:
"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg=="
,
"requires"
:
{
"follow-redirects"
:
"^1.14.0"
}
},
"glsx-common"
:
{
"version"
:
"1.4.9"
,
"resolved"
:
"https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz"
,
...
...
@@ -6524,16 +6472,6 @@
"md5"
:
"^2.3.0"
,
"qs"
:
"^6.10.1"
,
"sha1"
:
"^1.1.1"
},
"dependencies"
:
{
"axios"
:
{
"version"
:
"0.21.4"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz"
,
"integrity"
:
"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg=="
,
"requires"
:
{
"follow-redirects"
:
"^1.14.0"
}
}
}
}
}
...
...
@@ -13050,6 +12988,21 @@
"integrity"
:
"sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA=="
,
"dev"
:
true
},
"uppercamelcase"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/uppercamelcase/-/uppercamelcase-1.1.0.tgz"
,
"integrity"
:
"sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA=="
,
"requires"
:
{
"camelcase"
:
"^1.2.1"
},
"dependencies"
:
{
"camelcase"
:
{
"version"
:
"1.2.1"
,
"resolved"
:
"https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz"
,
"integrity"
:
"sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
}
}
},
"uri-js"
:
{
"version"
:
"4.4.1"
,
"resolved"
:
"https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz"
,
...
...
@@ -13254,6 +13207,14 @@
"csstype"
:
"^3.1.0"
}
},
"vue-amap"
:
{
"version"
:
"0.5.10"
,
"resolved"
:
"https://registry.npmjs.org/vue-amap/-/vue-amap-0.5.10.tgz"
,
"integrity"
:
"sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg=="
,
"requires"
:
{
"uppercamelcase"
:
"^1.1.0"
}
},
"vue-cli-plugin-element"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz"
,
...
...
@@ -13334,6 +13295,75 @@
}
}
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-router"
:
{
"version"
:
"3.6.5"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz"
,
...
...
package.json
View file @
434399d
...
...
@@ -15,7 +15,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^2.0.4"
,
"glsx-components"
:
"^1.
2.5
"
,
"glsx-components"
:
"^1.
5.7
"
,
"vod-js-sdk-v6"
:
"^1.5.0"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/mixins/gift.js
View file @
434399d
...
...
@@ -21,6 +21,8 @@ export default {
listName
:
'list'
,
// 行数据的key
mutiSelectUniqueKey
:
'packageCode'
,
checkSelectKey
:
'packageCode'
,
checkSelectVal
:
''
,
// 多选ref的名称
mutiSelectName
:
'list'
,
tableColumns
:
[
...
...
@@ -42,6 +44,9 @@ export default {
listName
:
'list'
,
// 行数据的key
mutiSelectUniqueKey
:
'packageCode'
,
checkSelectKey
:
'id'
,
checkSelectVal
:
''
,
checkSelectable
:
null
,
// 多选ref的名称
mutiSelectName
:
'list'
,
tableColumns
:
[
...
...
@@ -81,7 +86,7 @@ export default {
goodsTableParams
:
{
listName
:
'list'
,
// 行数据的key
mutiSelectUniqueKey
:
'
packageCode
'
,
mutiSelectUniqueKey
:
'
id
'
,
// 多选ref的名称
mutiSelectName
:
'list'
,
tableColumns
:
[
...
...
src/store/modules/marketing.js
View file @
434399d
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
7 15:39:18
* @LastEditTime: 2023-07-1
8 15:17:25
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -87,12 +87,8 @@ export default {
},
getTemplateInfo
({
state
},
data
)
{
apis
.
marketing
.
calendarDetail
({
id
:
data
}).
then
(
res
=>
{
const
{
title
,
subTitle
,
startTime
,
endTime
,
backgroundImg
,
captionImg
,
codeId
,
couponItemList
=
[],
subTitleStyle
,
titleStyle
}
=
res
||
{}
if
(
couponItemList
&&
couponItemList
.
length
)
couponItemList
.
forEach
(
item
=>
{
item
.
id
=
item
.
couponId
})
state
.
activityInfo
=
Object
.
assign
({},
{
titleStyle
,
subTitleStyle
,
codeId
,
marketingTitle
:
title
,
marketingSubtitle
:
subTitle
,
backgroundImage
:
backgroundImg
,
detailImage
:
captionImg
,
couponItemList
,
activityTime
:
[
startTime
+
' 00:00:00'
,
endTime
+
' 00:00:00'
]
})
const
{
title
,
subTitle
,
startTime
,
endTime
,
backgroundImg
,
captionImg
,
codeId
,
subTitleStyle
,
titleStyle
}
=
res
||
{}
state
.
activityInfo
=
Object
.
assign
({},
{
titleStyle
,
subTitleStyle
,
codeId
,
marketingTitle
:
title
,
marketingSubtitle
:
subTitle
,
backgroundImage
:
backgroundImg
,
detailImage
:
captionImg
,
couponItemList
:
true
,
activityTime
:
[
startTime
+
' 00:00:00'
,
endTime
+
' 00:00:00'
]
})
})
},
//活动模板详情
...
...
src/views/activityLink/components/MarketingGift.vue
View file @
434399d
...
...
@@ -36,6 +36,7 @@
<div
class=
"service-tab"
>
<div
class=
"tab-item"
:class=
"{ active: serviceIndex == item.type }"
v-for=
"(item, index) in serviceTabList"
:key=
"index"
@
click=
"serviceIndex = item.type"
>
{{ item.label }}
</div>
<div
class=
"tab-border"
:style=
"{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"
></div>
<div
class=
"service-tip"
>
(仅支持引用无限库存卷)
</div>
<div
class=
"tab-right"
>
<div
class=
"refresh-btn"
@
click=
"getList"
>
<i
class=
"el-icon-refresh-right"
></i>
...
...
@@ -149,6 +150,9 @@ export default {
activityInfo
:
{
handler
(
val
)
{
const
info
=
this
.
$common
.
utils
.
deepClone
(
val
)
if
(
this
.
routerInfo
.
addOrEdit
==
'add'
)
{
return
}
this
.
init
()
this
.
$nextTick
(()
=>
{
if
(
info
.
serviceMerchantPackageConfigDTOS
)
this
.
selectedCarList
=
info
.
serviceMerchantPackageConfigDTOS
...
...
@@ -194,11 +198,17 @@ export default {
this
.
goodsList
=
[]
this
.
selectedGoodsList
=
[]
this
.
totalPrice
=
0
this
.
editForm
.
activityPrice
=
''
this
.
$refs
[
'carRef'
].
$refs
[
'listMutiTable'
].
clearSelection
()
this
.
$refs
[
'goodsRef'
+
this
.
goodsIndex
][
0
].
$refs
[
'listMutiTable'
].
clearSelection
()
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
].
$refs
[
'listMutiTable'
].
clearSelection
()
},
validGh
()
{
if
(
this
.
activityInfo
.
ghExclusiveFlag
!=
2
)
return
const
carList
=
this
.
carList
.
map
(
item
=>
item
.
packageCode
)
const
serviceList
=
this
.
serviceList
.
map
(
item
=>
item
.
id
)
if
(
this
.
currentIndex
==
1
)
this
.
carTableParams
.
checkSelectVal
=
carList
if
(
this
.
currentIndex
==
3
)
this
.
serviceTableParams
.
checkSelectVal
=
serviceList
},
getGiftList
(
val
)
{
const
{
merchantId
}
=
this
let
params
=
{
...
...
@@ -455,9 +465,9 @@ export default {
})
this
.
calcCarValue
()
})
console
.
log
(
this
.
selectedCarList
)
this
.
carList
=
packageConfigs
this
.
selectedPreExisting
(
this
.
selectedCarList
,
this
.
carList
,
'packageCode'
,
this
.
$refs
[
'carRef'
])
this
.
validGh
()
})
.
finally
(()
=>
{
this
.
loading
=
false
...
...
@@ -527,6 +537,7 @@ export default {
// this.fnCallBack = true
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
].
tableTotal
=
res
.
total
this
.
selectedPreExisting
(
this
.
selectedServiceList
,
this
.
serviceList
,
'id'
,
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
])
this
.
validGh
()
})
.
finally
(()
=>
{
this
.
loading
=
false
...
...
@@ -559,6 +570,9 @@ export default {
this
.
giftVisible
=
false
},
tabClick
(
index
)
{
if
((
index
==
1
||
index
==
3
)
&&
this
.
activityInfo
.
ghExclusiveFlag
==
2
)
{
this
.
$message
.
error
(
'不可以修改用车权益/门店服务'
)
}
this
.
currentIndex
=
index
}
},
...
...
@@ -635,10 +649,16 @@ export default {
background
:
#ffffff
;
transition
:
all
0.5s
;
}
.service-tip
{
position
:
absolute
;
right
:
-160px
;
top
:
3px
;
color
:
#999
;
}
.tab-right
{
display
:
flex
;
position
:
absolute
;
right
:
-
30
vw
;
right
:
-
25
vw
;
top
:
0px
;
.refresh-btn
{
cursor
:
pointer
;
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
434399d
...
...
@@ -4,14 +4,17 @@
<div
class=
"task-item"
v-for=
"item in taskList"
:key=
"item.batchNo"
>
<div
class=
"task-title"
>
<label>
营销任务
{{
taskList
.
length
==
1
?
''
:
item
.
batchNo
}}
</label>
<div
class=
"task-operate"
v-show=
"item.expand"
@
click=
"handleExpand(item)"
>
收起
<i
class=
"el-icon-arrow-up"
></i>
</div>
<div
class=
"task-operate"
v-show=
"!item.expand"
@
click=
"handleExpand(item)"
>
展开
<i
class=
"el-icon-arrow-down"
></i>
</div>
<template
v-if=
"item.excelUrl"
>
<div
class=
"task-operate"
v-show=
"item.expand"
@
click=
"handleExpand(item)"
>
收起
<i
class=
"el-icon-arrow-up"
></i>
</div>
<div
class=
"task-operate"
v-show=
"!item.expand"
@
click=
"handleExpand(item)"
>
展开
<i
class=
"el-icon-arrow-down"
></i>
</div>
</
template
>
</div>
<div
class=
"task-box"
>
<
template
v-if=
"item.isFinish"
>
...
...
@@ -52,7 +55,7 @@
<label>
导入文档:
</label>
<span>
成功导入客户数
</span>
</div>
<div
class=
"task-box-desc"
:style=
"
{ height: item.expand ? 'auto' : '0px' }">
<div
class=
"task-box-desc"
:style=
"
{ height: item.expand ? 'auto' : '0px' }"
v-show="item.excelUrl"
>
<div
class=
"task-box-num"
>
成功导入客户数
</div>
<div
class=
"task-num-item flex-column-center"
>
<label>
分配方式:
</label>
...
...
src/views/activityLink/components/Process.vue
View file @
434399d
...
...
@@ -12,6 +12,24 @@
<div
class=
"case-container-title"
>
预览营销方案
</div>
<phoneView
ref=
"viewForm"
></phoneView>
</div>
<GLDialog
class=
"qr-dialog"
title=
"活动链接"
mode=
"mid"
:hasFooter=
"false"
:before-close=
"handleClose"
:visible
.
sync=
"isQrcodeVisible"
@
onOk=
"handleCancelConfirm"
>
<div
class=
"qrcode-body-link"
>
<div
class=
"flex"
>
<div
class=
"link-item"
v-for=
"(item, index) in linkCode"
:key=
"index"
>
<div
class=
"link-item-l"
>
<div
class=
"link-title"
>
{{
item
.
title
}}
</div>
<div
class=
"link-save"
><el-button
:size=
"size"
type=
"primary"
@
click=
"downloadIamge(linkInfo[item.name])"
>
保存图片
</el-button></div>
</div>
<div
class=
"link-item-r"
><el-image
:src=
"linkInfo[item.name]"
alt=
""
></el-image></div>
</div>
</div>
<div
class=
"link-address-box"
v-for=
"(item, index) in linkValue"
:key=
"index"
>
<div
class=
"link-address-title"
>
{{
item
.
title
}}
</div>
<div
class=
"link-address"
>
{{
linkInfo
[
item
.
name
]
}}
</div>
<div
class=
"link-clone"
><el-button
:size=
"size"
type=
"primary"
@
click=
"cloneText(linkInfo[item.name])"
>
复制链接
</el-button></div>
</div>
</div>
</GLDialog>
</div>
</
template
>
...
...
@@ -30,6 +48,16 @@ export default {
},
data
()
{
return
{
isQrcodeVisible
:
false
,
linkCode
:
[
{
title
:
'活动二维码'
,
name
:
'qrCodeUrl'
},
{
title
:
'注册二维码'
,
name
:
'staffLoginQrCodeUrl'
}
],
linkValue
:
[
{
title
:
'注册链接'
,
name
:
'staffLoginLinkUrl'
},
{
title
:
'活动链接'
,
name
:
'linkUrl'
}
],
linkInfo
:
{},
showPhone
:
false
,
loading
:
false
,
caseList
:
[
...
...
@@ -43,6 +71,7 @@ export default {
process
:
{
handler
(
val
)
{
for
(
let
k
in
val
)
{
console
.
log
(
val
[
k
])
this
.
caseList
[
k
].
isFinish
=
val
[
k
]
?
true
:
false
}
},
...
...
@@ -61,11 +90,26 @@ export default {
immediate
:
true
}
},
beforeDestroy
()
{
this
.
init
()
},
methods
:
{
...
mapMutations
(
'marketing'
,
[
'SET_INIT'
]),
init
()
{
this
.
SET_INIT
(
true
)
},
getDetail
(
id
)
{
this
.
isQrcodeVisible
=
true
this
.
$apis
.
activity
.
getShared
({
id
}).
then
(
res
=>
{
if
(
res
)
{
this
.
linkInfo
=
res
}
})
},
handleClose
()
{
this
.
isQrcodeVisible
=
false
this
.
$router
.
push
(
'/activityLink/index'
)
},
//执行营销方案
async
handleSave
()
{
let
params
=
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
...
...
@@ -105,9 +149,8 @@ export default {
.
then
(
res
=>
{
if
(
res
)
{
this
.
loading
=
false
this
.
init
(
)
this
.
getDetail
(
res
)
this
.
$message
.
success
(
'操作成功'
)
if
(
params
.
id
)
this
.
$router
.
push
(
'/activityLink/index'
)
}
})
.
finally
(()
=>
{
...
...
@@ -139,6 +182,49 @@ export default {
background
:
#ffffff
;
padding-top
:
10px
;
}
.qrcode-body-link
{
.link-address-box
{
background
:
#f8f8f8
;
border-radius
:
2px
;
padding
:
20px
;
position
:
relative
;
margin-top
:
20px
;
.link-address-title
{
font-size
:
14px
;
color
:
#333333
;
margin-bottom
:
10px
;
}
.link-address
{
font-size
:
14px
;
color
:
#999999
;
}
.link-clone
{
position
:
absolute
;
top
:
20px
;
right
:
20px
;
}
}
.flex
{
gap
:
10px
;
.link-item
{
background
:
#f8f8f8
;
border-radius
:
2px
;
padding
:
20px
;
flex
:
1
;
display
:
flex
;
justify-content
:
space-between
;
.link-item-l
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
}
.link-item-r
{
width
:
120px
;
height
:
120px
;
}
}
}
}
.case-step
{
width
:
279px
;
height
:
170px
;
...
...
src/views/activityLink/components/SelectInsure.vue
View file @
434399d
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-07-06 11:45:15
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
7 18:21:24
* @LastEditTime: 2023-07-1
8 16:36:52
* @FilePath: \scrm-micro-link\src\views\activityLink\components\SelectInsure.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -48,15 +48,7 @@ export default {
})
},
handleConfirm
()
{
this
.
$confirm
(
'是否覆盖营销礼包的内容?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$emit
(
'handleSure'
,
this
.
selectObj
)
})
.
catch
(()
=>
{})
this
.
$emit
(
'handleSure'
,
this
.
selectObj
)
},
handleModelClose
()
{
this
.
$emit
(
'handleClose'
)
...
...
src/views/activityLink/editActivity.vue
View file @
434399d
...
...
@@ -2121,6 +2121,9 @@ export default {
})
param
.
couponCreateRequests
=
couponLists
.
concat
(
selectedGoodsList
)
||
[]
const
equityServices
=
this
.
selectedEquityList
.
map
(
i
=>
i
.
packageCode
)
if
(
!
param
.
serviceMerchantPackageConfigDTOS
)
{
delete
param
.
serviceMerchantPackageConfigDTOS
}
param
.
equityServices
=
equityServices
.
join
(
','
)
delete
param
.
couponList
// 标杆门店总产值/元(已结束战报)
...
...
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