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 ca2f1f1b
authored
Mar 28, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
1319aa0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
8 deletions
src/common/constant.js
src/components/glsx-combi-form/index.vue
src/views/activityLink/components/selectModel.vue
src/views/activityLink/editActivity.vue
src/common/constant.js
View file @
ca2f1f1
...
@@ -257,7 +257,7 @@ const subscribe = [
...
@@ -257,7 +257,7 @@ const subscribe = [
},
},
{
{
optionId
:
6
,
optionId
:
6
,
optionLabel
:
'节日关怀'
optionLabel
:
'节
假
日关怀'
},
},
{
{
optionId
:
3
,
optionId
:
3
,
...
...
src/components/glsx-combi-form/index.vue
View file @
ca2f1f1
...
@@ -6,7 +6,11 @@
...
@@ -6,7 +6,11 @@
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '154px' : labelWidth"
:class=
"[
{ 'no-label': !item.label, isBlock: isBlock }, { textBox: item.type == 'textBox' }]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '154px' : labelWidth"
:class=
"[
{ 'no-label': !item.label, isBlock: isBlock }, { textBox: item.type == 'textBox' }]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<el-popover
placement=
"top"
width=
"200"
trigger=
"hover"
:content=
"item.tips"
>
<el-popover
placement=
"top"
:width=
"item.tipsWidth || 200"
trigger=
"hover"
>
<div>
{{
item
.
tips
}}
<span
class=
"tips-jump"
v-if=
"item.jumpLabel"
@
click=
"item.handleJump"
>
{{
item
.
jumpLabel
}}
</span>
</div>
<img
slot=
"reference"
class=
"tips-icon"
src=
"./images/icon-tip.png"
/>
<img
slot=
"reference"
class=
"tips-icon"
src=
"./images/icon-tip.png"
/>
</el-popover>
</el-popover>
:
:
...
@@ -522,4 +526,8 @@ export default {
...
@@ -522,4 +526,8 @@ export default {
width
:
62%
;
width
:
62%
;
/* background: #096; */
/* background: #096; */
}
}
.tips-jump
{
color
:
#5850ff
;
cursor
:
pointer
;
}
</
style
>
</
style
>
src/views/activityLink/components/selectModel.vue
View file @
ca2f1f1
...
@@ -28,7 +28,7 @@ export default {
...
@@ -28,7 +28,7 @@ export default {
modelList
:
[
modelList
:
[
{
{
value
:
1
,
value
:
1
,
name
:
'节日关怀'
,
name
:
'节
假
日关怀'
,
imgUrl
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/activity-1.png'
imgUrl
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/activity-1.png'
},
},
{
{
...
...
src/views/activityLink/editActivity.vue
View file @
ca2f1f1
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleGiftAdd"
>
选择服务
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleGiftAdd"
>
选择服务
</el-button>
<el-popover
placement=
"top-start"
width=
"500"
trigger=
"hover"
>
<el-popover
placement=
"top-start"
width=
"500"
trigger=
"hover"
>
<img
src=
"@/assets/coupon/coupon-view.png"
alt=
""
/>
<img
src=
"@/assets/coupon/coupon-view.png"
alt=
""
/>
<el-button
slot=
"reference"
type=
"text"
>
预览
</el-button>
<el-button
slot=
"reference"
type=
"text"
v-if=
"editForm.couponList.length == 0"
>
预览
</el-button>
</el-popover>
</el-popover>
</div>
</div>
...
@@ -620,7 +620,7 @@ export default {
...
@@ -620,7 +620,7 @@ export default {
playingDiscountContent
:
[{
required
:
true
,
message
:
'请输入折扣内容'
,
trigger
:
'blur'
}],
playingDiscountContent
:
[{
required
:
true
,
message
:
'请输入折扣内容'
,
trigger
:
'blur'
}],
playingCouponDescription
:
[{
required
:
true
,
message
:
'请输入送券描述'
,
trigger
:
'blur'
}],
playingCouponDescription
:
[{
required
:
true
,
message
:
'请输入送券描述'
,
trigger
:
'blur'
}],
pageStyle
:
[{
required
:
true
,
message
:
'请选择页面样式'
,
trigger
:
'change'
}],
pageStyle
:
[{
required
:
true
,
message
:
'请选择页面样式'
,
trigger
:
'change'
}],
goodsList
:
[{
required
:
fals
e
,
message
:
'请选择平台福利'
,
trigger
:
'change'
}],
goodsList
:
[{
required
:
tru
e
,
message
:
'请选择平台福利'
,
trigger
:
'change'
}],
// promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }],
// promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }],
activityTime
:
[{
required
:
true
,
message
:
'请选择链接时间'
,
trigger
:
'change'
}],
activityTime
:
[{
required
:
true
,
message
:
'请选择链接时间'
,
trigger
:
'change'
}],
expiresType
:
[{
required
:
true
,
message
:
'请选择链接时间'
,
trigger
:
'change'
}],
expiresType
:
[{
required
:
true
,
message
:
'请选择链接时间'
,
trigger
:
'change'
}],
...
@@ -734,7 +734,12 @@ export default {
...
@@ -734,7 +734,12 @@ export default {
label
:
'门店服务'
,
label
:
'门店服务'
,
name
:
'couponList'
,
name
:
'couponList'
,
addHtml
:
'selectGiftBtn'
,
addHtml
:
'selectGiftBtn'
,
tips
:
'用于打包门店服务、商品及其他产品。若需创建更多服务,请点击创建服务'
tips
:
this
.
loginpath
?
''
:
'用于打包门店服务、商品及其他产品。若需创建更多服务,请点击'
,
jumpLabel
:
'创建服务'
,
tipsWidth
:
220
,
handleJump
:
()
=>
{
this
.
$history
.
push
(
'/marketing/couponManage/index'
)
}
},
},
{
{
label
:
''
,
label
:
''
,
...
@@ -1213,13 +1218,11 @@ export default {
...
@@ -1213,13 +1218,11 @@ export default {
'editForm.playingType'
(
val
)
{
'editForm.playingType'
(
val
)
{
if
(
val
==
2
)
{
if
(
val
==
2
)
{
this
.
editRule
.
couponList
[
0
].
required
=
true
this
.
editRule
.
couponList
[
0
].
required
=
true
this
.
editRule
.
goodsList
[
0
].
required
=
false
this
.
palyEditFormData
[
2
].
label
=
'折扣内容'
this
.
palyEditFormData
[
2
].
label
=
'折扣内容'
this
.
palyEditFormData
[
2
].
name
=
'playingDiscountContent'
this
.
palyEditFormData
[
2
].
name
=
'playingDiscountContent'
}
}
if
(
val
==
3
)
{
if
(
val
==
3
)
{
this
.
editRule
.
couponList
[
0
].
required
=
false
this
.
editRule
.
couponList
[
0
].
required
=
false
this
.
editRule
.
goodsList
[
0
].
required
=
true
this
.
palyEditFormData
[
2
].
label
=
'送券描述'
this
.
palyEditFormData
[
2
].
label
=
'送券描述'
this
.
palyEditFormData
[
2
].
name
=
'playingCouponDescription'
this
.
palyEditFormData
[
2
].
name
=
'playingCouponDescription'
}
}
...
...
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