Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 efb35b11
authored
Aug 22, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增领券中心可见字段
1 parent
7935a71d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
16 deletions
src/styles/common.scss
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/styles/common.scss
View file @
efb35b1
.inline-b
{
.inline-b
{
display
:
inline-block
;
display
:
inline-block
;
}
}
...
@@ -10,23 +9,29 @@
...
@@ -10,23 +9,29 @@
.green-text
{
.green-text
{
color
:
#00A854
;
color
:
#00A854
;
}
}
.gray-text
{
color
:
#666666
;
.gray-text
{
margin-left
:
6px
;
color
:
#666666
;
margin-left
:
6px
;
}
}
.red-text
{
.red-text
{
color
:
rgb
(
255
,
0
,
0
);
color
:
rgb
(
255
,
0
,
0
);
}
}
.blue-text
{
color
:
$btnBlue
;
.blue-text
{
&
:hover
{
color
:
$btnBlue
;
&
:hover
{
color
:
#9994FF
;
color
:
#9994FF
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
}
}
.pure-blue-text
{
color
:
$btnBlue
!
important
;
.pure-blue-text
{
color
:
$btnBlue
!
important
;
}
}
.green
{
.green
{
background-color
:
#00A854
;
background-color
:
#00A854
;
}
}
...
@@ -35,12 +40,13 @@
...
@@ -35,12 +40,13 @@
color
:
rgb
(
255
,
0
,
0
);
color
:
rgb
(
255
,
0
,
0
);
}
}
.flex-center
{
.flex-center
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
}
.additional-text
{
.additional-text
{
height
:
22px
;
height
:
22px
;
font-size
:
16px
;
font-size
:
16px
;
...
@@ -48,6 +54,7 @@
...
@@ -48,6 +54,7 @@
color
:
#666666
;
color
:
#666666
;
line-height
:
22px
;
line-height
:
22px
;
}
}
.btn-blue
{
.btn-blue
{
height
:
32px
;
height
:
32px
;
background
:
$btnBlue
;
background
:
$btnBlue
;
...
@@ -92,7 +99,8 @@
...
@@ -92,7 +99,8 @@
background
:
-moz-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
-moz-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
linear-gradient
(
to
right
,
transparent
,
#fff
55%
);
background
:
linear-gradient
(
to
right
,
transparent
,
#fff
55%
);
}
}
.ellipsis-4
{
.ellipsis-4
{
overflow
:
hidden
;
overflow
:
hidden
;
height
:
40px
;
height
:
40px
;
line-height
:
20px
;
line-height
:
20px
;
...
@@ -101,6 +109,7 @@
...
@@ -101,6 +109,7 @@
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
4
;
-webkit-line-clamp
:
4
;
}
}
.ellipsis-4-text
:after
{
.ellipsis-4-text
:after
{
content
:
"..."
;
content
:
"..."
;
position
:
absolute
;
position
:
absolute
;
...
@@ -113,6 +122,16 @@
...
@@ -113,6 +122,16 @@
background
:
-moz-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
-moz-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
linear-gradient
(
to
right
,
transparent
,
#fff
55%
);
background
:
linear-gradient
(
to
right
,
transparent
,
#fff
55%
);
}
}
.statusText
{
.statusText
{
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
.switch-tip
{
height
:
17px
;
line-height
:
17px
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
12px
;
color
:
#999999
;
}
\ No newline at end of file
\ No newline at end of file
src/views/couponManage/editCashCoupon.vue
View file @
efb35b1
...
@@ -138,6 +138,10 @@
...
@@ -138,6 +138,10 @@
<
template
slot=
"useDescriptionHtml"
>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 320px"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 320px"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</
template
>
</
template
>
<
template
slot=
"couponCenterHtml"
>
<el-switch
:disabled=
"apear != 'couponAdd'"
v-model=
"editForm.couponCenterFlag"
:active-value=
"2"
:inactive-value=
"1"
></el-switch>
<div
class=
"switch-tip"
>
开启后,用户可在小程序我的-优惠券-领券中心直接领取
</div>
</
template
>
<
template
slot=
"editHtml"
>
<
template
slot=
"editHtml"
>
<el-button
style=
"margin-left: 80px"
@
click=
"editMessage"
>
编辑
</el-button>
<el-button
style=
"margin-left: 80px"
@
click=
"editMessage"
>
编辑
</el-button>
</
template
>
</
template
>
...
@@ -202,7 +206,8 @@ export default {
...
@@ -202,7 +206,8 @@ export default {
full
:
''
,
full
:
''
,
goods
:
'1'
,
goods
:
'1'
,
goodsRefList
:
[],
goodsRefList
:
[],
directionalFlag
:
'1'
directionalFlag
:
'1'
,
couponCenterFlag
:
1
// scopeApplication: ''
// scopeApplication: ''
},
},
//商品列表
//商品列表
...
@@ -320,6 +325,10 @@ export default {
...
@@ -320,6 +325,10 @@ export default {
addHtml
:
'useDescriptionHtml'
addHtml
:
'useDescriptionHtml'
},
},
{
{
label
:
'领券中心可见'
,
addHtml
:
'couponCenterHtml'
},
{
name
:
'editHtml'
,
name
:
'editHtml'
,
addHtml
:
'editHtml'
,
addHtml
:
'editHtml'
,
isHide
:
true
isHide
:
true
...
@@ -766,6 +775,8 @@ export default {
...
@@ -766,6 +775,8 @@ export default {
}
}
//使用描述
//使用描述
obj
.
useDescription
=
form
.
useDescription
obj
.
useDescription
=
form
.
useDescription
//领券中心可见
obj
.
couponCenterFlag
=
form
.
couponCenterFlag
//预估成本
//预估成本
obj
.
anticipatedCost
=
(
form
.
anticipatedCost
*
100
).
toFixed
(
0
)
obj
.
anticipatedCost
=
(
form
.
anticipatedCost
*
100
).
toFixed
(
0
)
return
obj
return
obj
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
efb35b1
...
@@ -107,6 +107,10 @@
...
@@ -107,6 +107,10 @@
<
template
slot=
"useDescriptionHtml"
>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</
template
>
</
template
>
<
template
slot=
"couponCenterHtml"
>
<el-switch
:disabled=
"apear != 'couponAdd'"
v-model=
"editForm.couponCenterFlag"
:active-value=
"2"
:inactive-value=
"1"
></el-switch>
<div
class=
"switch-tip"
>
开启后,用户可在小程序我的-优惠券-领券中心直接领取
</div>
</
template
>
<
template
slot=
"editHtml"
>
<
template
slot=
"editHtml"
>
<el-button
style=
"margin-left: 80px"
@
click=
"editMessage"
>
编辑
</el-button>
<el-button
style=
"margin-left: 80px"
@
click=
"editMessage"
>
编辑
</el-button>
</
template
>
</
template
>
...
@@ -178,7 +182,8 @@ export default {
...
@@ -178,7 +182,8 @@ export default {
effectiveDays
:
''
,
effectiveDays
:
''
,
anticipatedCost
:
''
,
anticipatedCost
:
''
,
discountIntensity
:
''
,
discountIntensity
:
''
,
directionalFlag
:
'1'
directionalFlag
:
'1'
,
couponCenterFlag
:
1
// scopeApplication: ''
// scopeApplication: ''
},
},
editRule
:
{
editRule
:
{
...
@@ -243,6 +248,10 @@ export default {
...
@@ -243,6 +248,10 @@ export default {
addHtml
:
'useDescriptionHtml'
addHtml
:
'useDescriptionHtml'
},
},
{
{
label
:
'领券中心可见'
,
addHtml
:
'couponCenterHtml'
},
{
name
:
''
,
name
:
''
,
addHtml
:
'editHtml'
,
addHtml
:
'editHtml'
,
isHide
:
true
isHide
:
true
...
@@ -514,6 +523,8 @@ export default {
...
@@ -514,6 +523,8 @@ export default {
obj
.
useDescription
=
form
.
useDescription
obj
.
useDescription
=
form
.
useDescription
//是否定制礼包专用
//是否定制礼包专用
obj
.
directionalFlag
=
form
.
directionalFlag
obj
.
directionalFlag
=
form
.
directionalFlag
//领券中心可见
obj
.
couponCenterFlag
=
form
.
couponCenterFlag
//预估成本
//预估成本
obj
.
anticipatedCost
=
(
form
.
anticipatedCost
*
100
).
toFixed
(
0
)
obj
.
anticipatedCost
=
(
form
.
anticipatedCost
*
100
).
toFixed
(
0
)
return
obj
return
obj
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
efb35b1
...
@@ -95,6 +95,10 @@
...
@@ -95,6 +95,10 @@
<
template
slot=
"useDescriptionHtml"
>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 320px"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 320px"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</
template
>
</
template
>
<
template
slot=
"couponCenterHtml"
>
<el-switch
:disabled=
"apear != 'couponAdd'"
v-model=
"editForm.couponCenterFlag"
:active-value=
"2"
:inactive-value=
"1"
></el-switch>
<div
class=
"switch-tip"
>
开启后,用户可在小程序我的-优惠券-领券中心直接领取
</div>
</
template
>
<
template
slot=
"editHtml"
>
<
template
slot=
"editHtml"
>
<el-button
style=
"margin-left: 80px"
@
click=
"editMessage"
>
编辑
</el-button>
<el-button
style=
"margin-left: 80px"
@
click=
"editMessage"
>
编辑
</el-button>
</
template
>
</
template
>
...
@@ -163,7 +167,8 @@ export default {
...
@@ -163,7 +167,8 @@ export default {
effectiveTime
:
[],
effectiveTime
:
[],
effectiveDays
:
''
,
effectiveDays
:
''
,
anticipatedCost
:
''
,
anticipatedCost
:
''
,
directionalFlag
:
'1'
directionalFlag
:
'1'
,
couponCenterFlag
:
1
// scopeApplication: ''
// scopeApplication: ''
},
},
editRule
:
{
editRule
:
{
...
@@ -214,6 +219,10 @@ export default {
...
@@ -214,6 +219,10 @@ export default {
addHtml
:
'useDescriptionHtml'
addHtml
:
'useDescriptionHtml'
},
},
{
{
label
:
'领券中心可见'
,
addHtml
:
'couponCenterHtml'
},
{
name
:
''
,
name
:
''
,
addHtml
:
'editHtml'
,
addHtml
:
'editHtml'
,
isHide
:
true
isHide
:
true
...
@@ -443,6 +452,8 @@ export default {
...
@@ -443,6 +452,8 @@ export default {
obj
.
useDescription
=
form
.
useDescription
obj
.
useDescription
=
form
.
useDescription
//是否定制礼包专用
//是否定制礼包专用
obj
.
directionalFlag
=
form
.
directionalFlag
obj
.
directionalFlag
=
form
.
directionalFlag
//
obj
.
couponCenterFlag
=
form
.
couponCenterFlag
//预估成本
//预估成本
obj
.
anticipatedCost
=
(
form
.
anticipatedCost
*
100
).
toFixed
(
0
)
obj
.
anticipatedCost
=
(
form
.
anticipatedCost
*
100
).
toFixed
(
0
)
return
obj
return
obj
...
...
src/views/couponManage/editMemberService.vue
View file @
efb35b1
...
@@ -97,6 +97,10 @@
...
@@ -97,6 +97,10 @@
<el-form-item
size=
"small"
label=
"使用说明:"
prop=
"useDescription"
>
<el-form-item
size=
"small"
label=
"使用说明:"
prop=
"useDescription"
>
<el-input
size=
"small"
:rows=
"6"
:disabled=
"disabledDescription"
type=
"textarea"
v-model=
"ruleForm.useDescription"
placeholder=
"请输入"
maxlength=
"200"
show-word-limit
></el-input>
<el-input
size=
"small"
:rows=
"6"
:disabled=
"disabledDescription"
type=
"textarea"
v-model=
"ruleForm.useDescription"
placeholder=
"请输入"
maxlength=
"200"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"领券中心可见:"
prop=
"couponCenterFlag"
>
<el-switch
:disabled=
"disabledContent"
v-model=
"ruleForm.couponCenterFlag"
:active-value=
"2"
:inactive-value=
"1"
></el-switch>
<div
class=
"switch-tip"
>
开启后,用户可在小程序我的-优惠券-领券中心直接领取
</div>
</el-form-item>
<el-form-item
size=
"small"
style=
"margin-left: -100px"
v-show=
"isEdit"
>
<el-form-item
size=
"small"
style=
"margin-left: -100px"
v-show=
"isEdit"
>
<el-button
style=
"margin-left: 80px"
@
click=
"editMessage"
>
编辑
</el-button>
<el-button
style=
"margin-left: 80px"
@
click=
"editMessage"
>
编辑
</el-button>
</el-form-item>
</el-form-item>
...
@@ -248,7 +252,8 @@ export default {
...
@@ -248,7 +252,8 @@ export default {
stock
:
''
,
stock
:
''
,
useDescription
:
''
,
useDescription
:
''
,
daterange
:
[],
daterange
:
[],
limitStockFlag
:
1
limitStockFlag
:
1
,
couponCenterFlag
:
1
// scopeApplication: ''
// scopeApplication: ''
},
},
copyRuleForm
:
{},
copyRuleForm
:
{},
...
@@ -500,6 +505,7 @@ export default {
...
@@ -500,6 +505,7 @@ export default {
// params.scopeApplication = this.ruleForm.scopeApplication
// params.scopeApplication = this.ruleForm.scopeApplication
// }
// }
params
.
useDescription
=
this
.
ruleForm
.
useDescription
params
.
useDescription
=
this
.
ruleForm
.
useDescription
params
.
couponCenterFlag
=
this
.
ruleForm
.
couponCenterFlag
params
.
discountType
=
7
params
.
discountType
=
7
params
.
merchantId
=
this
.
merchantId
params
.
merchantId
=
this
.
merchantId
...
@@ -531,6 +537,7 @@ export default {
...
@@ -531,6 +537,7 @@ export default {
param
.
couponId
=
this
.
$route
.
query
.
couponId
param
.
couponId
=
this
.
$route
.
query
.
couponId
param
.
stock
=
this
.
ruleForm
.
stock
param
.
stock
=
this
.
ruleForm
.
stock
param
.
useDescription
=
this
.
ruleForm
.
useDescription
param
.
useDescription
=
this
.
ruleForm
.
useDescription
param
.
couponCenterFlag
=
this
.
ruleForm
.
couponCenterFlag
this
.
sloading
=
true
this
.
sloading
=
true
updateService
(
param
)
updateService
(
param
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
...
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