Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
fa0944e1
Commit
fa0944e1
authored
Feb 24, 2020
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add 乔丹需求 最高最低商品件数,原最高商品件数去掉cardtype(折扣券)的限制
parent
e5b1c02c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
8 deletions
+28
-8
index.html
dist/index.html
+2
-2
card.2179eb9a267fb5198558.js
dist/static/js/card.2179eb9a267fb5198558.js
+0
-0
manifest.bb4dd96372ac7b6bd09b.js
dist/static/js/manifest.bb4dd96372ac7b6bd09b.js
+2
-2
form.js
src/views/card/form.js
+21
-2
form.vue
src/views/card/form.vue
+3
-2
No files found.
dist/index.html
View file @
fa0944e1
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
/marketing/static/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
/marketing/static/fonts/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
/marketing/static/css/common.css
><link
rel=
stylesheet
href=
//web-1251519181.file.myqcloud.com/components/element.2.12.0.css
><link
href=
/marketing/static/css/main.1f0831d8d0e50c29c4969bd41a547de2.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/element.2.12.0.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/header.2.0.33.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/card.2.0.09.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/store.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/member-group.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/store-card.2.0.13.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/confirm-people.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/people.2.0.38.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/export-excel.2.0.13.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/input.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/delete.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/selector.1.1.95.js
></script><script
type=
text/javascript
src=
/marketing/static/js/manifest.9a4b249c930ea56c7520.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.810e43468685c3e36778.js
></script><script
type=
text/javascript
src=
/marketing/static/js/main.f96aa57c4ec8ef239a54.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
/marketing/static/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
/marketing/static/fonts/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
/marketing/static/css/common.css
><link
rel=
stylesheet
href=
//web-1251519181.file.myqcloud.com/components/element.2.12.0.css
><link
href=
/marketing/static/css/main.1f0831d8d0e50c29c4969bd41a547de2.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/element.2.12.0.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/header.2.0.33.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/card.2.0.09.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/store.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/member-group.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/store-card.2.0.13.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/confirm-people.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/people.2.0.38.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/export-excel.2.0.13.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/input.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/delete.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/selector.1.1.95.js
></script><script
type=
text/javascript
src=
/marketing/static/js/manifest.bb4dd96372ac7b6bd09b.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.810e43468685c3e36778.js
></script><script
type=
text/javascript
src=
/marketing/static/js/main.f96aa57c4ec8ef239a54.js
></script></body></html>
\ No newline at end of file
dist/static/js/card.
95472794aeed990f7b93
.js
→
dist/static/js/card.
2179eb9a267fb5198558
.js
View file @
fa0944e1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/manifest.
9a4b249c930ea56c7520
.js
→
dist/static/js/manifest.
bb4dd96372ac7b6bd09b
.js
View file @
fa0944e1
!
function
(
e
){
var
r
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
n
,
c
,
a
){
for
(
var
f
,
i
,
u
,
s
=
0
,
l
=
[];
s
<
n
.
length
;
s
++
)
i
=
n
[
s
],
t
[
i
]
&&
l
.
push
(
t
[
i
][
0
]),
t
[
i
]
=
0
;
for
(
f
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
f
)
&&
(
e
[
f
]
=
c
[
f
]);
for
(
r
&&
r
(
n
,
c
,
a
);
l
.
length
;)
l
.
shift
()();
if
(
a
)
for
(
s
=
0
;
s
<
a
.
length
;
s
++
)
u
=
o
(
o
.
s
=
a
[
s
]);
return
u
};
var
n
=
{},
t
=
{
12
:
0
};
function
o
(
r
){
if
(
n
[
r
])
return
n
[
r
].
exports
;
var
t
=
n
[
r
]
=
{
i
:
r
,
l
:
!
1
,
exports
:{}};
return
e
[
r
].
call
(
t
.
exports
,
t
,
t
.
exports
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
e
=
function
(
e
){
var
r
=
t
[
e
];
if
(
0
===
r
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
r
)
return
r
[
2
];
var
n
=
new
Promise
(
function
(
n
,
o
){
r
=
t
[
e
]
=
[
n
,
o
]});
r
[
2
]
=
n
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
a
=
document
.
createElement
(
"script"
);
a
.
type
=
"text/javascript"
,
a
.
charset
=
"utf-8"
,
a
.
async
=!
0
,
a
.
timeout
=
12
e4
,
o
.
nc
&&
a
.
setAttribute
(
"nonce"
,
o
.
nc
),
a
.
src
=
o
.
p
+
"static/js/"
+
({
0
:
"card"
,
1
:
"game"
,
2
:
"wechat"
,
3
:
"ewash"
,
4
:
"evaluation"
,
5
:
"message"
,
6
:
"ecm"
,
7
:
"recharge"
,
8
:
"msg"
,
9
:
"calllog"
}[
e
]
||
e
)
+
"."
+
{
0
:
"95472794aeed990f7b93"
,
1
:
"cccfb8478fee7428d453"
,
2
:
"6fc3904284e4740968d4"
,
3
:
"5317a7b4f129f73cc629"
,
4
:
"d98f58c16cb8a918fc07"
,
5
:
"73ec2f1707504c4de588"
,
6
:
"6a787f6466c7bc3cf9ec"
,
7
:
"7800a1645705a6640145"
,
8
:
"4b4e327d76f3e16d4b51"
,
9
:
"fecc3d1064e01cef69e9"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
i
,
12
e4
);
function
i
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
f
);
var
r
=
t
[
e
];
0
!==
r
&&
(
r
&&
r
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
i
,
c
.
appendChild
(
a
),
n
},
o
.
m
=
e
,
o
.
c
=
n
,
o
.
d
=
function
(
e
,
r
,
n
){
o
.
o
(
e
,
r
)
||
Object
.
defineProperty
(
e
,
r
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
n
})},
o
.
n
=
function
(
e
){
var
r
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
r
,
"a"
,
r
),
r
},
o
.
o
=
function
(
e
,
r
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
r
)},
o
.
p
=
"/marketing/"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
r
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
n
,
c
,
a
){
for
(
var
f
,
i
,
u
,
s
=
0
,
l
=
[];
s
<
n
.
length
;
s
++
)
i
=
n
[
s
],
t
[
i
]
&&
l
.
push
(
t
[
i
][
0
]),
t
[
i
]
=
0
;
for
(
f
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
f
)
&&
(
e
[
f
]
=
c
[
f
]);
for
(
r
&&
r
(
n
,
c
,
a
);
l
.
length
;)
l
.
shift
()();
if
(
a
)
for
(
s
=
0
;
s
<
a
.
length
;
s
++
)
u
=
o
(
o
.
s
=
a
[
s
]);
return
u
};
var
n
=
{},
t
=
{
12
:
0
};
function
o
(
r
){
if
(
n
[
r
])
return
n
[
r
].
exports
;
var
t
=
n
[
r
]
=
{
i
:
r
,
l
:
!
1
,
exports
:{}};
return
e
[
r
].
call
(
t
.
exports
,
t
,
t
.
exports
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
e
=
function
(
e
){
var
r
=
t
[
e
];
if
(
0
===
r
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
r
)
return
r
[
2
];
var
n
=
new
Promise
(
function
(
n
,
o
){
r
=
t
[
e
]
=
[
n
,
o
]});
r
[
2
]
=
n
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
a
=
document
.
createElement
(
"script"
);
a
.
type
=
"text/javascript"
,
a
.
charset
=
"utf-8"
,
a
.
async
=!
0
,
a
.
timeout
=
12
e4
,
o
.
nc
&&
a
.
setAttribute
(
"nonce"
,
o
.
nc
),
a
.
src
=
o
.
p
+
"static/js/"
+
({
0
:
"card"
,
1
:
"game"
,
2
:
"wechat"
,
3
:
"ewash"
,
4
:
"evaluation"
,
5
:
"message"
,
6
:
"ecm"
,
7
:
"recharge"
,
8
:
"msg"
,
9
:
"calllog"
}[
e
]
||
e
)
+
"."
+
{
0
:
"2179eb9a267fb5198558"
,
1
:
"cccfb8478fee7428d453"
,
2
:
"6fc3904284e4740968d4"
,
3
:
"5317a7b4f129f73cc629"
,
4
:
"d98f58c16cb8a918fc07"
,
5
:
"73ec2f1707504c4de588"
,
6
:
"6a787f6466c7bc3cf9ec"
,
7
:
"7800a1645705a6640145"
,
8
:
"4b4e327d76f3e16d4b51"
,
9
:
"fecc3d1064e01cef69e9"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
i
,
12
e4
);
function
i
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
f
);
var
r
=
t
[
e
];
0
!==
r
&&
(
r
&&
r
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
i
,
c
.
appendChild
(
a
),
n
},
o
.
m
=
e
,
o
.
c
=
n
,
o
.
d
=
function
(
e
,
r
,
n
){
o
.
o
(
e
,
r
)
||
Object
.
defineProperty
(
e
,
r
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
n
})},
o
.
n
=
function
(
e
){
var
r
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
r
,
"a"
,
r
),
r
},
o
.
o
=
function
(
e
,
r
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
r
)},
o
.
p
=
"/marketing/"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/views/card/form.js
View file @
fa0944e1
...
...
@@ -45,6 +45,7 @@ const initForm = {
proNoList
:
[],
discount_amount_upper_limit
:
0
,
goods_discounts_number_upper_limit
:
0
,
goods_discounts_number_lower_limit
:
0
,
products_exchange_number
:
0
,
onlyFlag
:
true
// 是否显示与优惠同享,默认true显示
};
...
...
@@ -98,6 +99,7 @@ export default {
products_exchange_number_show
:
false
,
goodsDiscountCheck
:
true
,
goodsDiscountCheckLower
:
true
,
discountAmountCheck
:
true
,
// ----微盟适用商品----
f1
:
[],
// 一层的list
...
...
@@ -149,6 +151,13 @@ export default {
this
.
form
.
goods_discounts_number_upper_limit
=
1
;
}
},
goodsDiscountCheckLower
(
val
)
{
if
(
val
)
{
this
.
form
.
goods_discounts_number_lower_limit
=
0
;
}
else
if
(
this
.
form
.
goods_discounts_number_lower_limit
<=
0
)
{
this
.
form
.
goods_discounts_number_lower_limit
=
1
;
}
},
'form.discount_amount_upper_limit'
:
{
handler
(
val
)
{
this
.
discountAmountCheck
=
val
<=
0
;
...
...
@@ -160,6 +169,12 @@ export default {
this
.
goodsDiscountCheck
=
val
<=
0
;
},
immediate
:
true
},
'form.goods_discounts_number_lower_limit'
:
{
handler
(
val
)
{
this
.
goodsDiscountCheckLower
=
val
<=
0
;
},
immediate
:
true
}
},
components
:
{
...
...
@@ -268,6 +283,7 @@ export default {
this
.
goods
.
ok
=
useCondition
.
goods
?
useCondition
.
goods
.
ok
||
''
:
''
;
this
.
goods
.
no
=
useCondition
.
goods
?
useCondition
.
goods
.
no
||
''
:
''
;
this
.
form
.
goods_discounts_number_upper_limit
=
useCondition
.
goods_discounts_number_upper_limit
||
0
;
this
.
form
.
goods_discounts_number_lower_limit
=
useCondition
.
goods_discounts_number_lower_limit
||
0
;
this
.
form
.
discount_amount_upper_limit
=
useCondition
.
discount_amount_upper_limit
||
0
;
this
.
form
.
products_exchange_number
=
useCondition
.
products_exchange_number
||
0
;
if
(
this
.
goods
.
ok
||
this
.
goods
.
no
)
{
...
...
@@ -518,8 +534,7 @@ export default {
no
:
this
.
goods
.
no
},
only
:
Number
(
this
.
only
),
discount_amount_upper_limit
:
this
.
form
.
discount_amount_upper_limit
,
goods_discounts_number_upper_limit
:
this
.
form
.
goods_discounts_number_upper_limit
discount_amount_upper_limit
:
this
.
form
.
discount_amount_upper_limit
};
if
(
this
.
only
)
{
card
.
useCondition
.
only
=
Number
(
this
.
only
);
...
...
@@ -544,6 +559,10 @@ export default {
}
}
// 商品上下线控制不受渠道卡券类型影响
card
.
useCondition
.
goods_discounts_number_upper_limit
=
this
.
form
.
goods_discounts_number_upper_limit
;
card
.
useCondition
.
goods_discounts_number_lower_limit
=
this
.
form
.
goods_discounts_number_lower_limit
;
// 微盟券号
if
(
this
.
form
.
cardApplyChannel
.
indexOf
(
'WMmicroMall'
)
!==
-
1
)
{
/* eslint-disable */
...
...
src/views/card/form.vue
View file @
fa0944e1
<
template
>
<div>
<el-form
class=
"dm-wrap"
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"1
2
0px"
>
<el-form
class=
"dm-wrap"
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"1
3
0px"
>
<el-form-item
label=
"卡券类型"
>
<el-radio-group
v-model=
"form.cardType"
:disabled=
"isEdit || isInfo"
@
change=
"reset"
>
<el-radio
:label=
"0"
>
抵金券
</el-radio>
...
...
@@ -61,7 +61,8 @@
<el-form-item
label=
"优惠金额封顶"
v-if=
"form.cardType === 1"
>
<el-input-number
controls-position=
"right"
:disabled=
"isEdit || isInfo || discountAmountCheck"
v-model=
"form.discount_amount_upper_limit"
class=
"200"
:precision=
"2"
:step=
"1"
:min=
"0"
></el-input-number>
元
<el-checkbox
v-model=
"discountAmountCheck"
:disabled=
"isEdit || isInfo"
>
不封顶
</el-checkbox><span
class=
"pl10 fz12 gray vertical-baseline"
>
*该条件目前仅线上可用
</span>
</el-form-item>
<el-form-item
label=
"最大商品优惠数"
v-if=
"form.cardType === 1"
>
<el-input-number
controls-position=
"right"
:disabled=
"isEdit || isInfo || goodsDiscountCheck"
v-model=
"form.goods_discounts_number_upper_limit"
class=
"200"
:precision=
"0"
:step=
"1"
:min=
"0"
></el-input-number>
件
<el-checkbox
v-model=
"goodsDiscountCheck"
:disabled=
"isEdit || isInfo"
>
无上限
</el-checkbox><span
class=
"pl10 fz12 gray vertical-baseline"
>
*该条件目前仅线上可用
</span>
</el-form-item>
<el-form-item
label=
"最高适用商品件数"
>
<el-input-number
controls-position=
"right"
:disabled=
"isEdit || isInfo || goodsDiscountCheck"
v-model=
"form.goods_discounts_number_upper_limit"
class=
"200"
:precision=
"0"
:step=
"1"
:min=
"0"
></el-input-number>
件
<el-checkbox
v-model=
"goodsDiscountCheck"
:disabled=
"isEdit || isInfo"
>
不限
</el-checkbox></el-form-item>
<el-form-item
label=
"最低适用商品件数"
>
<el-input-number
controls-position=
"right"
:disabled=
"isEdit || isInfo || goodsDiscountCheckLower"
v-model=
"form.goods_discounts_number_lower_limit"
class=
"200"
:precision=
"0"
:step=
"1"
:min=
"0"
></el-input-number>
件
<el-checkbox
v-model=
"goodsDiscountCheckLower"
:disabled=
"isEdit || isInfo"
>
不限
</el-checkbox></el-form-item>
<!-- 兑换券无 -->
<el-form-item
prop=
""
label=
"使用条件"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment