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 7c8b39ba
authored
Jul 13, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
fcf3168a
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
137 additions
and
87 deletions
src/api/modules/marketing.js
src/common/constant.js
src/main.js
src/mixins/draw.js
src/store/modules/marketing.js
src/views/activityLink/components/MarketingContent.vue
src/views/activityLink/components/MarketingTask.vue
src/views/activityLink/components/PhoneView.vue
src/views/activityLink/components/Process.vue
src/views/activityLink/components/Scene.vue
src/views/activityLink/components/model/model_1/goods/index.vue
src/views/activityLink/components/model/model_2/goods/index.vue
src/views/activityLink/components/model/model_3/goods/index.vue
src/views/activityLink/components/model/model_4/goods/index.vue
src/api/modules/marketing.js
View file @
7c8b39b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 16:16:03
* @Date: 2023-06-29 16:16:03
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
2 10:17:48
* @LastEditTime: 2023-07-1
3 20:52:04
* @FilePath: \scrm-micro-link\src\api\modules\marketing.js
* @FilePath: \scrm-micro-link\src\api\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
*/
*/
...
@@ -126,9 +126,9 @@ const findMerchantDetailByMerchantNo = params => {
...
@@ -126,9 +126,9 @@ const findMerchantDetailByMerchantNo = params => {
})
})
}
}
const
registerSso
=
params
=>
{
const
registerSso
=
params
=>
{
params
.
method
=
'scrm.api.
busassistant.merchantCustomer.inviteCode
'
params
.
method
=
'scrm.api.
shopmall.staff.bulge.register
'
return
http
({
return
http
({
url
:
'rop-scrm-
busassistant
/router'
,
url
:
'rop-scrm-
shopmall
/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
...
...
src/common/constant.js
View file @
7c8b39b
...
@@ -307,4 +307,6 @@ function isShowBtn(value) {
...
@@ -307,4 +307,6 @@ function isShowBtn(value) {
}
}
return
isShowStatus
return
isShowStatus
}
}
export
{
equityLevel
,
isShowBtn
,
subscribe
,
giftPackage
,
limitPrice
,
getExplorer
,
exportFn
,
aToExport
,
downloadIamge
,
businessType
,
orderStatus
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
statusList
,
serviceStatusList
,
memberTypeList
,
stateList
,
orderTypesList
,
orderStatusList
,
setMinHeight
}
const
RENEWAL
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
]
const
FESTIVAL
=
[
9
,
10
]
export
{
RENEWAL
,
FESTIVAL
,
equityLevel
,
isShowBtn
,
subscribe
,
giftPackage
,
limitPrice
,
getExplorer
,
exportFn
,
aToExport
,
downloadIamge
,
businessType
,
orderStatus
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
statusList
,
serviceStatusList
,
memberTypeList
,
stateList
,
orderTypesList
,
orderStatusList
,
setMinHeight
}
src/main.js
View file @
7c8b39b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
0 16:13:58
* @LastEditTime: 2023-07-1
3 17:50:52
* @FilePath: \scrm\scrm-sub-blog\src\main.js
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
...
@@ -19,6 +19,7 @@ Vue.prototype.$apis = apis
...
@@ -19,6 +19,7 @@ Vue.prototype.$apis = apis
Vue
.
prototype
.
size
=
'small'
Vue
.
prototype
.
size
=
'small'
Vue
.
prototype
.
defaultLabelWidth
=
'154px'
Vue
.
prototype
.
defaultLabelWidth
=
'154px'
Vue
.
prototype
.
staticImgUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/'
Vue
.
prototype
.
staticImgUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/'
Vue
.
prototype
.
$vip
=
'https://img01.glsx.com.cn/weapp/resource/miniprogram/expandedGold/vip.png'
try
{
try
{
const
loginpath
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'SCRM_BASE_SESSION'
))?.
loginpath
const
loginpath
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'SCRM_BASE_SESSION'
))?.
loginpath
if
(
loginpath
===
'/oss'
)
Vue
.
prototype
.
loginpath
=
true
if
(
loginpath
===
'/oss'
)
Vue
.
prototype
.
loginpath
=
true
...
...
src/mixins/draw.js
View file @
7c8b39b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-19 13:46:20
* @Date: 2023-05-19 13:46:20
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
0 20:44:37
* @LastEditTime: 2023-07-1
3 20:14:15
* @FilePath: \scrm-micro-home\src\mixins\gpt.js
* @FilePath: \scrm-micro-home\src\mixins\gpt.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
*/
*/
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
})
})
},
},
//主图、内容图、logo合并图片
//主图、内容图、logo合并图片
async
createBig
(
info
,
logoInfo
)
{
async
createBig
(
info
,
logoInfo
,
titleStyle
,
subTitleStyle
)
{
console
.
log
(
info
)
console
.
log
(
info
)
this
.
loading
=
true
this
.
loading
=
true
const
{
backgroundImage
,
detailImage
,
merchantLog
,
marketingTitle
,
marketingSubtitle
}
=
info
const
{
backgroundImage
,
detailImage
,
merchantLog
,
marketingTitle
,
marketingSubtitle
}
=
info
...
@@ -61,18 +61,8 @@ export default {
...
@@ -61,18 +61,8 @@ export default {
].
filter
(
item
=>
item
.
url
)
].
filter
(
item
=>
item
.
url
)
let
textList
=
[],
let
textList
=
[],
title
=
{
title
=
{
titleStyle
:
{
titleStyle
,
x
:
82
,
subTitleStyle
y
:
224
,
fontSize
:
52
,
color
:
'#AD604C'
},
subTitleStyle
:
{
x
:
66
,
y
:
300
,
fontSize
:
24
,
color
:
'#AD604C'
}
}
}
if
(
title
)
{
if
(
title
)
{
marketingTitle
.
split
(
' '
).
forEach
((
item
,
index
)
=>
{
marketingTitle
.
split
(
' '
).
forEach
((
item
,
index
)
=>
{
...
...
src/store/modules/marketing.js
View file @
7c8b39b
...
@@ -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-13 1
5:37:03
* @LastEditTime: 2023-07-13 1
9:33:38
* @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
*/
*/
...
@@ -91,23 +91,12 @@ export default {
...
@@ -91,23 +91,12 @@ export default {
},
},
getTemplateInfo
({
state
},
data
)
{
getTemplateInfo
({
state
},
data
)
{
apis
.
marketing
.
calendarDetail
({
id
:
data
}).
then
(
res
=>
{
apis
.
marketing
.
calendarDetail
({
id
:
data
}).
then
(
res
=>
{
const
{
title
,
subTitle
,
startTime
,
endTime
,
backgroundImg
,
captionImg
,
codeId
,
couponItemList
=
[]
}
=
res
||
{}
const
{
title
,
subTitle
,
startTime
,
endTime
,
backgroundImg
,
captionImg
,
codeId
,
couponItemList
=
[]
,
subTitleStyle
,
titleStyle
}
=
res
||
{}
if
(
couponItemList
&&
couponItemList
.
length
)
if
(
couponItemList
&&
couponItemList
.
length
)
couponItemList
.
forEach
(
item
=>
{
couponItemList
.
forEach
(
item
=>
{
item
.
id
=
item
.
couponId
item
.
id
=
item
.
couponId
})
})
state
.
activityInfo
=
Object
.
assign
(
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'
]
})
{},
{
codeId
,
marketingTitle
:
title
,
marketingSubtitle
:
subTitle
,
backgroundImage
:
backgroundImg
,
detailImage
:
captionImg
,
couponItemList
,
activityTime
:
[
startTime
+
' 00:00:00'
,
endTime
+
' 00:00:00'
]
}
)
})
})
},
},
//活动模板详情
//活动模板详情
...
...
src/views/activityLink/components/MarketingContent.vue
View file @
7c8b39b
...
@@ -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
16:29:17
* @LastEditTime: 2023-07-13
20:49:42
* @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
-->
-->
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
import
selectInsure
from
'./SelectInsure.vue'
import
selectInsure
from
'./SelectInsure.vue'
import
getUploadImgColor
from
'@/utils/color'
import
getUploadImgColor
from
'@/utils/color'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
RENEWAL
,
FESTIVAL
}
from
'@/common/constant'
export
default
{
export
default
{
components
:
{
components
:
{
selectInsure
selectInsure
...
@@ -229,13 +230,24 @@ export default {
...
@@ -229,13 +230,24 @@ export default {
},
},
'editForm.backgroundImage'
(
val
)
{
'editForm.backgroundImage'
(
val
)
{
getUploadImgColor
(
val
,
color
=>
{
if
(
this
.
editForm
.
codeId
&&
RENEWAL
.
includes
(
this
.
editForm
.
codeId
))
this
.
editForm
.
mainColor
=
color
getUploadImgColor
(
val
,
color
=>
{
})
this
.
editForm
.
mainColor
=
color
})
},
'editForm.detailImage'
:
{
handler
(
val
)
{
console
.
log
(
this
.
editForm
.
codeId
,
FESTIVAL
.
includes
(
this
.
editForm
.
codeId
))
if
(
this
.
editForm
.
codeId
&&
FESTIVAL
.
includes
(
this
.
editForm
.
codeId
))
getUploadImgColor
(
val
,
color
=>
{
this
.
editForm
.
mainColor
=
color
})
},
immediate
:
true
},
},
activityInfo
:
{
activityInfo
:
{
handler
(
info
)
{
handler
(
val
)
{
cons
ole
.
log
(
Object
.
keys
(
info
),
9
)
cons
t
info
=
this
.
$common
.
utils
.
deepClone
(
val
)
if
(
Object
.
keys
(
info
).
length
==
0
)
{
if
(
Object
.
keys
(
info
).
length
==
0
)
{
return
(
this
.
editForm
=
{
return
(
this
.
editForm
=
{
marketingTitle
:
''
,
marketingTitle
:
''
,
...
@@ -253,12 +265,12 @@ export default {
...
@@ -253,12 +265,12 @@ export default {
}
else
{
}
else
{
this
.
editRule
.
detailImage
[
0
].
required
=
false
this
.
editRule
.
detailImage
[
0
].
required
=
false
}
}
if
(
info
.
title
)
{
if
(
info
.
codeId
)
{
this
.
setDetail
(
info
)
this
.
setDetail
(
info
)
return
return
}
}
this
.
editForm
=
Object
.
assign
({
merchantLog
:
''
},
this
.
$common
.
utils
.
deepClone
(
info
)
)
this
.
editForm
=
Object
.
assign
({
merchantLog
:
''
},
info
)
if
(
info
.
activityName
)
{
if
(
info
.
activityName
)
{
this
.
$set
(
this
.
editForm
,
'marketingTitle'
,
info
.
activityName
)
this
.
$set
(
this
.
editForm
,
'marketingTitle'
,
info
.
activityName
)
}
}
...
@@ -285,23 +297,21 @@ export default {
...
@@ -285,23 +297,21 @@ export default {
methods
:
{
methods
:
{
...
mapActions
(
'marketing'
,
[
'setProcess'
,
'getTemplateInfo'
]),
...
mapActions
(
'marketing'
,
[
'setProcess'
,
'getTemplateInfo'
]),
setDetail
(
info
)
{
setDetail
(
info
)
{
this
.
editForm
=
{}
const
{
title
,
subTitle
,
startTime
,
endTime
,
backgroundImg
,
captionImg
,
titleStyle
,
subTitleStyle
,
codeId
}
=
info
const
{
title
,
subTitle
,
startTime
,
endTime
,
backgroundImg
,
captionImg
,
titleStyle
,
subTitleStyle
,
codeId
,
detailImage
=
''
,
merchantLog
=
''
}
=
this
.
$common
.
utils
.
deepClone
(
info
||
{})
this
.
editForm
=
{
this
.
$nextTick
(()
=>
{
codeId
,
this
.
editForm
=
{
marketingTitle
:
title
,
codeId
,
marketingSubtitle
:
subTitle
,
marketingTitle
:
title
,
backgroundImage
:
backgroundImg
,
marketingSubtitle
:
subTitle
,
detailImage
:
captionImg
,
backgroundImage
:
backgroundImg
,
titleStyle
:
titleStyle
,
detailImage
:
captionImg
,
subTitleStyle
:
subTitleStyle
,
titleStyle
:
titleStyle
,
activityTime
:
[
startTime
+
' 00:00:00'
,
endTime
+
' 00:00:00'
],
subTitleStyle
:
subTitleStyle
,
merchantname
:
this
.
merchantInfo
.
merchantName
,
activityTime
:
[
startTime
+
' 00:00:00'
,
endTime
+
' 00:00:00'
],
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
,
merchantname
:
this
.
merchantInfo
.
merchantName
,
merchantLog
:
''
,
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
,
mainColor
:
''
merchantLog
}
}
})
},
},
handleSure
(
val
)
{
handleSure
(
val
)
{
this
.
modelVisible
=
false
this
.
modelVisible
=
false
...
@@ -309,6 +319,7 @@ export default {
...
@@ -309,6 +319,7 @@ export default {
},
},
getCouponInfoParams
()
{
getCouponInfoParams
()
{
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
console
.
log
(
param
)
const
d
=
param
.
activityTime
const
d
=
param
.
activityTime
if
(
d
&&
d
.
length
>
0
)
{
if
(
d
&&
d
.
length
>
0
)
{
param
.
starttime
=
d
[
0
]
param
.
starttime
=
d
[
0
]
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
7c8b39b
...
@@ -261,7 +261,7 @@ export default {
...
@@ -261,7 +261,7 @@ export default {
//邀请人员注册
//邀请人员注册
showRegister
()
{
showRegister
()
{
this
.
isQrcodeVisible
=
true
this
.
isQrcodeVisible
=
true
this
.
$apis
.
marketing
.
registerSso
({
staffLabel
:
1
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
}).
then
(
res
=>
{
this
.
$apis
.
marketing
.
registerSso
({
merchantId
:
this
.
$globalState
.
session
.
merchantId
}).
then
(
res
=>
{
this
.
invite
=
res
this
.
invite
=
res
})
})
},
},
...
...
src/views/activityLink/components/PhoneView.vue
View file @
7c8b39b
...
@@ -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
15:03:11
* @LastEditTime: 2023-07-13
20:11:55
* @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
-->
-->
...
@@ -126,27 +126,27 @@
...
@@ -126,27 +126,27 @@
</div>
</div>
</
template
>
</
template
>
</div>
</div>
<div
class=
"review-package"
:style=
"{ background:
activityInfo
.mainColor }"
>
<div
class=
"review-package"
:style=
"{ background:
detail
.mainColor }"
>
<div
class=
"review-equity"
v-if=
"detail
.selectedEquityList && detail.selectedEquity
List.length"
>
<div
class=
"review-equity"
v-if=
"detail
Coupon.selectedCarList && detailCoupon.selectedCar
List.length"
>
<div
class=
"service-item"
v-for=
"(item, index) in detail
.selectedEquity
List"
:key=
"index"
>
<div
class=
"service-item"
v-for=
"(item, index) in detail
Coupon.selectedCar
List"
:key=
"index"
>
<div
class=
"service-time"
>
1年
</div>
<div
class=
"service-time"
>
1年
</div>
<div
class=
"service-title"
>
{{ item.packageName }}
</div>
<div
class=
"service-title"
>
{{ item.packageName }}
</div>
</div>
</div>
</div>
</div>
<div
class=
"review-goods"
v-if=
"detail
.selectedGoodsList && detail
.selectedGoodsList.length"
>
<div
class=
"review-goods"
v-if=
"detail
Coupon.selectedGoodsList && detailCoupon
.selectedGoodsList.length"
>
<div
class=
"goods-item"
v-for=
"(item, index) in detail.selectedGoodsList"
:key=
"index"
>
<div
class=
"goods-item"
v-for=
"(item, index) in detail
Coupon
.selectedGoodsList"
:key=
"index"
>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"title"
>
{{ item.brandName }}{{ item.goodsName }}
</div>
<div
class=
"title"
>
{{ item.brandName }}{{ item.goodsName }}
</div>
<div
class=
"content"
>
x1 抵扣券
</div>
<div
class=
"content"
>
x1 抵扣券
</div>
</div>
</div>
<div
class=
"service-price"
>
<div
class=
"service-price"
>
{{
item.couponAnticipatedCost || item.denomination
}}
{{
formatPrice(item.couponAnticipatedCost || item.denomination)
}}
<span>
元
</span>
<span>
元
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"review-service"
v-if=
"detail
.couponList && detail.coupon
List.length"
>
<div
class=
"review-service"
v-if=
"detail
Coupon.selectedServiceList && detailCoupon.selectedService
List.length"
>
<div
class=
"coupon-item"
v-for=
"(item, index) in detail
.coupon
List"
:key=
"index"
>
<div
class=
"coupon-item"
v-for=
"(item, index) in detail
Coupon.selectedService
List"
:key=
"index"
>
<div
class=
"service-time"
>
{{ discount[item.discountType] }}
</div>
<div
class=
"service-time"
>
{{ discount[item.discountType] }}
</div>
<div
class=
"service-title"
>
<div
class=
"service-title"
>
<span>
{{ item.couponName }}
</span>
<span>
{{ item.couponName }}
</span>
...
@@ -257,6 +257,7 @@ export default {
...
@@ -257,6 +257,7 @@ export default {
},
},
logoInfo
:
{},
logoInfo
:
{},
textList
:
[],
textList
:
[],
detailCoupon
:
{},
discount
:
{
discount
:
{
2
:
'折扣券'
,
2
:
'折扣券'
,
3
:
'代金券'
,
3
:
'代金券'
,
...
@@ -296,6 +297,7 @@ export default {
...
@@ -296,6 +297,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
!
this
.
activityInfo
.
id
)
return
this
.
detail
=
this
.
activityInfo
this
.
detail
=
this
.
activityInfo
this
.
detailCoupon
=
this
.
detail
this
.
detailCoupon
=
this
.
detail
this
.
isFestival
=
false
this
.
isFestival
=
false
...
@@ -323,6 +325,7 @@ export default {
...
@@ -323,6 +325,7 @@ export default {
handler
(
val
)
{
handler
(
val
)
{
this
.
detail
=
{
...
this
.
detail
,
...
val
[
2
]
}
this
.
detail
=
{
...
this
.
detail
,
...
val
[
2
]
}
this
.
detailCoupon
=
this
.
$common
.
utils
.
deepClone
(
this
.
packageList
)
this
.
detailCoupon
=
this
.
$common
.
utils
.
deepClone
(
this
.
packageList
)
console
.
log
(
this
.
detailCoupon
)
this
.
$nextTick
(
async
()
=>
{
this
.
$nextTick
(
async
()
=>
{
this
.
isFestival
=
false
this
.
isFestival
=
false
this
.
isRenewal
=
false
this
.
isRenewal
=
false
...
@@ -335,12 +338,27 @@ export default {
...
@@ -335,12 +338,27 @@ export default {
const
style1
=
JSON
.
parse
(
this
.
detail
.
titleStyle
)
const
style1
=
JSON
.
parse
(
this
.
detail
.
titleStyle
)
const
style2
=
JSON
.
parse
(
this
.
detail
.
subTitleStyle
)
const
style2
=
JSON
.
parse
(
this
.
detail
.
subTitleStyle
)
Object
.
assign
(
this
.
draggableList
[
0
],
{
content
:
this
.
detail
.
marketingTitle
,
...
style1
,
color
:
style1
.
style
.
color
,
font
:
style1
.
font
})
Object
.
assign
(
this
.
draggableList
[
0
],
{
content
:
this
.
detail
.
marketingTitle
,
...
style1
,
color
:
style1
.
style
.
color
,
font
:
style1
.
font
})
Object
.
assign
(
this
.
draggableList
[
1
],
{
content
:
this
.
detail
.
marketingSubtitle
,
...
style
1
,
color
:
style2
.
style
.
color
,
font
:
style2
.
font
})
Object
.
assign
(
this
.
draggableList
[
1
],
{
content
:
this
.
detail
.
marketingSubtitle
,
...
style
2
,
color
:
style2
.
style
.
color
,
font
:
style2
.
font
})
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
}
}
}
}
if
(
FESTIVAL
.
includes
(
this
.
detail
.
codeId
))
{
if
(
FESTIVAL
.
includes
(
this
.
detail
.
codeId
))
{
const
style1
=
JSON
.
parse
(
this
.
detail
.
titleStyle
)
const
style2
=
JSON
.
parse
(
this
.
detail
.
subTitleStyle
)
this
.
textList
=
[]
this
.
detail
.
marketingTitle
.
split
(
' '
).
forEach
((
item
,
index
)
=>
{
this
.
textList
.
push
({
...
style1
,
text
:
item
})
})
new
Array
(
this
.
detail
.
marketingSubtitle
).
forEach
((
item
,
index
)
=>
{
this
.
textList
.
push
({
...
style2
,
text
:
item
})
})
this
.
isFestival
=
true
this
.
isFestival
=
true
this
.
logoInfo
=
await
this
.
getImgWH
(
this
.
detail
.
merchantLog
)
this
.
logoInfo
=
await
this
.
getImgWH
(
this
.
detail
.
merchantLog
)
}
}
...
@@ -351,6 +369,9 @@ export default {
...
@@ -351,6 +369,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
formatPrice
(
val
)
{
return
(
val
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
},
//获取图片宽度高度
//获取图片宽度高度
getImgH
(
src
)
{
getImgH
(
src
)
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
...
...
src/views/activityLink/components/Process.vue
View file @
7c8b39b
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
const
{
const
{
backgroundHeight
,
backgroundHeight
,
detail
:
{
backgroundImage
},
detail
:
{
backgroundImage
,
titleStyle
,
subTitleStyle
},
draggableList
draggableList
}
=
this
.
$refs
.
viewForm
}
=
this
.
$refs
.
viewForm
let
url
=
backgroundImage
let
url
=
backgroundImage
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
url
=
await
this
.
createMain
(
backgroundHeight
,
backgroundImage
,
draggableList
)
url
=
await
this
.
createMain
(
backgroundHeight
,
backgroundImage
,
draggableList
)
}
}
if
(
FESTIVAL
.
includes
(
params
.
codeId
))
{
if
(
FESTIVAL
.
includes
(
params
.
codeId
))
{
url
=
await
this
.
createBig
(
this
.
$refs
.
viewForm
.
detail
,
this
.
logoInfo
,
draggableList
)
url
=
await
this
.
createBig
(
this
.
$refs
.
viewForm
.
detail
,
this
.
logoInfo
,
JSON
.
parse
(
titleStyle
),
JSON
.
parse
(
subTitleStyle
)
)
}
}
let
origin
=
'createSuperMarketing'
let
origin
=
'createSuperMarketing'
if
(
params
.
id
)
{
if
(
params
.
id
)
{
...
...
src/views/activityLink/components/Scene.vue
View file @
7c8b39b
...
@@ -53,7 +53,7 @@ import { mapActions, mapMutations, mapState } from 'vuex'
...
@@ -53,7 +53,7 @@ import { mapActions, mapMutations, mapState } from 'vuex'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
routeInfo
:
{}
,
addOrEdit
:
this
.
$route
.
query
.
addOrEdit
,
qrCode
:
''
,
qrCode
:
''
,
tabList
:
[
tabList
:
[
{
label
:
'保险'
,
type
:
5
},
{
label
:
'保险'
,
type
:
5
},
...
@@ -65,6 +65,7 @@ export default {
...
@@ -65,6 +65,7 @@ export default {
selectItem
:
{},
selectItem
:
{},
festivalList
:
[],
festivalList
:
[],
currentIndex
:
5
,
currentIndex
:
5
,
isInit
:
true
,
sceneList
:
[
sceneList
:
[
{
{
title
:
'运营陪跑'
,
title
:
'运营陪跑'
,
...
@@ -94,22 +95,31 @@ export default {
...
@@ -94,22 +95,31 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
const
routeInfo
=
this
.
$route
.
query
this
.
calendarPage
()
this
.
calendarPage
()
this
.
EntWechatQrCode
()
this
.
EntWechatQrCode
()
if
(
this
.
$route
.
query
.
addOrEdit
==
'edit'
)
{
if
(
routeInfo
.
addOrEdit
==
'edit'
)
{
this
.
getActivityInfo
(
this
.
$route
.
query
.
id
)
this
.
getActivityInfo
(
routeInfo
.
id
)
this
.
sceneList
[
1
].
content
=
'编辑无法再次导入客群'
this
.
sceneList
[
1
].
content
=
'编辑无法再次导入客群'
}
else
{
}
else
{
this
.
setSubscribe
(
this
.
routeInfo
.
subscribe
?
this
.
routeInfo
.
subscribe
:
this
.
currentIndex
)
this
.
setSubscribe
(
routeInfo
.
subscribe
)
this
.
tabList
.
splice
(
3
,
1
)
this
.
tabList
.
splice
(
3
,
1
)
}
}
},
},
computed
:
{
computed
:
{
...
mapState
(
'marketing'
,
[
'subscribe'
,
'a
ddOrEdit
'
])
...
mapState
(
'marketing'
,
[
'subscribe'
,
'a
ctivityInfo
'
])
},
},
watch
:
{
watch
:
{
subscribe
(
val
)
{
subscribe
(
val
)
{
this
.
currentIndex
=
val
this
.
currentIndex
=
val
},
activityInfo
:
{
handler
(
info
)
{
if
(
Object
.
keys
(
info
).
length
==
0
)
{
this
.
selectItem
=
{}
}
},
deep
:
true
}
}
},
},
methods
:
{
methods
:
{
...
@@ -117,6 +127,8 @@ export default {
...
@@ -117,6 +127,8 @@ export default {
...
mapMutations
(
'marketing'
,
[
'SET_INIT'
,
'SET_STEP'
,
'SET_ACTIVITY_INFO'
]),
...
mapMutations
(
'marketing'
,
[
'SET_INIT'
,
'SET_STEP'
,
'SET_ACTIVITY_INFO'
]),
selectFes
(
item
)
{
selectFes
(
item
)
{
this
.
selectItem
=
item
this
.
selectItem
=
item
this
.
getTemplateInfo
(
this
.
selectItem
.
id
)
this
.
setSubscribe
({
subscribe
:
6
,
keywords
:
this
.
selectItem
.
keywords
})
},
},
handleStep
(
index
)
{
handleStep
(
index
)
{
if
(
this
.
addOrEdit
==
'edit'
&&
index
==
1
)
return
if
(
this
.
addOrEdit
==
'edit'
&&
index
==
1
)
return
...
@@ -133,6 +145,7 @@ export default {
...
@@ -133,6 +145,7 @@ export default {
this
.
setSubscribe
(
index
)
this
.
setSubscribe
(
index
)
this
.
SET_ACTIVITY_INFO
({})
this
.
SET_ACTIVITY_INFO
({})
}
else
{
}
else
{
this
.
selectItem
=
this
.
festivalList
[
0
]
this
.
getTemplateInfo
(
this
.
selectItem
.
id
)
this
.
getTemplateInfo
(
this
.
selectItem
.
id
)
this
.
setSubscribe
({
subscribe
:
6
,
keywords
:
this
.
selectItem
.
keywords
})
this
.
setSubscribe
({
subscribe
:
6
,
keywords
:
this
.
selectItem
.
keywords
})
}
}
...
@@ -145,7 +158,6 @@ export default {
...
@@ -145,7 +158,6 @@ export default {
calendarPage
()
{
calendarPage
()
{
this
.
$apis
.
marketing
.
calendarPage
({
pageSize
:
100
,
pageNum
:
1
}).
then
(
res
=>
{
this
.
$apis
.
marketing
.
calendarPage
({
pageSize
:
100
,
pageNum
:
1
}).
then
(
res
=>
{
this
.
festivalList
=
(
res
.
data
||
[]).
filter
(
item
=>
item
.
marketingType
==
6
)
this
.
festivalList
=
(
res
.
data
||
[]).
filter
(
item
=>
item
.
marketingType
==
6
)
this
.
selectItem
=
this
.
festivalList
[
0
]
})
})
}
}
}
}
...
...
src/views/activityLink/components/model/model_1/goods/index.vue
View file @
7c8b39b
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
<img
class=
"xing "
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_2.png?v=1.0.2"
/>
<img
class=
"xing "
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_2.png?v=1.0.2"
/>
</div>
</div>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-logo"
></div>
<div
class=
"service-logo"
>
<img
:src=
"item.goodsImage || $vip"
alt=
""
/>
</div>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-content"
>
x1 抵扣券
</div>
<div
class=
"service-content"
>
x1 抵扣券
</div>
...
@@ -112,6 +114,10 @@ export default {
...
@@ -112,6 +114,10 @@ export default {
width
:
24px
;
width
:
24px
;
height
:
24px
;
height
:
24px
;
margin-right
:
10px
;
margin-right
:
10px
;
img
{
width
:
24px
;
height
:
24px
;
}
}
}
.service-desc
{
.service-desc
{
...
...
src/views/activityLink/components/model/model_2/goods/index.vue
View file @
7c8b39b
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
<div
class=
"container-panel"
>
<div
class=
"container-panel"
>
<img
class=
"header-panel"
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/delivery.png"
/>
<img
class=
"header-panel"
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/delivery.png"
/>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-logo"
></div>
<div
class=
"service-logo"
>
<img
:src=
"item.goodsImage || $vip"
alt=
""
/>
</div>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-content"
>
x1 抵扣券
</div>
<div
class=
"service-content"
>
x1 抵扣券
</div>
...
@@ -88,6 +90,10 @@ export default {
...
@@ -88,6 +90,10 @@ export default {
width
:
28px
;
width
:
28px
;
height
:
28px
;
height
:
28px
;
margin-right
:
8px
;
margin-right
:
8px
;
img
{
width
:
28px
;
height
:
28px
;
}
}
}
.service-desc
{
.service-desc
{
...
...
src/views/activityLink/components/model/model_3/goods/index.vue
View file @
7c8b39b
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
<div
class=
"service-panel-bg"
></div>
<div
class=
"service-panel-bg"
></div>
<div
class=
"service-panel-box"
>
<div
class=
"service-panel-box"
>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-logo"
></div>
<div
class=
"service-logo"
>
<img
:src=
"item.goodsImage || $vip"
alt=
""
/>
</div>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-content"
>
x1 抵扣券
</div>
<div
class=
"service-content"
>
x1 抵扣券
</div>
...
@@ -82,11 +84,11 @@ export default {
...
@@ -82,11 +84,11 @@ export default {
}
}
.header-panel
{
.header-panel
{
position
:
absolute
;
position
:
absolute
;
width
:
249px
;
width
:
249px
;
height
:
121px
;
height
:
121px
;
top
:
-58px
;
top
:
-58px
;
left
:
-6px
;
left
:
-6px
;
z-index
:
-4
;
z-index
:
-4
;
}
}
&
-bg
{
&
-bg
{
position
:
absolute
;
position
:
absolute
;
...
@@ -123,6 +125,10 @@ export default {
...
@@ -123,6 +125,10 @@ export default {
width
:
25px
;
width
:
25px
;
height
:
25px
;
height
:
25px
;
margin-right
:
6px
;
margin-right
:
6px
;
img
{
width
:
25px
;
height
:
25px
;
}
}
}
.service-desc
{
.service-desc
{
...
...
src/views/activityLink/components/model/model_4/goods/index.vue
View file @
7c8b39b
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
<div
class=
"container-panel"
>
<div
class=
"container-panel"
>
<img
class=
"header-panel"
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/deliver.png"
/>
<img
class=
"header-panel"
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/deliver.png"
/>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-logo"
></div>
<div
class=
"service-logo"
>
<img
:src=
"item.goodsImage || $vip"
alt=
""
/>
</div>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"service-title ellipsis-1"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-title ellipsis-1"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-content"
>
x1 抵扣券
</div>
<div
class=
"service-content"
>
x1 抵扣券
</div>
...
@@ -69,7 +71,7 @@ export default {
...
@@ -69,7 +71,7 @@ export default {
left
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
width
:
160px
;
width
:
160px
;
height
:
36px
;
height
:
36px
;
}
}
.service-item
{
.service-item
{
...
@@ -88,6 +90,10 @@ export default {
...
@@ -88,6 +90,10 @@ export default {
width
:
20px
;
width
:
20px
;
height
:
20px
;
height
:
20px
;
margin-right
:
8px
;
margin-right
:
8px
;
img
{
width
:
20px
;
height
:
20px
;
}
}
}
.service-desc
{
.service-desc
{
...
...
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