Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 a5755634
authored
Jan 09, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
f417462a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
127 additions
and
67 deletions
src/assets/css/public.scss
src/components/activity-model/index.vue
src/views/store/components/activity.vue
src/views/store/components/carChannel.vue
src/assets/css/public.scss
View file @
a575563
...
@@ -92,8 +92,8 @@ html {
...
@@ -92,8 +92,8 @@ html {
}
}
}
}
}
}
.goods-box
{
.goods
s
-box
{
width
:
248px
;
width
:
248px
!
important
;
padding
:
16px
;
padding
:
16px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background
:
#f9f9f9
;
background
:
#f9f9f9
;
...
@@ -101,7 +101,15 @@ html {
...
@@ -101,7 +101,15 @@ html {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
10px
;
margin-top
:
10px
;
.goods-img
{
}
.theme-color
{
color
:
#5850ff
;
}
.flex-default
{
display
:
flex
;
}
.goods-img
{
width
:
60px
;
width
:
60px
;
height
:
60px
;
height
:
60px
;
border-radius
:
2px
;
border-radius
:
2px
;
...
@@ -110,24 +118,16 @@ html {
...
@@ -110,24 +118,16 @@ html {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
}
}
.goods-title
{
.goods-title
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#333333
;
color
:
#333333
;
line-height
:
21px
;
line-height
:
21px
;
}
}
.goods-price
{
.goods-price
{
color
:
#999999
;
color
:
#999999
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
line-height
:
17px
;
line-height
:
17px
;
margin-top
:
4px
;
margin-top
:
4px
;
}
}
.theme-color
{
color
:
#5850ff
;
}
}
.flex-default
{
display
:
flex
;
}
src/components/activity-model/index.vue
View file @
a575563
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
</el-tabs>
</el-tabs>
</div>
</div>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
>
<div
class=
"model-item"
:class=
"{ checked: selectItem == item }"
v-for=
"(item, index) in modelList"
:key=
"index"
@
click=
"handleSelectItem(item)"
>
<div
class=
"model-item"
:class=
"{ checked: selectItem == item
, 'goods-box': selectType == 'goods'
}"
v-for=
"(item, index) in modelList"
:key=
"index"
@
click=
"handleSelectItem(item)"
>
<div
class=
"item-icon"
v-if=
"selectItem == item"
><i
class=
"el-icon-check"
></i></div>
<div
class=
"item-icon"
v-if=
"selectItem == item"
><i
class=
"el-icon-check"
></i></div>
<div
class=
"item-icon-b"
v-else
>
<div
class=
"item-icon-b"
v-else
>
<img
src=
"@/assets/channel/gift.png"
alt=
""
v-if=
"selectType
== 'coupon
'"
/>
<img
src=
"@/assets/channel/gift.png"
alt=
""
v-if=
"selectType
!== 'goods
'"
/>
<
img
src=
"@/assets/channel/gift.png"
alt=
""
v-else
/
>
<
!-- <img src="@/assets/channel/gift.png" alt="" v-else /> --
>
</div>
</div>
<
template
v-if=
"selectType == 'card'"
>
<
template
v-if=
"selectType == 'card'"
>
<div
class=
"model-item-title"
:title=
"item.equityName"
>
{{
item
.
equityName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.equityName"
>
{{
item
.
equityName
}}
</div>
...
@@ -66,6 +66,18 @@
...
@@ -66,6 +66,18 @@
<div
class=
"model-item-content"
>
开始时间:
{{
item
.
startTime
}}
</div>
<div
class=
"model-item-content"
>
开始时间:
{{
item
.
startTime
}}
</div>
<div
class=
"model-item-content"
>
结束时间:
{{
item
.
endTime
}}
</div>
<div
class=
"model-item-content"
>
结束时间:
{{
item
.
endTime
}}
</div>
</
template
>
</
template
>
<
template
v-else-if=
"selectType == 'goods'"
>
<div
class=
"goods-img"
>
<img
:src=
"item.goodsImage"
/>
</div>
<div>
<div
class=
"goods-title"
>
{{
item
.
goodsName
}}
</div>
<div
class=
"goods-price"
>
价格/元:
<span
class=
"theme-color"
>
99.00
</span>
</div>
</div>
</
template
>
<
template
v-else
>
<
template
v-else
>
<div
class=
"model-item-title"
:title=
"item.couponName"
>
{{
item
.
equityName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.couponName"
>
{{
item
.
equityName
}}
</div>
<div
class=
"model-item-content"
>
获取方式:需先购买无忧服务套餐
</div>
<div
class=
"model-item-content"
>
获取方式:需先购买无忧服务套餐
</div>
...
@@ -95,7 +107,7 @@
...
@@ -95,7 +107,7 @@
</template>
</template>
<
script
>
<
script
>
const
openUrl
=
function
(
url
)
{
const
openUrl
=
function
(
url
)
{
const
link
=
document
.
createElement
(
'a'
)
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
href
=
url
link
.
target
=
'_blank'
link
.
target
=
'_blank'
...
@@ -123,7 +135,7 @@ export default {
...
@@ -123,7 +135,7 @@ export default {
props
:
{
props
:
{
activityList
:
{
activityList
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
}
}
},
},
computed
:
{
computed
:
{
...
@@ -133,6 +145,7 @@ export default {
...
@@ -133,6 +145,7 @@ export default {
},
},
methods
:
{
methods
:
{
handleSelectItem
(
item
)
{
handleSelectItem
(
item
)
{
console
.
log
(
item
,
'item'
)
this
.
selectItem
=
item
this
.
selectItem
=
item
if
(
item
.
equityClassId
)
{
if
(
item
.
equityClassId
)
{
this
.
selectItem
.
id
=
item
.
equityClassId
this
.
selectItem
.
id
=
item
.
equityClassId
...
@@ -150,8 +163,8 @@ export default {
...
@@ -150,8 +163,8 @@ export default {
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
const
marketingId
=
this
.
selectItem
.
id
?
this
.
selectItem
.
id
:
this
.
selectItem
.
equityClassId
const
marketingId
=
this
.
selectItem
.
id
?
this
.
selectItem
.
id
:
this
.
selectItem
.
equityClassId
const
marketingName
=
this
.
selectType
==
'card'
?
this
.
selectItem
.
equityName
:
this
.
selectType
==
'package'
?
this
.
selectItem
.
packageName
:
this
.
selectType
==
'activity'
||
this
.
selectType
==
'crowdfunding'
?
this
.
selectItem
.
activityName
:
this
.
selectType
==
'coupon'
?
this
.
selectItem
.
couponName
:
this
.
selectItem
.
equityName
const
marketingName
=
this
.
selectType
==
'card'
?
this
.
selectItem
.
equityName
:
this
.
selectType
==
'package'
?
this
.
selectItem
.
packageName
:
this
.
selectType
==
'activity'
||
this
.
selectType
==
'crowdfunding'
?
this
.
selectItem
.
activityName
:
this
.
selectType
==
'coupon'
?
this
.
selectItem
.
couponName
:
this
.
selectItem
.
equityName
const
{
activityPrice
,
equityName
,
packageName
,
couponName
,
activityName
,
effectivedDay
,
effectiveType
,
endTime
,
startTime
,
residueAmount
,
packagePrice
,
freeDay
}
=
this
.
selectItem
const
{
activityPrice
,
goodsImage
,
crowdFundingPrice
,
originalPrice
,
goodsName
,
retailPrice
,
equityName
,
packageName
,
couponName
,
activityName
,
effectivedDay
,
effectiveType
,
endTime
,
startTime
,
residueAmount
,
packagePrice
,
freeDay
}
=
this
.
selectItem
const
otherContent
=
{
equityName
,
packageName
,
couponName
,
activityName
,
effectivedDay
,
effectiveType
,
endTime
,
startTime
,
residueAmount
,
packagePrice
,
freeDay
}
const
otherContent
=
{
goodsImage
,
crowdFundingPrice
,
originalPrice
,
retailPrice
,
goodsName
,
equityName
,
packageName
,
couponName
,
activityName
,
effectivedDay
,
effectiveType
,
endTime
,
startTime
,
residueAmount
,
packagePrice
,
freeDay
}
const
marketingContent
=
{
...
otherContent
,
selectType
:
this
.
selectType
}
const
marketingContent
=
{
...
otherContent
,
selectType
:
this
.
selectType
}
const
params
=
{}
const
params
=
{}
if
(
this
.
selectType
==
'crowdfunding'
)
{
if
(
this
.
selectType
==
'crowdfunding'
)
{
...
@@ -160,7 +173,7 @@ export default {
...
@@ -160,7 +173,7 @@ export default {
params
.
title
=
this
.
selectItem
.
forwardTitle
params
.
title
=
this
.
selectItem
.
forwardTitle
params
.
picurl
=
this
.
selectItem
.
activityImg
params
.
picurl
=
this
.
selectItem
.
activityImg
}
}
this
.
$emit
(
'selectActivity'
,
{
marketingId
,
activityPrice
,
marketingType
:
this
.
activeName
,
marketingName
,
marketingContent
,
...
params
})
this
.
$emit
(
'selectActivity'
,
{
marketingId
,
activityPrice
,
marketingType
:
this
.
activeName
,
marketingName
,
marketingContent
,
...
params
})
},
},
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
pageSize
=
val
this
.
pageSize
=
val
...
@@ -391,4 +404,13 @@ export default {
...
@@ -391,4 +404,13 @@ export default {
}
}
}
}
}
}
.goods-box
{
width
:
248px
!important
;
padding
:
16px
;
box-sizing
:
border-box
;
background
:
#f9f9f9
;
border-radius
:
4px
;
display
:
flex
;
align-items
:
center
;
}
</
style
>
</
style
>
src/views/store/components/activity.vue
View file @
a575563
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
<div
class=
"text-tip"
>
建议尺寸:184*230
</div>
<div
class=
"text-tip"
>
建议尺寸:184*230
</div>
<el-form-item
label=
"页面路径:"
prop=
"pagePathContent"
>
<el-form-item
label=
"页面路径:"
prop=
"pagePathContent"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handlePath"
>
选择路径
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handlePath"
>
选择路径
</el-button>
<div
class=
"activity-box"
v-if=
"activityForm.activityDetails"
>
<
template
v-if=
"activityForm.activityDetails && activityForm.activityDetails.pagePathType == 1"
>
<div
class=
"activity-box"
>
<div
class=
"activity-box-title"
>
{{
activityForm
.
activityDetails
.
contentName
}}
</div>
<div
class=
"activity-box-title"
>
{{
activityForm
.
activityDetails
.
contentName
}}
</div>
<div
class=
"time"
>
开始时间:
{{
activityForm
.
activityDetails
.
startTime
}}
</div>
<div
class=
"time"
>
开始时间:
{{
activityForm
.
activityDetails
.
startTime
}}
</div>
<div
class=
"time"
>
结束时间:
{{
activityForm
.
activityDetails
.
endTime
}}
</div>
<div
class=
"time"
>
结束时间:
{{
activityForm
.
activityDetails
.
endTime
}}
</div>
...
@@ -34,25 +35,28 @@
...
@@ -34,25 +35,28 @@
<img
src=
"@/assets/channel/gift.png"
/>
<img
src=
"@/assets/channel/gift.png"
/>
</div>
</div>
</div>
</div>
<!-- <div class="goods-box">
</
template
>
<
template
v-if=
"activityForm.activityDetails && activityForm.activityDetails.pagePathType == 2"
>
<div
class=
"goodss-box"
v-if=
"activityForm.activityDetails"
>
<div
class=
"goods-img"
>
<div
class=
"goods-img"
>
<img src="@/assets/channel/gift.png
" />
<img
:src=
"activityForm.activityDetails.goodsImage
"
/>
</div>
</div>
<div>
<div>
<div class="goods-title">商品名称商品名称商品名称商品名称
</div>
<div
class=
"goods-title"
>
{{
activityForm
.
activityDetails
.
goodsName
}}
</div>
<div
class=
"goods-price"
>
<div
class=
"goods-price"
>
价格/元:
价格/元:
<span class="theme-color">99.00</span>
<span
class=
"theme-color"
>
{{
activityForm
.
activityDetails
.
retailPrice
}}
</span>
</div>
</div>
</div>
</div>
</div>
</
div> --
>
</
template
>
</el-form-item>
</el-form-item>
<el-form-item
label=
"产品价值/元:"
>
<el-form-item
label=
"产品价值/元:"
>
<el-input
v-model=
"activityForm.activityDetails.activityPrice"
disabled
></el-input>
<el-input
v-model=
"activityForm.productPrice"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"活动价/元:"
prop=
"goodsStock"
>
<el-input
v-model=
"activityForm.activityPrice"
disabled
></el-input>
</el-form-item>
</el-form-item>
<!-- <el-form-item label="活动价/元:" prop="goodsStock">
<el-input v-model="activityForm.goodsStock" disabled></el-input>
</el-form-item> -->
</el-form>
</el-form>
<activity-model
:activityList=
"activityList"
ref=
"activityModel"
@
selectActivity=
"selectActivity"
></activity-model>
<activity-model
:activityList=
"activityList"
ref=
"activityModel"
@
selectActivity=
"selectActivity"
></activity-model>
</div>
</div>
...
@@ -63,12 +67,13 @@ export default {
...
@@ -63,12 +67,13 @@ export default {
data
()
{
data
()
{
return
{
return
{
activityForm
:
{
activityForm
:
{
pagePathType
:
''
,
activityDetails
:
''
,
backgroundImgArr
:
[
'http://qcimg01.glsx.com.cn:7060/group1/M00/04/1B/wKgD3mO4EbyAQ05bAAAfjdq6I2Q468.png'
],
backgroundImgArr
:
[
'http://qcimg01.glsx.com.cn:7060/group1/M00/04/1B/wKgD3mO4EbyAQ05bAAAfjdq6I2Q468.png'
],
mediaUrlArr
:
[],
mediaUrlArr
:
[],
backgroundType
:
1
,
backgroundType
:
1
,
backgroundImg
:
'http://qcimg01.glsx.com.cn:7060/group1/M00/04/1B/wKgD3mO4EbyAQ05bAAAfjdq6I2Q468.png'
backgroundImg
:
'http://qcimg01.glsx.com.cn:7060/group1/M00/04/1B/wKgD3mO4EbyAQ05bAAAfjdq6I2Q468.png'
},
},
activityDetails
:
''
,
bgOptions
:
{
bgOptions
:
{
width
:
'233px'
,
width
:
'233px'
,
height
:
'138px'
,
height
:
'138px'
,
...
@@ -88,8 +93,6 @@ export default {
...
@@ -88,8 +93,6 @@ export default {
],
],
backgroundImg
:
[{
required
:
true
,
message
:
'请选择卡片背景图'
,
trigger
:
'change'
}],
backgroundImg
:
[{
required
:
true
,
message
:
'请选择卡片背景图'
,
trigger
:
'change'
}],
pagePathContent
:
[{
required
:
true
,
message
:
'请选择页面路径'
,
trigger
:
'change'
}],
pagePathContent
:
[{
required
:
true
,
message
:
'请选择页面路径'
,
trigger
:
'change'
}],
activityPrice
:
[{
required
:
true
,
message
:
'请输入产品价值/元'
,
trigger
:
'blur'
}],
goodsStock
:
[{
required
:
true
,
message
:
'请输入活动价/元'
,
trigger
:
'blur'
}],
subscribe
:
[{
required
:
true
,
message
:
'请选择页面路径'
,
trigger
:
'change'
}]
subscribe
:
[{
required
:
true
,
message
:
'请选择页面路径'
,
trigger
:
'change'
}]
},
},
activityList
:
[
activityList
:
[
...
@@ -124,7 +127,7 @@ export default {
...
@@ -124,7 +127,7 @@ export default {
{
{
itemName
:
'商品'
,
itemName
:
'商品'
,
itemValue
:
5
,
itemValue
:
5
,
itemType
:
'
activity
'
,
itemType
:
'
goods
'
,
getInterfaceApi
:
this
.
$apis
.
store
.
goodsActivity
,
getInterfaceApi
:
this
.
$apis
.
store
.
goodsActivity
,
params
:
{
params
:
{
merchantId
:
''
,
merchantId
:
''
,
...
@@ -195,7 +198,15 @@ export default {
...
@@ -195,7 +198,15 @@ export default {
contentName
:
data
.
marketingName
contentName
:
data
.
marketingName
}
}
this
.
activityForm
.
pagePathContent
=
data
.
marketingId
this
.
activityForm
.
pagePathContent
=
data
.
marketingId
this
.
activityForm
.
activityPrice
=
data
.
activityPrice
if
(
this
.
activityForm
.
activityDetails
.
selectType
==
'goods'
)
{
this
.
activityForm
.
pagePathType
=
2
this
.
activityForm
.
productPrice
=
this
.
activityForm
.
activityDetails
.
originalPrice
this
.
activityForm
.
activityPrice
=
this
.
activityForm
.
activityDetails
.
retailPrice
}
else
{
this
.
activityForm
.
pagePathType
=
1
this
.
activityForm
.
productPrice
=
this
.
activityForm
.
activityDetails
.
crowdFundingPrice
this
.
activityForm
.
activityPrice
=
this
.
activityForm
.
activityDetails
.
activityPrice
}
},
},
//生成路径
//生成路径
handlePath
()
{
handlePath
()
{
...
@@ -234,7 +245,7 @@ export default {
...
@@ -234,7 +245,7 @@ export default {
}
}
let
contentList
=
[
let
contentList
=
[
{
{
pagePathType
:
1
,
pagePathType
:
this
.
activityForm
.
pagePathType
,
pagePathContent
:
this
.
activityForm
.
pagePathContent
,
pagePathContent
:
this
.
activityForm
.
pagePathContent
,
promotion
:
this
.
activityForm
.
promotion
,
promotion
:
this
.
activityForm
.
promotion
,
mediaList
mediaList
...
...
src/views/store/components/carChannel.vue
View file @
a575563
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"页面路径:"
:prop=
"'contentList.' + index + '.pagePathType'"
:rules=
"rules.pagePathType"
>
<el-form-item
label=
"页面路径:"
:prop=
"'contentList.' + index + '.pagePathType'"
:rules=
"rules.pagePathType"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handlePath(index)"
>
选择路径
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handlePath(index)"
>
选择路径
</el-button>
<template
v-if=
"item.pagePathType == 1"
>
<div
class=
"activity-box"
v-if=
"item.activityDetails"
>
<div
class=
"activity-box"
v-if=
"item.activityDetails"
>
<div
class=
"activity-box-title"
>
{{
item
.
activityDetails
.
contentName
}}
</div>
<div
class=
"activity-box-title"
>
{{
item
.
activityDetails
.
contentName
}}
</div>
<div
class=
"time"
>
开始时间:
{{
item
.
activityDetails
.
startTime
}}
</div>
<div
class=
"time"
>
开始时间:
{{
item
.
activityDetails
.
startTime
}}
</div>
...
@@ -53,18 +54,21 @@
...
@@ -53,18 +54,21 @@
<img
src=
"@/assets/channel/gift.png"
/>
<img
src=
"@/assets/channel/gift.png"
/>
</div>
</div>
</div>
</div>
<!--
<div
class=
"goods-box"
>
</
template
>
<
template
v-else
>
<div
class=
"goodss-box"
v-if=
"item.activityDetails"
>
<div
class=
"goods-img"
>
<div
class=
"goods-img"
>
<img
src=
"@/assets/channel/gift.png
"
/>
<img
:src=
"item.activityDetails.goodsImage
"
/>
</div>
</div>
<div>
<div>
<div
class=
"goods-title"
>
商品名称商品名称商品名称商品名称
</div>
<div
class=
"goods-title"
>
{{
item
.
activityDetails
.
goodsName
}}
</div>
<div
class=
"goods-price"
>
<div
class=
"goods-price"
>
价格/元:
价格/元:
<span
class=
"theme-color"
>
99.00
</span>
<span
class=
"theme-color"
>
{{
item
.
activityDetails
.
retailPrice
}}
</span>
</div>
</div>
</div>
</div>
</div>
</
div>
--
>
</
template
>
</el-form-item>
</el-form-item>
<br
/>
<br
/>
<div
:class=
"index < editForm.contentList.length ? 'line' : ''"
></div>
<div
:class=
"index < editForm.contentList.length ? 'line' : ''"
></div>
...
@@ -124,6 +128,7 @@
...
@@ -124,6 +128,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"页面路径:"
:prop=
"'contentList.' + 0 + '.pagePathType'"
:rules=
"rules.pagePathType"
>
<el-form-item
label=
"页面路径:"
:prop=
"'contentList.' + 0 + '.pagePathType'"
:rules=
"rules.pagePathType"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handlePath(0)"
>
选择路径
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handlePath(0)"
>
选择路径
</el-button>
<
template
v-if=
"editForm.contentList[0].pagePathType == 1"
>
<div
class=
"activity-box"
v-if=
"editForm.contentList[0].activityDetails"
>
<div
class=
"activity-box"
v-if=
"editForm.contentList[0].activityDetails"
>
<div
class=
"activity-box-title"
>
{{
editForm
.
contentList
[
0
].
activityDetails
.
contentName
}}
</div>
<div
class=
"activity-box-title"
>
{{
editForm
.
contentList
[
0
].
activityDetails
.
contentName
}}
</div>
<div
class=
"time"
>
开始时间:
{{
editForm
.
contentList
[
0
].
activityDetails
.
startTime
}}
</div>
<div
class=
"time"
>
开始时间:
{{
editForm
.
contentList
[
0
].
activityDetails
.
startTime
}}
</div>
...
@@ -132,18 +137,21 @@
...
@@ -132,18 +137,21 @@
<img
src=
"@/assets/channel/gift.png"
/>
<img
src=
"@/assets/channel/gift.png"
/>
</div>
</div>
</div>
</div>
<!--
<div
class=
"goods-box"
>
</
template
>
<
template
v-else
>
<div
class=
"goodss-box"
v-if=
"editForm.contentList[0].activityDetails"
>
<div
class=
"goods-img"
>
<div
class=
"goods-img"
>
<img
src=
"@/assets/channel/gift.png
"
/>
<img
:src=
"editForm.contentList[0].activityDetails.goodsImage
"
/>
</div>
</div>
<div>
<div>
<div
class=
"goods-title"
>
商品名称商品名称商品名称商品名称
</div>
<div
class=
"goods-title"
>
{{
editForm
.
contentList
[
0
].
activityDetails
.
goodsName
}}
</div>
<div
class=
"goods-price"
>
<div
class=
"goods-price"
>
价格/元:
价格/元:
<span
class=
"theme-color"
>
99.00
</span>
<span
class=
"theme-color"
>
{{
editForm
.
contentList
[
0
].
activityDetails
.
retailPrice
}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
--
>
</
template
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -151,8 +159,8 @@
...
@@ -151,8 +159,8 @@
<!-- 页面路径 -->
<!-- 页面路径 -->
<div
slot=
"subscribe"
>
<div
slot=
"subscribe"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handlePath(-1)"
>
选择路径
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handlePath(-1)"
>
选择路径
</el-button>
<
template
v-if=
"editForm.activityDetails && editForm.pagePathType == 1"
>
<div
class=
"activity-box"
v-if=
"editForm.activityDetails
"
>
<div
class=
"activity-box
"
>
<div
class=
"activity-box-title"
>
{{
editForm
.
activityDetails
.
contentName
}}
</div>
<div
class=
"activity-box-title"
>
{{
editForm
.
activityDetails
.
contentName
}}
</div>
<div
class=
"time"
>
开始时间:
{{
editForm
.
activityDetails
.
startTime
}}
</div>
<div
class=
"time"
>
开始时间:
{{
editForm
.
activityDetails
.
startTime
}}
</div>
<div
class=
"time"
>
结束时间:
{{
editForm
.
activityDetails
.
endTime
}}
</div>
<div
class=
"time"
>
结束时间:
{{
editForm
.
activityDetails
.
endTime
}}
</div>
...
@@ -160,18 +168,21 @@
...
@@ -160,18 +168,21 @@
<img
src=
"@/assets/channel/gift.png"
/>
<img
src=
"@/assets/channel/gift.png"
/>
</div>
</div>
</div>
</div>
<!--
<div
class=
"goods-box"
>
</
template
>
<
template
v-if=
"editForm.activityDetails && editForm.pagePathType ==2"
>
<div
class=
"goodss-box"
v-if=
"editForm.activityDetails"
>
<div
class=
"goods-img"
>
<div
class=
"goods-img"
>
<img
src=
"@/assets/channel/gift.png
"
/>
<img
:src=
"editForm.activityDetails.goodsImage
"
/>
</div>
</div>
<div>
<div>
<div
class=
"goods-title"
>
商品名称商品名称商品名称商品名称
</div>
<div
class=
"goods-title"
>
{{
editForm
.
activityDetails
.
goodsName
}}
</div>
<div
class=
"goods-price"
>
<div
class=
"goods-price"
>
价格/元:
价格/元:
<span
class=
"theme-color"
>
99.00
</span>
<span
class=
"theme-color"
>
{{
editForm
.
activityDetails
.
retailPrice
}}
</span>
</div>
</div>
</div>
</div>
</div>
-->
</div>
</
template
>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
<activity-model
:activityList=
"activityList"
ref=
"activityModel"
@
selectActivity=
"selectActivity"
></activity-model>
<activity-model
:activityList=
"activityList"
ref=
"activityModel"
@
selectActivity=
"selectActivity"
></activity-model>
...
@@ -193,6 +204,9 @@ export default {
...
@@ -193,6 +204,9 @@ export default {
channelStyle
:
''
,
channelStyle
:
''
,
currentPath
:
''
,
currentPath
:
''
,
editForm
:
{
editForm
:
{
productPrice
:
''
,
activityPrice
:
''
,
activityDetails
:
''
,
topicStyle
:
1
,
topicStyle
:
1
,
topicTitle
:
''
,
topicTitle
:
''
,
backgroundImgArr
:
[
'http://qcimg01.glsx.com.cn:7060/group1/M00/04/1B/wKgD3mO4EbyAQ05bAAAfjdq6I2Q468.png'
],
backgroundImgArr
:
[
'http://qcimg01.glsx.com.cn:7060/group1/M00/04/1B/wKgD3mO4EbyAQ05bAAAfjdq6I2Q468.png'
],
...
@@ -200,6 +214,7 @@ export default {
...
@@ -200,6 +214,7 @@ export default {
mediaType
:
1
,
mediaType
:
1
,
mediaUrlArr
:
[],
mediaUrlArr
:
[],
mediaUrl
:
''
,
mediaUrl
:
''
,
pagePathType
:
''
,
contentList
:
[
contentList
:
[
{
{
mediaType
:
''
,
mediaType
:
''
,
...
@@ -310,16 +325,16 @@ export default {
...
@@ -310,16 +325,16 @@ export default {
},
},
{
{
label
:
'产品价值/元'
,
label
:
'产品价值/元'
,
name
:
'productPrice'
,
type
:
'input'
,
filter
:
'3'
},
{
label
:
'活动价/元'
,
name
:
'activityPrice'
,
name
:
'activityPrice'
,
type
:
'input'
,
type
:
'input'
,
filter
:
'3'
filter
:
'3'
},
},
// {
// label: '活动价/元',
// name: 'goodsStock',
// type: 'input',
// filter: '3'
// },
{
{
label
:
'具体内容'
,
label
:
'具体内容'
,
...
@@ -380,7 +395,7 @@ export default {
...
@@ -380,7 +395,7 @@ export default {
{
{
itemName
:
'商品'
,
itemName
:
'商品'
,
itemValue
:
5
,
itemValue
:
5
,
itemType
:
'
activity
'
,
itemType
:
'
goods
'
,
getInterfaceApi
:
this
.
$apis
.
store
.
goodsActivity
,
getInterfaceApi
:
this
.
$apis
.
store
.
goodsActivity
,
params
:
{
params
:
{
merchantId
:
''
,
merchantId
:
''
,
...
@@ -534,7 +549,7 @@ export default {
...
@@ -534,7 +549,7 @@ export default {
})
})
contentList
=
[
contentList
=
[
{
{
pagePathType
:
1
,
pagePathType
:
this
.
editForm
.
pagePathType
,
pagePathContent
:
this
.
editForm
.
pagePathContent
,
pagePathContent
:
this
.
editForm
.
pagePathContent
,
mediaList
mediaList
}
}
...
@@ -549,7 +564,7 @@ export default {
...
@@ -549,7 +564,7 @@ export default {
promotion
:
item
.
promotion
,
promotion
:
item
.
promotion
,
publicPraise
:
publicPraiseArr
.
join
(
'|'
),
publicPraise
:
publicPraiseArr
.
join
(
'|'
),
buttonRegistration
:
item
.
buttonRegistration
,
buttonRegistration
:
item
.
buttonRegistration
,
pagePathType
:
1
,
pagePathType
:
item
.
pagePathType
,
mediaList
:
[
mediaList
:
[
{
{
mediaType
:
this
.
editForm
.
mediaType
,
mediaType
:
this
.
editForm
.
mediaType
,
...
@@ -604,10 +619,21 @@ export default {
...
@@ -604,10 +619,21 @@ export default {
this
.
editForm
.
activityDetails
=
{
this
.
editForm
.
activityDetails
=
{
data
,
data
,
...
data
.
marketingContent
,
...
data
.
marketingContent
,
contentName
:
data
.
marketingName
contentName
:
data
.
marketingName
,
pagePathType
:
data
.
marketingContent
.
selectType
==
'goods'
?
2
:
1
}
}
this
.
editForm
.
pagePathContent
=
data
.
marketingId
this
.
editForm
.
pagePathContent
=
data
.
marketingId
this
.
editForm
.
activityPrice
=
data
.
activityPrice
if
(
this
.
editForm
.
activityDetails
.
selectType
==
'goods'
)
{
this
.
editForm
.
pagePathType
=
2
this
.
editForm
.
productPrice
=
this
.
editForm
.
activityDetails
.
originalPrice
this
.
editForm
.
activityPrice
=
this
.
editForm
.
activityDetails
.
retailPrice
this
.
editForm
.
activityDetails
.
pagePathType
=
2
}
else
{
this
.
editForm
.
pagePathType
=
1
this
.
editForm
.
productPrice
=
this
.
editForm
.
activityDetails
.
crowdFundingPrice
this
.
editForm
.
activityPrice
=
this
.
editForm
.
activityDetails
.
activityPrice
this
.
editForm
.
activityDetails
.
pagePathType
=
1
}
}
else
{
}
else
{
let
contentList
=
this
.
editForm
.
contentList
[
this
.
currentPath
]
let
contentList
=
this
.
editForm
.
contentList
[
this
.
currentPath
]
contentList
.
activityDetails
=
{
contentList
.
activityDetails
=
{
...
@@ -617,6 +643,7 @@ export default {
...
@@ -617,6 +643,7 @@ export default {
}
}
contentList
.
pagePathContent
=
data
.
marketingId
contentList
.
pagePathContent
=
data
.
marketingId
contentList
.
activityPrice
=
data
.
activityPrice
contentList
.
activityPrice
=
data
.
activityPrice
contentList
.
pagePathType
=
contentList
.
activityDetails
.
selectType
==
'goods'
?
2
:
1
}
}
},
},
//选择视频
//选择视频
...
...
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