Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
bp
ShenghuoquanBusiness
Commits
c5753c1d
Commit
c5753c1d
authored
Jul 10, 2021
by
shiyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新发布优惠券js代码
parent
2253f122
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
5 deletions
+5
-5
config.json
Components/commodity/src/main/assets/www/config.json
+1
-1
app.8e739d4c.css
...main/assets/www/pages/coupon_publish/css/app.8e739d4c.css
+0
-1
app.a576a948.css
...main/assets/www/pages/coupon_publish/css/app.a576a948.css
+1
-0
index.html
...odity/src/main/assets/www/pages/coupon_publish/index.html
+2
-2
app.4754623d.js
...c/main/assets/www/pages/coupon_publish/js/app.4754623d.js
+0
-1
app.d90e8362.js
...c/main/assets/www/pages/coupon_publish/js/app.d90e8362.js
+1
-0
No files found.
Components/commodity/src/main/assets/www/config.json
View file @
c5753c1d
{
"x_resource_version"
:
"0.0.1
5
"
,
"routers"
:[{
"name"
:
"xbrid_coupon_publish"
,
"local_path"
:
"pages/coupon_publish/index.html"
,
"remote_url"
:
""
,
"operation_url"
:
""
},{
"name"
:
"xbrid_user1"
,
"local_path"
:
"pages/user1/index.html"
,
"remote_url"
:
""
,
"operation_url"
:
""
}]}
{
"x_resource_version"
:
"0.0.1
6
"
,
"routers"
:[{
"name"
:
"xbrid_coupon_publish"
,
"local_path"
:
"pages/coupon_publish/index.html"
,
"remote_url"
:
""
,
"operation_url"
:
""
},{
"name"
:
"xbrid_user1"
,
"local_path"
:
"pages/user1/index.html"
,
"remote_url"
:
""
,
"operation_url"
:
""
}]}
Components/commodity/src/main/assets/www/pages/coupon_publish/css/app.8e739d4c.css
deleted
100644 → 0
View file @
2253f122
body
[
data-v-446a2706
]
{
font-size
:
14px
;
color
:
#333
;
font-family
:
PingFangSC
,
PingFangSC-Medium
}
.title
[
data-v-446a2706
]
{
color
:
#333
;
font-size
:
14px
;
font-weight
:
900
;
padding
:
20px
;
display
:
flex
;
align-items
:
center
}
.publicBox
[
data-v-446a2706
]
.van-cell
{
height
:
80px
;
padding
:
0
20px
}
.publicBox
[
data-v-446a2706
]
.van-cell
:after
{
border
:
none
}
.publicBox
[
data-v-446a2706
]
.van-cell
.van-field__label
{
height
:
61px
;
border-bottom
:
1px
solid
#f0f1f4
;
display
:
flex
;
align-items
:
center
;
margin-right
:
0
}
.publicBox
[
data-v-446a2706
]
.van-field__label
>
span
{
width
:
66px
;
height
:
24px
;
font-size
:
16px
}
.timerStyle
[
data-v-446a2706
]
.van-field__label
>
span
{
width
:
100px
}
.publicBox
[
data-v-446a2706
]
.van-cell
.van-field__value
{
height
:
60px
;
border-bottom
:
1px
solid
#f0f1f4
;
display
:
flex
;
align-items
:
center
}
.couponPage
[
data-v-446a2706
]
.van-field--error
.van-field__label
,
.couponPage
[
data-v-446a2706
]
.van-field--error
.van-field__value
{
border-bottom
:
1px
solid
red
}
.couponPage
[
data-v-446a2706
]
.van-field__error-message
{
position
:
absolute
;
left
:
-86px
;
bottom
:
-26px
}
.publicBox
[
data-v-446a2706
]
.van-cell__right-icon
{
font-size
:
24px
;
color
:
#979797
;
position
:
absolute
;
right
:
20px
;
top
:
18px
}
.tradeName
[
data-v-446a2706
]
input
{
width
:
215px
}
.price
[
data-v-446a2706
]
input
{
width
:
247px
}
.stepper
[
data-v-446a2706
]
button
{
width
:
24px
;
height
:
24px
;
border-radius
:
50%
}
.stepper
[
data-v-446a2706
]
input
{
width
:
50px
;
height
:
24px
;
margin
:
0
12px
;
background
:
#fff
}
.stepper
[
data-v-446a2706
]
.van-field__label
>
span
{
width
:
100%
}
.pictureUpload
[
data-v-446a2706
]
.van-uploader__preview
,
.uploadFile
[
data-v-446a2706
]
{
width
:
106px
;
height
:
80px
;
border-radius
:
8px
}
.pictureUpload
[
data-v-446a2706
]
.van-uploader__preview
.van-image
{
width
:
100%
;
height
:
100%
;
border-radius
:
8px
}
.pictureUpload
[
data-v-446a2706
]
.van-uploader__preview
.van-uploader__preview-delete
{
width
:
13px
;
height
:
13px
;
border-radius
:
50%
;
background
:
rgba
(
0
,
0
,
0
,
.4
);
margin
:
5px
}
.uploadFile
[
data-v-446a2706
]
{
background
:
#f6f7f7
;
text-align
:
center
;
padding
:
10px
0
;
box-sizing
:
border-box
;
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
center
}
.uploadFile
.icoPlus
[
data-v-446a2706
]
{
width
:
100%
;
font-size
:
24px
;
font-weight
:
900
;
margin-bottom
:
6px
;
color
:
#999
}
.uploadFile
.num
[
data-v-446a2706
]
{
width
:
100%
;
margin
:
0
;
color
:
#999
;
font-size
:
12px
}
.singPurLimit
[
data-v-446a2706
]
.van-field__value
{
padding-left
:
24px
;
box-sizing
:
border-box
;
border-radius
:
1px
solid
}
.moreSetIcoDown
[
data-v-446a2706
],
.moreSetIcoUp
[
data-v-446a2706
]
{
font-size
:
18px
;
font-weight
:
900
;
margin-right
:
7.5px
}
.moreSetTitle
[
data-v-446a2706
]
{
font-size
:
16px
;
color
:
#333
;
padding
:
13px
24px
;
box-sizing
:
border-box
}
.moreSetTxt
[
data-v-446a2706
]
{
width
:
91%
;
height
:
142.5px
!important
;
background
:
#f5f6f7
;
border-radius
:
8px
;
margin
:
0
auto
}
.moreSetBox
[
data-v-446a2706
]
{
height
:
auto
}
.draw-enter-active
[
data-v-446a2706
],
.draw-leave-active
[
data-v-446a2706
]
{
transition
:
all
.1s
ease
}
.draw-enter
[
data-v-446a2706
],
.draw-leave-to
[
data-v-446a2706
]
{
height
:
0
}
.submitBtn
[
data-v-446a2706
]
{
margin
:
112px
30px
34px
30px
}
\ No newline at end of file
Components/commodity/src/main/assets/www/pages/coupon_publish/css/app.a576a948.css
0 → 100644
View file @
c5753c1d
body
[
data-v-9fd89d4e
]
{
font-size
:
14px
;
color
:
#333
;
font-family
:
PingFangSC
,
PingFangSC-Medium
}
.title
[
data-v-9fd89d4e
]
{
color
:
#333
;
font-size
:
14px
;
font-weight
:
900
;
padding
:
20px
;
display
:
flex
;
align-items
:
center
}
.publicBox
[
data-v-9fd89d4e
]
.van-cell
{
height
:
80px
;
padding
:
0
20px
}
.publicBox
[
data-v-9fd89d4e
]
.van-cell
:after
{
border
:
none
}
.publicBox
[
data-v-9fd89d4e
]
.van-cell
.van-field__label
{
height
:
61px
;
border-bottom
:
1px
solid
#f0f1f4
;
display
:
flex
;
align-items
:
center
;
margin-right
:
0
}
.publicBox
[
data-v-9fd89d4e
]
.van-field__label
>
span
{
width
:
66px
;
height
:
24px
;
font-size
:
16px
}
.timerStyle
[
data-v-9fd89d4e
]
.van-field__label
>
span
{
width
:
100px
}
.publicBox
[
data-v-9fd89d4e
]
.van-cell
.van-field__value
{
height
:
60px
;
border-bottom
:
1px
solid
#f0f1f4
;
display
:
flex
;
align-items
:
center
}
.couponPage
[
data-v-9fd89d4e
]
.van-field--error
.van-field__label
,
.couponPage
[
data-v-9fd89d4e
]
.van-field--error
.van-field__value
{
border-bottom
:
1px
solid
red
}
.couponPage
[
data-v-9fd89d4e
]
.van-field__error-message
{
position
:
absolute
;
left
:
-86px
;
bottom
:
-26px
}
.publicBox
[
data-v-9fd89d4e
]
.van-cell__right-icon
{
font-size
:
24px
;
color
:
#979797
;
position
:
absolute
;
right
:
20px
;
top
:
18px
}
.tradeName
[
data-v-9fd89d4e
]
input
{
width
:
215px
}
.price
[
data-v-9fd89d4e
]
input
{
width
:
247px
}
.stepper
[
data-v-9fd89d4e
]
button
{
width
:
24px
;
height
:
24px
;
border-radius
:
50%
}
.stepper
[
data-v-9fd89d4e
]
input
{
width
:
50px
;
height
:
24px
;
margin
:
0
12px
;
background
:
#fff
}
.stepper
[
data-v-9fd89d4e
]
.van-field__label
>
span
{
width
:
100%
}
.pictureUpload
[
data-v-9fd89d4e
]
.van-uploader__preview
,
.uploadFile
[
data-v-9fd89d4e
]
{
width
:
106px
;
height
:
80px
;
border-radius
:
8px
}
.pictureUpload
[
data-v-9fd89d4e
]
.van-uploader__preview
.van-image
{
width
:
100%
;
height
:
100%
;
border-radius
:
8px
}
.pictureUpload
[
data-v-9fd89d4e
]
.van-uploader__preview
.van-uploader__preview-delete
{
width
:
13px
;
height
:
13px
;
border-radius
:
50%
;
background
:
rgba
(
0
,
0
,
0
,
.4
);
margin
:
5px
}
.uploadFile
[
data-v-9fd89d4e
]
{
background
:
#f6f7f7
;
text-align
:
center
;
padding
:
10px
0
;
box-sizing
:
border-box
;
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
center
}
.uploadFile
.icoPlus
[
data-v-9fd89d4e
]
{
width
:
100%
;
font-size
:
24px
;
font-weight
:
900
;
margin-bottom
:
6px
;
color
:
#999
}
.uploadFile
.num
[
data-v-9fd89d4e
]
{
width
:
100%
;
margin
:
0
;
color
:
#999
;
font-size
:
12px
}
.singPurLimit
[
data-v-9fd89d4e
]
.van-field__value
{
padding-left
:
24px
;
box-sizing
:
border-box
;
border-radius
:
1px
solid
}
.moreSetIcoDown
[
data-v-9fd89d4e
],
.moreSetIcoUp
[
data-v-9fd89d4e
]
{
font-size
:
18px
;
font-weight
:
900
;
margin-right
:
7.5px
}
.moreSetTitle
[
data-v-9fd89d4e
]
{
font-size
:
16px
;
color
:
#333
;
padding
:
13px
24px
;
box-sizing
:
border-box
}
.moreSetTxt
[
data-v-9fd89d4e
]
{
width
:
91%
;
height
:
142.5px
!important
;
background
:
#f5f6f7
;
border-radius
:
8px
;
margin
:
0
auto
}
.moreSetBox
[
data-v-9fd89d4e
]
{
height
:
auto
}
.draw-enter-active
[
data-v-9fd89d4e
],
.draw-leave-active
[
data-v-9fd89d4e
]
{
transition
:
all
.1s
ease
}
.draw-enter
[
data-v-9fd89d4e
],
.draw-leave-to
[
data-v-9fd89d4e
]
{
height
:
0
}
.submitBtn
[
data-v-9fd89d4e
]
{
margin
:
112px
30px
34px
30px
}
\ No newline at end of file
Components/commodity/src/main/assets/www/pages/coupon_publish/index.html
View file @
c5753c1d
<!DOCTYPE html>
<html
lang=
""
><head><meta
charset=
"utf-8"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
><meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;"
><title>
发布优惠卷
</title><link
href=
"css/app.
8e739d4c.css"
rel=
"preload"
as=
"style"
><link
href=
"css/chunk-vendors.8717c8a6.css"
rel=
"preload"
as=
"style"
><link
href=
"js/app.4754623d.js"
rel=
"preload"
as=
"script"
><link
href=
"js/chunk-vendors.5537d445.js"
rel=
"preload"
as=
"script"
><link
href=
"css/chunk-vendors.8717c8a6.css"
rel=
"stylesheet"
><link
href=
"css/app.8e739d4c
.css"
rel=
"stylesheet"
></head><script>
// 禁止IOS页面缩放
<!DOCTYPE html>
<html
lang=
""
><head><meta
charset=
"utf-8"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
><meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;"
><title>
发布优惠卷
</title><link
href=
"css/app.
a576a948.css"
rel=
"preload"
as=
"style"
><link
href=
"css/chunk-vendors.8717c8a6.css"
rel=
"preload"
as=
"style"
><link
href=
"js/app.d90e8362.js"
rel=
"preload"
as=
"script"
><link
href=
"js/chunk-vendors.5537d445.js"
rel=
"preload"
as=
"script"
><link
href=
"css/chunk-vendors.8717c8a6.css"
rel=
"stylesheet"
><link
href=
"css/app.a576a948
.css"
rel=
"stylesheet"
></head><script>
// 禁止IOS页面缩放
document
.
documentElement
.
addEventListener
(
"touchstart"
,
function
(
event
)
{
...
...
@@ -23,4 +23,4 @@
);
document
.
addEventListener
(
"gesturestart"
,
function
(
event
)
{
event
.
preventDefault
();
});
</script><body><div
id=
"app"
></div><script
src=
"js/chunk-vendors.5537d445.js"
></script><script
src=
"js/app.4754623d.js"
></script></body></html>
\ No newline at end of file
});
</script><body><div
id=
"app"
></div><script
src=
"js/chunk-vendors.5537d445.js"
></script><script
src=
"js/app.d90e8362.js"
></script></body></html>
\ No newline at end of file
Components/commodity/src/main/assets/www/pages/coupon_publish/js/app.4754623d.js
deleted
100644 → 0
View file @
2253f122
(
function
(
e
){
function
t
(
t
){
for
(
var
s
,
a
,
i
=
t
[
0
],
c
=
t
[
1
],
u
=
t
[
2
],
d
=
0
,
f
=
[];
d
<
i
.
length
;
d
++
)
a
=
i
[
d
],
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
a
)
&&
r
[
a
]
&&
f
.
push
(
r
[
a
][
0
]),
r
[
a
]
=
0
;
for
(
s
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
s
)
&&
(
e
[
s
]
=
c
[
s
]);
l
&&
l
(
t
);
while
(
f
.
length
)
f
.
shift
()();
return
n
.
push
.
apply
(
n
,
u
||
[]),
o
()}
function
o
(){
for
(
var
e
,
t
=
0
;
t
<
n
.
length
;
t
++
){
for
(
var
o
=
n
[
t
],
s
=!
0
,
i
=
1
;
i
<
o
.
length
;
i
++
){
var
c
=
o
[
i
];
0
!==
r
[
c
]
&&
(
s
=!
1
)}
s
&&
(
n
.
splice
(
t
--
,
1
),
e
=
a
(
a
.
s
=
o
[
0
]))}
return
e
}
var
s
=
{},
r
=
{
app
:
0
},
n
=
[];
function
a
(
t
){
if
(
s
[
t
])
return
s
[
t
].
exports
;
var
o
=
s
[
t
]
=
{
i
:
t
,
l
:
!
1
,
exports
:{}};
return
e
[
t
].
call
(
o
.
exports
,
o
,
o
.
exports
,
a
),
o
.
l
=!
0
,
o
.
exports
}
a
.
m
=
e
,
a
.
c
=
s
,
a
.
d
=
function
(
e
,
t
,
o
){
a
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
o
})},
a
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
a
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
a
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
o
=
Object
.
create
(
null
);
if
(
a
.
r
(
o
),
Object
.
defineProperty
(
o
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"string"
!=
typeof
e
)
for
(
var
s
in
e
)
a
.
d
(
o
,
s
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
s
));
return
o
},
a
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
a
.
d
(
t
,
"a"
,
t
),
t
},
a
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
a
.
p
=
""
;
var
i
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
c
=
i
.
push
.
bind
(
i
);
i
.
push
=
t
,
i
=
i
.
slice
();
for
(
var
u
=
0
;
u
<
i
.
length
;
u
++
)
t
(
i
[
u
]);
var
l
=
c
;
n
.
push
([
0
,
"chunk-vendors"
]),
o
()})({
0
:
function
(
e
,
t
,
o
){
e
.
exports
=
o
(
"56d7"
)},
2981
:
function
(
e
,
t
,
o
){
var
s
=
{
"./af"
:
"f826"
,
"./af.js"
:
"f826"
,
"./ar"
:
"0fa2"
,
"./ar-dz"
:
"8ec6"
,
"./ar-dz.js"
:
"8ec6"
,
"./ar-kw"
:
"36f4"
,
"./ar-kw.js"
:
"36f4"
,
"./ar-ly"
:
"0e86"
,
"./ar-ly.js"
:
"0e86"
,
"./ar-ma"
:
"3d3d"
,
"./ar-ma.js"
:
"3d3d"
,
"./ar-sa"
:
"cfe1"
,
"./ar-sa.js"
:
"cfe1"
,
"./ar-tn"
:
"0608"
,
"./ar-tn.js"
:
"0608"
,
"./ar.js"
:
"0fa2"
,
"./az"
:
"9cec"
,
"./az.js"
:
"9cec"
,
"./be"
:
"609d"
,
"./be.js"
:
"609d"
,
"./bg"
:
"3f4f"
,
"./bg.js"
:
"3f4f"
,
"./bm"
:
"43e9"
,
"./bm.js"
:
"43e9"
,
"./bn"
:
"d345"
,
"./bn-bd"
:
"3037"
,
"./bn-bd.js"
:
"3037"
,
"./bn.js"
:
"d345"
,
"./bo"
:
"fe43"
,
"./bo.js"
:
"fe43"
,
"./br"
:
"927d"
,
"./br.js"
:
"927d"
,
"./bs"
:
"1808"
,
"./bs.js"
:
"1808"
,
"./ca"
:
"2a24"
,
"./ca.js"
:
"2a24"
,
"./cs"
:
"8bb4"
,
"./cs.js"
:
"8bb4"
,
"./cv"
:
"1788"
,
"./cv.js"
:
"1788"
,
"./cy"
:
"8cb6"
,
"./cy.js"
:
"8cb6"
,
"./da"
:
"9fca"
,
"./da.js"
:
"9fca"
,
"./de"
:
"3f20"
,
"./de-at"
:
"a8f1"
,
"./de-at.js"
:
"a8f1"
,
"./de-ch"
:
"2b68"
,
"./de-ch.js"
:
"2b68"
,
"./de.js"
:
"3f20"
,
"./dv"
:
"6a7c"
,
"./dv.js"
:
"6a7c"
,
"./el"
:
"7f03"
,
"./el.js"
:
"7f03"
,
"./en-au"
:
"e33b"
,
"./en-au.js"
:
"e33b"
,
"./en-ca"
:
"563d"
,
"./en-ca.js"
:
"563d"
,
"./en-gb"
:
"6e59"
,
"./en-gb.js"
:
"6e59"
,
"./en-ie"
:
"a02d"
,
"./en-ie.js"
:
"a02d"
,
"./en-il"
:
"2dd2"
,
"./en-il.js"
:
"2dd2"
,
"./en-in"
:
"b674"
,
"./en-in.js"
:
"b674"
,
"./en-nz"
:
"2e16"
,
"./en-nz.js"
:
"2e16"
,
"./en-sg"
:
"49e7"
,
"./en-sg.js"
:
"49e7"
,
"./eo"
:
"3645"
,
"./eo.js"
:
"3645"
,
"./es"
:
"8669"
,
"./es-do"
:
"1ef1"
,
"./es-do.js"
:
"1ef1"
,
"./es-mx"
:
"aa4f"
,
"./es-mx.js"
:
"aa4f"
,
"./es-us"
:
"2adb"
,
"./es-us.js"
:
"2adb"
,
"./es.js"
:
"8669"
,
"./et"
:
"7672"
,
"./et.js"
:
"7672"
,
"./eu"
:
"666c"
,
"./eu.js"
:
"666c"
,
"./fa"
:
"691e"
,
"./fa.js"
:
"691e"
,
"./fi"
:
"b486"
,
"./fi.js"
:
"b486"
,
"./fil"
:
"e425"
,
"./fil.js"
:
"e425"
,
"./fo"
:
"60e4"
,
"./fo.js"
:
"60e4"
,
"./fr"
:
"bc2c"
,
"./fr-ca"
:
"028a"
,
"./fr-ca.js"
:
"028a"
,
"./fr-ch"
:
"de9b"
,
"./fr-ch.js"
:
"de9b"
,
"./fr.js"
:
"bc2c"
,
"./fy"
:
"de08"
,
"./fy.js"
:
"de08"
,
"./ga"
:
"c134"
,
"./ga.js"
:
"c134"
,
"./gd"
:
"680a"
,
"./gd.js"
:
"680a"
,
"./gl"
:
"3a5c"
,
"./gl.js"
:
"3a5c"
,
"./gom-deva"
:
"3ab2"
,
"./gom-deva.js"
:
"3ab2"
,
"./gom-latn"
:
"9bbd"
,
"./gom-latn.js"
:
"9bbd"
,
"./gu"
:
"3123"
,
"./gu.js"
:
"3123"
,
"./he"
:
"a3bb"
,
"./he.js"
:
"a3bb"
,
"./hi"
:
"74d5"
,
"./hi.js"
:
"74d5"
,
"./hr"
:
"3d1a"
,
"./hr.js"
:
"3d1a"
,
"./hu"
:
"8930"
,
"./hu.js"
:
"8930"
,
"./hy-am"
:
"5368"
,
"./hy-am.js"
:
"5368"
,
"./id"
:
"4d1d"
,
"./id.js"
:
"4d1d"
,
"./is"
:
"d8c2"
,
"./is.js"
:
"d8c2"
,
"./it"
:
"b571"
,
"./it-ch"
:
"26a2"
,
"./it-ch.js"
:
"26a2"
,
"./it.js"
:
"b571"
,
"./ja"
:
"f409"
,
"./ja.js"
:
"f409"
,
"./jv"
:
"24ca"
,
"./jv.js"
:
"24ca"
,
"./ka"
:
"57b4"
,
"./ka.js"
:
"57b4"
,
"./kk"
:
"7af1"
,
"./kk.js"
:
"7af1"
,
"./km"
:
"368b"
,
"./km.js"
:
"368b"
,
"./kn"
:
"c931"
,
"./kn.js"
:
"c931"
,
"./ko"
:
"8472"
,
"./ko.js"
:
"8472"
,
"./ku"
:
"41c3"
,
"./ku.js"
:
"41c3"
,
"./ky"
:
"7229"
,
"./ky.js"
:
"7229"
,
"./lb"
:
"febd"
,
"./lb.js"
:
"febd"
,
"./lo"
:
"b36b"
,
"./lo.js"
:
"b36b"
,
"./lt"
:
"2654"
,
"./lt.js"
:
"2654"
,
"./lv"
:
"6e31"
,
"./lv.js"
:
"6e31"
,
"./me"
:
"f72d"
,
"./me.js"
:
"f72d"
,
"./mi"
:
"2bcd"
,
"./mi.js"
:
"2bcd"
,
"./mk"
:
"c0de"
,
"./mk.js"
:
"c0de"
,
"./ml"
:
"e75d"
,
"./ml.js"
:
"e75d"
,
"./mn"
:
"b37a"
,
"./mn.js"
:
"b37a"
,
"./mr"
:
"a76b"
,
"./mr.js"
:
"a76b"
,
"./ms"
:
"2bf0"
,
"./ms-my"
:
"2b02"
,
"./ms-my.js"
:
"2b02"
,
"./ms.js"
:
"2bf0"
,
"./mt"
:
"e717"
,
"./mt.js"
:
"e717"
,
"./my"
:
"e2e2"
,
"./my.js"
:
"e2e2"
,
"./nb"
:
"bdfc"
,
"./nb.js"
:
"bdfc"
,
"./ne"
:
"75c0"
,
"./ne.js"
:
"75c0"
,
"./nl"
:
"3e8e"
,
"./nl-be"
:
"de3b"
,
"./nl-be.js"
:
"de3b"
,
"./nl.js"
:
"3e8e"
,
"./nn"
:
"90a3"
,
"./nn.js"
:
"90a3"
,
"./oc-lnc"
:
"8195"
,
"./oc-lnc.js"
:
"8195"
,
"./pa-in"
:
"bf7a"
,
"./pa-in.js"
:
"bf7a"
,
"./pl"
:
"210f"
,
"./pl.js"
:
"210f"
,
"./pt"
:
"12e3"
,
"./pt-br"
:
"294f"
,
"./pt-br.js"
:
"294f"
,
"./pt.js"
:
"12e3"
,
"./ro"
:
"7a04"
,
"./ro.js"
:
"7a04"
,
"./ru"
:
"75cb"
,
"./ru.js"
:
"75cb"
,
"./sd"
:
"f957"
,
"./sd.js"
:
"f957"
,
"./se"
:
"4169"
,
"./se.js"
:
"4169"
,
"./si"
:
"951b"
,
"./si.js"
:
"951b"
,
"./sk"
:
"1c1d"
,
"./sk.js"
:
"1c1d"
,
"./sl"
:
"eb2c"
,
"./sl.js"
:
"eb2c"
,
"./sq"
:
"7c7d"
,
"./sq.js"
:
"7c7d"
,
"./sr"
:
"5f14"
,
"./sr-cyrl"
:
"20a0"
,
"./sr-cyrl.js"
:
"20a0"
,
"./sr.js"
:
"5f14"
,
"./ss"
:
"3a89"
,
"./ss.js"
:
"3a89"
,
"./sv"
:
"87ac"
,
"./sv.js"
:
"87ac"
,
"./sw"
:
"91c3"
,
"./sw.js"
:
"91c3"
,
"./ta"
:
"41cd"
,
"./ta.js"
:
"41cd"
,
"./te"
:
"5a49"
,
"./te.js"
:
"5a49"
,
"./tet"
:
"0e56"
,
"./tet.js"
:
"0e56"
,
"./tg"
:
"2495"
,
"./tg.js"
:
"2495"
,
"./th"
:
"db96"
,
"./th.js"
:
"db96"
,
"./tk"
:
"593b"
,
"./tk.js"
:
"593b"
,
"./tl-ph"
:
"b593"
,
"./tl-ph.js"
:
"b593"
,
"./tlh"
:
"04f0"
,
"./tlh.js"
:
"04f0"
,
"./tr"
:
"d11d"
,
"./tr.js"
:
"d11d"
,
"./tzl"
:
"6da8"
,
"./tzl.js"
:
"6da8"
,
"./tzm"
:
"11af"
,
"./tzm-latn"
:
"2eac"
,
"./tzm-latn.js"
:
"2eac"
,
"./tzm.js"
:
"11af"
,
"./ug-cn"
:
"f551"
,
"./ug-cn.js"
:
"f551"
,
"./uk"
:
"89a5"
,
"./uk.js"
:
"89a5"
,
"./ur"
:
"faa7"
,
"./ur.js"
:
"faa7"
,
"./uz"
:
"c23b"
,
"./uz-latn"
:
"d399"
,
"./uz-latn.js"
:
"d399"
,
"./uz.js"
:
"c23b"
,
"./vi"
:
"6811"
,
"./vi.js"
:
"6811"
,
"./x-pseudo"
:
"52a9"
,
"./x-pseudo.js"
:
"52a9"
,
"./yo"
:
"f28c"
,
"./yo.js"
:
"f28c"
,
"./zh-cn"
:
"39cf"
,
"./zh-cn.js"
:
"39cf"
,
"./zh-hk"
:
"25ad"
,
"./zh-hk.js"
:
"25ad"
,
"./zh-mo"
:
"1689"
,
"./zh-mo.js"
:
"1689"
,
"./zh-tw"
:
"2dba"
,
"./zh-tw.js"
:
"2dba"
};
function
r
(
e
){
var
t
=
n
(
e
);
return
o
(
t
)}
function
n
(
e
){
if
(
!
o
.
o
(
s
,
e
)){
var
t
=
new
Error
(
"Cannot find module '"
+
e
+
"'"
);
throw
t
.
code
=
"MODULE_NOT_FOUND"
,
t
}
return
s
[
e
]}
r
.
keys
=
function
(){
return
Object
.
keys
(
s
)},
r
.
resolve
=
n
,
e
.
exports
=
r
,
r
.
id
=
"2981"
},
4841
:
function
(
e
,
t
,
o
){},
"56d7"
:
function
(
e
,
t
,
o
){
"use strict"
;
o
.
r
(
t
);
o
(
"e260"
),
o
(
"e6cf"
),
o
(
"cca6"
),
o
(
"a79d"
);
var
s
=
o
(
"2b0e"
),
r
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
attrs
:{
id
:
"app"
}},[
o
(
"coupon"
)],
1
)},
n
=
[],
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"couponPage"
},[
o
(
"van-form"
,{
on
:{
submit
:
e
.
release
}},[
o
(
"div"
,{
staticClass
:
"essentialInfo publicBox"
},[
o
(
"van-row"
,{
staticClass
:
"title"
},[
e
.
_v
(
"基本信息"
)]),
o
(
"van-field"
,{
staticClass
:
"tradeName"
,
attrs
:{
name
:
"goods_name"
,
label
:
"商品名称"
,
placeholder
:
""
,
maxlength
:
"50"
,
"show-error"
:
"true"
,
rules
:[{
required
:
!
0
,
message
:
"请填写商品名称"
}]},
model
:{
value
:
e
.
goodsInfo
.
goods_name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"goods_name"
,
t
)},
expression
:
"goodsInfo.goods_name"
}}),
o
(
"van-field"
,{
attrs
:{
name
:
"category"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"所属类目"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请选择所属类目"
}]},
on
:{
click
:
e
.
categoryClick
},
model
:{
value
:
e
.
goodsInfo
.
category
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"category"
,
t
)},
expression
:
"goodsInfo.category"
}})],
1
),
o
(
"van-row"
,{
staticStyle
:{
height
:
"10px"
,
background
:
"#f5f6f7"
}}),
o
(
"div"
,{
staticClass
:
"otherInfo publicBox"
},[
o
(
"van-row"
,{
staticClass
:
"title"
},[
e
.
_v
(
"其他信息"
)]),
o
(
"van-field"
,{
staticClass
:
"price"
,
attrs
:{
type
:
"number"
,
name
:
"goodsInfo.price"
,
label
:
"售价 (元)"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请填写售价"
}]},
model
:{
value
:
e
.
goodsInfo
.
price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"price"
,
t
)},
expression
:
"goodsInfo.price"
}}),
o
(
"van-field"
,{
staticClass
:
"stepper"
,
attrs
:{
name
:
"whStorage"
,
label
:
"增减库存"
},
scopedSlots
:
e
.
_u
([{
key
:
"input"
,
fn
:
function
(){
return
[
o
(
"van-stepper"
,{
attrs
:{
min
:
"-999"
,
max
:
"999"
,
integer
:
""
},
model
:{
value
:
e
.
currentWhStorage
,
callback
:
function
(
t
){
e
.
currentWhStorage
=
t
},
expression
:
"currentWhStorage"
}}),
o
(
"van-row"
,{
staticStyle
:{
"font-size"
:
"12px"
,
color
:
"#c2c2c2"
,
position
:
"absolute"
,
right
:
"9px"
}},[
o
(
"van-col"
,{
staticStyle
:{
"text-align"
:
"right"
},
attrs
:{
span
:
24
}},[
e
.
_v
(
"当前库存"
)]),
o
(
"van-col"
,{
staticStyle
:{
"text-align"
:
"right"
},
attrs
:{
span
:
24
}},[
e
.
_v
(
e
.
_s
(
e
.
inventoryNum
))])],
1
)]},
proxy
:
!
0
}])}),
o
(
"van-field"
,{
attrs
:{
name
:
"dueDate"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"到期时间"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请选择到期时间"
}]},
on
:{
click
:
e
.
dueDateMth
},
model
:{
value
:
e
.
goodsInfo
.
expiration_time
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"expiration_time"
,
t
)},
expression
:
"goodsInfo.expiration_time"
}}),
o
(
"van-popup"
,{
attrs
:{
position
:
"bottom"
},
model
:{
value
:
e
.
showdueDate
,
callback
:
function
(
t
){
e
.
showdueDate
=
t
},
expression
:
"showdueDate"
}},[
o
(
"van-datetime-picker"
,{
attrs
:{
type
:
"datetime"
,
title
:
"选择到期时间"
},
on
:{
cancel
:
function
(
t
){
e
.
showdueDate
=!
1
},
confirm
:
e
.
dueDateClick
},
model
:{
value
:
e
.
currentDate
,
callback
:
function
(
t
){
e
.
currentDate
=
t
},
expression
:
"currentDate"
}})],
1
),
o
(
"van-field"
,{
attrs
:{
name
:
"refundRules"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"退款规则"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请选择退款规则"
}]},
on
:{
click
:
function
(
t
){
e
.
showRefundRules
=!
0
}},
model
:{
value
:
e
.
rule_refund_txt
,
callback
:
function
(
t
){
e
.
rule_refund_txt
=
t
},
expression
:
"rule_refund_txt"
}}),
o
(
"van-action-sheet"
,{
attrs
:{
actions
:
e
.
refundRulesArr
,
"cancel-text"
:
"取消"
,
"close-on-click-action"
:
""
},
on
:{
cancel
:
e
.
refundRuleCancel
,
select
:
e
.
refundRuleConfirm
},
model
:{
value
:
e
.
showRefundRules
,
callback
:
function
(
t
){
e
.
showRefundRules
=
t
},
expression
:
"showRefundRules"
}}),
o
(
"van-field"
,{
attrs
:{
name
:
"store"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"门店选择"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请选择门店"
}]},
on
:{
click
:
e
.
storeClick
},
model
:{
value
:
e
.
storeLength
,
callback
:
function
(
t
){
e
.
storeLength
=
t
},
expression
:
"storeLength"
}}),
o
(
"van-row"
,{
staticClass
:
"pictureUpload"
},[
o
(
"van-row"
,{
staticStyle
:{
"font-size"
:
"16px"
,
padding
:
"13px 0 10px 20px"
}},[
e
.
_v
(
"商品图片"
)]),
o
(
"van-row"
,{
staticStyle
:{
"font-size"
:
"12px"
,
"padding-left"
:
"20px"
,
color
:
"#999999"
}},[
e
.
_v
(
"建议上传图片大小为10M以内"
)]),
o
(
"van-uploader"
,{
staticStyle
:{
padding
:
"10px 0 20.5px 20px"
,
"margin-right"
:
"8px"
},
attrs
:{
name
:
"productPicture"
,
multiple
:
""
,
"max-count"
:
9
},
on
:{
delete
:
e
.
pictureDel1
},
model
:{
value
:
e
.
productPicture
,
callback
:
function
(
t
){
e
.
productPicture
=
t
},
expression
:
"productPicture"
}},[
o
(
"div"
,{
staticStyle
:{
width
:
"100%"
,
height
:
"100%"
,
position
:
"absolute"
,
background
:
"transparent"
,
"z-index"
:
"100"
},
on
:{
click
:
function
(
t
){
e
.
showPictureUpload
=!
0
}}}),
o
(
"van-row"
,{
staticClass
:
"uploadFile"
},[
o
(
"van-icon"
,{
staticClass
:
"icoPlus"
,
attrs
:{
name
:
"plus"
}}),
o
(
"p"
,{
staticClass
:
"num"
},[
e
.
_v
(
" 添加图片"
),
o
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
productPictureNum
))]),
e
.
_v
(
"/"
),
o
(
"span"
,[
e
.
_v
(
"9"
)])])],
1
)],
1
),
o
(
"van-action-sheet"
,{
attrs
:{
actions
:
e
.
pictureUploadArr
,
"cancel-text"
:
"取消"
,
"close-on-click-action"
:
""
},
on
:{
cancel
:
function
(
t
){
e
.
showPictureUpload
=!
1
},
select
:
e
.
pictUpConfirm
},
model
:{
value
:
e
.
showPictureUpload
,
callback
:
function
(
t
){
e
.
showPictureUpload
=
t
},
expression
:
"showPictureUpload"
}})],
1
)],
1
),
o
(
"van-row"
,{
staticStyle
:{
height
:
"10px"
,
background
:
"#f5f6f7"
}}),
o
(
"div"
,{
staticClass
:
"moreSettings"
},[
o
(
"van-row"
,{
staticClass
:
"title"
,
on
:{
click
:
function
(
t
){
e
.
moreSetShow
=!
0
}}},[
o
(
"van-icon"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
0
==
e
.
moreSetShow
,
expression
:
"moreSetShow == false"
}],
staticClass
:
"moreSetIcoDown"
,
attrs
:{
name
:
"arrow-down"
}}),
e
.
_v
(
"更多设置"
)],
1
),
o
(
"transition"
,{
attrs
:{
name
:
"draw"
}},[
o
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
moreSetShow
,
expression
:
"moreSetShow"
}],
staticClass
:
"moreSetBox"
},[
o
(
"div"
,{
staticClass
:
"publicBox"
},[
o
(
"van-field"
,{
attrs
:{
name
:
"radio"
,
label
:
"使用日期"
},
scopedSlots
:
e
.
_u
([{
key
:
"input"
,
fn
:
function
(){
return
[
o
(
"van-radio-group"
,{
attrs
:{
direction
:
"horizontal"
},
model
:{
value
:
e
.
goodsInfo
.
rule_date_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_date_type"
,
t
)},
expression
:
"goodsInfo.rule_date_type"
}},[
o
(
"van-radio"
,{
attrs
:{
name
:
"1"
}},[
e
.
_v
(
"工作日使用"
)]),
o
(
"van-radio"
,{
attrs
:{
name
:
"2"
}},[
e
.
_v
(
"周末、工作日通用"
)])],
1
)]},
proxy
:
!
0
}])}),
o
(
"van-field"
,{
staticClass
:
"timerStyle"
,
attrs
:{
name
:
"usageTimeStart"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"使用开始时间"
,
placeholder
:
""
,
"label-width"
:
"100"
},
on
:{
click
:
e
.
UsageTimeMthStart
},
model
:{
value
:
e
.
goodsInfo
.
rule_start_time
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_start_time"
,
t
)},
expression
:
"goodsInfo.rule_start_time"
}}),
o
(
"van-popup"
,{
attrs
:{
position
:
"bottom"
},
model
:{
value
:
e
.
showUsageTimeStart
,
callback
:
function
(
t
){
e
.
showUsageTimeStart
=
t
},
expression
:
"showUsageTimeStart"
}},[
o
(
"van-datetime-picker"
,{
attrs
:{
type
:
"time"
,
title
:
"选择使用开始时间"
},
on
:{
cancel
:
function
(
t
){
e
.
showUsageTimeStart
=!
1
},
confirm
:
e
.
usageTimeClickStart
},
model
:{
value
:
e
.
rule_start_time_current
,
callback
:
function
(
t
){
e
.
rule_start_time_current
=
t
},
expression
:
"rule_start_time_current"
}})],
1
),
o
(
"van-field"
,{
staticClass
:
"timerStyle"
,
attrs
:{
name
:
"usageTime"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"使用结束时间"
,
placeholder
:
""
,
"label-width"
:
"100"
},
on
:{
click
:
e
.
UsageTimeMth
},
model
:{
value
:
e
.
goodsInfo
.
rule_end_time
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_end_time"
,
t
)},
expression
:
"goodsInfo.rule_end_time"
}}),
o
(
"van-popup"
,{
attrs
:{
position
:
"bottom"
},
model
:{
value
:
e
.
showUsageTime
,
callback
:
function
(
t
){
e
.
showUsageTime
=
t
},
expression
:
"showUsageTime"
}},[
o
(
"van-datetime-picker"
,{
attrs
:{
type
:
"time"
,
title
:
"选择使用结束时间"
},
on
:{
cancel
:
function
(
t
){
e
.
showUsageTime
=!
1
},
confirm
:
e
.
usageTimeClick
},
model
:{
value
:
e
.
rule_end_time_current
,
callback
:
function
(
t
){
e
.
rule_end_time_current
=
t
},
expression
:
"rule_end_time_current"
}})],
1
),
o
(
"van-field"
,{
attrs
:{
type
:
"number"
,
name
:
"original"
,
label
:
"原价 (元)"
,
placeholder
:
"选填"
},
model
:{
value
:
e
.
goodsInfo
.
original_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"original_price"
,
t
)},
expression
:
"goodsInfo.original_price"
}}),
o
(
"van-field"
,{
staticClass
:
"stepper singPurLimit"
,
attrs
:{
name
:
"singPurLimit"
,
label
:
"单人购买上限"
,
"label-width"
:
"98px"
},
scopedSlots
:
e
.
_u
([{
key
:
"input"
,
fn
:
function
(){
return
[
o
(
"van-stepper"
,{
attrs
:{
min
:
"-999"
,
max
:
"999"
},
model
:{
value
:
e
.
goodsInfo
.
rule_limit
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_limit"
,
t
)},
expression
:
"goodsInfo.rule_limit"
}})]},
proxy
:
!
0
}])})],
1
),
o
(
"van-row"
,{
staticClass
:
"moreSetTitle"
},[
e
.
_v
(
"商品说明"
)]),
o
(
"van-field"
,{
staticClass
:
"moreSetTxt"
,
attrs
:{
rows
:
"3"
,
name
:
"proDescription"
,
autosize
:
""
,
type
:
"textarea"
,
maxlength
:
"50"
,
placeholder
:
"请输入"
,
"show-word-limit"
:
""
},
model
:{
value
:
e
.
goodsInfo
.
desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"desc"
,
t
)},
expression
:
"goodsInfo.desc"
}}),
o
(
"van-row"
,{
staticClass
:
"moreSetTitle"
},[
e
.
_v
(
"使用规则"
)]),
o
(
"van-field"
,{
staticClass
:
"moreSetTxt"
,
attrs
:{
rows
:
"3"
,
name
:
"rulesOfUse"
,
autosize
:
""
,
type
:
"textarea"
,
maxlength
:
"100"
,
placeholder
:
"请输入"
,
"show-word-limit"
:
""
},
model
:{
value
:
e
.
goodsInfo
.
rule_desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_desc"
,
t
)},
expression
:
"goodsInfo.rule_desc"
}}),
o
(
"van-row"
,{
staticClass
:
"moreSetTitle"
},[
e
.
_v
(
"商品详情"
)]),
o
(
"van-field"
,{
staticClass
:
"moreSetTxt"
,
attrs
:{
rows
:
"3"
,
name
:
"proInfo"
,
autosize
:
""
,
type
:
"textarea"
,
maxlength
:
"200"
,
placeholder
:
"请输入"
,
"show-word-limit"
:
""
},
model
:{
value
:
e
.
goodsInfo
.
introduce
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"introduce"
,
t
)},
expression
:
"goodsInfo.introduce"
}}),
o
(
"van-row"
,{
staticClass
:
"pictureUpload"
},[
o
(
"van-uploader"
,{
staticStyle
:{
padding
:
"10px 0 20.5px 20px"
,
"margin-right"
:
"8px"
},
attrs
:{
name
:
"otherPicture"
,
multiple
:
""
,
"max-count"
:
9
,
"after-read"
:
e
.
pictureAfterRead2
},
on
:{
delete
:
e
.
pictureDel2
},
model
:{
value
:
e
.
otherPicture
,
callback
:
function
(
t
){
e
.
otherPicture
=
t
},
expression
:
"otherPicture"
}},[
o
(
"div"
,{
staticStyle
:{
width
:
"100%"
,
height
:
"100%"
,
position
:
"absolute"
,
background
:
"transparent"
,
"z-index"
:
"100"
},
on
:{
click
:
function
(
t
){
e
.
showPictureInfo
=!
0
}}}),
o
(
"van-row"
,{
staticClass
:
"uploadFile"
},[
o
(
"van-icon"
,{
staticClass
:
"icoPlus"
,
attrs
:{
name
:
"plus"
}}),
o
(
"p"
,{
staticClass
:
"num"
},[
e
.
_v
(
" 添加图片"
),
o
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
otherPictureNum
))]),
e
.
_v
(
"/"
),
o
(
"span"
,[
e
.
_v
(
"9"
)])])],
1
)],
1
),
o
(
"van-action-sheet"
,{
attrs
:{
actions
:
e
.
pictureUploadArr
,
"cancel-text"
:
"取消"
,
"close-on-click-action"
:
""
},
on
:{
cancel
:
function
(
t
){
e
.
showPictureInfo
=!
1
},
select
:
e
.
pictureInfo
},
model
:{
value
:
e
.
showPictureInfo
,
callback
:
function
(
t
){
e
.
showPictureInfo
=
t
},
expression
:
"showPictureInfo"
}})],
1
)],
1
)]),
o
(
"van-row"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
1
==
e
.
moreSetShow
,
expression
:
"moreSetShow == true"
}],
staticClass
:
"title"
,
on
:{
click
:
function
(
t
){
e
.
moreSetShow
=!
1
}}},[
o
(
"van-icon"
,{
staticClass
:
"moreSetIcoUp"
,
attrs
:{
name
:
"arrow-up"
}}),
e
.
_v
(
"收起"
)],
1
)],
1
),
o
(
"div"
,{
staticClass
:
"submitBtn"
},[
o
(
"van-button"
,{
attrs
:{
round
:
""
,
block
:
""
,
type
:
"info"
,
"native-type"
:
"submit"
}},[
e
.
_v
(
"发布"
)])],
1
)],
1
)],
1
)},
i
=
[],
c
=
(
o
(
"7db0"
),
o
(
"a9e3"
),
o
(
"b0c0"
),
o
(
"4d63"
),
o
(
"ac1f"
),
o
(
"25f0"
),
o
(
"466d"
),
o
(
"841c"
),
o
(
"d81d"
),
o
(
"99af"
),
o
(
"a15b"
),
o
(
"ec18"
)),
u
=
o
.
n
(
c
);
function
l
(
e
,
t
){
var
o
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
"get"
;
return
u
.
a
.
invokeService
(
"NAHttpReq"
,
"request"
,{
path
:
e
,
params
:
t
},{
method
:
o
})}
function
d
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{},
o
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:{};
return
u
.
a
.
invokeService
(
"imageService"
,
e
,
t
,
o
)}
function
f
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{},
o
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:{};
return
u
.
a
.
invokeService
(
"selectCategoryService"
,
e
,
t
,
o
)}
function
h
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{},
o
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:{};
return
u
.
a
.
invokeService
(
"selectStoreService"
,
e
,
t
,
o
)}
function
p
(){
return
u
.
a
.
xpage
(
null
,
"pop"
)}
function
m
(){
return
u
.
a
.
invokeService
(
"goodsPublishService"
,
"publishSuccess"
)}
var
g
=
o
(
"5530"
),
_
=
o
(
"15fd"
),
v
=
(
o
(
"3119"
),
o
(
"62c3"
)),
b
=
o
.
n
(
v
),
j
=
"/api"
,
y
=
b
.
a
.
create
({
baseURL
:
j
,
timeout
:
6
e4
,
responseType
:
"json"
,
withCredentials
:
!
1
});
y
.
interceptors
.
response
.
use
((
function
(
e
){
if
(
200
===
e
.
status
)
return
e
.
data
}),(
function
(
e
){
return
Promise
.
reject
(
e
)}));
var
w
=
y
,
I
=
/yd-xarc-com/
.
test
(
navigator
.
userAgent
),
k
=
[
"url"
,
"method"
,
"params"
,
"type"
];
function
x
(){
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
t
=
e
||
{},
o
=
t
.
url
,
s
=
t
.
method
,
r
=
void
0
===
s
?
"get"
:
s
,
n
=
t
.
params
,
a
=
void
0
===
n
?{}:
n
,
i
=
t
.
type
,
c
=
void
0
===
i
?
"auto"
:
i
,
u
=
Object
(
_
[
"a"
])(
t
,
k
);
return
"auto"
===
c
&&
(
c
=
I
?
"native"
:
"web"
),
new
Promise
((
function
(
e
,
t
){
if
(
"native"
===
c
)
l
(
o
,
a
,
r
).
then
((
function
(
t
){
e
(
t
)})).
catch
((
function
(
e
){
t
(
e
)}));
else
if
(
"web"
===
c
){
var
s
=
{};
"get"
===
r
?
s
.
params
=
a
||
{}:
"post"
===
r
&&
(
s
.
data
=
a
||
{}),
w
(
Object
(
g
[
"a"
])(
Object
(
g
[
"a"
])({
url
:
o
,
method
:
r
},
s
),
u
)).
then
((
function
(
t
){
e
(
t
.
data
)})).
catch
((
function
(
e
){
t
(
e
)}))}
else
t
(
"不识别的请求方式"
)}))}
var
P
=
x
;
function
S
(
e
){
return
P
({
url
:
"/goods/customer/init_shop"
,
method
:
"get"
,
params
:
e
})}
function
C
(
e
){
return
P
({
url
:
"/goods/customer/goods_info_manage"
,
method
:
"post"
,
params
:
e
})}
function
D
(
e
){
return
P
({
url
:
"/goods/customer/add_goods"
,
method
:
"post"
,
params
:
e
})}
function
T
(
e
){
return
P
({
url
:
"/goods/customer/edit_goods"
,
method
:
"post"
,
params
:
e
})}
var
U
=
o
(
"203d"
),
z
=
o
.
n
(
U
),
A
=
{
data
:
function
(){
return
{
goodsInfo
:{
goods_name
:
""
,
category
:
""
,
price
:
""
,
inventory_rest
:
0
,
expiration_time
:
""
,
rule_refund
:
""
,
rule_date_type
:
"1"
,
rule_start_time
:
""
,
rule_end_time
:
""
,
original_price
:
""
,
rule_limit
:
""
,
introduce
:
""
,
rule_desc
:
""
,
desc
:
""
},
categoryObj
:{},
currentWhStorage
:
0
,
currentDate
:
new
Date
,
showdueDate
:
!
1
,
showRefundRules
:
!
1
,
refundRulesArr
:[{
name
:
"到期后自动退款"
,
value
:
1
},{
name
:
"到期后不允许退款"
,
value
:
2
},{
name
:
"购买后不允许退款"
,
value
:
3
}],
rule_start_time_current
:
""
,
showUsageTime
:
!
1
,
showUsageTimeStart
:
!
1
,
storeIDArr
:[],
rule_end_time_current
:
""
,
moreSetShow
:
!
1
,
couponId
:
""
,
lifeAccountId
:
""
,
merchantId
:
""
,
pictureUploadArr
:[{
name
:
"拍照"
},{
name
:
"相册"
}],
showPictureUpload
:
!
1
,
productPicture
:[],
productPictureNum
:
0
,
pictureArr1
:[],
productPictureID
:[],
showPictureInfo
:
!
1
,
otherPicture
:[],
otherPictureNum
:
0
,
pictureArr2
:[],
otherPictureID
:[]}},
computed
:{
rule_refund_txt
:
function
(){
var
e
=
this
;
if
(
this
.
goodsInfo
&&
this
.
goodsInfo
.
rule_refund
){
var
t
=
this
.
refundRulesArr
.
find
((
function
(
t
){
return
t
.
value
===
Number
(
e
.
goodsInfo
.
rule_refund
)}));
return
t
&&
t
.
name
||
""
}
return
""
},
storeLength
:
function
(){
return
"已选择"
+
this
.
storeIDArr
.
length
+
"家门店"
},
inventoryNum
:
function
(){
return
Number
(
this
.
goodsInfo
.
inventory_rest
)
+
this
.
currentWhStorage
}},
mounted
:
function
(){
var
e
=
this
.
getQueryString
(
"life_account_id"
),
t
=
this
.
getQueryString
(
"coupon_id"
);
e
&&
(
this
.
lifeAccountId
=
e
,
this
.
couponId
=
t
,
this
.
initShopMet
(),
t
&&
this
.
getCouponInfoMet
())},
methods
:{
getQueryString
:
function
(
e
){
var
t
=
new
RegExp
(
"(^|&)"
+
e
+
"=([^&]*)(&|$)"
),
o
=
window
.
location
.
search
.
substr
(
1
).
match
(
t
);
return
null
!=
o
?
unescape
(
o
[
2
]):
null
},
initShopMet
:
function
(){
S
({
life_account_id
:
this
.
lifeAccountId
}).
then
((
function
(
e
){})).
catch
((
function
(
e
){}))},
getCouponInfoMet
:
function
(){
var
e
=
this
;
C
({
goods_spu_id
:
this
.
couponId
}).
then
((
function
(
t
){
for
(
var
o
in
console
.
log
(
"商品详情数据"
),
console
.
log
(
t
.
result
.
goods_info
),
console
.
log
(
t
.
result
.
record_list
),
e
.
goodsInfo
=
t
.
result
.
goods_info
,
e
.
goodsInfo
.
rule_date_type
=
String
(
t
.
result
.
goods_info
.
rule_date_type
),
e
.
goodsInfo
.
category
=
t
.
result
.
goods_info
.
category_1_name
+
">"
+
t
.
result
.
goods_info
.
category_2_name
,
e
.
categoryObj
=
{
firstCategoryId
:
t
.
result
.
goods_info
.
category_1_id
,
secondCategoryId
:
t
.
result
.
goods_info
.
category_2_id
},
e
.
storeIDArr
=
t
.
result
.
goods_info
.
sub_shop
.
map
((
function
(
e
){
return
e
.
sub_shop_id
})),
t
.
result
.
goods_info
.
desc_pic_url_list
)
e
.
productPicture
=
[],
e
.
productPicture
.
push
({
url
:
t
.
result
.
goods_info
.
desc_pic_url_list
[
o
],
key
:
t
.
result
.
goods_info
.
desc_pic_url_list
[
o
],
isImage
:
!
0
});
for
(
var
o
in
e
.
productPictureNum
=
e
.
productPicture
.
length
,
t
.
result
.
introduce_pic_url_list
)
e
.
otherPicture
=
[],
e
.
otherPicture
.
push
({
url
:
t
.
result
.
introduce_pic_url_list
[
o
],
key
:
t
.
result
.
goods_info
.
desc_pic_url_list
[
o
],
isImage
:
!
0
});
e
.
otherPictureNum
=
e
.
otherPicture
.
length
})).
catch
((
function
(
e
){}))},
categoryClick
:
function
(){
var
e
=
this
;
""
==
this
.
goodsInfo
.
category
&&
(
this
.
categoryObj
=
{}),
f
(
"selectGoodsCategory"
,{
selectedCategory
:
this
.
categoryObj
}).
then
((
function
(
t
){
e
.
categoryObj
=
t
,
e
.
goodsInfo
.
category
=
t
.
firstCategoryName
+
">"
+
t
.
secondCategoryName
})).
catch
((
function
(
e
){
console
.
log
(
e
)}))},
getTimer
:
function
(
e
){
var
t
=
new
Date
,
o
=
t
.
getFullYear
(),
s
=
t
.
getMonth
()
+
1
,
r
=
t
.
getDate
(),
n
=
t
.
getHours
(),
a
=
t
.
getMinutes
(),
i
=
t
.
getSeconds
();
"dueDateType"
==
e
?
this
.
dueDate
=
""
.
concat
(
o
,
"-"
).
concat
(
s
,
"-"
).
concat
(
r
,
" "
).
concat
(
n
,
":"
).
concat
(
a
,
":"
).
concat
(
i
):
this
.
goodsInfo
.
usageTime
=
""
.
concat
(
n
,
":"
).
concat
(
a
)},
dueDateMth
:
function
(){
this
.
goodsInfo
&&
this
.
goodsInfo
.
expiration_time
?
this
.
currentDate
=
new
Date
(
this
.
goodsInfo
.
expiration_time
):
this
.
currentDate
=
new
Date
,
this
.
showdueDate
=!
0
},
dueDateClick
:
function
(
e
){
this
.
goodsInfo
.
expiration_time
=
z
()(
e
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
this
.
showdueDate
=!
1
},
refundRuleConfirm
:
function
(
e
){
this
.
goodsInfo
.
rule_refund
=
e
.
value
,
this
.
showRefundRules
=!
1
},
refundRuleCancel
:
function
(){},
storeClick
:
function
(){
var
e
=
this
;
h
(
"selectStore"
,{
selectedStore
:
this
.
storeIDArr
}).
then
((
function
(
t
){
e
.
storeIDArr
=
t
})).
catch
((
function
(
e
){
console
.
log
(
e
)}))},
pictureAfterRead2
:
function
(){
this
.
otherPictureNum
++
},
uploadPictures
:
function
(
e
,
t
){
var
o
=
this
;
d
(
"uploadImage"
,{
id
:
e
}).
then
((
function
(
e
){
if
(
"product"
==
t
){
if
(
o
.
productPicture
.
length
>
0
)
for
(
var
s
=
0
;
s
<
o
.
productPicture
.
length
;
s
++
)
o
.
productPicture
[
s
].
id
==
e
.
id
&&
(
o
.
productPicture
[
s
].
key
=
e
.
image_uploaded_key
,
o
.
productPictureID
.
push
(
e
.
id
))}
else
if
(
o
.
otherPicture
.
length
>
0
)
for
(
s
=
0
;
s
<
o
.
otherPicture
.
length
;
s
++
)
o
.
otherPicture
[
s
].
id
==
e
.
id
&&
(
o
.
otherPicture
[
s
].
key
=
e
.
image_uploaded_key
,
o
.
otherPictureID
.
push
(
e
.
id
))})).
catch
((
function
(
e
){
console
.
log
(
e
)}))},
pictUpConfirm
:
function
(
e
){
var
t
=
this
;
"拍照"
==
e
.
name
?
d
(
"takePhoto"
).
then
((
function
(
e
){
for
(
var
o
in
e
)
t
.
uploadPictures
(
e
[
o
].
id
,
"product"
),
e
[
o
].
photo_base64_str
=
"data:image/png;base64,"
+
e
[
o
].
photo_base64_str
,
t
.
productPicture
.
push
({
id
:
e
[
o
].
id
,
url
:
e
[
o
].
photo_base64_str
,
isImage
:
!
0
,
key
:
""
}),
t
.
productPictureNum
=
t
.
productPicture
.
length
})).
catch
((
function
(
e
){
console
.
log
(
e
)})):(
this
.
productPicture
.
length
<=
0
&&
(
this
.
pictureArr1
=
[]),
d
(
"selectImage"
,{
maxCount
:
9
,
selectedImages
:
this
.
pictureArr1
}).
then
((
function
(
e
){
for
(
var
o
in
t
.
pictureArr1
.
push
(
e
[
o
]),
e
)
t
.
uploadPictures
(
e
[
o
].
id
,
"product"
),
e
[
o
].
photo_base64_str
=
"data:image/png;base64,"
+
e
[
o
].
photo_base64_str
,
t
.
productPicture
.
push
({
id
:
e
[
o
].
id
,
url
:
e
[
o
].
photo_base64_str
,
isImage
:
!
0
,
key
:
""
}),
t
.
productPictureNum
=
t
.
productPicture
.
length
})).
catch
((
function
(
e
){
t
.
$toast
(
"图片上传失败"
),
console
.
log
(
e
)})))},
pictureInfo
:
function
(
e
){
var
t
=
this
;
"拍照"
==
e
.
name
?
d
(
"takePhoto"
).
then
((
function
(
e
){
for
(
var
o
in
e
)
t
.
uploadPictures
(
e
[
o
].
id
,
""
),
e
[
o
].
photo_base64_str
=
"data:image/png;base64,"
+
e
[
o
].
photo_base64_str
,
t
.
otherPicture
.
push
({
id
:
e
[
o
].
id
,
url
:
e
[
o
].
photo_base64_str
,
isImage
:
!
0
}),
t
.
otherPictureNum
=
t
.
otherPicture
.
length
})).
catch
((
function
(
e
){
console
.
log
(
e
)})):(
this
.
productPicture
.
length
<=
0
&&
(
this
.
pictureArr2
=
[]),
d
(
"selectImage"
,{
maxCount
:
9
,
selectedImages
:
this
.
pictureArr2
}).
then
((
function
(
e
){
for
(
var
o
in
t
.
pictureArr2
.
push
(
e
[
o
]),
e
)
t
.
uploadPictures
(
e
[
o
].
id
,
""
),
e
[
o
].
photo_base64_str
=
"data:image/png;base64,"
+
e
[
o
].
photo_base64_str
,
t
.
otherPicture
.
push
({
id
:
e
[
o
].
id
,
url
:
e
[
o
].
photo_base64_str
,
isImage
:
!
0
}),
t
.
otherPictureNum
=
t
.
otherPicture
.
length
})).
catch
((
function
(
e
){
console
.
log
(
e
)})))},
pictureDel1
:
function
(){
0
!=
this
.
pictureNum
&&
this
.
productPictureNum
--
},
pictureDel2
:
function
(){
0
!=
this
.
pictureNum
&&
this
.
otherPictureNum
--
},
moreSetOpen
:
function
(){},
moreSetClose
:
function
(){},
UsageTimeMthStart
:
function
(){
this
.
goodsInfo
&&
this
.
goodsInfo
.
rule_start_time
?
this
.
rule_start_time_current
=
this
.
goodsInfo
.
rule_start_time
:
this
.
rule_start_time_current
=
z
()().
format
(
"HH:mm"
),
this
.
showUsageTimeStart
=!
0
},
usageTimeClickStart
:
function
(
e
){
this
.
goodsInfo
.
rule_start_time
=
e
,
this
.
showUsageTimeStart
=!
1
},
UsageTimeMth
:
function
(){
this
.
goodsInfo
&&
this
.
goodsInfo
.
rule_end_time
?
this
.
rule_end_time_current
=
this
.
goodsInfo
.
rule_end_time
:
this
.
rule_end_time_current
=
z
()().
format
(
"HH:mm"
),
this
.
showUsageTime
=!
0
},
usageTimeClick
:
function
(
e
){
this
.
goodsInfo
.
rule_end_time
=
e
,
this
.
showUsageTime
=!
1
},
release
:
function
(
e
){
if
(
this
.
productPicture
.
length
==
this
.
productPictureID
.
length
&&
this
.
otherPicture
.
length
==
this
.
otherPictureID
.
length
){
for
(
var
t
=
[],
o
=
0
;
o
<
this
.
productPicture
.
length
;
o
++
)
t
.
push
(
this
.
productPicture
[
o
].
key
);
var
s
=
[];
for
(
o
=
0
;
o
<
this
.
otherPicture
.
length
;
o
++
)
s
.
push
(
this
.
otherPicture
[
o
].
key
);
var
r
=
t
.
join
(
","
),
n
=
s
.
join
(
","
),
a
=
{
life_account_id
:
this
.
lifeAccountId
,
category_1_id
:
this
.
categoryObj
.
firstCategoryId
,
category_2_id
:
this
.
categoryObj
.
secondCategoryId
,
goods_name
:
this
.
goodsInfo
.
goods_name
,
desc_pic_url
:
r
,
desc
:
this
.
goodsInfo
.
desc
,
introduce
:
this
.
goodsInfo
.
introduce
,
introduce_pic_url
:
n
,
expiration_time
:
this
.
goodsInfo
.
expiration_time
,
rule_limit
:
this
.
goodsInfo
.
rule_limit
,
rule_desc
:
this
.
goodsInfo
.
rule_desc
,
rule_refund
:
this
.
goodsInfo
.
rule_refund
,
rule_start_time
:
this
.
goodsInfo
.
rule_start_time
,
rule_end_time
:
this
.
goodsInfo
.
rule_end_time
,
rule_date_type
:
this
.
goodsInfo
.
rule_date_type
,
original_price
:
this
.
goodsInfo
.
original_price
,
price
:
this
.
goodsInfo
.
price
,
setmeal
:
""
,
sub_shop_ids
:
this
.
storeIDArr
.
join
(
","
)};
this
.
couponId
?(
a
.
goods_spu_id
=
this
.
couponId
,
a
.
inventory_add
=
this
.
currentWhStorage
,
this
.
editMth
(
a
)):(
a
.
inventory
=
this
.
inventoryNum
,
this
.
addhMth
(
a
))}
else
this
.
$toast
(
"图片上传中,请稍后"
)},
addhMth
:
function
(
e
){
var
t
=
this
;
D
(
e
).
then
((
function
(
e
){
0
===
e
.
code
?(
t
.
$toast
(
"发布成功"
),
m
(),
p
()):
t
.
$toast
(
e
.
reason
)})).
catch
((
function
(
e
){}))},
editMth
:
function
(
e
){
var
t
=
this
;
T
(
e
).
then
((
function
(
e
){
0
===
e
.
code
?(
t
.
$toast
(
"发布成功"
),
m
(),
p
()):
t
.
$toast
(
e
.
reason
)})).
catch
((
function
(
e
){}))}}},
N
=
A
,
O
=
(
o
(
"7cf0"
),
o
(
"2877"
)),
R
=
Object
(
O
[
"a"
])(
N
,
a
,
i
,
!
1
,
null
,
"446a2706"
,
null
),
M
=
R
.
exports
,
$
=
{
name
:
"App"
,
components
:{
coupon
:
M
}},
q
=
$
,
H
=
Object
(
O
[
"a"
])(
q
,
r
,
n
,
!
1
,
null
,
null
,
null
),
L
=
H
.
exports
,
W
=
o
(
"b970"
),
B
=
o
(
"37d5"
),
E
=
o
.
n
(
B
);
o
(
"157a"
);
new
E
.
a
,
s
[
"a"
].
use
(
W
[
"a"
]),
s
[
"a"
].
config
.
productionTip
=!
1
,
new
s
[
"a"
]({
render
:
function
(
e
){
return
e
(
L
)}}).
$mount
(
"#app"
)},
"7cf0"
:
function
(
e
,
t
,
o
){
"use strict"
;
o
(
"4841"
)}});
\ No newline at end of file
Components/commodity/src/main/assets/www/pages/coupon_publish/js/app.d90e8362.js
0 → 100644
View file @
c5753c1d
(
function
(
e
){
function
t
(
t
){
for
(
var
s
,
a
,
i
=
t
[
0
],
c
=
t
[
1
],
u
=
t
[
2
],
d
=
0
,
f
=
[];
d
<
i
.
length
;
d
++
)
a
=
i
[
d
],
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
a
)
&&
r
[
a
]
&&
f
.
push
(
r
[
a
][
0
]),
r
[
a
]
=
0
;
for
(
s
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
s
)
&&
(
e
[
s
]
=
c
[
s
]);
l
&&
l
(
t
);
while
(
f
.
length
)
f
.
shift
()();
return
n
.
push
.
apply
(
n
,
u
||
[]),
o
()}
function
o
(){
for
(
var
e
,
t
=
0
;
t
<
n
.
length
;
t
++
){
for
(
var
o
=
n
[
t
],
s
=!
0
,
i
=
1
;
i
<
o
.
length
;
i
++
){
var
c
=
o
[
i
];
0
!==
r
[
c
]
&&
(
s
=!
1
)}
s
&&
(
n
.
splice
(
t
--
,
1
),
e
=
a
(
a
.
s
=
o
[
0
]))}
return
e
}
var
s
=
{},
r
=
{
app
:
0
},
n
=
[];
function
a
(
t
){
if
(
s
[
t
])
return
s
[
t
].
exports
;
var
o
=
s
[
t
]
=
{
i
:
t
,
l
:
!
1
,
exports
:{}};
return
e
[
t
].
call
(
o
.
exports
,
o
,
o
.
exports
,
a
),
o
.
l
=!
0
,
o
.
exports
}
a
.
m
=
e
,
a
.
c
=
s
,
a
.
d
=
function
(
e
,
t
,
o
){
a
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
o
})},
a
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
a
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
a
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
o
=
Object
.
create
(
null
);
if
(
a
.
r
(
o
),
Object
.
defineProperty
(
o
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"string"
!=
typeof
e
)
for
(
var
s
in
e
)
a
.
d
(
o
,
s
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
s
));
return
o
},
a
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
a
.
d
(
t
,
"a"
,
t
),
t
},
a
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
a
.
p
=
""
;
var
i
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
c
=
i
.
push
.
bind
(
i
);
i
.
push
=
t
,
i
=
i
.
slice
();
for
(
var
u
=
0
;
u
<
i
.
length
;
u
++
)
t
(
i
[
u
]);
var
l
=
c
;
n
.
push
([
0
,
"chunk-vendors"
]),
o
()})({
0
:
function
(
e
,
t
,
o
){
e
.
exports
=
o
(
"56d7"
)},
2981
:
function
(
e
,
t
,
o
){
var
s
=
{
"./af"
:
"f826"
,
"./af.js"
:
"f826"
,
"./ar"
:
"0fa2"
,
"./ar-dz"
:
"8ec6"
,
"./ar-dz.js"
:
"8ec6"
,
"./ar-kw"
:
"36f4"
,
"./ar-kw.js"
:
"36f4"
,
"./ar-ly"
:
"0e86"
,
"./ar-ly.js"
:
"0e86"
,
"./ar-ma"
:
"3d3d"
,
"./ar-ma.js"
:
"3d3d"
,
"./ar-sa"
:
"cfe1"
,
"./ar-sa.js"
:
"cfe1"
,
"./ar-tn"
:
"0608"
,
"./ar-tn.js"
:
"0608"
,
"./ar.js"
:
"0fa2"
,
"./az"
:
"9cec"
,
"./az.js"
:
"9cec"
,
"./be"
:
"609d"
,
"./be.js"
:
"609d"
,
"./bg"
:
"3f4f"
,
"./bg.js"
:
"3f4f"
,
"./bm"
:
"43e9"
,
"./bm.js"
:
"43e9"
,
"./bn"
:
"d345"
,
"./bn-bd"
:
"3037"
,
"./bn-bd.js"
:
"3037"
,
"./bn.js"
:
"d345"
,
"./bo"
:
"fe43"
,
"./bo.js"
:
"fe43"
,
"./br"
:
"927d"
,
"./br.js"
:
"927d"
,
"./bs"
:
"1808"
,
"./bs.js"
:
"1808"
,
"./ca"
:
"2a24"
,
"./ca.js"
:
"2a24"
,
"./cs"
:
"8bb4"
,
"./cs.js"
:
"8bb4"
,
"./cv"
:
"1788"
,
"./cv.js"
:
"1788"
,
"./cy"
:
"8cb6"
,
"./cy.js"
:
"8cb6"
,
"./da"
:
"9fca"
,
"./da.js"
:
"9fca"
,
"./de"
:
"3f20"
,
"./de-at"
:
"a8f1"
,
"./de-at.js"
:
"a8f1"
,
"./de-ch"
:
"2b68"
,
"./de-ch.js"
:
"2b68"
,
"./de.js"
:
"3f20"
,
"./dv"
:
"6a7c"
,
"./dv.js"
:
"6a7c"
,
"./el"
:
"7f03"
,
"./el.js"
:
"7f03"
,
"./en-au"
:
"e33b"
,
"./en-au.js"
:
"e33b"
,
"./en-ca"
:
"563d"
,
"./en-ca.js"
:
"563d"
,
"./en-gb"
:
"6e59"
,
"./en-gb.js"
:
"6e59"
,
"./en-ie"
:
"a02d"
,
"./en-ie.js"
:
"a02d"
,
"./en-il"
:
"2dd2"
,
"./en-il.js"
:
"2dd2"
,
"./en-in"
:
"b674"
,
"./en-in.js"
:
"b674"
,
"./en-nz"
:
"2e16"
,
"./en-nz.js"
:
"2e16"
,
"./en-sg"
:
"49e7"
,
"./en-sg.js"
:
"49e7"
,
"./eo"
:
"3645"
,
"./eo.js"
:
"3645"
,
"./es"
:
"8669"
,
"./es-do"
:
"1ef1"
,
"./es-do.js"
:
"1ef1"
,
"./es-mx"
:
"aa4f"
,
"./es-mx.js"
:
"aa4f"
,
"./es-us"
:
"2adb"
,
"./es-us.js"
:
"2adb"
,
"./es.js"
:
"8669"
,
"./et"
:
"7672"
,
"./et.js"
:
"7672"
,
"./eu"
:
"666c"
,
"./eu.js"
:
"666c"
,
"./fa"
:
"691e"
,
"./fa.js"
:
"691e"
,
"./fi"
:
"b486"
,
"./fi.js"
:
"b486"
,
"./fil"
:
"e425"
,
"./fil.js"
:
"e425"
,
"./fo"
:
"60e4"
,
"./fo.js"
:
"60e4"
,
"./fr"
:
"bc2c"
,
"./fr-ca"
:
"028a"
,
"./fr-ca.js"
:
"028a"
,
"./fr-ch"
:
"de9b"
,
"./fr-ch.js"
:
"de9b"
,
"./fr.js"
:
"bc2c"
,
"./fy"
:
"de08"
,
"./fy.js"
:
"de08"
,
"./ga"
:
"c134"
,
"./ga.js"
:
"c134"
,
"./gd"
:
"680a"
,
"./gd.js"
:
"680a"
,
"./gl"
:
"3a5c"
,
"./gl.js"
:
"3a5c"
,
"./gom-deva"
:
"3ab2"
,
"./gom-deva.js"
:
"3ab2"
,
"./gom-latn"
:
"9bbd"
,
"./gom-latn.js"
:
"9bbd"
,
"./gu"
:
"3123"
,
"./gu.js"
:
"3123"
,
"./he"
:
"a3bb"
,
"./he.js"
:
"a3bb"
,
"./hi"
:
"74d5"
,
"./hi.js"
:
"74d5"
,
"./hr"
:
"3d1a"
,
"./hr.js"
:
"3d1a"
,
"./hu"
:
"8930"
,
"./hu.js"
:
"8930"
,
"./hy-am"
:
"5368"
,
"./hy-am.js"
:
"5368"
,
"./id"
:
"4d1d"
,
"./id.js"
:
"4d1d"
,
"./is"
:
"d8c2"
,
"./is.js"
:
"d8c2"
,
"./it"
:
"b571"
,
"./it-ch"
:
"26a2"
,
"./it-ch.js"
:
"26a2"
,
"./it.js"
:
"b571"
,
"./ja"
:
"f409"
,
"./ja.js"
:
"f409"
,
"./jv"
:
"24ca"
,
"./jv.js"
:
"24ca"
,
"./ka"
:
"57b4"
,
"./ka.js"
:
"57b4"
,
"./kk"
:
"7af1"
,
"./kk.js"
:
"7af1"
,
"./km"
:
"368b"
,
"./km.js"
:
"368b"
,
"./kn"
:
"c931"
,
"./kn.js"
:
"c931"
,
"./ko"
:
"8472"
,
"./ko.js"
:
"8472"
,
"./ku"
:
"41c3"
,
"./ku.js"
:
"41c3"
,
"./ky"
:
"7229"
,
"./ky.js"
:
"7229"
,
"./lb"
:
"febd"
,
"./lb.js"
:
"febd"
,
"./lo"
:
"b36b"
,
"./lo.js"
:
"b36b"
,
"./lt"
:
"2654"
,
"./lt.js"
:
"2654"
,
"./lv"
:
"6e31"
,
"./lv.js"
:
"6e31"
,
"./me"
:
"f72d"
,
"./me.js"
:
"f72d"
,
"./mi"
:
"2bcd"
,
"./mi.js"
:
"2bcd"
,
"./mk"
:
"c0de"
,
"./mk.js"
:
"c0de"
,
"./ml"
:
"e75d"
,
"./ml.js"
:
"e75d"
,
"./mn"
:
"b37a"
,
"./mn.js"
:
"b37a"
,
"./mr"
:
"a76b"
,
"./mr.js"
:
"a76b"
,
"./ms"
:
"2bf0"
,
"./ms-my"
:
"2b02"
,
"./ms-my.js"
:
"2b02"
,
"./ms.js"
:
"2bf0"
,
"./mt"
:
"e717"
,
"./mt.js"
:
"e717"
,
"./my"
:
"e2e2"
,
"./my.js"
:
"e2e2"
,
"./nb"
:
"bdfc"
,
"./nb.js"
:
"bdfc"
,
"./ne"
:
"75c0"
,
"./ne.js"
:
"75c0"
,
"./nl"
:
"3e8e"
,
"./nl-be"
:
"de3b"
,
"./nl-be.js"
:
"de3b"
,
"./nl.js"
:
"3e8e"
,
"./nn"
:
"90a3"
,
"./nn.js"
:
"90a3"
,
"./oc-lnc"
:
"8195"
,
"./oc-lnc.js"
:
"8195"
,
"./pa-in"
:
"bf7a"
,
"./pa-in.js"
:
"bf7a"
,
"./pl"
:
"210f"
,
"./pl.js"
:
"210f"
,
"./pt"
:
"12e3"
,
"./pt-br"
:
"294f"
,
"./pt-br.js"
:
"294f"
,
"./pt.js"
:
"12e3"
,
"./ro"
:
"7a04"
,
"./ro.js"
:
"7a04"
,
"./ru"
:
"75cb"
,
"./ru.js"
:
"75cb"
,
"./sd"
:
"f957"
,
"./sd.js"
:
"f957"
,
"./se"
:
"4169"
,
"./se.js"
:
"4169"
,
"./si"
:
"951b"
,
"./si.js"
:
"951b"
,
"./sk"
:
"1c1d"
,
"./sk.js"
:
"1c1d"
,
"./sl"
:
"eb2c"
,
"./sl.js"
:
"eb2c"
,
"./sq"
:
"7c7d"
,
"./sq.js"
:
"7c7d"
,
"./sr"
:
"5f14"
,
"./sr-cyrl"
:
"20a0"
,
"./sr-cyrl.js"
:
"20a0"
,
"./sr.js"
:
"5f14"
,
"./ss"
:
"3a89"
,
"./ss.js"
:
"3a89"
,
"./sv"
:
"87ac"
,
"./sv.js"
:
"87ac"
,
"./sw"
:
"91c3"
,
"./sw.js"
:
"91c3"
,
"./ta"
:
"41cd"
,
"./ta.js"
:
"41cd"
,
"./te"
:
"5a49"
,
"./te.js"
:
"5a49"
,
"./tet"
:
"0e56"
,
"./tet.js"
:
"0e56"
,
"./tg"
:
"2495"
,
"./tg.js"
:
"2495"
,
"./th"
:
"db96"
,
"./th.js"
:
"db96"
,
"./tk"
:
"593b"
,
"./tk.js"
:
"593b"
,
"./tl-ph"
:
"b593"
,
"./tl-ph.js"
:
"b593"
,
"./tlh"
:
"04f0"
,
"./tlh.js"
:
"04f0"
,
"./tr"
:
"d11d"
,
"./tr.js"
:
"d11d"
,
"./tzl"
:
"6da8"
,
"./tzl.js"
:
"6da8"
,
"./tzm"
:
"11af"
,
"./tzm-latn"
:
"2eac"
,
"./tzm-latn.js"
:
"2eac"
,
"./tzm.js"
:
"11af"
,
"./ug-cn"
:
"f551"
,
"./ug-cn.js"
:
"f551"
,
"./uk"
:
"89a5"
,
"./uk.js"
:
"89a5"
,
"./ur"
:
"faa7"
,
"./ur.js"
:
"faa7"
,
"./uz"
:
"c23b"
,
"./uz-latn"
:
"d399"
,
"./uz-latn.js"
:
"d399"
,
"./uz.js"
:
"c23b"
,
"./vi"
:
"6811"
,
"./vi.js"
:
"6811"
,
"./x-pseudo"
:
"52a9"
,
"./x-pseudo.js"
:
"52a9"
,
"./yo"
:
"f28c"
,
"./yo.js"
:
"f28c"
,
"./zh-cn"
:
"39cf"
,
"./zh-cn.js"
:
"39cf"
,
"./zh-hk"
:
"25ad"
,
"./zh-hk.js"
:
"25ad"
,
"./zh-mo"
:
"1689"
,
"./zh-mo.js"
:
"1689"
,
"./zh-tw"
:
"2dba"
,
"./zh-tw.js"
:
"2dba"
};
function
r
(
e
){
var
t
=
n
(
e
);
return
o
(
t
)}
function
n
(
e
){
if
(
!
o
.
o
(
s
,
e
)){
var
t
=
new
Error
(
"Cannot find module '"
+
e
+
"'"
);
throw
t
.
code
=
"MODULE_NOT_FOUND"
,
t
}
return
s
[
e
]}
r
.
keys
=
function
(){
return
Object
.
keys
(
s
)},
r
.
resolve
=
n
,
e
.
exports
=
r
,
r
.
id
=
"2981"
},
"508c"
:
function
(
e
,
t
,
o
){},
"56d7"
:
function
(
e
,
t
,
o
){
"use strict"
;
o
.
r
(
t
);
o
(
"e260"
),
o
(
"e6cf"
),
o
(
"cca6"
),
o
(
"a79d"
);
var
s
=
o
(
"2b0e"
),
r
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
attrs
:{
id
:
"app"
}},[
o
(
"coupon"
)],
1
)},
n
=
[],
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"couponPage"
},[
o
(
"van-form"
,{
on
:{
submit
:
e
.
release
}},[
o
(
"div"
,{
staticClass
:
"essentialInfo publicBox"
},[
o
(
"van-row"
,{
staticClass
:
"title"
},[
e
.
_v
(
"基本信息"
)]),
o
(
"van-field"
,{
staticClass
:
"tradeName"
,
attrs
:{
name
:
"goods_name"
,
label
:
"商品名称"
,
placeholder
:
""
,
maxlength
:
"50"
,
"show-error"
:
"true"
,
clearable
:
"true"
,
oninput
:
"value = value.replace(/[^a-z0-9A-Z
\\
u4e00-
\\
u9fa5()()
\\\\
-]+/g, '').replace(/
\\
s/g, '')"
,
rules
:[{
required
:
!
0
,
message
:
"请填写商品名称"
}]},
model
:{
value
:
e
.
goodsInfo
.
goods_name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"goods_name"
,
t
)},
expression
:
"goodsInfo.goods_name"
}}),
o
(
"van-field"
,{
attrs
:{
name
:
"category"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"所属类目"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请选择所属类目"
}]},
on
:{
click
:
e
.
categoryClick
},
model
:{
value
:
e
.
goodsInfo
.
category
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"category"
,
t
)},
expression
:
"goodsInfo.category"
}})],
1
),
o
(
"van-row"
,{
staticStyle
:{
height
:
"10px"
,
background
:
"#f5f6f7"
}}),
o
(
"div"
,{
staticClass
:
"otherInfo publicBox"
},[
o
(
"van-row"
,{
staticClass
:
"title"
},[
e
.
_v
(
"其他信息"
)]),
o
(
"van-field"
,{
staticClass
:
"price"
,
attrs
:{
type
:
"number"
,
name
:
"goodsInfo.price"
,
label
:
"售价 (元)"
,
placeholder
:
""
,
oninput
:
"value=value.toString().match(/^
\\
d+(?:
\\
.
\\
d{0,2})?/)"
,
rules
:[{
required
:
!
0
,
message
:
"请填写售价"
}]},
model
:{
value
:
e
.
goodsInfo
.
price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"price"
,
t
)},
expression
:
"goodsInfo.price"
}}),
o
(
"van-field"
,{
staticClass
:
"stepper"
,
attrs
:{
name
:
"whStorage"
,
label
:
"增减库存"
},
scopedSlots
:
e
.
_u
([{
key
:
"input"
,
fn
:
function
(){
return
[
o
(
"van-stepper"
,{
attrs
:{
min
:
"-999"
,
max
:
"999"
,
integer
:
""
},
model
:{
value
:
e
.
currentWhStorage
,
callback
:
function
(
t
){
e
.
currentWhStorage
=
t
},
expression
:
"currentWhStorage"
}}),
o
(
"van-row"
,{
staticStyle
:{
"font-size"
:
"12px"
,
color
:
"#c2c2c2"
,
position
:
"absolute"
,
right
:
"9px"
}},[
o
(
"van-col"
,{
staticStyle
:{
"text-align"
:
"right"
},
attrs
:{
span
:
24
}},[
e
.
_v
(
"当前库存"
)]),
o
(
"van-col"
,{
staticStyle
:{
"text-align"
:
"right"
},
attrs
:{
span
:
24
}},[
e
.
_v
(
e
.
_s
(
e
.
inventoryNum
))])],
1
)]},
proxy
:
!
0
}])}),
o
(
"van-field"
,{
attrs
:{
name
:
"dueDate"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"到期时间"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请选择到期时间"
}]},
on
:{
click
:
e
.
dueDateMth
},
model
:{
value
:
e
.
goodsInfo
.
expiration_time
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"expiration_time"
,
t
)},
expression
:
"goodsInfo.expiration_time"
}}),
o
(
"van-popup"
,{
attrs
:{
position
:
"bottom"
},
model
:{
value
:
e
.
showdueDate
,
callback
:
function
(
t
){
e
.
showdueDate
=
t
},
expression
:
"showdueDate"
}},[
o
(
"van-datetime-picker"
,{
attrs
:{
type
:
"datetime"
,
title
:
"选择到期时间"
},
on
:{
cancel
:
function
(
t
){
e
.
showdueDate
=!
1
},
confirm
:
e
.
dueDateClick
},
model
:{
value
:
e
.
currentDate
,
callback
:
function
(
t
){
e
.
currentDate
=
t
},
expression
:
"currentDate"
}})],
1
),
o
(
"van-field"
,{
attrs
:{
name
:
"refundRules"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"退款规则"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请选择退款规则"
}]},
on
:{
click
:
function
(
t
){
e
.
showRefundRules
=!
0
}},
model
:{
value
:
e
.
rule_refund_txt
,
callback
:
function
(
t
){
e
.
rule_refund_txt
=
t
},
expression
:
"rule_refund_txt"
}}),
o
(
"van-action-sheet"
,{
attrs
:{
actions
:
e
.
refundRulesArr
,
"cancel-text"
:
"取消"
,
"close-on-click-action"
:
""
},
on
:{
cancel
:
e
.
refundRuleCancel
,
select
:
e
.
refundRuleConfirm
},
model
:{
value
:
e
.
showRefundRules
,
callback
:
function
(
t
){
e
.
showRefundRules
=
t
},
expression
:
"showRefundRules"
}}),
o
(
"van-field"
,{
attrs
:{
name
:
"store"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"门店选择"
,
placeholder
:
""
,
rules
:[{
required
:
!
0
,
message
:
"请选择门店"
}]},
on
:{
click
:
e
.
storeClick
},
model
:{
value
:
e
.
storeLength
,
callback
:
function
(
t
){
e
.
storeLength
=
t
},
expression
:
"storeLength"
}}),
o
(
"van-row"
,{
staticClass
:
"pictureUpload"
},[
o
(
"van-row"
,{
staticStyle
:{
"font-size"
:
"16px"
,
padding
:
"13px 0 10px 20px"
}},[
e
.
_v
(
"商品图片"
)]),
o
(
"van-row"
,{
staticStyle
:{
"font-size"
:
"12px"
,
"padding-left"
:
"20px"
,
color
:
"#999999"
}},[
e
.
_v
(
"建议上传图片大小为10M以内"
)]),
o
(
"van-uploader"
,{
staticStyle
:{
padding
:
"10px 0 20.5px 20px"
,
"margin-right"
:
"8px"
},
attrs
:{
name
:
"productPicture"
,
multiple
:
""
,
"max-count"
:
9
},
on
:{
delete
:
e
.
pictureDel1
},
model
:{
value
:
e
.
productPicture
,
callback
:
function
(
t
){
e
.
productPicture
=
t
},
expression
:
"productPicture"
}},[
o
(
"div"
,{
staticStyle
:{
width
:
"100%"
,
height
:
"100%"
,
position
:
"absolute"
,
background
:
"transparent"
,
"z-index"
:
"100"
},
on
:{
click
:
function
(
t
){
e
.
showPictureUpload
=!
0
}}}),
o
(
"van-row"
,{
staticClass
:
"uploadFile"
},[
o
(
"van-icon"
,{
staticClass
:
"icoPlus"
,
attrs
:{
name
:
"plus"
}}),
o
(
"p"
,{
staticClass
:
"num"
},[
e
.
_v
(
" 添加图片"
),
o
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
productPictureNum
))]),
e
.
_v
(
"/"
),
o
(
"span"
,[
e
.
_v
(
"9"
)])])],
1
)],
1
),
o
(
"van-action-sheet"
,{
attrs
:{
actions
:
e
.
pictureUploadArr
,
"cancel-text"
:
"取消"
,
"close-on-click-action"
:
""
},
on
:{
cancel
:
function
(
t
){
e
.
showPictureUpload
=!
1
},
select
:
e
.
pictUpConfirm
},
model
:{
value
:
e
.
showPictureUpload
,
callback
:
function
(
t
){
e
.
showPictureUpload
=
t
},
expression
:
"showPictureUpload"
}})],
1
)],
1
),
o
(
"van-row"
,{
staticStyle
:{
height
:
"10px"
,
background
:
"#f5f6f7"
}}),
o
(
"div"
,{
staticClass
:
"moreSettings"
},[
o
(
"van-row"
,{
staticClass
:
"title"
,
on
:{
click
:
function
(
t
){
e
.
moreSetShow
=!
0
}}},[
o
(
"van-icon"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
0
==
e
.
moreSetShow
,
expression
:
"moreSetShow == false"
}],
staticClass
:
"moreSetIcoDown"
,
attrs
:{
name
:
"arrow-down"
}}),
e
.
_v
(
"更多设置"
)],
1
),
o
(
"transition"
,{
attrs
:{
name
:
"draw"
}},[
o
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
moreSetShow
,
expression
:
"moreSetShow"
}],
staticClass
:
"moreSetBox"
},[
o
(
"div"
,{
staticClass
:
"publicBox"
},[
o
(
"van-field"
,{
attrs
:{
name
:
"radio"
,
label
:
"使用日期"
},
scopedSlots
:
e
.
_u
([{
key
:
"input"
,
fn
:
function
(){
return
[
o
(
"van-radio-group"
,{
attrs
:{
direction
:
"horizontal"
},
model
:{
value
:
e
.
goodsInfo
.
rule_date_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_date_type"
,
t
)},
expression
:
"goodsInfo.rule_date_type"
}},[
o
(
"van-radio"
,{
attrs
:{
name
:
"1"
}},[
e
.
_v
(
"周末、节假日通用"
)]),
o
(
"van-radio"
,{
attrs
:{
name
:
"2"
}},[
e
.
_v
(
"仅工作日使用"
)])],
1
)]},
proxy
:
!
0
}])}),
o
(
"van-field"
,{
staticClass
:
"timerStyle"
,
attrs
:{
name
:
"usageTimeStart"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"使用开始时间"
,
placeholder
:
""
,
"label-width"
:
"100"
},
on
:{
click
:
e
.
UsageTimeMthStart
},
model
:{
value
:
e
.
goodsInfo
.
rule_start_time
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_start_time"
,
t
)},
expression
:
"goodsInfo.rule_start_time"
}}),
o
(
"van-popup"
,{
attrs
:{
position
:
"bottom"
},
model
:{
value
:
e
.
showUsageTimeStart
,
callback
:
function
(
t
){
e
.
showUsageTimeStart
=
t
},
expression
:
"showUsageTimeStart"
}},[
o
(
"van-datetime-picker"
,{
attrs
:{
type
:
"time"
,
title
:
"选择使用开始时间"
},
on
:{
cancel
:
function
(
t
){
e
.
showUsageTimeStart
=!
1
},
confirm
:
e
.
usageTimeClickStart
},
model
:{
value
:
e
.
rule_start_time_current
,
callback
:
function
(
t
){
e
.
rule_start_time_current
=
t
},
expression
:
"rule_start_time_current"
}})],
1
),
o
(
"van-field"
,{
staticClass
:
"timerStyle"
,
attrs
:{
name
:
"usageTime"
,
"is-link"
:
""
,
readonly
:
""
,
label
:
"使用结束时间"
,
placeholder
:
""
,
"label-width"
:
"100"
},
on
:{
click
:
e
.
UsageTimeMth
},
model
:{
value
:
e
.
goodsInfo
.
rule_end_time
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_end_time"
,
t
)},
expression
:
"goodsInfo.rule_end_time"
}}),
o
(
"van-popup"
,{
attrs
:{
position
:
"bottom"
},
model
:{
value
:
e
.
showUsageTime
,
callback
:
function
(
t
){
e
.
showUsageTime
=
t
},
expression
:
"showUsageTime"
}},[
o
(
"van-datetime-picker"
,{
attrs
:{
type
:
"time"
,
title
:
"选择使用结束时间"
},
on
:{
cancel
:
function
(
t
){
e
.
showUsageTime
=!
1
},
confirm
:
e
.
usageTimeClick
},
model
:{
value
:
e
.
rule_end_time_current
,
callback
:
function
(
t
){
e
.
rule_end_time_current
=
t
},
expression
:
"rule_end_time_current"
}})],
1
),
o
(
"van-field"
,{
attrs
:{
type
:
"number"
,
name
:
"original"
,
label
:
"原价 (元)"
,
placeholder
:
"选填"
,
oninput
:
"value=value.toString().match(/^
\\
d+(?:
\\
.
\\
d{0,2})?/)"
},
model
:{
value
:
e
.
goodsInfo
.
original_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"original_price"
,
t
)},
expression
:
"goodsInfo.original_price"
}}),
o
(
"van-field"
,{
staticClass
:
"stepper singPurLimit"
,
attrs
:{
name
:
"singPurLimit"
,
label
:
"单人购买上限"
,
"label-width"
:
"98px"
},
scopedSlots
:
e
.
_u
([{
key
:
"input"
,
fn
:
function
(){
return
[
o
(
"van-stepper"
,{
attrs
:{
min
:
"-999"
,
max
:
"999"
},
model
:{
value
:
e
.
goodsInfo
.
rule_limit
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_limit"
,
t
)},
expression
:
"goodsInfo.rule_limit"
}})]},
proxy
:
!
0
}])})],
1
),
o
(
"van-row"
,{
staticClass
:
"moreSetTitle"
},[
e
.
_v
(
"商品说明"
)]),
o
(
"van-field"
,{
staticClass
:
"moreSetTxt"
,
attrs
:{
rows
:
"3"
,
name
:
"proDescription"
,
autosize
:
""
,
type
:
"textarea"
,
maxlength
:
"50"
,
placeholder
:
"请输入"
,
"show-word-limit"
:
""
},
model
:{
value
:
e
.
goodsInfo
.
desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"desc"
,
t
)},
expression
:
"goodsInfo.desc"
}}),
o
(
"van-row"
,{
staticClass
:
"moreSetTitle"
},[
e
.
_v
(
"使用规则"
)]),
o
(
"van-field"
,{
staticClass
:
"moreSetTxt"
,
attrs
:{
rows
:
"3"
,
name
:
"rulesOfUse"
,
autosize
:
""
,
type
:
"textarea"
,
maxlength
:
"100"
,
placeholder
:
"请输入"
,
"show-word-limit"
:
""
},
model
:{
value
:
e
.
goodsInfo
.
rule_desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"rule_desc"
,
t
)},
expression
:
"goodsInfo.rule_desc"
}}),
o
(
"van-row"
,{
staticClass
:
"moreSetTitle"
},[
e
.
_v
(
"商品详情"
)]),
o
(
"van-field"
,{
staticClass
:
"moreSetTxt"
,
attrs
:{
rows
:
"3"
,
name
:
"proInfo"
,
autosize
:
""
,
type
:
"textarea"
,
maxlength
:
"200"
,
placeholder
:
"请输入"
,
"show-word-limit"
:
""
},
model
:{
value
:
e
.
goodsInfo
.
introduce
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goodsInfo
,
"introduce"
,
t
)},
expression
:
"goodsInfo.introduce"
}}),
o
(
"van-row"
,{
staticClass
:
"pictureUpload"
},[
o
(
"van-uploader"
,{
staticStyle
:{
padding
:
"10px 0 20.5px 20px"
,
"margin-right"
:
"8px"
},
attrs
:{
name
:
"otherPicture"
,
multiple
:
""
,
"max-count"
:
9
,
"after-read"
:
e
.
pictureAfterRead2
},
on
:{
delete
:
e
.
pictureDel2
},
model
:{
value
:
e
.
otherPicture
,
callback
:
function
(
t
){
e
.
otherPicture
=
t
},
expression
:
"otherPicture"
}},[
o
(
"div"
,{
staticStyle
:{
width
:
"100%"
,
height
:
"100%"
,
position
:
"absolute"
,
background
:
"transparent"
,
"z-index"
:
"100"
},
on
:{
click
:
function
(
t
){
e
.
showPictureInfo
=!
0
}}}),
o
(
"van-row"
,{
staticClass
:
"uploadFile"
},[
o
(
"van-icon"
,{
staticClass
:
"icoPlus"
,
attrs
:{
name
:
"plus"
}}),
o
(
"p"
,{
staticClass
:
"num"
},[
e
.
_v
(
" 添加图片"
),
o
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
otherPictureNum
))]),
e
.
_v
(
"/"
),
o
(
"span"
,[
e
.
_v
(
"9"
)])])],
1
)],
1
),
o
(
"van-action-sheet"
,{
attrs
:{
actions
:
e
.
pictureUploadArr
,
"cancel-text"
:
"取消"
,
"close-on-click-action"
:
""
},
on
:{
cancel
:
function
(
t
){
e
.
showPictureInfo
=!
1
},
select
:
e
.
pictureInfo
},
model
:{
value
:
e
.
showPictureInfo
,
callback
:
function
(
t
){
e
.
showPictureInfo
=
t
},
expression
:
"showPictureInfo"
}})],
1
)],
1
)]),
o
(
"van-row"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
1
==
e
.
moreSetShow
,
expression
:
"moreSetShow == true"
}],
staticClass
:
"title"
,
on
:{
click
:
function
(
t
){
e
.
moreSetShow
=!
1
}}},[
o
(
"van-icon"
,{
staticClass
:
"moreSetIcoUp"
,
attrs
:{
name
:
"arrow-up"
}}),
e
.
_v
(
"收起"
)],
1
)],
1
),
o
(
"div"
,{
staticClass
:
"submitBtn"
},[
o
(
"van-button"
,{
attrs
:{
round
:
""
,
block
:
""
,
type
:
"info"
,
"native-type"
:
"submit"
}},[
e
.
_v
(
"发布"
)])],
1
)],
1
)],
1
)},
i
=
[],
c
=
(
o
(
"7db0"
),
o
(
"a9e3"
),
o
(
"b0c0"
),
o
(
"4d63"
),
o
(
"ac1f"
),
o
(
"25f0"
),
o
(
"466d"
),
o
(
"841c"
),
o
(
"d81d"
),
o
(
"99af"
),
o
(
"a15b"
),
o
(
"ec18"
)),
u
=
o
.
n
(
c
);
function
l
(
e
,
t
){
var
o
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
"get"
;
return
u
.
a
.
invokeService
(
"NAHttpReq"
,
"request"
,{
path
:
e
,
params
:
t
},{
method
:
o
})}
function
d
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{},
o
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:{};
return
u
.
a
.
invokeService
(
"imageService"
,
e
,
t
,
o
)}
function
f
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{},
o
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:{};
return
u
.
a
.
invokeService
(
"selectCategoryService"
,
e
,
t
,
o
)}
function
h
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{},
o
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:{};
return
u
.
a
.
invokeService
(
"selectStoreService"
,
e
,
t
,
o
)}
function
p
(){
return
u
.
a
.
xpage
(
null
,
"pop"
)}
function
m
(){
return
u
.
a
.
invokeService
(
"goodsPublishService"
,
"publishSuccess"
)}
var
g
=
o
(
"5530"
),
_
=
o
(
"15fd"
),
v
=
(
o
(
"3119"
),
o
(
"62c3"
)),
b
=
o
.
n
(
v
),
j
=
"/api"
,
y
=
b
.
a
.
create
({
baseURL
:
j
,
timeout
:
6
e4
,
responseType
:
"json"
,
withCredentials
:
!
1
});
y
.
interceptors
.
response
.
use
((
function
(
e
){
if
(
200
===
e
.
status
)
return
e
.
data
}),(
function
(
e
){
return
Promise
.
reject
(
e
)}));
var
I
=
y
,
w
=
/yd-xarc-com/
.
test
(
navigator
.
userAgent
),
k
=
[
"url"
,
"method"
,
"params"
,
"type"
];
function
x
(){
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
t
=
e
||
{},
o
=
t
.
url
,
s
=
t
.
method
,
r
=
void
0
===
s
?
"get"
:
s
,
n
=
t
.
params
,
a
=
void
0
===
n
?{}:
n
,
i
=
t
.
type
,
c
=
void
0
===
i
?
"auto"
:
i
,
u
=
Object
(
_
[
"a"
])(
t
,
k
);
return
"auto"
===
c
&&
(
c
=
w
?
"native"
:
"web"
),
new
Promise
((
function
(
e
,
t
){
if
(
"native"
===
c
)
l
(
o
,
a
,
r
).
then
((
function
(
t
){
e
(
t
)})).
catch
((
function
(
e
){
t
(
e
)}));
else
if
(
"web"
===
c
){
var
s
=
{};
"get"
===
r
?
s
.
params
=
a
||
{}:
"post"
===
r
&&
(
s
.
data
=
a
||
{}),
I
(
Object
(
g
[
"a"
])(
Object
(
g
[
"a"
])({
url
:
o
,
method
:
r
},
s
),
u
)).
then
((
function
(
t
){
e
(
t
.
data
)})).
catch
((
function
(
e
){
t
(
e
)}))}
else
t
(
"不识别的请求方式"
)}))}
var
P
=
x
;
function
S
(
e
){
return
P
({
url
:
"/goods/customer/init_shop"
,
method
:
"get"
,
params
:
e
})}
function
C
(
e
){
return
P
({
url
:
"/goods/customer/goods_info_manage"
,
method
:
"post"
,
params
:
e
})}
function
D
(
e
){
return
P
({
url
:
"/goods/customer/add_goods"
,
method
:
"post"
,
params
:
e
})}
function
T
(
e
){
return
P
({
url
:
"/goods/customer/edit_goods"
,
method
:
"post"
,
params
:
e
})}
var
U
=
o
(
"203d"
),
z
=
o
.
n
(
U
),
A
=
{
data
:
function
(){
return
{
goodsInfo
:{
goods_name
:
""
,
category
:
""
,
price
:
""
,
inventory_rest
:
0
,
expiration_time
:
""
,
rule_refund
:
""
,
rule_date_type
:
"2"
,
rule_start_time
:
""
,
rule_end_time
:
""
,
original_price
:
""
,
rule_limit
:
""
,
introduce
:
""
,
rule_desc
:
""
,
desc
:
""
},
categoryObj
:{},
currentWhStorage
:
0
,
currentDate
:
new
Date
,
showdueDate
:
!
1
,
showRefundRules
:
!
1
,
refundRulesArr
:[{
name
:
"到期后自动退款"
,
value
:
1
},{
name
:
"购买后不允许退款"
,
value
:
2
},{
name
:
"到期后不允许退款"
,
value
:
3
}],
rule_start_time_current
:
""
,
showUsageTime
:
!
1
,
showUsageTimeStart
:
!
1
,
storeIDArr
:[],
rule_end_time_current
:
""
,
moreSetShow
:
!
1
,
couponId
:
""
,
lifeAccountId
:
""
,
merchantId
:
""
,
pictureUploadArr
:[{
name
:
"拍照"
},{
name
:
"相册"
}],
showPictureUpload
:
!
1
,
productPicture
:[],
productPictureNum
:
0
,
pictureArr1
:[],
productPictureID
:[],
showPictureInfo
:
!
1
,
otherPicture
:[],
otherPictureNum
:
0
,
pictureArr2
:[],
otherPictureID
:[]}},
computed
:{
rule_refund_txt
:
function
(){
var
e
=
this
;
if
(
this
.
goodsInfo
&&
this
.
goodsInfo
.
rule_refund
){
var
t
=
this
.
refundRulesArr
.
find
((
function
(
t
){
return
t
.
value
===
Number
(
e
.
goodsInfo
.
rule_refund
)}));
return
t
&&
t
.
name
||
""
}
return
""
},
storeLength
:
function
(){
return
"已选择"
+
this
.
storeIDArr
.
length
+
"家门店"
},
inventoryNum
:
function
(){
return
Number
(
this
.
goodsInfo
.
inventory_rest
)
+
this
.
currentWhStorage
}},
mounted
:
function
(){
var
e
=
this
.
getQueryString
(
"life_account_id"
),
t
=
this
.
getQueryString
(
"coupon_id"
);
e
&&
(
this
.
lifeAccountId
=
e
,
this
.
couponId
=
t
,
this
.
initShopMet
(),
t
&&
this
.
getCouponInfoMet
())},
methods
:{
getQueryString
:
function
(
e
){
var
t
=
new
RegExp
(
"(^|&)"
+
e
+
"=([^&]*)(&|$)"
),
o
=
window
.
location
.
search
.
substr
(
1
).
match
(
t
);
return
null
!=
o
?
unescape
(
o
[
2
]):
null
},
initShopMet
:
function
(){
S
({
life_account_id
:
this
.
lifeAccountId
}).
then
((
function
(
e
){})).
catch
((
function
(
e
){}))},
getCouponInfoMet
:
function
(){
var
e
=
this
;
C
({
goods_spu_id
:
this
.
couponId
}).
then
((
function
(
t
){
for
(
var
o
in
e
.
goodsInfo
=
t
.
result
.
goods_info
,
e
.
goodsInfo
.
rule_date_type
=
String
(
t
.
result
.
goods_info
.
rule_date_type
),
e
.
goodsInfo
.
category
=
t
.
result
.
goods_info
.
category_1_name
+
">"
+
t
.
result
.
goods_info
.
category_2_name
,
e
.
categoryObj
=
{
firstCategoryId
:
t
.
result
.
goods_info
.
category_1_id
,
secondCategoryId
:
t
.
result
.
goods_info
.
category_2_id
},
e
.
storeIDArr
=
t
.
result
.
goods_info
.
sub_shop
.
map
((
function
(
e
){
return
e
.
sub_shop_id
})),
t
.
result
.
goods_info
.
desc_pic_url_list
)
e
.
productPicture
=
[],
e
.
productPicture
.
push
({
url
:
t
.
result
.
goods_info
.
desc_pic_url_list
[
o
],
key
:
t
.
result
.
goods_info
.
desc_pic_url_list
[
o
],
isImage
:
!
0
});
for
(
var
o
in
e
.
productPictureNum
=
e
.
productPicture
.
length
,
t
.
result
.
introduce_pic_url_list
)
e
.
otherPicture
=
[],
e
.
otherPicture
.
push
({
url
:
t
.
result
.
introduce_pic_url_list
[
o
],
key
:
t
.
result
.
goods_info
.
desc_pic_url_list
[
o
],
isImage
:
!
0
});
e
.
otherPictureNum
=
e
.
otherPicture
.
length
})).
catch
((
function
(
e
){}))},
categoryClick
:
function
(){
var
e
=
this
;
""
==
this
.
goodsInfo
.
category
&&
(
this
.
categoryObj
=
{}),
this
.
couponId
||
f
(
"selectGoodsCategory"
,{
selectedCategory
:
this
.
categoryObj
}).
then
((
function
(
t
){
e
.
categoryObj
=
t
,
e
.
goodsInfo
.
category
=
t
.
firstCategoryName
+
">"
+
t
.
secondCategoryName
})).
catch
((
function
(
e
){
console
.
log
(
e
)}))},
getTimer
:
function
(
e
){
var
t
=
new
Date
,
o
=
t
.
getFullYear
(),
s
=
t
.
getMonth
()
+
1
,
r
=
t
.
getDate
(),
n
=
t
.
getHours
(),
a
=
t
.
getMinutes
(),
i
=
t
.
getSeconds
();
"dueDateType"
==
e
?
this
.
dueDate
=
""
.
concat
(
o
,
"-"
).
concat
(
s
,
"-"
).
concat
(
r
,
" "
).
concat
(
n
,
":"
).
concat
(
a
,
":"
).
concat
(
i
):
this
.
goodsInfo
.
usageTime
=
""
.
concat
(
n
,
":"
).
concat
(
a
)},
dueDateMth
:
function
(){
this
.
goodsInfo
&&
this
.
goodsInfo
.
expiration_time
?
this
.
currentDate
=
new
Date
(
this
.
goodsInfo
.
expiration_time
):
this
.
currentDate
=
new
Date
,
this
.
showdueDate
=!
0
},
dueDateClick
:
function
(
e
){
this
.
goodsInfo
.
expiration_time
=
z
()(
e
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
this
.
showdueDate
=!
1
},
refundRuleConfirm
:
function
(
e
){
this
.
goodsInfo
.
rule_refund
=
e
.
value
,
this
.
showRefundRules
=!
1
},
refundRuleCancel
:
function
(){},
storeClick
:
function
(){
var
e
=
this
;
h
(
"selectStore"
,{
selectedStore
:
this
.
storeIDArr
}).
then
((
function
(
t
){
e
.
storeIDArr
=
t
})).
catch
((
function
(
e
){
console
.
log
(
e
)}))},
pictureAfterRead2
:
function
(){
this
.
otherPictureNum
++
},
uploadPictures
:
function
(
e
,
t
){
var
o
=
this
;
d
(
"uploadImage"
,{
id
:
e
}).
then
((
function
(
e
){
if
(
"product"
==
t
){
if
(
o
.
productPicture
.
length
>
0
)
for
(
var
s
=
0
;
s
<
o
.
productPicture
.
length
;
s
++
)
o
.
productPicture
[
s
].
id
==
e
.
id
&&
(
o
.
productPicture
[
s
].
key
=
e
.
image_uploaded_key
,
o
.
productPictureID
.
push
(
e
.
id
))}
else
if
(
o
.
otherPicture
.
length
>
0
)
for
(
s
=
0
;
s
<
o
.
otherPicture
.
length
;
s
++
)
o
.
otherPicture
[
s
].
id
==
e
.
id
&&
(
o
.
otherPicture
[
s
].
key
=
e
.
image_uploaded_key
,
o
.
otherPictureID
.
push
(
e
.
id
))})).
catch
((
function
(
e
){
o
.
$toast
(
"图片上传失败"
),
console
.
log
(
e
)}))},
pictUpConfirm
:
function
(
e
){
var
t
=
this
;
"拍照"
==
e
.
name
?
d
(
"takePhoto"
).
then
((
function
(
e
){
for
(
var
o
in
e
)
t
.
uploadPictures
(
e
[
o
].
id
,
"product"
),
e
[
o
].
photo_base64_str
=
"data:image/png;base64,"
+
e
[
o
].
photo_base64_str
,
t
.
productPicture
.
push
({
id
:
e
[
o
].
id
,
url
:
e
[
o
].
photo_base64_str
,
isImage
:
!
0
,
key
:
""
}),
t
.
productPictureNum
=
t
.
productPicture
.
length
})).
catch
((
function
(
e
){
console
.
log
(
e
)})):(
this
.
productPicture
.
length
<=
0
&&
(
this
.
pictureArr1
=
[]),
d
(
"selectImage"
,{
maxCount
:
9
,
selectedImages
:
this
.
pictureArr1
}).
then
((
function
(
e
){
for
(
var
o
in
e
)
t
.
pictureArr1
.
push
(
e
[
o
]),
t
.
uploadPictures
(
e
[
o
].
id
,
"product"
),
e
[
o
].
photo_base64_str
=
"data:image/png;base64,"
+
e
[
o
].
photo_base64_str
,
t
.
productPicture
.
push
({
id
:
e
[
o
].
id
,
url
:
e
[
o
].
photo_base64_str
,
isImage
:
!
0
,
key
:
""
}),
t
.
productPictureNum
=
t
.
productPicture
.
length
})).
catch
((
function
(
e
){
console
.
log
(
e
)})))},
pictureInfo
:
function
(
e
){
var
t
=
this
;
"拍照"
==
e
.
name
?
d
(
"takePhoto"
).
then
((
function
(
e
){
for
(
var
o
in
e
)
t
.
uploadPictures
(
e
[
o
].
id
,
""
),
e
[
o
].
photo_base64_str
=
"data:image/png;base64,"
+
e
[
o
].
photo_base64_str
,
t
.
otherPicture
.
push
({
id
:
e
[
o
].
id
,
url
:
e
[
o
].
photo_base64_str
,
isImage
:
!
0
}),
t
.
otherPictureNum
=
t
.
otherPicture
.
length
})).
catch
((
function
(
e
){
console
.
log
(
e
)})):(
this
.
productPicture
.
length
<=
0
&&
(
this
.
pictureArr2
=
[]),
d
(
"selectImage"
,{
maxCount
:
9
,
selectedImages
:
this
.
pictureArr2
}).
then
((
function
(
e
){
for
(
var
o
in
e
)
t
.
pictureArr2
.
push
(
e
[
o
]),
t
.
uploadPictures
(
e
[
o
].
id
,
""
),
e
[
o
].
photo_base64_str
=
"data:image/png;base64,"
+
e
[
o
].
photo_base64_str
,
t
.
otherPicture
.
push
({
id
:
e
[
o
].
id
,
url
:
e
[
o
].
photo_base64_str
,
isImage
:
!
0
}),
t
.
otherPictureNum
=
t
.
otherPicture
.
length
})).
catch
((
function
(
e
){
console
.
log
(
e
)})))},
pictureDel1
:
function
(){
0
!=
this
.
pictureNum
&&
this
.
productPictureNum
--
},
pictureDel2
:
function
(){
0
!=
this
.
pictureNum
&&
this
.
otherPictureNum
--
},
moreSetOpen
:
function
(){},
moreSetClose
:
function
(){},
UsageTimeMthStart
:
function
(){
this
.
goodsInfo
&&
this
.
goodsInfo
.
rule_start_time
?
this
.
rule_start_time_current
=
this
.
goodsInfo
.
rule_start_time
:
this
.
rule_start_time_current
=
z
()().
format
(
"HH:mm"
),
this
.
showUsageTimeStart
=!
0
},
usageTimeClickStart
:
function
(
e
){
this
.
goodsInfo
.
rule_start_time
=
e
,
this
.
showUsageTimeStart
=!
1
},
UsageTimeMth
:
function
(){
this
.
goodsInfo
&&
this
.
goodsInfo
.
rule_end_time
?
this
.
rule_end_time_current
=
this
.
goodsInfo
.
rule_end_time
:
this
.
rule_end_time_current
=
z
()().
format
(
"HH:mm"
),
this
.
showUsageTime
=!
0
},
usageTimeClick
:
function
(
e
){
this
.
goodsInfo
.
rule_end_time
=
e
,
this
.
showUsageTime
=!
1
},
release
:
function
(
e
){
if
(
this
.
productPicture
.
length
==
this
.
productPictureID
.
length
&&
this
.
otherPicture
.
length
==
this
.
otherPictureID
.
length
){
for
(
var
t
=
[],
o
=
0
;
o
<
this
.
productPicture
.
length
;
o
++
)
t
.
push
(
this
.
productPicture
[
o
].
key
);
var
s
=
[];
for
(
o
=
0
;
o
<
this
.
otherPicture
.
length
;
o
++
)
s
.
push
(
this
.
otherPicture
[
o
].
key
);
var
r
=
t
.
join
(
","
),
n
=
s
.
join
(
","
),
a
=
{
life_account_id
:
this
.
lifeAccountId
,
category_1_id
:
this
.
categoryObj
.
firstCategoryId
,
category_2_id
:
this
.
categoryObj
.
secondCategoryId
,
goods_name
:
this
.
goodsInfo
.
goods_name
,
desc_pic_url
:
r
,
desc
:
this
.
goodsInfo
.
desc
,
introduce
:
this
.
goodsInfo
.
introduce
,
introduce_pic_url
:
n
,
expiration_time
:
this
.
goodsInfo
.
expiration_time
,
rule_limit
:
this
.
goodsInfo
.
rule_limit
,
rule_desc
:
this
.
goodsInfo
.
rule_desc
,
rule_refund
:
this
.
goodsInfo
.
rule_refund
,
rule_start_time
:
this
.
goodsInfo
.
rule_start_time
,
rule_end_time
:
this
.
goodsInfo
.
rule_end_time
,
rule_date_type
:
this
.
goodsInfo
.
rule_date_type
,
original_price
:
this
.
goodsInfo
.
original_price
,
price
:
this
.
goodsInfo
.
price
,
setmeal
:
""
,
sub_shop_ids
:
this
.
storeIDArr
.
join
(
","
)};
this
.
couponId
?(
a
.
goods_spu_id
=
this
.
couponId
,
a
.
inventory_add
=
this
.
currentWhStorage
,
this
.
editMth
(
a
)):(
a
.
inventory
=
this
.
inventoryNum
,
this
.
addhMth
(
a
))}
else
this
.
$toast
(
"图片上传中,请稍后"
)},
addhMth
:
function
(
e
){
var
t
=
this
;
D
(
e
).
then
((
function
(
e
){
0
===
e
.
code
?(
t
.
$toast
(
"发布成功"
),
m
(),
p
()):
t
.
$toast
(
e
.
reason
)})).
catch
((
function
(
e
){}))},
editMth
:
function
(
e
){
var
t
=
this
;
T
(
e
).
then
((
function
(
e
){
0
===
e
.
code
?(
t
.
$toast
(
"发布成功"
),
m
(),
p
()):
t
.
$toast
(
e
.
reason
)})).
catch
((
function
(
e
){}))}}},
N
=
A
,
O
=
(
o
(
"6582"
),
o
(
"2877"
)),
R
=
Object
(
O
[
"a"
])(
N
,
a
,
i
,
!
1
,
null
,
"9fd89d4e"
,
null
),
M
=
R
.
exports
,
$
=
{
name
:
"App"
,
components
:{
coupon
:
M
}},
q
=
$
,
H
=
Object
(
O
[
"a"
])(
q
,
r
,
n
,
!
1
,
null
,
null
,
null
),
L
=
H
.
exports
,
W
=
o
(
"b970"
),
B
=
o
(
"37d5"
),
E
=
o
.
n
(
B
);
o
(
"157a"
);
new
E
.
a
,
s
[
"a"
].
use
(
W
[
"a"
]),
s
[
"a"
].
config
.
productionTip
=!
1
,
new
s
[
"a"
]({
render
:
function
(
e
){
return
e
(
L
)}}).
$mount
(
"#app"
)},
6582
:
function
(
e
,
t
,
o
){
"use strict"
;
o
(
"508c"
)}});
\ No newline at end of file
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