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
aeb56b76
Commit
aeb56b76
authored
Sep 18, 2019
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:build test
parent
7cd7d104
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
31 deletions
+38
-31
index.html
dist/index.html
+3
-3
ewash.8b8778aa01b41ba43016.js
dist/static/js/ewash.8b8778aa01b41ba43016.js
+0
-0
manifest.7bfa0d0dd776fc5702c5.js
dist/static/js/manifest.7bfa0d0dd776fc5702c5.js
+2
-2
form.js
src/views/ewash/form.js
+33
-26
No files found.
dist/index.html
View file @
aeb56b76
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
/
marketing/static/css/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
/marketing
/static/css/common.css
><script
type=
text/javascript
>
!
function
(
e
,
t
,
n
,
g
,
i
){
e
[
i
]
=
e
[
i
]
||
function
(){(
e
[
i
].
q
=
e
[
i
].
q
||
[]).
push
(
arguments
)},
n
=
t
.
createElement
(
"script"
),
tag
=
t
.
getElementsByTagName
(
"script"
)[
0
],
n
.
async
=
1
,
n
.
src
=
(
'https:'
==
document
.
location
.
protocol
?
'https://'
:
'http://'
)
+
g
,
tag
.
parentNode
.
insertBefore
(
n
,
tag
)}(
window
,
document
,
"script"
,
"assets.giocdn.com/2.1/gio.js"
,
"gio"
);
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
/
static/css/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
/static/css/common.css
><script
type=
text/javascript
>
!
function
(
e
,
t
,
n
,
g
,
i
){
e
[
i
]
=
e
[
i
]
||
function
(){(
e
[
i
].
q
=
e
[
i
].
q
||
[]).
push
(
arguments
)},
n
=
t
.
createElement
(
"script"
),
tag
=
t
.
getElementsByTagName
(
"script"
)[
0
],
n
.
async
=
1
,
n
.
src
=
(
'https:'
==
document
.
location
.
protocol
?
'https://'
:
'http://'
)
+
g
,
tag
.
parentNode
.
insertBefore
(
n
,
tag
)}(
window
,
document
,
"script"
,
"assets.giocdn.com/2.1/gio.js"
,
"gio"
);
gio
(
'init'
,
'8be12240a3749eab'
,
{});
//custom page code begin here
//custom page code end here
gio
(
'send'
);
</script><link
href=
/marketing/static/css/main.19fe41ab2b725aea4a35c72d545daf5e.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/lib/elementUI/index.2.5.4.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/header.2.0.30.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/card.2.0.02.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.04.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.31.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/export-excel.2.0.04.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.91.js
></script><script
type=
text/javascript
src=
/marketing/static/js/manifest.69b4bc8b222959cd3d3a.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.4cb744d5df3ad4bdbad7.js
></script><script
type=
text/javascript
src=
/marketing/static/js/main.0d07b5df99782e7c5191.js
></script></body></html>
\ No newline at end of file
gio
(
'send'
);
</script><link
href=
/marketing/static/css/main.19fe41ab2b725aea4a35c72d545daf5e.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/lib/elementUI/index.2.5.4.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/header.2.0.30.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/card.2.0.02.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.04.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.31.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/export-excel.2.0.04.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.91.js
></script><script
type=
text/javascript
src=
/marketing/static/js/manifest.7bfa0d0dd776fc5702c5.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.4cb744d5df3ad4bdbad7.js
></script><script
type=
text/javascript
src=
/marketing/static/js/main.0d07b5df99782e7c5191.js
></script></body></html>
\ No newline at end of file
dist/static/js/ewash.
e0d5144c92441f4ba48b
.js
→
dist/static/js/ewash.
8b8778aa01b41ba43016
.js
View file @
aeb56b76
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/manifest.
69b4bc8b222959cd3d3a
.js
→
dist/static/js/manifest.
7bfa0d0dd776fc5702c5
.js
View file @
aeb56b76
!
function
(
e
){
var
r
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
n
,
c
,
a
){
for
(
var
i
,
u
,
d
,
f
=
0
,
s
=
[];
f
<
n
.
length
;
f
++
)
u
=
n
[
f
],
t
[
u
]
&&
s
.
push
(
t
[
u
][
0
]),
t
[
u
]
=
0
;
for
(
i
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
i
)
&&
(
e
[
i
]
=
c
[
i
]);
for
(
r
&&
r
(
n
,
c
,
a
);
s
.
length
;)
s
.
shift
()();
if
(
a
)
for
(
f
=
0
;
f
<
a
.
length
;
f
++
)
d
=
o
(
o
.
s
=
a
[
f
]);
return
d
};
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
:
"game"
,
1
:
"card"
,
2
:
"wechat"
,
3
:
"evaluation"
,
4
:
"message"
,
5
:
"ewash"
,
6
:
"ecm"
,
7
:
"recharge"
,
8
:
"msg"
,
9
:
"calllog"
}[
e
]
||
e
)
+
"."
+
{
0
:
"939ef154a34f1a744ce0"
,
1
:
"026dac0bcd8969a615d4"
,
2
:
"74cec9b4e7b2d7c30c85"
,
3
:
"050296879188ef53023e"
,
4
:
"9a09a2ca69a10dd4b1cb"
,
5
:
"e0d5144c92441f4ba48b"
,
6
:
"1eea4e6e08cc95d8322d"
,
7
:
"6235075e2c47716c5050"
,
8
:
"5d9bccc98221e443f872"
,
9
:
"101d05cb830d169de2d6"
}[
e
]
+
".js"
;
var
i
=
setTimeout
(
u
,
12
e4
);
function
u
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
i
);
var
r
=
t
[
e
];
0
!==
r
&&
(
r
&&
r
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
u
,
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
i
,
u
,
d
,
f
=
0
,
s
=
[];
f
<
n
.
length
;
f
++
)
u
=
n
[
f
],
t
[
u
]
&&
s
.
push
(
t
[
u
][
0
]),
t
[
u
]
=
0
;
for
(
i
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
i
)
&&
(
e
[
i
]
=
c
[
i
]);
for
(
r
&&
r
(
n
,
c
,
a
);
s
.
length
;)
s
.
shift
()();
if
(
a
)
for
(
f
=
0
;
f
<
a
.
length
;
f
++
)
d
=
o
(
o
.
s
=
a
[
f
]);
return
d
};
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
:
"game"
,
1
:
"card"
,
2
:
"wechat"
,
3
:
"evaluation"
,
4
:
"message"
,
5
:
"ewash"
,
6
:
"ecm"
,
7
:
"recharge"
,
8
:
"msg"
,
9
:
"calllog"
}[
e
]
||
e
)
+
"."
+
{
0
:
"939ef154a34f1a744ce0"
,
1
:
"026dac0bcd8969a615d4"
,
2
:
"74cec9b4e7b2d7c30c85"
,
3
:
"050296879188ef53023e"
,
4
:
"9a09a2ca69a10dd4b1cb"
,
5
:
"8b8778aa01b41ba43016"
,
6
:
"1eea4e6e08cc95d8322d"
,
7
:
"6235075e2c47716c5050"
,
8
:
"5d9bccc98221e443f872"
,
9
:
"101d05cb830d169de2d6"
}[
e
]
+
".js"
;
var
i
=
setTimeout
(
u
,
12
e4
);
function
u
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
i
);
var
r
=
t
[
e
];
0
!==
r
&&
(
r
&&
r
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
u
,
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/ewash/form.js
View file @
aeb56b76
...
...
@@ -13,7 +13,7 @@ const initForm = {
cardType
:
2
,
// e袋洗为兑换券 写死2
giftCouponDiscountType
:
1
,
// 1.卡券类型: 1洗衣券 2免单券
cardName
:
''
,
// 2.卡券名称
cardApplyChannel
:
[],
// 卡券适用渠道
//
cardApplyChannel: [], // 卡券适用渠道
subName
:
''
,
// 3.备注名
subTitle
:
''
,
// 4.卡券副标题
erpDemoCode
:
''
,
// demo券号
...
...
@@ -66,7 +66,7 @@ export default {
only
:
false
,
// cardLimitRadio: 0,
rules
:
{
cardApplyChannel
:
{
required
:
true
,
type
:
'array'
,
message
:
'请选择卡券渠道'
,
trigger
:
'change'
},
//
cardApplyChannel: { required: true, type: 'array', message: '请选择卡券渠道', trigger: 'change' },
cardName
:
{
required
:
true
,
message
:
'请输入卡券名称'
,
trigger
:
'blur'
},
subName
:
{
required
:
true
,
message
:
'请输入备注名称'
,
trigger
:
'blur'
},
subTitle
:
{
required
:
true
,
message
:
'请输入卡券副标题'
,
trigger
:
'blur'
},
...
...
@@ -233,7 +233,7 @@ export default {
if
(
res
.
result
.
card
)
{
const
card
=
res
.
result
.
card
;
this
.
storeMode
=
card
.
storeMode
===
0
?
0
:
1
;
this
.
form
.
cardApplyChannel
=
card
.
cardApplyChannel
?
card
.
cardApplyChannel
.
split
(
','
)
:
[];
//
this.form.cardApplyChannel = card.cardApplyChannel ? card.cardApplyChannel.split(',') : [];
this
.
form
.
auditingStatus
=
card
.
auditingStatus
||
''
;
this
.
form
.
coupCardId
=
this
.
isCopy
?
''
:
card
.
coupCardId
;
this
.
form
.
cardType
=
card
.
cardType
;
...
...
@@ -383,29 +383,29 @@ export default {
//提交保存
async
submitForm
(
formName
)
{
// 验证微盟适用商品 勾选适用商品
if
((
this
.
form
.
cardType
===
0
||
this
.
form
.
cardType
===
1
)
&&
this
.
form
.
cardApplyChannel
.
indexOf
(
'WMmicroMall'
)
!==
-
1
)
{
let
wmProduct
=
await
this
.
handleCombine
();
if
(
wmProduct
===
1
)
{
this
.
coupGoodsWeimobList
=
[];
}
else
if
(
wmProduct
)
{
this
.
coupGoodsWeimobList
=
wmProduct
;
}
else
{
return
;
}
}
//
if ((this.form.cardType === 0 || this.form.cardType === 1) && this.form.cardApplyChannel.indexOf('WMmicroMall') !== -1) {
//
let wmProduct = await this.handleCombine();
//
if (wmProduct === 1) {
//
this.coupGoodsWeimobList = [];
//
} else if (wmProduct) {
//
this.coupGoodsWeimobList = wmProduct;
//
} else {
//
return;
//
}
//
}
// 验证 减免金额 和 折扣额度
if
(
this
.
form
.
cardType
===
0
)
{
if
(
Number
(
this
.
form
.
cardDenomination
)
<=
0
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'减免金额不能小于0'
});
return
;
}
}
else
if
(
this
.
form
.
cardType
===
1
)
{
if
(
Number
(
this
.
form
.
cardDenomination
)
<
1
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'最低折扣不能小于1'
});
return
;
}
}
//
if (this.form.cardType === 0) {
//
if (Number(this.form.cardDenomination) <= 0) {
//
this.$tips({ type: 'warning', message: '减免金额不能小于0' });
//
return;
//
}
//
} else if (this.form.cardType === 1) {
//
if (Number(this.form.cardDenomination) < 1) {
//
this.$tips({ type: 'warning', message: '最低折扣不能小于1' });
//
return;
//
}
//
}
// if (this.form.costValue <= 0 && this.form.cardType !== 1) {
// this.$tips({ type: 'warning', message: '成本必须大于0' });
// return;
...
...
@@ -457,7 +457,13 @@ export default {
let
card
=
{};
let
params
=
{};
card
.
cardApplyChannel
=
this
.
form
.
cardApplyChannel
.
join
(
','
);
// card.cardApplyChannel = this.form.cardApplyChannel.join(',');
// *****e袋洗多的字段*****
card
.
gicCouponType
=
this
.
form
.
gicCouponType
;
card
.
giftCouponDiscountType
=
this
.
form
.
giftCouponDiscountType
;
card
.
giftCouponValue
=
this
.
form
.
giftCouponValue
;
// *****e袋洗多的字段*****
card
.
coupCardId
=
this
.
form
.
coupCardId
;
card
.
cardType
=
this
.
form
.
cardType
;
card
.
cardName
=
this
.
form
.
cardName
;
...
...
@@ -611,7 +617,6 @@ export default {
card
.
storeProMode
=
0
;
card
.
storeMode
=
this
.
storeMode
;
card
.
storeWidgetKey
=
this
.
uuid
;
console
.
log
(
card
);
// 这里判断部分门店是否为空
if
(
card
.
storeMode
)
{
let
data
=
await
this
.
$refs
.
storeCard
.
getRightList
();
...
...
@@ -626,6 +631,8 @@ export default {
// 门店展架
// params.shelfIds = JSON.stringify(this.form.shelfIds);
params
.
card
=
JSON
.
stringify
(
card
);
// console.log(card);
// return;
this
.
submitLoading
=
true
;
saveUpdateCard
(
params
)
.
then
(
res
=>
{
...
...
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