Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
750da27a
Commit
750da27a
authored
Nov 07, 2018
by
wangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品编辑
parent
c6ee5490
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
32 additions
and
6 deletions
+32
-6
index.html
dev/index.html
+1
-1
25.25f350d1db80f4144dcc.js
dev/static/js/25.25f350d1db80f4144dcc.js
+0
-1
25.c3a1153a32862731b7ad.js
dev/static/js/25.c3a1153a32862731b7ad.js
+1
-0
manifest.56964d8cdaee25c7ec8d.js
dev/static/js/manifest.56964d8cdaee25c7ec8d.js
+1
-1
index.html
dist/index.html
+1
-1
app.839e4e1bb820b6ba4eaaf46288f2aa0b.css
dist/static/css/app.839e4e1bb820b6ba4eaaf46288f2aa0b.css
+1
-1
22.530b6d052b58ceeec3d7.js
dist/static/js/22.530b6d052b58ceeec3d7.js
+0
-1
22.cb375ba2e327f0effe2e.js
dist/static/js/22.cb375ba2e327f0effe2e.js
+1
-0
manifest.5aa09880e7056414c838.js
dist/static/js/manifest.5aa09880e7056414c838.js
+1
-0
dialog.vue
src/components/shop/dialog.vue
+25
-0
No files found.
dev/index.html
View file @
750da27a
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.1295c42d8334d473da7d78ac3f2c8c0a.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
6e44eb960497b221be62
.js
></script><script
type=
text/javascript
src=
/static/js/vendor.f22e520bedd9a356fde1.js
></script><script
type=
text/javascript
src=
/static/js/app.5fb068802bc65ab9f90c.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.1295c42d8334d473da7d78ac3f2c8c0a.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
56964d8cdaee25c7ec8d
.js
></script><script
type=
text/javascript
src=
/static/js/vendor.f22e520bedd9a356fde1.js
></script><script
type=
text/javascript
src=
/static/js/app.5fb068802bc65ab9f90c.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
el
.
onerror
=
function
(
a
,
b
,
c
){
console
.
log
(
'error:'
,
a
,
b
,
c
);
};
...
...
dev/static/js/25.25f350d1db80f4144dcc.js
deleted
100644 → 0
View file @
c6ee5490
webpackJsonp
([
25
],{
"1djJ"
:
function
(
e
,
t
,
o
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
o
(
"CCn6"
),
i
=
o
(
"+TkF"
),
a
=
o
(
"kmJW"
),
n
=
{
name
:
"dialogObj"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
loading
:
!
0
,
goodsList
:[],
form
:{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
imgLesson
:[],
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
img
:[],
refImg
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
after_goods_id
:
""
,
before_goods_id
:
""
}},
lessonList
:[],
goOn_goods_Id
:{
after_goods_id
:
""
,
before_goods_id
:
""
}}},
methods
:{
sub
:
function
(){
var
e
=
this
,
t
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
)
+
""
);
switch
(
t
.
desc
.
before_goods_id
=
this
.
goOn_goods_Id
.
before_goods_id
,
t
.
desc
.
after_goods_id
=
this
.
goOn_goods_Id
.
after_goods_id
,
t
.
original_price
=
(
100
*
t
.
original_price
).
toFixed
(
0
),
t
.
current_price
=
(
100
*
t
.
current_price
).
toFixed
(
0
),
t
.
invite_earnings
=
(
100
*
t
.
invite_earnings
).
toFixed
(
0
),
t
.
goods_desc
=
JSON
.
stringify
(
t
.
goods_desc
),
t
.
desc
=
JSON
.
stringify
(
t
.
desc
),
t
.
share_desc
=
JSON
.
stringify
(
t
.
share_desc
),
this
.
dialogObj
.
type
){
case
1
:
Object
(
s
.
R
)(
this
.
dialogObj
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
});
break
;
case
0
:
Object
(
s
.
i
)(
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
})}},
removeFileMain
:
function
(
e
){
var
t
=
this
.
form
.
goods_desc
.
img
.
findIndex
(
function
(
t
){
return
t
.
name
===
e
.
name
});
this
.
form
.
goods_desc
.
img
.
splice
(
t
,
1
)},
uploadFileLesson
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
goods_desc
.
imgLesson
=
[{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}],
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
})})},
removeFileLesson
:
function
(){
this
.
form
.
goods_desc
.
imgLesson
=
[]},
uploadFileMain
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
goods_desc
.
img
.
push
({
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}),
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
})})},
removeFileShareRef
:
function
(){
this
.
form
.
share_desc
.
refImg
=
[]},
uploadFileMainShareRef
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
refImg
?
t
.
form
.
share_desc
.
refImg
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
refImg
=
[],
t
.
form
.
share_desc
.
refImg
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileMainShare
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
img
?
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
img
=
[],
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileMainService
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
desc
.
customer_service
?
t
.
form
.
desc
.
customer_service
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
desc
.
customer_service
=
[],
t
.
form
.
desc
.
customer_service
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileShare
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
img
?
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
img
=
[],
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
initDialog
:
function
(){
var
e
=
this
;
switch
(
Object
(
s
.
_19
)({
limit
:
9999
}).
then
(
function
(
t
){
e
.
goodsList
=
t
.
list
}),
this
.
dialogObj
.
type
){
case
0
:
this
.
loading
=!
1
,
this
.
goOn_goods_Id
.
after_goods_id
=
""
,
this
.
goOn_goods_Id
.
before_goods_id
=
""
,
this
.
form
=
{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
refImg
:[],
img
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
before_goods_id
:
0
,
after_goods_id
:
0
}},
this
.
getLessonList
();
break
;
case
1
:
case
2
:
this
.
goOn_goods_Id
.
after_goods_id
=
""
,
this
.
goOn_goods_Id
.
before_goods_id
=
""
,
this
.
form
=
{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
refImg
:[],
img
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
before_goods_id
:
0
,
after_goods_id
:
0
}},
Object
(
s
.
_18
)(
this
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
loading
=!
1
;
var
o
=
JSON
.
parse
(
t
.
share_desc
);
o
.
refImg
||
(
o
.
refImg
=
[]),
e
.
form
=
{
name
:
t
.
name
,
goods_type
:
t
.
goods_type
,
goods_desc
:
JSON
.
parse
(
t
.
goods_desc
),
course_id
:
t
.
course_id
,
course_type
:
t
.
course_type
,
watch_num
:
t
.
watch_num
,
duration_num
:
t
.
duration_num
,
original_price
:
t
.
original_price
/
100
,
current_price
:
t
.
current_price
/
100
,
is_real
:
t
.
is_real
,
is_auth_user
:
t
.
is_auth_user
,
share_desc
:
JSON
.
parse
(
t
.
share_desc
),
desc
:
JSON
.
parse
(
t
.
desc
),
invite_earnings
:
t
.
invite_earnings
/
100
,
is_auth_teacher
:
t
.
is_auth_teacher
},
e
.
form
.
desc
.
before_goods_id
&&
(
e
.
goOn_goods_Id
.
before_goods_id
=
e
.
form
.
desc
.
before_goods_id
),
e
.
form
.
desc
.
after_goods_id
&&
(
e
.
goOn_goods_Id
.
after_goods_id
=
e
.
form
.
desc
.
after_goods_id
),
e
.
getLessonList
()});
break
;
case
3
:
this
.
title
=
"编辑"
,
this
.
show
=
this
.
dialogObj
.
show
,
this
.
id
=
this
.
dialogObj
.
id
,
this
.
type
=
2
}},
changeLessonType
:
function
(){
this
.
getLessonList
()},
getLessonList
:
function
(){
var
e
=
this
;
Object
(
s
.
_20
)({
type
:
this
.
form
.
course_type
}).
then
(
function
(
t
){
e
.
lessonList
=
t
.
list
})}},
watch
:{
dialogObj
:{
handler
:
function
(){
this
.
loading
=!
0
,
this
.
initDialog
()},
deep
:
!
0
},
show
:
function
(
e
){
this
.
$emit
(
"changeShow"
,
e
)}}},
l
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogObj
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialogObj
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialogObj
,
"show"
,
t
)}}},[
o
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"100px"
,
disabled
:
2
===
e
.
dialogObj
.
type
}},[
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"name"
,
t
)},
expression
:
"form.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品描述"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
goods_desc
.
desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
goods_desc
,
"desc"
,
t
)},
expression
:
"form.goods_desc.desc"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品类型"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
form
.
goods_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"goods_type"
,
t
)},
expression
:
"form.goods_type"
}},[
o
(
"el-option"
,{
attrs
:{
label
:
"普通商品"
,
value
:
1
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"团购商品"
,
value
:
2
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"续课商品"
,
value
:
3
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"优惠券商品"
,
value
:
4
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
3
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续课已购商品"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
goOn_goods_Id
.
before_goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goOn_goods_Id
,
"before_goods_id"
,
t
)},
expression
:
"goOn_goods_Id.before_goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续购商品"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
goOn_goods_Id
.
after_goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goOn_goods_Id
,
"after_goods_id"
,
t
)},
expression
:
"goOn_goods_Id.after_goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程类型"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
function
(
t
){
e
.
changeLessonType
()}},
model
:{
value
:
e
.
form
.
course_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"course_type"
,
t
)},
expression
:
"form.course_type"
}},[
o
(
"el-option"
,{
attrs
:{
label
:
"日课"
,
value
:
1
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"月课"
,
value
:
0
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
form
.
course_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"course_id"
,
t
)},
expression
:
"form.course_id"
}},
e
.
_l
(
e
.
lessonList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
title
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"观看时长(节)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"课时数"
},
model
:{
value
:
e
.
form
.
watch_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"watch_num"
,
t
)},
expression
:
"form.watch_num"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续看时长(天)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"看课天数"
},
model
:{
value
:
e
.
form
.
duration_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"duration_num"
,
t
)},
expression
:
"form.duration_num"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程封面(750*600)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileLesson
,
"on-remove"
:
e
.
removeFileLesson
,
limit
:
1
,
"file-list"
:
e
.
form
.
goods_desc
.
imgLesson
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"主图(750*600)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileMain
,
"on-remove"
:
e
.
removeFileMain
,
"file-list"
:
e
.
form
.
goods_desc
.
img
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"客服(200*200)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
class
:
e
.
form
.
desc
.
customer_service
&&
e
.
form
.
desc
.
customer_service
.
length
>
0
?
"uploadService"
:
""
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"http-request"
:
e
.
uploadFileMainService
,
"file-list"
:
e
.
form
.
desc
.
customer_service
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"推荐奖金(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"推荐奖金"
},
model
:{
value
:
e
.
form
.
invite_earnings
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"invite_earnings"
,
t
)},
expression
:
"form.invite_earnings"
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否配置实物"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_real
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_real"
,
t
)},
expression
:
"form.is_real"
}}),
e
.
_v
(
" "
),
o
(
"span"
,{
staticStyle
:{
"font-size"
:
"12px"
}},[
e
.
_v
(
"打开后提示用户填写具体住址"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否允许用户推广"
,
"label-width"
:
"200"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_auth_user
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_auth_user"
,
t
)},
expression
:
"form.is_auth_user"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否允许老师推广"
,
"label-width"
:
"200"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_auth_teacher
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_auth_teacher"
,
t
)},
expression
:
"form.is_auth_teacher"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
1
===
e
.
form
.
goods_type
||
3
===
e
.
form
.
goods_type
?
"原价(元)"
:
4
===
e
.
form
.
goods_type
?
"抵扣价格(元)"
:
"单买价格(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"原价"
},
model
:{
value
:
e
.
form
.
original_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"original_price"
,
t
)},
expression
:
"form.original_price"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
1
===
e
.
form
.
goods_type
||
3
===
e
.
form
.
goods_type
?
"现价(元)"
:
4
===
e
.
form
.
goods_type
?
"购买价格(元)"
:
"拼团价格(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"现价"
},
model
:{
value
:
e
.
form
.
current_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"current_price"
,
t
)},
expression
:
"form.current_price"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"成团人数(人)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"成团人数"
},
model
:{
value
:
e
.
form
.
desc
.
group_number
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"group_number"
,
t
)},
expression
:
"form.desc.group_number"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"团购失效时间(小时)"
,
"label-width"
:
"136"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"团购失效时间"
},
model
:{
value
:
e
.
form
.
desc
.
group_continue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"group_continue"
,
t
)},
expression
:
"form.desc.group_continue"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享标题"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
share_desc
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
share_desc
,
"title"
,
t
)},
expression
:
"form.share_desc.title"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享内容"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
share_desc
.
content
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
share_desc
,
"content"
,
t
)},
expression
:
"form.share_desc.content"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享主图(300*300)"
}},[
o
(
"el-upload"
,{
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"file-list"
:
e
.
form
.
share_desc
.
img
,
"http-request"
:
e
.
uploadFileMainShare
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享海报"
}},[
o
(
"el-upload"
,{
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"file-list"
:
e
.
form
.
share_desc
.
refImg
,
"http-request"
:
e
.
uploadFileMainShareRef
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
24
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品详情"
}},[
o
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
25
},
model
:{
value
:
e
.
form
.
desc
.
detail
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"detail"
,
t
)},
expression
:
"form.desc.detail"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
24
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"购买须知"
}},[
o
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
25
},
model
:{
value
:
e
.
form
.
desc
.
qa
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"qa"
,
t
)},
expression
:
"form.desc.qa"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
!==
e
.
dialogObj
.
type
?
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
):
e
.
_e
()],
1
)])};
l
.
_withStripped
=!
0
;
var
r
=
{
render
:
l
,
staticRenderFns
:[]},
c
=
r
;
var
d
=!
1
;
var
u
=
o
(
"VU/8"
)(
n
,
c
,
!
1
,
function
(
e
){
d
||
o
(
"7XPy"
)},
"data-v-0134c3a4"
,
null
);
u
.
options
.
__file
=
"src
\\
components
\\
shop
\\
dialog.vue"
;
var
m
=
u
.
exports
,
f
=
{
name
:
"index"
,
data
:
function
(){
return
{
searchFrom
:{
name
:
""
},
userList
:[],
total
:
0
,
nowPage
:
1
,
limit
:
10
,
chooseDialog
:{
show
:
!
1
,
title
:
""
,
id
:
""
,
form
:{
value
:
""
,
list
:[]},
type
:
0
},
dialogObj
:{
type
:
0
,
show
:
!
1
,
title
:
""
,
id
:
""
},
classList
:[]}},
components
:{
page
:
a
.
a
,
dialogCom
:
m
},
filters
:{
isOrNot
:
function
(
e
){
return
i
.
h
[
e
]},
goodsType
:
function
(
e
){
return
i
.
e
[
e
]},
lessonType
:
function
(
e
){
return
i
.
i
[
e
]},
goodsStatus
:
function
(
e
){
return
i
.
d
[
e
]}},
mounted
:
function
(){
this
.
getUser
(),
this
.
getClassList
()},
methods
:{
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getUser
()},
onSizeChange
:
function
(
e
){
this
.
limit
=
e
,
this
.
nowPage
=
1
,
this
.
getUser
()},
copyShop
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将复制该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
t
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"复制成功!"
})}),
t
.
getUser
()})},
copyUrl
:
function
(
e
){
var
t
=
"https://wechat-test.changchangenglish.com/#/buyDetail?shopId="
+
e
,
o
=
document
.
createElement
(
"input"
);
o
.
value
=
t
,
document
.
body
.
appendChild
(
o
),
o
.
select
(),
document
.
execCommand
(
"Copy"
),
this
.
$message
({
message
:
"已成功复制到剪切板"
,
type
:
"success"
}),
o
.
remove
()},
dialogSub
:
function
(){
var
e
=
this
;
switch
(
this
.
chooseDialog
.
type
){
case
0
:
Object
(
s
.
p
)(
this
.
chooseDialog
.
id
,
this
.
chooseDialog
.
form
.
value
).
then
(
function
(
t
){
e
.
$message
({
message
:
"绑定成功"
,
type
:
"success"
}),
e
.
chooseDialog
.
show
=!
1
}),
this
.
getUser
();
break
;
case
1
:
var
t
=
{
conflict_goods_ids
:
this
.
chooseDialog
.
form
.
list
.
toString
()};
Object
(
s
.
s
)(
this
.
chooseDialog
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
message
:
"设置成功"
,
type
:
"success"
}),
e
.
chooseDialog
.
show
=!
1
,
e
.
getUser
()})}},
getUser
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
name
&&
(
t
.
name
=
this
.
searchFrom
.
name
),
this
.
searchFrom
.
course_id
&&
(
t
.
course_id
=
this
.
searchFrom
.
course_id
),
this
.
searchFrom
.
status
&&
(
t
.
status
=
this
.
searchFrom
.
status
),
this
.
searchFrom
.
current_price
&&
(
t
.
current_price
=
100
*
this
.
searchFrom
.
current_price
),
Object
(
s
.
_19
)(
t
).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
""
===
e
.
conflict_goods_ids
?
e
.
conflict_goods_ids
=
[]:
e
.
conflict_goods_ids
=
e
.
conflict_goods_ids
.
split
(
","
)}),
e
.
userList
=
t
.
list
,
e
.
total
=
t
.
total
})},
edit
:
function
(
e
){
this
.
dialogObj
=
{
type
:
1
,
title
:
"编辑商品"
,
show
:
!
0
,
id
:
e
.
id
}},
add
:
function
(){
this
.
dialogObj
=
{
type
:
0
,
title
:
"添加商品"
,
show
:
!
0
}},
detail
:
function
(
e
){
this
.
dialogObj
.
id
=
e
.
id
,
this
.
dialogObj
.
type
=
2
,
this
.
dialogObj
.
title
=
"查看商品"
,
this
.
dialogObj
.
show
=!
0
},
onDel
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
I
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})}),
t
.
getUser
()})},
onUp
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将上架该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
_55
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
}),
t
.
getUser
()})})},
onDown
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将下架该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
K
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
}),
t
.
getUser
()})})},
changeShow
:
function
(
e
){
this
.
dialogObj
.
show
=
e
},
bindOther
:
function
(
e
){
this
.
chooseDialog
=
{
show
:
!
0
,
title
:
"绑定商品"
,
id
:
e
.
id
,
form
:{
value
:
""
,
list
:[]},
type
:
0
}},
conflict
:
function
(
e
){
this
.
chooseDialog
=
{
show
:
!
0
,
title
:
"冲突商品"
,
id
:
e
.
id
,
form
:{
value
:
""
,
list
:
e
.
conflict_goods_ids
},
type
:
1
}},
getClassList
:
function
(){
var
e
=
this
;
Object
(
s
.
_20
)({
limit
:
2
e3
,
page
:
1
}).
then
(
function
(
t
){
e
.
classList
=
t
.
list
})}}},
p
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"user"
},[
o
(
"el-form"
,{
ref
:
"searchFrom"
,
staticClass
:
"search-form"
,
attrs
:{
model
:
e
.
searchFrom
,
"label-width"
:
"100px"
,
inline
:
""
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
searchFrom
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"name"
,
t
)},
expression
:
"searchFrom.name"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
getUser
},
model
:{
value
:
e
.
searchFrom
.
course_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"course_id"
,
t
)},
expression
:
"searchFrom.course_id"
}},[
o
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
e
.
_l
(
e
.
classList
,
function
(
e
,
t
){
return
o
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
title
,
value
:
e
.
id
}})})],
2
)],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品状态"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
getUser
},
model
:{
value
:
e
.
searchFrom
.
status
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"status"
,
t
)},
expression
:
"searchFrom.status"
}},[
o
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"0"
,
label
:
"编辑中"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"1"
,
label
:
"上架"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"2"
,
label
:
"下架"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品现价/团购价"
,
"label-width"
:
"120px"
}},[
o
(
"el-input-number"
,{
model
:{
value
:
e
.
searchFrom
.
current_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"current_price"
,
t
)},
expression
:
"searchFrom.current_price"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,[
o
(
"div"
,{
staticClass
:
"search-btn-block"
},[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
getUser
}},[
e
.
_v
(
"搜索"
)])],
1
)])],
1
),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"new-block"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
o
(
"el-button"
,{
attrs
:{
type
:
"success"
,
plain
:
""
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"添加商品"
)])],
1
),
e
.
_v
(
" "
),
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
userList
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
o
(
"router-link"
,{
attrs
:{
to
:{
name
:
"periods"
,
query
:{
goods_id
:
t
.
row
.
id
}}}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
name
)
+
"
\n
"
)])]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"goodsType"
)(
t
.
row
.
goods_type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品原价/直购价"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
original_price
/
100
)
+
"元
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品现价/团购价"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
current_price
/
100
)
+
"元
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"course_title"
,
label
:
"课程名称"
}}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"课程类别"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"lessonType"
)(
t
.
row
.
course_type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"是否有实物"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"isOrNot"
)(
t
.
row
.
is_real
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"goodsStatus"
)(
t
.
row
.
status
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
width
:
"60"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
o
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"600"
}},[
o
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
}},[
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
detail
(
t
.
row
)}}},[
e
.
_v
(
"
\n
查看详情
\n
"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
copyUrl
(
t
.
row
.
id
)}}},[
e
.
_v
(
"
\n
复制链接
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():[
2
===
t
.
row
.
status
||
0
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
onUp
(
t
.
row
)}}},[
e
.
_v
(
"
\n
上架
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
onDown
(
t
.
row
)}}},[
e
.
_v
(
"
\n
下架
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"warning"
},
on
:{
click
:
function
(
o
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"success"
},
on
:{
click
:
function
(
o
){
e
.
copyShop
(
t
.
row
)}}},[
e
.
_v
(
"
\n
复制商品
\n
"
)]),
e
.
_v
(
" "
),
2
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
bindOther
(
t
.
row
)}}},[
e
.
_v
(
"
\n
绑定商品
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
conflict
(
t
.
row
)}}},[
e
.
_v
(
"
\n
冲突商品
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"danger"
},
on
:{
click
:
function
(
o
){
e
.
onDel
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]],
2
),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
slot
:
"reference"
,
size
:
"mini"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"操作"
)])],
1
)]}}])})],
1
),
e
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}}),
e
.
_v
(
" "
),
o
(
"dialog-com"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
changeShow
:
e
.
changeShow
,
reflash
:
e
.
getUser
}}),
e
.
_v
(
" "
),
o
(
"el-dialog"
,{
attrs
:{
title
:
e
.
chooseDialog
.
title
,
visible
:
e
.
chooseDialog
.
show
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
,
"show"
,
t
)}}},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
"label-width"
:
"80px"
}},[
0
===
e
.
chooseDialog
.
type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"绑定商品"
}},[
o
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
chooseDialog
.
form
.
value
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
.
form
,
"value"
,
t
)},
expression
:
"chooseDialog.form.value"
}},
e
.
_l
(
e
.
userList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
chooseDialog
.
type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"冲突商品"
}},[
o
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
,
multiple
:
""
},
model
:{
value
:
e
.
chooseDialog
.
form
.
list
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
.
form
,
"list"
,
t
)},
expression
:
"chooseDialog.form.list"
}},
e
.
_l
(
e
.
userList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
.
toString
()}})}))],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
chooseDialog
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
dialogSub
()}}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)};
p
.
_withStripped
=!
0
;
var
_
=
{
render
:
p
,
staticRenderFns
:[]},
g
=
_
;
var
h
=!
1
;
var
b
=
o
(
"VU/8"
)(
f
,
g
,
!
1
,
function
(
e
){
h
||
o
(
"Y727"
)},
"data-v-7fddce5c"
,
null
);
b
.
options
.
__file
=
"src
\\
components
\\
shop
\\
index.vue"
;
t
.
default
=
b
.
exports
},
"7XPy"
:
function
(
e
,
t
,
o
){
var
s
=
o
(
"bG7/"
);
"string"
==
typeof
s
&&
(
s
=
[[
e
.
i
,
s
,
""
]]),
s
.
locals
&&
(
e
.
exports
=
s
.
locals
);
o
(
"rjj0"
)(
"4763fb45"
,
s
,
!
1
,{})},
Y727
:
function
(
e
,
t
,
o
){
var
s
=
o
(
"totp"
);
"string"
==
typeof
s
&&
(
s
=
[[
e
.
i
,
s
,
""
]]),
s
.
locals
&&
(
e
.
exports
=
s
.
locals
);
o
(
"rjj0"
)(
"5f457a2b"
,
s
,
!
1
,{})},
"bG7/"
:
function
(
e
,
t
,
o
){(
e
.
exports
=
o
(
"FZ+f"
)(
!
0
)).
push
([
e
.
i
,
"
\n
.el-col[data-v-0134c3a4] {
\n
min-height: 50px;
\n
text-align: center;
\n
margin-bottom: 10px;
\n
line-height: 40px;
\n
}
\n
.el-col .el-select[data-v-0134c3a4],
\n
.el-col .el-select[data-v-0134c3a4] {
\n
width: 100%;
\n
}
\n
.el-col img[data-v-0134c3a4] {
\n
width: 50px;
\n
border-radius: 100px;
\n
}
\n
.el-col label[data-v-0134c3a4] {
\n
color: #5982e6;
\n
}
\n
.dialog-footer[data-v-0134c3a4] {
\n
display: block;
\n
text-align: center;
\n
}
\n
.size[data-v-0134c3a4] {
\n
color: #666;
\n
font-size: 14px;
\n
}
\n
"
,
""
,{
version
:
3
,
sources
:[
"D:/myproject/changchang-admin-new/src/components/shop/dialog.vue"
],
names
:[],
mappings
:
";AACA;EACE,iBAAiB;EACjB,mBAAmB;EACnB,oBAAoB;EACpB,kBAAkB;CACnB;AACD;;EAEE,YAAY;CACb;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;EACf,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,gBAAgB;CACjB"
,
file
:
"dialog.vue"
,
sourcesContent
:[
"
\n
.el-col[data-v-0134c3a4] {
\n
min-height: 50px;
\n
text-align: center;
\n
margin-bottom: 10px;
\n
line-height: 40px;
\n
}
\n
.el-col .el-select[data-v-0134c3a4],
\n
.el-col .el-select[data-v-0134c3a4] {
\n
width: 100%;
\n
}
\n
.el-col img[data-v-0134c3a4] {
\n
width: 50px;
\n
border-radius: 100px;
\n
}
\n
.el-col label[data-v-0134c3a4] {
\n
color: #5982e6;
\n
}
\n
.dialog-footer[data-v-0134c3a4] {
\n
display: block;
\n
text-align: center;
\n
}
\n
.size[data-v-0134c3a4] {
\n
color: #666;
\n
font-size: 14px;
\n
}
\n
"
],
sourceRoot
:
""
}])},
totp
:
function
(
e
,
t
,
o
){(
e
.
exports
=
o
(
"FZ+f"
)(
!
0
)).
push
([
e
.
i
,
'
\
n.search-btn-block[data-v-7fddce5c] {
\
n margin-left: 20px;
\
n}
\
n.search-form[data-v-7fddce5c] {
\
n background: white;
\
n padding: 10px;
\
n margin: 10px 0;
\
n}
\
n.new-block[data-v-7fddce5c] {
\
n margin: 10px;
\
n text-align: right;
\
n}
\
n.fl-r[data-v-7fddce5c] {
\
n float: right;
\
n}
\
n.text-c[data-v-7fddce5c] {
\
n text-align: center;
\
n}
\
n.main-block[data-v-7fddce5c] {
\
n margin: 5px;
\
n background: white;
\
n padding: 5px;
\
n}
\
nhtml[data-v-7fddce5c] {
\
n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "
\\
5FAE
\\
8F6F
\\
96C5
\\
9ED1", Arial, sans-serif;
\
n}
\
n.clear-both[data-v-7fddce5c]:after {
\
n content:
\'\'
;
\
n display: block;
\
n clear: both;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar-track-piece {
\
n border-radius: 10px;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar {
\
n width: 5px;
\
n height: 5px;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar-thumb {
\
n background-color: #999;
\
n border-radius: 10px;
\
n height: 10px;
\
n min-height: 10px;
\
n}
\
n.user[data-v-7fddce5c] {
\
n height: 100%;
\
n overflow: auto;
\
n padding: 20px 0;
\
n}
\
n.user .btn-content[data-v-7fddce5c] {
\
n text-align: center;
\
n}
\
n'
,
""
,{
version
:
3
,
sources
:[
"D:/myproject/changchang-admin-new/src/components/shop/index.vue"
],
names
:[],
mappings
:
";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,aAAa;EACb,eAAe;EACf,gBAAgB;CACjB;AACD;EACE,mBAAmB;CACpB"
,
file
:
"index.vue"
,
sourcesContent
:[
'
\
n.search-btn-block[data-v-7fddce5c] {
\
n margin-left: 20px;
\
n}
\
n.search-form[data-v-7fddce5c] {
\
n background: white;
\
n padding: 10px;
\
n margin: 10px 0;
\
n}
\
n.new-block[data-v-7fddce5c] {
\
n margin: 10px;
\
n text-align: right;
\
n}
\
n.fl-r[data-v-7fddce5c] {
\
n float: right;
\
n}
\
n.text-c[data-v-7fddce5c] {
\
n text-align: center;
\
n}
\
n.main-block[data-v-7fddce5c] {
\
n margin: 5px;
\
n background: white;
\
n padding: 5px;
\
n}
\
nhtml[data-v-7fddce5c] {
\
n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
\
n}
\
n.clear-both[data-v-7fddce5c]:after {
\
n content:
\'\'
;
\
n display: block;
\
n clear: both;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar-track-piece {
\
n border-radius: 10px;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar {
\
n width: 5px;
\
n height: 5px;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar-thumb {
\
n background-color: #999;
\
n border-radius: 10px;
\
n height: 10px;
\
n min-height: 10px;
\
n}
\
n.user[data-v-7fddce5c] {
\
n height: 100%;
\
n overflow: auto;
\
n padding: 20px 0;
\
n}
\
n.user .btn-content[data-v-7fddce5c] {
\
n text-align: center;
\
n}
\
n'
],
sourceRoot
:
""
}])}});
\ No newline at end of file
dev/static/js/25.c3a1153a32862731b7ad.js
0 → 100644
View file @
750da27a
webpackJsonp
([
25
],{
"1djJ"
:
function
(
e
,
t
,
o
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
o
(
"CCn6"
),
i
=
o
(
"+TkF"
),
a
=
o
(
"kmJW"
),
n
=
{
name
:
"dialogObj"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
loading
:
!
0
,
goodsYou
:[],
goodsList
:[],
form
:{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
imgLesson
:[],
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
img
:[],
refImg
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
after_goods_id
:
""
,
before_goods_id
:
""
}},
lessonList
:[],
goOn_goods_Id
:{
after_goods_id
:
""
,
before_goods_id
:
""
}}},
methods
:{
sub
:
function
(){
var
e
=
this
,
t
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
)
+
""
);
switch
(
t
.
desc
.
before_goods_id
=
this
.
goOn_goods_Id
.
before_goods_id
,
this
.
goodsYou
.
length
<
1
?
t
.
desc
.
use_goods_ids
=
""
:
t
.
desc
.
use_goods_ids
=
this
.
goodsYou
.
toString
(),
t
.
desc
.
after_goods_id
=
this
.
goOn_goods_Id
.
after_goods_id
,
t
.
original_price
=
(
100
*
t
.
original_price
).
toFixed
(
0
),
t
.
current_price
=
(
100
*
t
.
current_price
).
toFixed
(
0
),
t
.
invite_earnings
=
(
100
*
t
.
invite_earnings
).
toFixed
(
0
),
t
.
goods_desc
=
JSON
.
stringify
(
t
.
goods_desc
),
t
.
desc
=
JSON
.
stringify
(
t
.
desc
),
t
.
share_desc
=
JSON
.
stringify
(
t
.
share_desc
),
this
.
dialogObj
.
type
){
case
1
:
Object
(
s
.
R
)(
this
.
dialogObj
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
});
break
;
case
0
:
Object
(
s
.
i
)(
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
})}},
removeFileMain
:
function
(
e
){
var
t
=
this
.
form
.
goods_desc
.
img
.
findIndex
(
function
(
t
){
return
t
.
name
===
e
.
name
});
this
.
form
.
goods_desc
.
img
.
splice
(
t
,
1
)},
uploadFileLesson
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
goods_desc
.
imgLesson
=
[{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}],
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
})})},
removeFileLesson
:
function
(){
this
.
form
.
goods_desc
.
imgLesson
=
[]},
uploadFileMain
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
goods_desc
.
img
.
push
({
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}),
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
})})},
removeFileShareRef
:
function
(){
this
.
form
.
share_desc
.
refImg
=
[]},
uploadFileMainShareRef
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
refImg
?
t
.
form
.
share_desc
.
refImg
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
refImg
=
[],
t
.
form
.
share_desc
.
refImg
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileMainShare
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
img
?
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
img
=
[],
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileMainService
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
desc
.
customer_service
?
t
.
form
.
desc
.
customer_service
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
desc
.
customer_service
=
[],
t
.
form
.
desc
.
customer_service
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileShare
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
img
?
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
img
=
[],
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
initDialog
:
function
(){
var
e
=
this
;
switch
(
Object
(
s
.
_19
)({
limit
:
9999
}).
then
(
function
(
t
){
e
.
goodsList
=
t
.
list
}),
this
.
dialogObj
.
type
){
case
0
:
this
.
loading
=!
1
,
this
.
goOn_goods_Id
.
after_goods_id
=
""
,
this
.
goodsYou
=
[],
this
.
goOn_goods_Id
.
before_goods_id
=
""
,
this
.
form
=
{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
refImg
:[],
img
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
before_goods_id
:
0
,
after_goods_id
:
0
}},
this
.
getLessonList
();
break
;
case
1
:
case
2
:
this
.
goOn_goods_Id
.
after_goods_id
=
""
,
this
.
goOn_goods_Id
.
before_goods_id
=
""
,
this
.
goodsYou
=
[],
this
.
form
=
{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
refImg
:[],
img
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
before_goods_id
:
0
,
after_goods_id
:
0
}},
Object
(
s
.
_18
)(
this
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
loading
=!
1
;
var
o
=
JSON
.
parse
(
t
.
share_desc
);
o
.
refImg
||
(
o
.
refImg
=
[]),
e
.
form
=
{
name
:
t
.
name
,
goods_type
:
t
.
goods_type
,
goods_desc
:
JSON
.
parse
(
t
.
goods_desc
),
course_id
:
t
.
course_id
,
course_type
:
t
.
course_type
,
watch_num
:
t
.
watch_num
,
duration_num
:
t
.
duration_num
,
original_price
:
t
.
original_price
/
100
,
current_price
:
t
.
current_price
/
100
,
is_real
:
t
.
is_real
,
is_auth_user
:
t
.
is_auth_user
,
share_desc
:
JSON
.
parse
(
t
.
share_desc
),
desc
:
JSON
.
parse
(
t
.
desc
),
invite_earnings
:
t
.
invite_earnings
/
100
,
is_auth_teacher
:
t
.
is_auth_teacher
},
e
.
form
.
desc
.
before_goods_id
&&
(
e
.
goOn_goods_Id
.
before_goods_id
=
e
.
form
.
desc
.
before_goods_id
),
e
.
form
.
desc
.
after_goods_id
&&
(
e
.
goOn_goods_Id
.
after_goods_id
=
e
.
form
.
desc
.
after_goods_id
),
e
.
form
.
desc
.
use_goods_ids
&&
(
e
.
goodsYou
=
e
.
form
.
desc
.
use_goods_ids
.
split
(
","
),
e
.
goodsYou
=
e
.
goodsYou
.
map
(
function
(
e
){
return
+
e
})),
e
.
getLessonList
()});
break
;
case
3
:
this
.
title
=
"编辑"
,
this
.
show
=
this
.
dialogObj
.
show
,
this
.
id
=
this
.
dialogObj
.
id
,
this
.
type
=
2
}},
changeLessonType
:
function
(){
this
.
getLessonList
()},
getLessonList
:
function
(){
var
e
=
this
;
Object
(
s
.
_20
)({
type
:
this
.
form
.
course_type
}).
then
(
function
(
t
){
e
.
lessonList
=
t
.
list
})}},
watch
:{
dialogObj
:{
handler
:
function
(){
this
.
loading
=!
0
,
this
.
initDialog
()},
deep
:
!
0
},
show
:
function
(
e
){
this
.
$emit
(
"changeShow"
,
e
)}}},
l
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogObj
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialogObj
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialogObj
,
"show"
,
t
)}}},[
o
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"100px"
,
disabled
:
2
===
e
.
dialogObj
.
type
}},[
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"name"
,
t
)},
expression
:
"form.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品描述"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
goods_desc
.
desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
goods_desc
,
"desc"
,
t
)},
expression
:
"form.goods_desc.desc"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品类型"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
form
.
goods_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"goods_type"
,
t
)},
expression
:
"form.goods_type"
}},[
o
(
"el-option"
,{
attrs
:{
label
:
"普通商品"
,
value
:
1
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"团购商品"
,
value
:
2
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"续课商品"
,
value
:
3
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"优惠券商品"
,
value
:
4
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
4
===
e
.
form
.
goods_type
?
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"可用商品"
}},[
o
(
"el-select"
,{
attrs
:{
multiple
:
""
,
placeholder
:
"全部"
},
model
:{
value
:
e
.
goodsYou
,
callback
:
function
(
t
){
e
.
goodsYou
=
t
},
expression
:
"goodsYou"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
3
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续课已购商品"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
goOn_goods_Id
.
before_goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goOn_goods_Id
,
"before_goods_id"
,
t
)},
expression
:
"goOn_goods_Id.before_goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续购商品"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
goOn_goods_Id
.
after_goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goOn_goods_Id
,
"after_goods_id"
,
t
)},
expression
:
"goOn_goods_Id.after_goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程类型"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
function
(
t
){
e
.
changeLessonType
()}},
model
:{
value
:
e
.
form
.
course_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"course_type"
,
t
)},
expression
:
"form.course_type"
}},[
o
(
"el-option"
,{
attrs
:{
label
:
"日课"
,
value
:
1
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"月课"
,
value
:
0
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
form
.
course_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"course_id"
,
t
)},
expression
:
"form.course_id"
}},
e
.
_l
(
e
.
lessonList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
title
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"观看时长(节)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"课时数"
},
model
:{
value
:
e
.
form
.
watch_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"watch_num"
,
t
)},
expression
:
"form.watch_num"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续看时长(天)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"看课天数"
},
model
:{
value
:
e
.
form
.
duration_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"duration_num"
,
t
)},
expression
:
"form.duration_num"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程封面(750*600)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileLesson
,
"on-remove"
:
e
.
removeFileLesson
,
limit
:
1
,
"file-list"
:
e
.
form
.
goods_desc
.
imgLesson
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"主图(750*600)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileMain
,
"on-remove"
:
e
.
removeFileMain
,
"file-list"
:
e
.
form
.
goods_desc
.
img
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"客服(200*200)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
class
:
e
.
form
.
desc
.
customer_service
&&
e
.
form
.
desc
.
customer_service
.
length
>
0
?
"uploadService"
:
""
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"http-request"
:
e
.
uploadFileMainService
,
"file-list"
:
e
.
form
.
desc
.
customer_service
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"推荐奖金(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"推荐奖金"
},
model
:{
value
:
e
.
form
.
invite_earnings
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"invite_earnings"
,
t
)},
expression
:
"form.invite_earnings"
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否配置实物"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_real
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_real"
,
t
)},
expression
:
"form.is_real"
}}),
e
.
_v
(
" "
),
o
(
"span"
,{
staticStyle
:{
"font-size"
:
"12px"
}},[
e
.
_v
(
"打开后提示用户填写具体住址"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否允许用户推广"
,
"label-width"
:
"200"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_auth_user
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_auth_user"
,
t
)},
expression
:
"form.is_auth_user"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否允许老师推广"
,
"label-width"
:
"200"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_auth_teacher
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_auth_teacher"
,
t
)},
expression
:
"form.is_auth_teacher"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
1
===
e
.
form
.
goods_type
||
3
===
e
.
form
.
goods_type
?
"原价(元)"
:
4
===
e
.
form
.
goods_type
?
"抵扣价格(元)"
:
"单买价格(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"原价"
},
model
:{
value
:
e
.
form
.
original_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"original_price"
,
t
)},
expression
:
"form.original_price"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
1
===
e
.
form
.
goods_type
||
3
===
e
.
form
.
goods_type
?
"现价(元)"
:
4
===
e
.
form
.
goods_type
?
"购买价格(元)"
:
"拼团价格(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"现价"
},
model
:{
value
:
e
.
form
.
current_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"current_price"
,
t
)},
expression
:
"form.current_price"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"成团人数(人)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"成团人数"
},
model
:{
value
:
e
.
form
.
desc
.
group_number
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"group_number"
,
t
)},
expression
:
"form.desc.group_number"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"团购失效时间(小时)"
,
"label-width"
:
"136"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"团购失效时间"
},
model
:{
value
:
e
.
form
.
desc
.
group_continue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"group_continue"
,
t
)},
expression
:
"form.desc.group_continue"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享标题"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
share_desc
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
share_desc
,
"title"
,
t
)},
expression
:
"form.share_desc.title"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享内容"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
share_desc
.
content
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
share_desc
,
"content"
,
t
)},
expression
:
"form.share_desc.content"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享主图(300*300)"
}},[
o
(
"el-upload"
,{
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"file-list"
:
e
.
form
.
share_desc
.
img
,
"http-request"
:
e
.
uploadFileMainShare
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享海报"
}},[
o
(
"el-upload"
,{
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"file-list"
:
e
.
form
.
share_desc
.
refImg
,
"http-request"
:
e
.
uploadFileMainShareRef
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
24
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品详情"
}},[
o
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
25
},
model
:{
value
:
e
.
form
.
desc
.
detail
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"detail"
,
t
)},
expression
:
"form.desc.detail"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
24
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"购买须知"
}},[
o
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
25
},
model
:{
value
:
e
.
form
.
desc
.
qa
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"qa"
,
t
)},
expression
:
"form.desc.qa"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
!==
e
.
dialogObj
.
type
?
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
):
e
.
_e
()],
1
)])};
l
.
_withStripped
=!
0
;
var
r
=
{
render
:
l
,
staticRenderFns
:[]},
c
=
r
;
var
d
=!
1
;
var
u
=
o
(
"VU/8"
)(
n
,
c
,
!
1
,
function
(
e
){
d
||
o
(
"7XPy"
)},
"data-v-0134c3a4"
,
null
);
u
.
options
.
__file
=
"src
\\
components
\\
shop
\\
dialog.vue"
;
var
m
=
u
.
exports
,
f
=
{
name
:
"index"
,
data
:
function
(){
return
{
searchFrom
:{
name
:
""
},
userList
:[],
total
:
0
,
nowPage
:
1
,
limit
:
10
,
chooseDialog
:{
show
:
!
1
,
title
:
""
,
id
:
""
,
form
:{
value
:
""
,
list
:[]},
type
:
0
},
dialogObj
:{
type
:
0
,
show
:
!
1
,
title
:
""
,
id
:
""
},
classList
:[]}},
components
:{
page
:
a
.
a
,
dialogCom
:
m
},
filters
:{
isOrNot
:
function
(
e
){
return
i
.
h
[
e
]},
goodsType
:
function
(
e
){
return
i
.
e
[
e
]},
lessonType
:
function
(
e
){
return
i
.
i
[
e
]},
goodsStatus
:
function
(
e
){
return
i
.
d
[
e
]}},
mounted
:
function
(){
this
.
getUser
(),
this
.
getClassList
()},
methods
:{
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getUser
()},
onSizeChange
:
function
(
e
){
this
.
limit
=
e
,
this
.
nowPage
=
1
,
this
.
getUser
()},
copyShop
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将复制该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
t
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"复制成功!"
})}),
t
.
getUser
()})},
copyUrl
:
function
(
e
){
var
t
=
"https://wechat-test.changchangenglish.com/#/buyDetail?shopId="
+
e
,
o
=
document
.
createElement
(
"input"
);
o
.
value
=
t
,
document
.
body
.
appendChild
(
o
),
o
.
select
(),
document
.
execCommand
(
"Copy"
),
this
.
$message
({
message
:
"已成功复制到剪切板"
,
type
:
"success"
}),
o
.
remove
()},
dialogSub
:
function
(){
var
e
=
this
;
switch
(
this
.
chooseDialog
.
type
){
case
0
:
Object
(
s
.
p
)(
this
.
chooseDialog
.
id
,
this
.
chooseDialog
.
form
.
value
).
then
(
function
(
t
){
e
.
$message
({
message
:
"绑定成功"
,
type
:
"success"
}),
e
.
chooseDialog
.
show
=!
1
}),
this
.
getUser
();
break
;
case
1
:
var
t
=
{
conflict_goods_ids
:
this
.
chooseDialog
.
form
.
list
.
toString
()};
Object
(
s
.
s
)(
this
.
chooseDialog
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
message
:
"设置成功"
,
type
:
"success"
}),
e
.
chooseDialog
.
show
=!
1
,
e
.
getUser
()})}},
getUser
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
name
&&
(
t
.
name
=
this
.
searchFrom
.
name
),
this
.
searchFrom
.
course_id
&&
(
t
.
course_id
=
this
.
searchFrom
.
course_id
),
this
.
searchFrom
.
status
&&
(
t
.
status
=
this
.
searchFrom
.
status
),
this
.
searchFrom
.
current_price
&&
(
t
.
current_price
=
100
*
this
.
searchFrom
.
current_price
),
Object
(
s
.
_19
)(
t
).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
""
===
e
.
conflict_goods_ids
?
e
.
conflict_goods_ids
=
[]:
e
.
conflict_goods_ids
=
e
.
conflict_goods_ids
.
split
(
","
)}),
e
.
userList
=
t
.
list
,
e
.
total
=
t
.
total
})},
edit
:
function
(
e
){
this
.
dialogObj
=
{
type
:
1
,
title
:
"编辑商品"
,
show
:
!
0
,
id
:
e
.
id
}},
add
:
function
(){
this
.
dialogObj
=
{
type
:
0
,
title
:
"添加商品"
,
show
:
!
0
}},
detail
:
function
(
e
){
this
.
dialogObj
.
id
=
e
.
id
,
this
.
dialogObj
.
type
=
2
,
this
.
dialogObj
.
title
=
"查看商品"
,
this
.
dialogObj
.
show
=!
0
},
onDel
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
I
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})}),
t
.
getUser
()})},
onUp
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将上架该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
_55
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
}),
t
.
getUser
()})})},
onDown
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将下架该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
K
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
}),
t
.
getUser
()})})},
changeShow
:
function
(
e
){
this
.
dialogObj
.
show
=
e
},
bindOther
:
function
(
e
){
this
.
chooseDialog
=
{
show
:
!
0
,
title
:
"绑定商品"
,
id
:
e
.
id
,
form
:{
value
:
""
,
list
:[]},
type
:
0
}},
conflict
:
function
(
e
){
this
.
chooseDialog
=
{
show
:
!
0
,
title
:
"冲突商品"
,
id
:
e
.
id
,
form
:{
value
:
""
,
list
:
e
.
conflict_goods_ids
},
type
:
1
}},
getClassList
:
function
(){
var
e
=
this
;
Object
(
s
.
_20
)({
limit
:
2
e3
,
page
:
1
}).
then
(
function
(
t
){
e
.
classList
=
t
.
list
})}}},
p
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"user"
},[
o
(
"el-form"
,{
ref
:
"searchFrom"
,
staticClass
:
"search-form"
,
attrs
:{
model
:
e
.
searchFrom
,
"label-width"
:
"100px"
,
inline
:
""
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
searchFrom
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"name"
,
t
)},
expression
:
"searchFrom.name"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
getUser
},
model
:{
value
:
e
.
searchFrom
.
course_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"course_id"
,
t
)},
expression
:
"searchFrom.course_id"
}},[
o
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
e
.
_l
(
e
.
classList
,
function
(
e
,
t
){
return
o
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
title
,
value
:
e
.
id
}})})],
2
)],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品状态"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
getUser
},
model
:{
value
:
e
.
searchFrom
.
status
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"status"
,
t
)},
expression
:
"searchFrom.status"
}},[
o
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"0"
,
label
:
"编辑中"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"1"
,
label
:
"上架"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"2"
,
label
:
"下架"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品现价/团购价"
,
"label-width"
:
"120px"
}},[
o
(
"el-input-number"
,{
model
:{
value
:
e
.
searchFrom
.
current_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"current_price"
,
t
)},
expression
:
"searchFrom.current_price"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,[
o
(
"div"
,{
staticClass
:
"search-btn-block"
},[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
getUser
}},[
e
.
_v
(
"搜索"
)])],
1
)])],
1
),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"new-block"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
o
(
"el-button"
,{
attrs
:{
type
:
"success"
,
plain
:
""
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"添加商品"
)])],
1
),
e
.
_v
(
" "
),
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
userList
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
o
(
"router-link"
,{
attrs
:{
to
:{
name
:
"periods"
,
query
:{
goods_id
:
t
.
row
.
id
}}}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
name
)
+
"
\n
"
)])]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"goodsType"
)(
t
.
row
.
goods_type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品原价/直购价"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
original_price
/
100
)
+
"元
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品现价/团购价"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
current_price
/
100
)
+
"元
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"course_title"
,
label
:
"课程名称"
}}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"课程类别"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"lessonType"
)(
t
.
row
.
course_type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"是否有实物"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"isOrNot"
)(
t
.
row
.
is_real
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"goodsStatus"
)(
t
.
row
.
status
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
width
:
"60"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
o
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"600"
}},[
o
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
}},[
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
detail
(
t
.
row
)}}},[
e
.
_v
(
"
\n
查看详情
\n
"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
copyUrl
(
t
.
row
.
id
)}}},[
e
.
_v
(
"
\n
复制链接
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():[
2
===
t
.
row
.
status
||
0
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
onUp
(
t
.
row
)}}},[
e
.
_v
(
"
\n
上架
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
onDown
(
t
.
row
)}}},[
e
.
_v
(
"
\n
下架
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"warning"
},
on
:{
click
:
function
(
o
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"success"
},
on
:{
click
:
function
(
o
){
e
.
copyShop
(
t
.
row
)}}},[
e
.
_v
(
"
\n
复制商品
\n
"
)]),
e
.
_v
(
" "
),
2
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
bindOther
(
t
.
row
)}}},[
e
.
_v
(
"
\n
绑定商品
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
conflict
(
t
.
row
)}}},[
e
.
_v
(
"
\n
冲突商品
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"danger"
},
on
:{
click
:
function
(
o
){
e
.
onDel
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]],
2
),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
slot
:
"reference"
,
size
:
"mini"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"操作"
)])],
1
)]}}])})],
1
),
e
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}}),
e
.
_v
(
" "
),
o
(
"dialog-com"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
changeShow
:
e
.
changeShow
,
reflash
:
e
.
getUser
}}),
e
.
_v
(
" "
),
o
(
"el-dialog"
,{
attrs
:{
title
:
e
.
chooseDialog
.
title
,
visible
:
e
.
chooseDialog
.
show
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
,
"show"
,
t
)}}},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
"label-width"
:
"80px"
}},[
0
===
e
.
chooseDialog
.
type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"绑定商品"
}},[
o
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
chooseDialog
.
form
.
value
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
.
form
,
"value"
,
t
)},
expression
:
"chooseDialog.form.value"
}},
e
.
_l
(
e
.
userList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
chooseDialog
.
type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"冲突商品"
}},[
o
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
,
multiple
:
""
},
model
:{
value
:
e
.
chooseDialog
.
form
.
list
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
.
form
,
"list"
,
t
)},
expression
:
"chooseDialog.form.list"
}},
e
.
_l
(
e
.
userList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
.
toString
()}})}))],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
chooseDialog
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
dialogSub
()}}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)};
p
.
_withStripped
=!
0
;
var
_
=
{
render
:
p
,
staticRenderFns
:[]},
g
=
_
;
var
h
=!
1
;
var
b
=
o
(
"VU/8"
)(
f
,
g
,
!
1
,
function
(
e
){
h
||
o
(
"Y727"
)},
"data-v-7fddce5c"
,
null
);
b
.
options
.
__file
=
"src
\\
components
\\
shop
\\
index.vue"
;
t
.
default
=
b
.
exports
},
"7XPy"
:
function
(
e
,
t
,
o
){
var
s
=
o
(
"bG7/"
);
"string"
==
typeof
s
&&
(
s
=
[[
e
.
i
,
s
,
""
]]),
s
.
locals
&&
(
e
.
exports
=
s
.
locals
);
o
(
"rjj0"
)(
"4763fb45"
,
s
,
!
1
,{})},
Y727
:
function
(
e
,
t
,
o
){
var
s
=
o
(
"totp"
);
"string"
==
typeof
s
&&
(
s
=
[[
e
.
i
,
s
,
""
]]),
s
.
locals
&&
(
e
.
exports
=
s
.
locals
);
o
(
"rjj0"
)(
"5f457a2b"
,
s
,
!
1
,{})},
"bG7/"
:
function
(
e
,
t
,
o
){(
e
.
exports
=
o
(
"FZ+f"
)(
!
0
)).
push
([
e
.
i
,
"
\n
.el-col[data-v-0134c3a4] {
\n
min-height: 50px;
\n
text-align: center;
\n
margin-bottom: 10px;
\n
line-height: 40px;
\n
}
\n
.el-col .el-select[data-v-0134c3a4],
\n
.el-col .el-select[data-v-0134c3a4] {
\n
width: 100%;
\n
}
\n
.el-col img[data-v-0134c3a4] {
\n
width: 50px;
\n
border-radius: 100px;
\n
}
\n
.el-col label[data-v-0134c3a4] {
\n
color: #5982e6;
\n
}
\n
.dialog-footer[data-v-0134c3a4] {
\n
display: block;
\n
text-align: center;
\n
}
\n
.size[data-v-0134c3a4] {
\n
color: #666;
\n
font-size: 14px;
\n
}
\n
"
,
""
,{
version
:
3
,
sources
:[
"D:/myproject/changchang-admin-new/src/components/shop/dialog.vue"
],
names
:[],
mappings
:
";AACA;EACE,iBAAiB;EACjB,mBAAmB;EACnB,oBAAoB;EACpB,kBAAkB;CACnB;AACD;;EAEE,YAAY;CACb;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;EACf,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,gBAAgB;CACjB"
,
file
:
"dialog.vue"
,
sourcesContent
:[
"
\n
.el-col[data-v-0134c3a4] {
\n
min-height: 50px;
\n
text-align: center;
\n
margin-bottom: 10px;
\n
line-height: 40px;
\n
}
\n
.el-col .el-select[data-v-0134c3a4],
\n
.el-col .el-select[data-v-0134c3a4] {
\n
width: 100%;
\n
}
\n
.el-col img[data-v-0134c3a4] {
\n
width: 50px;
\n
border-radius: 100px;
\n
}
\n
.el-col label[data-v-0134c3a4] {
\n
color: #5982e6;
\n
}
\n
.dialog-footer[data-v-0134c3a4] {
\n
display: block;
\n
text-align: center;
\n
}
\n
.size[data-v-0134c3a4] {
\n
color: #666;
\n
font-size: 14px;
\n
}
\n
"
],
sourceRoot
:
""
}])},
totp
:
function
(
e
,
t
,
o
){(
e
.
exports
=
o
(
"FZ+f"
)(
!
0
)).
push
([
e
.
i
,
'
\
n.search-btn-block[data-v-7fddce5c] {
\
n margin-left: 20px;
\
n}
\
n.search-form[data-v-7fddce5c] {
\
n background: white;
\
n padding: 10px;
\
n margin: 10px 0;
\
n}
\
n.new-block[data-v-7fddce5c] {
\
n margin: 10px;
\
n text-align: right;
\
n}
\
n.fl-r[data-v-7fddce5c] {
\
n float: right;
\
n}
\
n.text-c[data-v-7fddce5c] {
\
n text-align: center;
\
n}
\
n.main-block[data-v-7fddce5c] {
\
n margin: 5px;
\
n background: white;
\
n padding: 5px;
\
n}
\
nhtml[data-v-7fddce5c] {
\
n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "
\\
5FAE
\\
8F6F
\\
96C5
\\
9ED1", Arial, sans-serif;
\
n}
\
n.clear-both[data-v-7fddce5c]:after {
\
n content:
\'\'
;
\
n display: block;
\
n clear: both;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar-track-piece {
\
n border-radius: 10px;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar {
\
n width: 5px;
\
n height: 5px;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar-thumb {
\
n background-color: #999;
\
n border-radius: 10px;
\
n height: 10px;
\
n min-height: 10px;
\
n}
\
n.user[data-v-7fddce5c] {
\
n height: 100%;
\
n overflow: auto;
\
n padding: 20px 0;
\
n}
\
n.user .btn-content[data-v-7fddce5c] {
\
n text-align: center;
\
n}
\
n'
,
""
,{
version
:
3
,
sources
:[
"D:/myproject/changchang-admin-new/src/components/shop/index.vue"
],
names
:[],
mappings
:
";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,aAAa;EACb,eAAe;EACf,gBAAgB;CACjB;AACD;EACE,mBAAmB;CACpB"
,
file
:
"index.vue"
,
sourcesContent
:[
'
\
n.search-btn-block[data-v-7fddce5c] {
\
n margin-left: 20px;
\
n}
\
n.search-form[data-v-7fddce5c] {
\
n background: white;
\
n padding: 10px;
\
n margin: 10px 0;
\
n}
\
n.new-block[data-v-7fddce5c] {
\
n margin: 10px;
\
n text-align: right;
\
n}
\
n.fl-r[data-v-7fddce5c] {
\
n float: right;
\
n}
\
n.text-c[data-v-7fddce5c] {
\
n text-align: center;
\
n}
\
n.main-block[data-v-7fddce5c] {
\
n margin: 5px;
\
n background: white;
\
n padding: 5px;
\
n}
\
nhtml[data-v-7fddce5c] {
\
n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
\
n}
\
n.clear-both[data-v-7fddce5c]:after {
\
n content:
\'\'
;
\
n display: block;
\
n clear: both;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar-track-piece {
\
n border-radius: 10px;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar {
\
n width: 5px;
\
n height: 5px;
\
n}
\
n[data-v-7fddce5c]::-webkit-scrollbar-thumb {
\
n background-color: #999;
\
n border-radius: 10px;
\
n height: 10px;
\
n min-height: 10px;
\
n}
\
n.user[data-v-7fddce5c] {
\
n height: 100%;
\
n overflow: auto;
\
n padding: 20px 0;
\
n}
\
n.user .btn-content[data-v-7fddce5c] {
\
n text-align: center;
\
n}
\
n'
],
sourceRoot
:
""
}])}});
\ No newline at end of file
dev/static/js/manifest.
6e44eb960497b221be62
.js
→
dev/static/js/manifest.
56964d8cdaee25c7ec8d
.js
View file @
750da27a
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
r
,
t
){
for
(
var
d
,
o
,
b
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
o
=
a
[
i
],
f
[
o
]
&&
u
.
push
(
f
[
o
][
0
]),
f
[
o
]
=
0
;
for
(
d
in
r
)
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
d
)
&&
(
e
[
d
]
=
r
[
d
]);
for
(
c
&&
c
(
a
,
r
,
t
);
u
.
length
;)
u
.
shift
()();
if
(
t
)
for
(
i
=
0
;
i
<
t
.
length
;
i
++
)
b
=
n
(
n
.
s
=
t
[
i
]);
return
b
};
var
a
=
{},
f
=
{
40
:
0
};
function
n
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
n
),
f
.
l
=!
0
,
f
.
exports
}
n
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
n
){
c
=
f
[
e
]
=
[
a
,
n
]});
c
[
2
]
=
a
;
var
r
=
document
.
getElementsByTagName
(
"head"
)[
0
],
t
=
document
.
createElement
(
"script"
);
t
.
type
=
"text/javascript"
,
t
.
charset
=
"utf-8"
,
t
.
async
=!
0
,
t
.
timeout
=
12
e4
,
n
.
nc
&&
t
.
setAttribute
(
"nonce"
,
n
.
nc
),
t
.
src
=
n
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"896f018eeb6f2bc9cd04"
,
1
:
"979f3833b7a412b57090"
,
2
:
"2438645b9ab656184a01"
,
3
:
"4fe7897f079a76213ef4"
,
4
:
"36a6708cee7705a68a54"
,
5
:
"37fad1ead3d87d10357d"
,
6
:
"1741e48fb08b0a2de138"
,
7
:
"dc0aa36cb34fafead268"
,
8
:
"c1008941b028777c89fb"
,
9
:
"d525de4720d8ad026d0c"
,
10
:
"5506bbcb9cdc785a2971"
,
11
:
"5d13fca0ebc77542e33e"
,
12
:
"2c5fa647a4d3073143f1"
,
13
:
"a10703bb6caca0a6afe1"
,
14
:
"02c9be397f8d46658ee1"
,
15
:
"dce17b250c7ca8afc09e"
,
16
:
"cc01484fb5a496b07ec1"
,
17
:
"666c6af85a399754ce3e"
,
18
:
"5f4e74027788f763421d"
,
19
:
"cc7c590e51e7a43e97d1"
,
20
:
"8e7adad9dcbbccdd7dc9"
,
21
:
"f990b10a2511140a47f3"
,
22
:
"1cc1181301f1a733ccca"
,
23
:
"ad855f1f66c4c6783ccf"
,
24
:
"fb02b925466fbfa8f555"
,
25
:
"25f350d1db80f4144dcc"
,
26
:
"98df45b838b1bf7e1f56"
,
27
:
"fb0a8a5f98462e10136b"
,
28
:
"4c0a520b3dba918b6958"
,
29
:
"24648dd97c40fd6380f2"
,
30
:
"8647d0ed9a5eba628c2d"
,
31
:
"4378a5c1cf66d0457483"
,
32
:
"8ddd2e9bb6abef31a361"
,
33
:
"3dc8c2fce74697c3dd67"
,
34
:
"9c4ff6f4855135140a88"
,
35
:
"77e3a0260566be7ec247"
,
36
:
"19cb58637b595150ae86"
,
37
:
"b4bd6b264ed5c334b9f1"
}[
e
]
+
".js"
;
var
d
=
setTimeout
(
o
,
12
e4
);
function
o
(){
t
.
onerror
=
t
.
onload
=
null
,
clearTimeout
(
d
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
t
.
onerror
=
t
.
onload
=
o
,
r
.
appendChild
(
t
),
a
},
n
.
m
=
e
,
n
.
c
=
a
,
n
.
d
=
function
(
e
,
c
,
a
){
n
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
n
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
n
.
d
(
c
,
"a"
,
c
),
c
},
n
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
n
.
p
=
"/"
,
n
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
r
,
t
){
for
(
var
d
,
o
,
b
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
o
=
a
[
i
],
f
[
o
]
&&
u
.
push
(
f
[
o
][
0
]),
f
[
o
]
=
0
;
for
(
d
in
r
)
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
d
)
&&
(
e
[
d
]
=
r
[
d
]);
for
(
c
&&
c
(
a
,
r
,
t
);
u
.
length
;)
u
.
shift
()();
if
(
t
)
for
(
i
=
0
;
i
<
t
.
length
;
i
++
)
b
=
n
(
n
.
s
=
t
[
i
]);
return
b
};
var
a
=
{},
f
=
{
40
:
0
};
function
n
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
n
),
f
.
l
=!
0
,
f
.
exports
}
n
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
n
){
c
=
f
[
e
]
=
[
a
,
n
]});
c
[
2
]
=
a
;
var
r
=
document
.
getElementsByTagName
(
"head"
)[
0
],
t
=
document
.
createElement
(
"script"
);
t
.
type
=
"text/javascript"
,
t
.
charset
=
"utf-8"
,
t
.
async
=!
0
,
t
.
timeout
=
12
e4
,
n
.
nc
&&
t
.
setAttribute
(
"nonce"
,
n
.
nc
),
t
.
src
=
n
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"896f018eeb6f2bc9cd04"
,
1
:
"979f3833b7a412b57090"
,
2
:
"2438645b9ab656184a01"
,
3
:
"4fe7897f079a76213ef4"
,
4
:
"36a6708cee7705a68a54"
,
5
:
"37fad1ead3d87d10357d"
,
6
:
"1741e48fb08b0a2de138"
,
7
:
"dc0aa36cb34fafead268"
,
8
:
"c1008941b028777c89fb"
,
9
:
"d525de4720d8ad026d0c"
,
10
:
"5506bbcb9cdc785a2971"
,
11
:
"5d13fca0ebc77542e33e"
,
12
:
"2c5fa647a4d3073143f1"
,
13
:
"a10703bb6caca0a6afe1"
,
14
:
"02c9be397f8d46658ee1"
,
15
:
"dce17b250c7ca8afc09e"
,
16
:
"cc01484fb5a496b07ec1"
,
17
:
"666c6af85a399754ce3e"
,
18
:
"5f4e74027788f763421d"
,
19
:
"cc7c590e51e7a43e97d1"
,
20
:
"8e7adad9dcbbccdd7dc9"
,
21
:
"f990b10a2511140a47f3"
,
22
:
"1cc1181301f1a733ccca"
,
23
:
"ad855f1f66c4c6783ccf"
,
24
:
"fb02b925466fbfa8f555"
,
25
:
"c3a1153a32862731b7ad"
,
26
:
"98df45b838b1bf7e1f56"
,
27
:
"fb0a8a5f98462e10136b"
,
28
:
"4c0a520b3dba918b6958"
,
29
:
"24648dd97c40fd6380f2"
,
30
:
"8647d0ed9a5eba628c2d"
,
31
:
"4378a5c1cf66d0457483"
,
32
:
"8ddd2e9bb6abef31a361"
,
33
:
"3dc8c2fce74697c3dd67"
,
34
:
"9c4ff6f4855135140a88"
,
35
:
"77e3a0260566be7ec247"
,
36
:
"19cb58637b595150ae86"
,
37
:
"b4bd6b264ed5c334b9f1"
}[
e
]
+
".js"
;
var
d
=
setTimeout
(
o
,
12
e4
);
function
o
(){
t
.
onerror
=
t
.
onload
=
null
,
clearTimeout
(
d
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
t
.
onerror
=
t
.
onload
=
o
,
r
.
appendChild
(
t
),
a
},
n
.
m
=
e
,
n
.
c
=
a
,
n
.
d
=
function
(
e
,
c
,
a
){
n
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
n
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
n
.
d
(
c
,
"a"
,
c
),
c
},
n
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
n
.
p
=
"/"
,
n
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
dist/index.html
View file @
750da27a
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.
7b9bf9a27a50916058f1b1fa715b1803.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.b0203a4ff83a92827c4f
.js
></script><script
type=
text/javascript
src=
/static/js/vendor.b29422b95643910e8a47.js
></script><script
type=
text/javascript
src=
/static/js/app.02069bc9d4271a8a1e05.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.
839e4e1bb820b6ba4eaaf46288f2aa0b.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.5aa09880e7056414c838
.js
></script><script
type=
text/javascript
src=
/static/js/vendor.b29422b95643910e8a47.js
></script><script
type=
text/javascript
src=
/static/js/app.02069bc9d4271a8a1e05.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
el
.
onerror
=
function
(
a
,
b
,
c
){
console
.
log
(
'error:'
,
a
,
b
,
c
);
};
...
...
dist/static/css/app.
7b9bf9a27a50916058f1b1fa715b1803
.css
→
dist/static/css/app.
839e4e1bb820b6ba4eaaf46288f2aa0b
.css
View file @
750da27a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/22.530b6d052b58ceeec3d7.js
deleted
100644 → 0
View file @
c6ee5490
webpackJsonp
([
22
],{
"1djJ"
:
function
(
e
,
t
,
s
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
s
(
"CCn6"
),
i
=
s
(
"+TkF"
),
l
=
s
(
"kmJW"
),
a
=
{
name
:
"dialogObj"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
loading
:
!
0
,
goodsList
:[],
form
:{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
imgLesson
:[],
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
img
:[],
refImg
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
after_goods_id
:
""
,
before_goods_id
:
""
}},
lessonList
:[],
goOn_goods_Id
:{
after_goods_id
:
""
,
before_goods_id
:
""
}}},
methods
:{
sub
:
function
(){
var
e
=
this
,
t
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
)
+
""
);
switch
(
t
.
desc
.
before_goods_id
=
this
.
goOn_goods_Id
.
before_goods_id
,
t
.
desc
.
after_goods_id
=
this
.
goOn_goods_Id
.
after_goods_id
,
t
.
original_price
=
(
100
*
t
.
original_price
).
toFixed
(
0
),
t
.
current_price
=
(
100
*
t
.
current_price
).
toFixed
(
0
),
t
.
invite_earnings
=
(
100
*
t
.
invite_earnings
).
toFixed
(
0
),
t
.
goods_desc
=
JSON
.
stringify
(
t
.
goods_desc
),
t
.
desc
=
JSON
.
stringify
(
t
.
desc
),
t
.
share_desc
=
JSON
.
stringify
(
t
.
share_desc
),
this
.
dialogObj
.
type
){
case
1
:
Object
(
o
.
R
)(
this
.
dialogObj
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
});
break
;
case
0
:
Object
(
o
.
i
)(
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
})}},
removeFileMain
:
function
(
e
){
var
t
=
this
.
form
.
goods_desc
.
img
.
findIndex
(
function
(
t
){
return
t
.
name
===
e
.
name
});
this
.
form
.
goods_desc
.
img
.
splice
(
t
,
1
)},
uploadFileLesson
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
o
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
goods_desc
.
imgLesson
=
[{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}],
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
})})},
removeFileLesson
:
function
(){
this
.
form
.
goods_desc
.
imgLesson
=
[]},
uploadFileMain
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
o
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
goods_desc
.
img
.
push
({
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}),
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
})})},
removeFileShareRef
:
function
(){
this
.
form
.
share_desc
.
refImg
=
[]},
uploadFileMainShareRef
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
o
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
refImg
?
t
.
form
.
share_desc
.
refImg
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
refImg
=
[],
t
.
form
.
share_desc
.
refImg
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileMainShare
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
o
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
img
?
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
img
=
[],
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileMainService
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
o
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
desc
.
customer_service
?
t
.
form
.
desc
.
customer_service
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
desc
.
customer_service
=
[],
t
.
form
.
desc
.
customer_service
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileShare
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
o
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
img
?
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
img
=
[],
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
initDialog
:
function
(){
var
e
=
this
;
switch
(
Object
(
o
.
_19
)({
limit
:
9999
}).
then
(
function
(
t
){
e
.
goodsList
=
t
.
list
}),
this
.
dialogObj
.
type
){
case
0
:
this
.
loading
=!
1
,
this
.
goOn_goods_Id
.
after_goods_id
=
""
,
this
.
goOn_goods_Id
.
before_goods_id
=
""
,
this
.
form
=
{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
refImg
:[],
img
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
before_goods_id
:
0
,
after_goods_id
:
0
}},
this
.
getLessonList
();
break
;
case
1
:
case
2
:
this
.
goOn_goods_Id
.
after_goods_id
=
""
,
this
.
goOn_goods_Id
.
before_goods_id
=
""
,
this
.
form
=
{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
refImg
:[],
img
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
before_goods_id
:
0
,
after_goods_id
:
0
}},
Object
(
o
.
_18
)(
this
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
loading
=!
1
;
var
s
=
JSON
.
parse
(
t
.
share_desc
);
s
.
refImg
||
(
s
.
refImg
=
[]),
e
.
form
=
{
name
:
t
.
name
,
goods_type
:
t
.
goods_type
,
goods_desc
:
JSON
.
parse
(
t
.
goods_desc
),
course_id
:
t
.
course_id
,
course_type
:
t
.
course_type
,
watch_num
:
t
.
watch_num
,
duration_num
:
t
.
duration_num
,
original_price
:
t
.
original_price
/
100
,
current_price
:
t
.
current_price
/
100
,
is_real
:
t
.
is_real
,
is_auth_user
:
t
.
is_auth_user
,
share_desc
:
JSON
.
parse
(
t
.
share_desc
),
desc
:
JSON
.
parse
(
t
.
desc
),
invite_earnings
:
t
.
invite_earnings
/
100
,
is_auth_teacher
:
t
.
is_auth_teacher
},
e
.
form
.
desc
.
before_goods_id
&&
(
e
.
goOn_goods_Id
.
before_goods_id
=
e
.
form
.
desc
.
before_goods_id
),
e
.
form
.
desc
.
after_goods_id
&&
(
e
.
goOn_goods_Id
.
after_goods_id
=
e
.
form
.
desc
.
after_goods_id
),
e
.
getLessonList
()});
break
;
case
3
:
this
.
title
=
"编辑"
,
this
.
show
=
this
.
dialogObj
.
show
,
this
.
id
=
this
.
dialogObj
.
id
,
this
.
type
=
2
}},
changeLessonType
:
function
(){
this
.
getLessonList
()},
getLessonList
:
function
(){
var
e
=
this
;
Object
(
o
.
_20
)({
type
:
this
.
form
.
course_type
}).
then
(
function
(
t
){
e
.
lessonList
=
t
.
list
})}},
watch
:{
dialogObj
:{
handler
:
function
(){
this
.
loading
=!
0
,
this
.
initDialog
()},
deep
:
!
0
},
show
:
function
(
e
){
this
.
$emit
(
"changeShow"
,
e
)}}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogObj
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialogObj
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialogObj
,
"show"
,
t
)}}},[
s
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
s
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"100px"
,
disabled
:
2
===
e
.
dialogObj
.
type
}},[
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"name"
,
t
)},
expression
:
"form.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"商品描述"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
form
.
goods_desc
.
desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
goods_desc
,
"desc"
,
t
)},
expression
:
"form.goods_desc.desc"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"商品类型"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
form
.
goods_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"goods_type"
,
t
)},
expression
:
"form.goods_type"
}},[
s
(
"el-option"
,{
attrs
:{
label
:
"普通商品"
,
value
:
1
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"团购商品"
,
value
:
2
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"续课商品"
,
value
:
3
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"优惠券商品"
,
value
:
4
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
3
===
e
.
form
.
goods_type
?
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"续课已购商品"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
goOn_goods_Id
.
before_goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goOn_goods_Id
,
"before_goods_id"
,
t
)},
expression
:
"goOn_goods_Id.before_goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
s
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"续购商品"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
goOn_goods_Id
.
after_goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goOn_goods_Id
,
"after_goods_id"
,
t
)},
expression
:
"goOn_goods_Id.after_goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
s
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程类型"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
function
(
t
){
e
.
changeLessonType
()}},
model
:{
value
:
e
.
form
.
course_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"course_type"
,
t
)},
expression
:
"form.course_type"
}},[
s
(
"el-option"
,{
attrs
:{
label
:
"日课"
,
value
:
1
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"月课"
,
value
:
0
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
form
.
course_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"course_id"
,
t
)},
expression
:
"form.course_id"
}},
e
.
_l
(
e
.
lessonList
,
function
(
e
){
return
s
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
title
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"观看时长(节)"
}},[
s
(
"el-input-number"
,{
attrs
:{
label
:
"课时数"
},
model
:{
value
:
e
.
form
.
watch_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"watch_num"
,
t
)},
expression
:
"form.watch_num"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"续看时长(天)"
}},[
s
(
"el-input-number"
,{
attrs
:{
label
:
"看课天数"
},
model
:{
value
:
e
.
form
.
duration_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"duration_num"
,
t
)},
expression
:
"form.duration_num"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程封面(750*600)"
}},[
s
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileLesson
,
"on-remove"
:
e
.
removeFileLesson
,
limit
:
1
,
"file-list"
:
e
.
form
.
goods_desc
.
imgLesson
}},[
s
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"主图(750*600)"
}},[
s
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileMain
,
"on-remove"
:
e
.
removeFileMain
,
"file-list"
:
e
.
form
.
goods_desc
.
img
}},[
s
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"客服(200*200)"
}},[
s
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
class
:
e
.
form
.
desc
.
customer_service
&&
e
.
form
.
desc
.
customer_service
.
length
>
0
?
"uploadService"
:
""
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"http-request"
:
e
.
uploadFileMainService
,
"file-list"
:
e
.
form
.
desc
.
customer_service
}},[
s
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
s
(
"el-form-item"
,{
attrs
:{
label
:
"推荐奖金(元)"
}},[
s
(
"el-input-number"
,{
attrs
:{
label
:
"推荐奖金"
},
model
:{
value
:
e
.
form
.
invite_earnings
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"invite_earnings"
,
t
)},
expression
:
"form.invite_earnings"
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
s
(
"el-form-item"
,{
attrs
:{
label
:
"是否配置实物"
}},[
s
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_real
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_real"
,
t
)},
expression
:
"form.is_real"
}}),
e
.
_v
(
" "
),
s
(
"span"
,{
staticStyle
:{
"font-size"
:
"12px"
}},[
e
.
_v
(
"打开后提示用户填写具体住址"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"是否允许用户推广"
,
"label-width"
:
"200"
}},[
s
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_auth_user
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_auth_user"
,
t
)},
expression
:
"form.is_auth_user"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"是否允许老师推广"
,
"label-width"
:
"200"
}},[
s
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_auth_teacher
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_auth_teacher"
,
t
)},
expression
:
"form.is_auth_teacher"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
1
===
e
.
form
.
goods_type
||
3
===
e
.
form
.
goods_type
?
"原价(元)"
:
4
===
e
.
form
.
goods_type
?
"抵扣价格(元)"
:
"单买价格(元)"
}},[
s
(
"el-input-number"
,{
attrs
:{
label
:
"原价"
},
model
:{
value
:
e
.
form
.
original_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"original_price"
,
t
)},
expression
:
"form.original_price"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
1
===
e
.
form
.
goods_type
||
3
===
e
.
form
.
goods_type
?
"现价(元)"
:
4
===
e
.
form
.
goods_type
?
"购买价格(元)"
:
"拼团价格(元)"
}},[
s
(
"el-input-number"
,{
attrs
:{
label
:
"现价"
},
model
:{
value
:
e
.
form
.
current_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"current_price"
,
t
)},
expression
:
"form.current_price"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
===
e
.
form
.
goods_type
?
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"成团人数(人)"
}},[
s
(
"el-input-number"
,{
attrs
:{
label
:
"成团人数"
},
model
:{
value
:
e
.
form
.
desc
.
group_number
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"group_number"
,
t
)},
expression
:
"form.desc.group_number"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"团购失效时间(小时)"
,
"label-width"
:
"136"
}},[
s
(
"el-input-number"
,{
attrs
:{
label
:
"团购失效时间"
},
model
:{
value
:
e
.
form
.
desc
.
group_continue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"group_continue"
,
t
)},
expression
:
"form.desc.group_continue"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"分享标题"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
form
.
share_desc
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
share_desc
,
"title"
,
t
)},
expression
:
"form.share_desc.title"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
12
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"分享内容"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
form
.
share_desc
.
content
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
share_desc
,
"content"
,
t
)},
expression
:
"form.share_desc.content"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
s
(
"el-form-item"
,{
attrs
:{
label
:
"分享主图(300*300)"
}},[
s
(
"el-upload"
,{
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"file-list"
:
e
.
form
.
share_desc
.
img
,
"http-request"
:
e
.
uploadFileMainShare
}},[
s
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
s
(
"el-form-item"
,{
attrs
:{
label
:
"分享海报"
}},[
s
(
"el-upload"
,{
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"file-list"
:
e
.
form
.
share_desc
.
refImg
,
"http-request"
:
e
.
uploadFileMainShareRef
}},[
s
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
24
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"商品详情"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
25
},
model
:{
value
:
e
.
form
.
desc
.
detail
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"detail"
,
t
)},
expression
:
"form.desc.detail"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
24
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"购买须知"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
25
},
model
:{
value
:
e
.
form
.
desc
.
qa
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"qa"
,
t
)},
expression
:
"form.desc.qa"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
!==
e
.
dialogObj
.
type
?
s
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
s
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
):
e
.
_e
()],
1
)])},
staticRenderFns
:[]};
var
n
=
s
(
"VU/8"
)(
a
,
r
,
!
1
,
function
(
e
){
s
(
"KnlH"
)},
"data-v-75a8200c"
,
null
).
exports
,
c
=
{
name
:
"index"
,
data
:
function
(){
return
{
searchFrom
:{
name
:
""
},
userList
:[],
total
:
0
,
nowPage
:
1
,
limit
:
10
,
chooseDialog
:{
show
:
!
1
,
title
:
""
,
id
:
""
,
form
:{
value
:
""
,
list
:[]},
type
:
0
},
dialogObj
:{
type
:
0
,
show
:
!
1
,
title
:
""
,
id
:
""
},
classList
:[]}},
components
:{
page
:
l
.
a
,
dialogCom
:
n
},
filters
:{
isOrNot
:
function
(
e
){
return
i
.
h
[
e
]},
goodsType
:
function
(
e
){
return
i
.
e
[
e
]},
lessonType
:
function
(
e
){
return
i
.
i
[
e
]},
goodsStatus
:
function
(
e
){
return
i
.
d
[
e
]}},
mounted
:
function
(){
this
.
getUser
(),
this
.
getClassList
()},
methods
:{
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getUser
()},
onSizeChange
:
function
(
e
){
this
.
limit
=
e
,
this
.
nowPage
=
1
,
this
.
getUser
()},
copyShop
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将复制该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
o
.
t
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"复制成功!"
})}),
t
.
getUser
()})},
copyUrl
:
function
(
e
){
var
t
=
"https://wechat.changchangenglish.com/#/buyDetail?shopId="
+
e
,
s
=
document
.
createElement
(
"input"
);
s
.
value
=
t
,
document
.
body
.
appendChild
(
s
),
s
.
select
(),
document
.
execCommand
(
"Copy"
),
this
.
$message
({
message
:
"已成功复制到剪切板"
,
type
:
"success"
}),
s
.
remove
()},
dialogSub
:
function
(){
var
e
=
this
;
switch
(
this
.
chooseDialog
.
type
){
case
0
:
Object
(
o
.
p
)(
this
.
chooseDialog
.
id
,
this
.
chooseDialog
.
form
.
value
).
then
(
function
(
t
){
e
.
$message
({
message
:
"绑定成功"
,
type
:
"success"
}),
e
.
chooseDialog
.
show
=!
1
}),
this
.
getUser
();
break
;
case
1
:
var
t
=
{
conflict_goods_ids
:
this
.
chooseDialog
.
form
.
list
.
toString
()};
Object
(
o
.
s
)(
this
.
chooseDialog
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
message
:
"设置成功"
,
type
:
"success"
}),
e
.
chooseDialog
.
show
=!
1
,
e
.
getUser
()})}},
getUser
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
name
&&
(
t
.
name
=
this
.
searchFrom
.
name
),
this
.
searchFrom
.
course_id
&&
(
t
.
course_id
=
this
.
searchFrom
.
course_id
),
this
.
searchFrom
.
status
&&
(
t
.
status
=
this
.
searchFrom
.
status
),
this
.
searchFrom
.
current_price
&&
(
t
.
current_price
=
100
*
this
.
searchFrom
.
current_price
),
Object
(
o
.
_19
)(
t
).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
""
===
e
.
conflict_goods_ids
?
e
.
conflict_goods_ids
=
[]:
e
.
conflict_goods_ids
=
e
.
conflict_goods_ids
.
split
(
","
)}),
e
.
userList
=
t
.
list
,
e
.
total
=
t
.
total
})},
edit
:
function
(
e
){
this
.
dialogObj
=
{
type
:
1
,
title
:
"编辑商品"
,
show
:
!
0
,
id
:
e
.
id
}},
add
:
function
(){
this
.
dialogObj
=
{
type
:
0
,
title
:
"添加商品"
,
show
:
!
0
}},
detail
:
function
(
e
){
this
.
dialogObj
.
id
=
e
.
id
,
this
.
dialogObj
.
type
=
2
,
this
.
dialogObj
.
title
=
"查看商品"
,
this
.
dialogObj
.
show
=!
0
},
onDel
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
o
.
I
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})}),
t
.
getUser
()})},
onUp
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将上架该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
o
.
_55
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
}),
t
.
getUser
()})})},
onDown
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将下架该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
o
.
K
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
}),
t
.
getUser
()})})},
changeShow
:
function
(
e
){
this
.
dialogObj
.
show
=
e
},
bindOther
:
function
(
e
){
this
.
chooseDialog
=
{
show
:
!
0
,
title
:
"绑定商品"
,
id
:
e
.
id
,
form
:{
value
:
""
,
list
:[]},
type
:
0
}},
conflict
:
function
(
e
){
this
.
chooseDialog
=
{
show
:
!
0
,
title
:
"冲突商品"
,
id
:
e
.
id
,
form
:{
value
:
""
,
list
:
e
.
conflict_goods_ids
},
type
:
1
}},
getClassList
:
function
(){
var
e
=
this
;
Object
(
o
.
_20
)({
limit
:
2
e3
,
page
:
1
}).
then
(
function
(
t
){
e
.
classList
=
t
.
list
})}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"user"
},[
s
(
"el-form"
,{
ref
:
"searchFrom"
,
staticClass
:
"search-form"
,
attrs
:{
model
:
e
.
searchFrom
,
"label-width"
:
"100px"
,
inline
:
""
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
searchFrom
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"name"
,
t
)},
expression
:
"searchFrom.name"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
getUser
},
model
:{
value
:
e
.
searchFrom
.
course_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"course_id"
,
t
)},
expression
:
"searchFrom.course_id"
}},[
s
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
e
.
_l
(
e
.
classList
,
function
(
e
,
t
){
return
s
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
title
,
value
:
e
.
id
}})})],
2
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"商品状态"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
getUser
},
model
:{
value
:
e
.
searchFrom
.
status
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"status"
,
t
)},
expression
:
"searchFrom.status"
}},[
s
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
value
:
"0"
,
label
:
"编辑中"
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
value
:
"1"
,
label
:
"上架"
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
value
:
"2"
,
label
:
"下架"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"商品现价/团购价"
,
"label-width"
:
"120px"
}},[
s
(
"el-input-number"
,{
model
:{
value
:
e
.
searchFrom
.
current_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"current_price"
,
t
)},
expression
:
"searchFrom.current_price"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,[
s
(
"div"
,{
staticClass
:
"search-btn-block"
},[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
getUser
}},[
e
.
_v
(
"搜索"
)])],
1
)])],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"new-block"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"success"
,
plain
:
""
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"添加商品"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
userList
}},[
s
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"router-link"
,{
attrs
:{
to
:{
name
:
"periods"
,
query
:{
goods_id
:
t
.
row
.
id
}}}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
name
)
+
"
\n
"
)])]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"商品类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"goodsType"
)(
t
.
row
.
goods_type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"商品原价/直购价"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
original_price
/
100
)
+
"元
\n
"
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"商品现价/团购价"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
current_price
/
100
)
+
"元
\n
"
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
"course_title"
,
label
:
"课程名称"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"课程类别"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"lessonType"
)(
t
.
row
.
course_type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"是否有实物"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"isOrNot"
)(
t
.
row
.
is_real
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"goodsStatus"
)(
t
.
row
.
status
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
width
:
"60"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"600"
}},[
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
}},[
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
s
){
e
.
detail
(
t
.
row
)}}},[
e
.
_v
(
"
\n
查看详情
\n
"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
s
){
e
.
copyUrl
(
t
.
row
.
id
)}}},[
e
.
_v
(
"
\n
复制链接
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():[
2
===
t
.
row
.
status
||
0
===
t
.
row
.
status
?
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
s
){
e
.
onUp
(
t
.
row
)}}},[
e
.
_v
(
"
\n
上架
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
t
.
row
.
status
?
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
s
){
e
.
onDown
(
t
.
row
)}}},[
e
.
_v
(
"
\n
下架
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"warning"
},
on
:{
click
:
function
(
s
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"success"
},
on
:{
click
:
function
(
s
){
e
.
copyShop
(
t
.
row
)}}},[
e
.
_v
(
"
\n
复制商品
\n
"
)]),
e
.
_v
(
" "
),
2
===
t
.
row
.
status
?
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
s
){
e
.
bindOther
(
t
.
row
)}}},[
e
.
_v
(
"
\n
绑定商品
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
s
){
e
.
conflict
(
t
.
row
)}}},[
e
.
_v
(
"
\n
冲突商品
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
?
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"danger"
},
on
:{
click
:
function
(
s
){
e
.
onDel
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]],
2
),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
slot
:
"reference"
,
size
:
"mini"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"操作"
)])],
1
)]}}])})],
1
),
e
.
_v
(
" "
),
s
(
"page"
,{
attrs
:{
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}}),
e
.
_v
(
" "
),
s
(
"dialog-com"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
changeShow
:
e
.
changeShow
,
reflash
:
e
.
getUser
}}),
e
.
_v
(
" "
),
s
(
"el-dialog"
,{
attrs
:{
title
:
e
.
chooseDialog
.
title
,
visible
:
e
.
chooseDialog
.
show
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
,
"show"
,
t
)}}},[
s
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
"label-width"
:
"80px"
}},[
0
===
e
.
chooseDialog
.
type
?
s
(
"el-form-item"
,{
attrs
:{
label
:
"绑定商品"
}},[
s
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
chooseDialog
.
form
.
value
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
.
form
,
"value"
,
t
)},
expression
:
"chooseDialog.form.value"
}},
e
.
_l
(
e
.
userList
,
function
(
e
){
return
s
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
chooseDialog
.
type
?
s
(
"el-form-item"
,{
attrs
:{
label
:
"冲突商品"
}},[
s
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
,
multiple
:
""
},
model
:{
value
:
e
.
chooseDialog
.
form
.
list
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
.
form
,
"list"
,
t
)},
expression
:
"chooseDialog.form.list"
}},
e
.
_l
(
e
.
userList
,
function
(
e
){
return
s
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
.
toString
()}})}))],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
s
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
chooseDialog
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
dialogSub
()}}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
s
(
"K6A+"
)},
"data-v-5f536b82"
,
null
);
t
.
default
=
u
.
exports
},
"K6A+"
:
function
(
e
,
t
){},
KnlH
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/22.cb375ba2e327f0effe2e.js
0 → 100644
View file @
750da27a
webpackJsonp
([
22
],{
"1djJ"
:
function
(
e
,
t
,
o
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
o
(
"CCn6"
),
i
=
o
(
"+TkF"
),
l
=
o
(
"kmJW"
),
r
=
{
name
:
"dialogObj"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
loading
:
!
0
,
goodsYou
:[],
goodsList
:[],
form
:{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
imgLesson
:[],
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
img
:[],
refImg
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
after_goods_id
:
""
,
before_goods_id
:
""
}},
lessonList
:[],
goOn_goods_Id
:{
after_goods_id
:
""
,
before_goods_id
:
""
}}},
methods
:{
sub
:
function
(){
var
e
=
this
,
t
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
)
+
""
);
switch
(
t
.
desc
.
before_goods_id
=
this
.
goOn_goods_Id
.
before_goods_id
,
this
.
goodsYou
.
length
<
1
?
t
.
desc
.
use_goods_ids
=
""
:
t
.
desc
.
use_goods_ids
=
this
.
goodsYou
.
toString
(),
t
.
desc
.
after_goods_id
=
this
.
goOn_goods_Id
.
after_goods_id
,
t
.
original_price
=
(
100
*
t
.
original_price
).
toFixed
(
0
),
t
.
current_price
=
(
100
*
t
.
current_price
).
toFixed
(
0
),
t
.
invite_earnings
=
(
100
*
t
.
invite_earnings
).
toFixed
(
0
),
t
.
goods_desc
=
JSON
.
stringify
(
t
.
goods_desc
),
t
.
desc
=
JSON
.
stringify
(
t
.
desc
),
t
.
share_desc
=
JSON
.
stringify
(
t
.
share_desc
),
this
.
dialogObj
.
type
){
case
1
:
Object
(
s
.
R
)(
this
.
dialogObj
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
});
break
;
case
0
:
Object
(
s
.
i
)(
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
})}},
removeFileMain
:
function
(
e
){
var
t
=
this
.
form
.
goods_desc
.
img
.
findIndex
(
function
(
t
){
return
t
.
name
===
e
.
name
});
this
.
form
.
goods_desc
.
img
.
splice
(
t
,
1
)},
uploadFileLesson
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
goods_desc
.
imgLesson
=
[{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}],
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
})})},
removeFileLesson
:
function
(){
this
.
form
.
goods_desc
.
imgLesson
=
[]},
uploadFileMain
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
goods_desc
.
img
.
push
({
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}),
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
})})},
removeFileShareRef
:
function
(){
this
.
form
.
share_desc
.
refImg
=
[]},
uploadFileMainShareRef
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
refImg
?
t
.
form
.
share_desc
.
refImg
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
refImg
=
[],
t
.
form
.
share_desc
.
refImg
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileMainShare
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
img
?
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
img
=
[],
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileMainService
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
desc
.
customer_service
?
t
.
form
.
desc
.
customer_service
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
desc
.
customer_service
=
[],
t
.
form
.
desc
.
customer_service
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
uploadFileShare
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
s
.
_61
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
$message
({
message
:
"上传成功"
,
type
:
"success"
}),
t
.
form
.
share_desc
.
img
?
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}:(
t
.
form
.
share_desc
.
img
=
[],
t
.
form
.
share_desc
.
img
[
0
]
=
{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
})})},
initDialog
:
function
(){
var
e
=
this
;
switch
(
Object
(
s
.
_19
)({
limit
:
9999
}).
then
(
function
(
t
){
e
.
goodsList
=
t
.
list
}),
this
.
dialogObj
.
type
){
case
0
:
this
.
loading
=!
1
,
this
.
goOn_goods_Id
.
after_goods_id
=
""
,
this
.
goodsYou
=
[],
this
.
goOn_goods_Id
.
before_goods_id
=
""
,
this
.
form
=
{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
refImg
:[],
img
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
before_goods_id
:
0
,
after_goods_id
:
0
}},
this
.
getLessonList
();
break
;
case
1
:
case
2
:
this
.
goOn_goods_Id
.
after_goods_id
=
""
,
this
.
goOn_goods_Id
.
before_goods_id
=
""
,
this
.
goodsYou
=
[],
this
.
form
=
{
name
:
""
,
goods_type
:
1
,
goods_desc
:{
desc
:
""
,
img
:[]},
course_id
:
""
,
course_type
:
0
,
watch_num
:
""
,
duration_num
:
0
,
original_price
:
""
,
current_price
:
""
,
is_real
:
0
,
is_auth_user
:
0
,
share_desc
:{
title
:
""
,
content
:
""
,
refImg
:[],
img
:[]},
desc
:{
detail
:
""
,
qa
:
""
,
customer_service
:[],
before_goods_id
:
0
,
after_goods_id
:
0
}},
Object
(
s
.
_18
)(
this
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
loading
=!
1
;
var
o
=
JSON
.
parse
(
t
.
share_desc
);
o
.
refImg
||
(
o
.
refImg
=
[]),
e
.
form
=
{
name
:
t
.
name
,
goods_type
:
t
.
goods_type
,
goods_desc
:
JSON
.
parse
(
t
.
goods_desc
),
course_id
:
t
.
course_id
,
course_type
:
t
.
course_type
,
watch_num
:
t
.
watch_num
,
duration_num
:
t
.
duration_num
,
original_price
:
t
.
original_price
/
100
,
current_price
:
t
.
current_price
/
100
,
is_real
:
t
.
is_real
,
is_auth_user
:
t
.
is_auth_user
,
share_desc
:
JSON
.
parse
(
t
.
share_desc
),
desc
:
JSON
.
parse
(
t
.
desc
),
invite_earnings
:
t
.
invite_earnings
/
100
,
is_auth_teacher
:
t
.
is_auth_teacher
},
e
.
form
.
desc
.
before_goods_id
&&
(
e
.
goOn_goods_Id
.
before_goods_id
=
e
.
form
.
desc
.
before_goods_id
),
e
.
form
.
desc
.
after_goods_id
&&
(
e
.
goOn_goods_Id
.
after_goods_id
=
e
.
form
.
desc
.
after_goods_id
),
e
.
form
.
desc
.
use_goods_ids
&&
(
e
.
goodsYou
=
e
.
form
.
desc
.
use_goods_ids
.
split
(
","
),
e
.
goodsYou
=
e
.
goodsYou
.
map
(
function
(
e
){
return
+
e
})),
e
.
getLessonList
()});
break
;
case
3
:
this
.
title
=
"编辑"
,
this
.
show
=
this
.
dialogObj
.
show
,
this
.
id
=
this
.
dialogObj
.
id
,
this
.
type
=
2
}},
changeLessonType
:
function
(){
this
.
getLessonList
()},
getLessonList
:
function
(){
var
e
=
this
;
Object
(
s
.
_20
)({
type
:
this
.
form
.
course_type
}).
then
(
function
(
t
){
e
.
lessonList
=
t
.
list
})}},
watch
:{
dialogObj
:{
handler
:
function
(){
this
.
loading
=!
0
,
this
.
initDialog
()},
deep
:
!
0
},
show
:
function
(
e
){
this
.
$emit
(
"changeShow"
,
e
)}}},
a
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogObj
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialogObj
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialogObj
,
"show"
,
t
)}}},[
o
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"100px"
,
disabled
:
2
===
e
.
dialogObj
.
type
}},[
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"name"
,
t
)},
expression
:
"form.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品描述"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
goods_desc
.
desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
goods_desc
,
"desc"
,
t
)},
expression
:
"form.goods_desc.desc"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品类型"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
form
.
goods_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"goods_type"
,
t
)},
expression
:
"form.goods_type"
}},[
o
(
"el-option"
,{
attrs
:{
label
:
"普通商品"
,
value
:
1
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"团购商品"
,
value
:
2
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"续课商品"
,
value
:
3
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"优惠券商品"
,
value
:
4
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
4
===
e
.
form
.
goods_type
?
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"可用商品"
}},[
o
(
"el-select"
,{
attrs
:{
multiple
:
""
,
placeholder
:
"全部"
},
model
:{
value
:
e
.
goodsYou
,
callback
:
function
(
t
){
e
.
goodsYou
=
t
},
expression
:
"goodsYou"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
3
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续课已购商品"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
goOn_goods_Id
.
before_goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goOn_goods_Id
,
"before_goods_id"
,
t
)},
expression
:
"goOn_goods_Id.before_goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续购商品"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
goOn_goods_Id
.
after_goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
goOn_goods_Id
,
"after_goods_id"
,
t
)},
expression
:
"goOn_goods_Id.after_goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程类型"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
function
(
t
){
e
.
changeLessonType
()}},
model
:{
value
:
e
.
form
.
course_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"course_type"
,
t
)},
expression
:
"form.course_type"
}},[
o
(
"el-option"
,{
attrs
:{
label
:
"日课"
,
value
:
1
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
label
:
"月课"
,
value
:
0
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
form
.
course_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"course_id"
,
t
)},
expression
:
"form.course_id"
}},
e
.
_l
(
e
.
lessonList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
title
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"观看时长(节)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"课时数"
},
model
:{
value
:
e
.
form
.
watch_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"watch_num"
,
t
)},
expression
:
"form.watch_num"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"续看时长(天)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"看课天数"
},
model
:{
value
:
e
.
form
.
duration_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"duration_num"
,
t
)},
expression
:
"form.duration_num"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
&&
4
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程封面(750*600)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileLesson
,
"on-remove"
:
e
.
removeFileLesson
,
limit
:
1
,
"file-list"
:
e
.
form
.
goods_desc
.
imgLesson
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"主图(750*600)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileMain
,
"on-remove"
:
e
.
removeFileMain
,
"file-list"
:
e
.
form
.
goods_desc
.
img
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"客服(200*200)"
}},[
o
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
class
:
e
.
form
.
desc
.
customer_service
&&
e
.
form
.
desc
.
customer_service
.
length
>
0
?
"uploadService"
:
""
,
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"http-request"
:
e
.
uploadFileMainService
,
"file-list"
:
e
.
form
.
desc
.
customer_service
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"推荐奖金(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"推荐奖金"
},
model
:{
value
:
e
.
form
.
invite_earnings
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"invite_earnings"
,
t
)},
expression
:
"form.invite_earnings"
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否配置实物"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_real
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_real"
,
t
)},
expression
:
"form.is_real"
}}),
e
.
_v
(
" "
),
o
(
"span"
,{
staticStyle
:{
"font-size"
:
"12px"
}},[
e
.
_v
(
"打开后提示用户填写具体住址"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否允许用户推广"
,
"label-width"
:
"200"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_auth_user
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_auth_user"
,
t
)},
expression
:
"form.is_auth_user"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否允许老师推广"
,
"label-width"
:
"200"
}},[
o
(
"el-switch"
,{
attrs
:{
"active-value"
:
1
,
"inactive-value"
:
0
},
model
:{
value
:
e
.
form
.
is_auth_teacher
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_auth_teacher"
,
t
)},
expression
:
"form.is_auth_teacher"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
1
===
e
.
form
.
goods_type
||
3
===
e
.
form
.
goods_type
?
"原价(元)"
:
4
===
e
.
form
.
goods_type
?
"抵扣价格(元)"
:
"单买价格(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"原价"
},
model
:{
value
:
e
.
form
.
original_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"original_price"
,
t
)},
expression
:
"form.original_price"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
1
===
e
.
form
.
goods_type
||
3
===
e
.
form
.
goods_type
?
"现价(元)"
:
4
===
e
.
form
.
goods_type
?
"购买价格(元)"
:
"拼团价格(元)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"现价"
},
model
:{
value
:
e
.
form
.
current_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"current_price"
,
t
)},
expression
:
"form.current_price"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
===
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"成团人数(人)"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"成团人数"
},
model
:{
value
:
e
.
form
.
desc
.
group_number
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"group_number"
,
t
)},
expression
:
"form.desc.group_number"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"团购失效时间(小时)"
,
"label-width"
:
"136"
}},[
o
(
"el-input-number"
,{
attrs
:{
label
:
"团购失效时间"
},
model
:{
value
:
e
.
form
.
desc
.
group_continue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"group_continue"
,
t
)},
expression
:
"form.desc.group_continue"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享标题"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
share_desc
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
share_desc
,
"title"
,
t
)},
expression
:
"form.share_desc.title"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
span
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享内容"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
form
.
share_desc
.
content
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
share_desc
,
"content"
,
t
)},
expression
:
"form.share_desc.content"
}})],
1
)],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享主图(300*300)"
}},[
o
(
"el-upload"
,{
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"file-list"
:
e
.
form
.
share_desc
.
img
,
"http-request"
:
e
.
uploadFileMainShare
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
3
!==
e
.
form
.
goods_type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"分享海报"
}},[
o
(
"el-upload"
,{
attrs
:{
"list-type"
:
"picture-card"
,
action
:
"/api/public/upload"
,
limit
:
1
,
"file-list"
:
e
.
form
.
share_desc
.
refImg
,
"http-request"
:
e
.
uploadFileMainShareRef
}},[
o
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
24
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品详情"
}},[
o
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
25
},
model
:{
value
:
e
.
form
.
desc
.
detail
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"detail"
,
t
)},
expression
:
"form.desc.detail"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
24
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"购买须知"
}},[
o
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
25
},
model
:{
value
:
e
.
form
.
desc
.
qa
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
.
desc
,
"qa"
,
t
)},
expression
:
"form.desc.qa"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
!==
e
.
dialogObj
.
type
?
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
):
e
.
_e
()],
1
)])},
staticRenderFns
:[]};
var
n
=
o
(
"VU/8"
)(
r
,
a
,
!
1
,
function
(
e
){
o
(
"IhHF"
)},
"data-v-e9987268"
,
null
).
exports
,
c
=
{
name
:
"index"
,
data
:
function
(){
return
{
searchFrom
:{
name
:
""
},
userList
:[],
total
:
0
,
nowPage
:
1
,
limit
:
10
,
chooseDialog
:{
show
:
!
1
,
title
:
""
,
id
:
""
,
form
:{
value
:
""
,
list
:[]},
type
:
0
},
dialogObj
:{
type
:
0
,
show
:
!
1
,
title
:
""
,
id
:
""
},
classList
:[]}},
components
:{
page
:
l
.
a
,
dialogCom
:
n
},
filters
:{
isOrNot
:
function
(
e
){
return
i
.
h
[
e
]},
goodsType
:
function
(
e
){
return
i
.
e
[
e
]},
lessonType
:
function
(
e
){
return
i
.
i
[
e
]},
goodsStatus
:
function
(
e
){
return
i
.
d
[
e
]}},
mounted
:
function
(){
this
.
getUser
(),
this
.
getClassList
()},
methods
:{
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getUser
()},
onSizeChange
:
function
(
e
){
this
.
limit
=
e
,
this
.
nowPage
=
1
,
this
.
getUser
()},
copyShop
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将复制该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
t
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"复制成功!"
})}),
t
.
getUser
()})},
copyUrl
:
function
(
e
){
var
t
=
"https://wechat.changchangenglish.com/#/buyDetail?shopId="
+
e
,
o
=
document
.
createElement
(
"input"
);
o
.
value
=
t
,
document
.
body
.
appendChild
(
o
),
o
.
select
(),
document
.
execCommand
(
"Copy"
),
this
.
$message
({
message
:
"已成功复制到剪切板"
,
type
:
"success"
}),
o
.
remove
()},
dialogSub
:
function
(){
var
e
=
this
;
switch
(
this
.
chooseDialog
.
type
){
case
0
:
Object
(
s
.
p
)(
this
.
chooseDialog
.
id
,
this
.
chooseDialog
.
form
.
value
).
then
(
function
(
t
){
e
.
$message
({
message
:
"绑定成功"
,
type
:
"success"
}),
e
.
chooseDialog
.
show
=!
1
}),
this
.
getUser
();
break
;
case
1
:
var
t
=
{
conflict_goods_ids
:
this
.
chooseDialog
.
form
.
list
.
toString
()};
Object
(
s
.
s
)(
this
.
chooseDialog
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
message
:
"设置成功"
,
type
:
"success"
}),
e
.
chooseDialog
.
show
=!
1
,
e
.
getUser
()})}},
getUser
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
name
&&
(
t
.
name
=
this
.
searchFrom
.
name
),
this
.
searchFrom
.
course_id
&&
(
t
.
course_id
=
this
.
searchFrom
.
course_id
),
this
.
searchFrom
.
status
&&
(
t
.
status
=
this
.
searchFrom
.
status
),
this
.
searchFrom
.
current_price
&&
(
t
.
current_price
=
100
*
this
.
searchFrom
.
current_price
),
Object
(
s
.
_19
)(
t
).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
""
===
e
.
conflict_goods_ids
?
e
.
conflict_goods_ids
=
[]:
e
.
conflict_goods_ids
=
e
.
conflict_goods_ids
.
split
(
","
)}),
e
.
userList
=
t
.
list
,
e
.
total
=
t
.
total
})},
edit
:
function
(
e
){
this
.
dialogObj
=
{
type
:
1
,
title
:
"编辑商品"
,
show
:
!
0
,
id
:
e
.
id
}},
add
:
function
(){
this
.
dialogObj
=
{
type
:
0
,
title
:
"添加商品"
,
show
:
!
0
}},
detail
:
function
(
e
){
this
.
dialogObj
.
id
=
e
.
id
,
this
.
dialogObj
.
type
=
2
,
this
.
dialogObj
.
title
=
"查看商品"
,
this
.
dialogObj
.
show
=!
0
},
onDel
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
I
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})}),
t
.
getUser
()})},
onUp
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将上架该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
_55
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
}),
t
.
getUser
()})})},
onDown
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将下架该商品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
K
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
}),
t
.
getUser
()})})},
changeShow
:
function
(
e
){
this
.
dialogObj
.
show
=
e
},
bindOther
:
function
(
e
){
this
.
chooseDialog
=
{
show
:
!
0
,
title
:
"绑定商品"
,
id
:
e
.
id
,
form
:{
value
:
""
,
list
:[]},
type
:
0
}},
conflict
:
function
(
e
){
this
.
chooseDialog
=
{
show
:
!
0
,
title
:
"冲突商品"
,
id
:
e
.
id
,
form
:{
value
:
""
,
list
:
e
.
conflict_goods_ids
},
type
:
1
}},
getClassList
:
function
(){
var
e
=
this
;
Object
(
s
.
_20
)({
limit
:
2
e3
,
page
:
1
}).
then
(
function
(
t
){
e
.
classList
=
t
.
list
})}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"user"
},[
o
(
"el-form"
,{
ref
:
"searchFrom"
,
staticClass
:
"search-form"
,
attrs
:{
model
:
e
.
searchFrom
,
"label-width"
:
"100px"
,
inline
:
""
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
searchFrom
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"name"
,
t
)},
expression
:
"searchFrom.name"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
getUser
},
model
:{
value
:
e
.
searchFrom
.
course_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"course_id"
,
t
)},
expression
:
"searchFrom.course_id"
}},[
o
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
e
.
_l
(
e
.
classList
,
function
(
e
,
t
){
return
o
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
title
,
value
:
e
.
id
}})})],
2
)],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品状态"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
e
.
getUser
},
model
:{
value
:
e
.
searchFrom
.
status
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"status"
,
t
)},
expression
:
"searchFrom.status"
}},[
o
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"0"
,
label
:
"编辑中"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"1"
,
label
:
"上架"
}}),
e
.
_v
(
" "
),
o
(
"el-option"
,{
attrs
:{
value
:
"2"
,
label
:
"下架"
}})],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品现价/团购价"
,
"label-width"
:
"120px"
}},[
o
(
"el-input-number"
,{
model
:{
value
:
e
.
searchFrom
.
current_price
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"current_price"
,
t
)},
expression
:
"searchFrom.current_price"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,[
o
(
"div"
,{
staticClass
:
"search-btn-block"
},[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
getUser
}},[
e
.
_v
(
"搜索"
)])],
1
)])],
1
),
e
.
_v
(
" "
),
o
(
"div"
,{
staticClass
:
"new-block"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
o
(
"el-button"
,{
attrs
:{
type
:
"success"
,
plain
:
""
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"添加商品"
)])],
1
),
e
.
_v
(
" "
),
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
userList
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
o
(
"router-link"
,{
attrs
:{
to
:{
name
:
"periods"
,
query
:{
goods_id
:
t
.
row
.
id
}}}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
name
)
+
"
\n
"
)])]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"goodsType"
)(
t
.
row
.
goods_type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品原价/直购价"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
original_price
/
100
)
+
"元
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品现价/团购价"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
current_price
/
100
)
+
"元
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"course_title"
,
label
:
"课程名称"
}}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"课程类别"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"lessonType"
)(
t
.
row
.
course_type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"是否有实物"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"isOrNot"
)(
t
.
row
.
is_real
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"goodsStatus"
)(
t
.
row
.
status
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
width
:
"60"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
o
(
"el-popover"
,{
attrs
:{
placement
:
"top"
,
width
:
"600"
}},[
o
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
}},[
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
detail
(
t
.
row
)}}},[
e
.
_v
(
"
\n
查看详情
\n
"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
copyUrl
(
t
.
row
.
id
)}}},[
e
.
_v
(
"
\n
复制链接
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():[
2
===
t
.
row
.
status
||
0
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
onUp
(
t
.
row
)}}},[
e
.
_v
(
"
\n
上架
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
onDown
(
t
.
row
)}}},[
e
.
_v
(
"
\n
下架
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"warning"
},
on
:{
click
:
function
(
o
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"success"
},
on
:{
click
:
function
(
o
){
e
.
copyShop
(
t
.
row
)}}},[
e
.
_v
(
"
\n
复制商品
\n
"
)]),
e
.
_v
(
" "
),
2
===
t
.
row
.
status
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
bindOther
(
t
.
row
)}}},[
e
.
_v
(
"
\n
绑定商品
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
conflict
(
t
.
row
)}}},[
e
.
_v
(
"
\n
冲突商品
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"danger"
},
on
:{
click
:
function
(
o
){
e
.
onDel
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]],
2
),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
slot
:
"reference"
,
size
:
"mini"
,
type
:
"text"
},
slot
:
"reference"
},[
e
.
_v
(
"操作"
)])],
1
)]}}])})],
1
),
e
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}}),
e
.
_v
(
" "
),
o
(
"dialog-com"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
changeShow
:
e
.
changeShow
,
reflash
:
e
.
getUser
}}),
e
.
_v
(
" "
),
o
(
"el-dialog"
,{
attrs
:{
title
:
e
.
chooseDialog
.
title
,
visible
:
e
.
chooseDialog
.
show
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
,
"show"
,
t
)}}},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
"label-width"
:
"80px"
}},[
0
===
e
.
chooseDialog
.
type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"绑定商品"
}},[
o
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
chooseDialog
.
form
.
value
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
.
form
,
"value"
,
t
)},
expression
:
"chooseDialog.form.value"
}},
e
.
_l
(
e
.
userList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
===
e
.
chooseDialog
.
type
?
o
(
"el-form-item"
,{
attrs
:{
label
:
"冲突商品"
}},[
o
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
,
multiple
:
""
},
model
:{
value
:
e
.
chooseDialog
.
form
.
list
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseDialog
.
form
,
"list"
,
t
)},
expression
:
"chooseDialog.form.list"
}},
e
.
_l
(
e
.
userList
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
.
toString
()}})}))],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
chooseDialog
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
dialogSub
()}}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
u
=
o
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
o
(
"K6A+"
)},
"data-v-5f536b82"
,
null
);
t
.
default
=
u
.
exports
},
IhHF
:
function
(
e
,
t
){},
"K6A+"
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
b0203a4ff83a92827c4f
.js
→
dist/static/js/manifest.
5aa09880e7056414c838
.js
View file @
750da27a
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
n
,
r
){
for
(
var
t
,
b
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
b
=
a
[
i
],
d
[
b
]
&&
u
.
push
(
d
[
b
][
0
]),
d
[
b
]
=
0
;
for
(
t
in
n
)
Object
.
prototype
.
hasOwnProperty
.
call
(
n
,
t
)
&&
(
e
[
t
]
=
n
[
t
]);
for
(
c
&&
c
(
a
,
n
,
r
);
u
.
length
;)
u
.
shift
()();
if
(
r
)
for
(
i
=
0
;
i
<
r
.
length
;
i
++
)
o
=
f
(
f
.
s
=
r
[
i
]);
return
o
};
var
a
=
{},
d
=
{
40
:
0
};
function
f
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
d
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
d
.
exports
,
d
,
d
.
exports
,
f
),
d
.
l
=!
0
,
d
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
d
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
f
){
c
=
d
[
e
]
=
[
a
,
f
]});
c
[
2
]
=
a
;
var
n
=
document
.
getElementsByTagName
(
"head"
)[
0
],
r
=
document
.
createElement
(
"script"
);
r
.
type
=
"text/javascript"
,
r
.
charset
=
"utf-8"
,
r
.
async
=!
0
,
r
.
timeout
=
12
e4
,
f
.
nc
&&
r
.
setAttribute
(
"nonce"
,
f
.
nc
),
r
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d7d4dfb09c929cbd76ce"
,
1
:
"daad48d3daee378b0397"
,
2
:
"f25ec8e2ce1c35d86a18"
,
3
:
"3a1e975038238c291181"
,
4
:
"f7de107bf23fce922b15"
,
5
:
"d5dc9cf2b30ef0d66dc1"
,
6
:
"0d9154636d9cc51cf1a2"
,
7
:
"014585df7cd638bc81f1"
,
8
:
"3c53ba088b50a09431b0"
,
9
:
"50b457e0c5054d462a2f"
,
10
:
"e1fa2f401f03585fe84d"
,
11
:
"f169bf48bfce65359945"
,
12
:
"0cd36c63efd295f29a0e"
,
13
:
"530070a2a8009e20e09e"
,
14
:
"c7e2ade1c66cb6a64324"
,
15
:
"e1124a5ab4d825408ac9"
,
16
:
"8fd1ddf07c4582cbb40d"
,
17
:
"7b67f00483de0a89b55e"
,
18
:
"ae4a9eda2890aef24f9c"
,
19
:
"1902b250d8e790e1c634"
,
20
:
"f8ab67880c88779684bb"
,
21
:
"546c4128492d4a77a7b0"
,
22
:
"530b6d052b58ceeec3d7"
,
23
:
"9fb2b32595b6b068d0f5"
,
24
:
"7f4b9892260ae25b3c30"
,
25
:
"004ccd3bd1ab4aa193c2"
,
26
:
"a4d0bb7c4b78f34cd0a1"
,
27
:
"4fcca7b3ae77074e1c39"
,
28
:
"71fffb1cc171d60a67f7"
,
29
:
"069db024deb6b6ba0cb6"
,
30
:
"33c8979c8c80500891de"
,
31
:
"56f8ad78767a7e4e08f5"
,
32
:
"5fbb4fb5cb24601fa8dc"
,
33
:
"0968771fb6a2d3b94208"
,
34
:
"8e82e17774dbd94c6b74"
,
35
:
"389afd12e9343345dc93"
,
36
:
"cb7bcc703da860d76d2e"
,
37
:
"038800fd79e40f469635"
}[
e
]
+
".js"
;
var
t
=
setTimeout
(
b
,
12
e4
);
function
b
(){
r
.
onerror
=
r
.
onload
=
null
,
clearTimeout
(
t
);
var
c
=
d
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
r
.
onerror
=
r
.
onload
=
b
,
n
.
appendChild
(
r
),
a
},
f
.
m
=
e
,
f
.
c
=
a
,
f
.
d
=
function
(
e
,
c
,
a
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"/"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
r
,
d
){
for
(
var
t
,
b
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
b
=
a
[
i
],
f
[
b
]
&&
u
.
push
(
f
[
b
][
0
]),
f
[
b
]
=
0
;
for
(
t
in
r
)
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
t
)
&&
(
e
[
t
]
=
r
[
t
]);
for
(
c
&&
c
(
a
,
r
,
d
);
u
.
length
;)
u
.
shift
()();
if
(
d
)
for
(
i
=
0
;
i
<
d
.
length
;
i
++
)
o
=
n
(
n
.
s
=
d
[
i
]);
return
o
};
var
a
=
{},
f
=
{
40
:
0
};
function
n
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
n
),
f
.
l
=!
0
,
f
.
exports
}
n
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
n
){
c
=
f
[
e
]
=
[
a
,
n
]});
c
[
2
]
=
a
;
var
r
=
document
.
getElementsByTagName
(
"head"
)[
0
],
d
=
document
.
createElement
(
"script"
);
d
.
type
=
"text/javascript"
,
d
.
charset
=
"utf-8"
,
d
.
async
=!
0
,
d
.
timeout
=
12
e4
,
n
.
nc
&&
d
.
setAttribute
(
"nonce"
,
n
.
nc
),
d
.
src
=
n
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d7d4dfb09c929cbd76ce"
,
1
:
"daad48d3daee378b0397"
,
2
:
"f25ec8e2ce1c35d86a18"
,
3
:
"3a1e975038238c291181"
,
4
:
"f7de107bf23fce922b15"
,
5
:
"d5dc9cf2b30ef0d66dc1"
,
6
:
"0d9154636d9cc51cf1a2"
,
7
:
"014585df7cd638bc81f1"
,
8
:
"3c53ba088b50a09431b0"
,
9
:
"50b457e0c5054d462a2f"
,
10
:
"e1fa2f401f03585fe84d"
,
11
:
"f169bf48bfce65359945"
,
12
:
"0cd36c63efd295f29a0e"
,
13
:
"530070a2a8009e20e09e"
,
14
:
"c7e2ade1c66cb6a64324"
,
15
:
"e1124a5ab4d825408ac9"
,
16
:
"8fd1ddf07c4582cbb40d"
,
17
:
"7b67f00483de0a89b55e"
,
18
:
"ae4a9eda2890aef24f9c"
,
19
:
"1902b250d8e790e1c634"
,
20
:
"f8ab67880c88779684bb"
,
21
:
"546c4128492d4a77a7b0"
,
22
:
"cb375ba2e327f0effe2e"
,
23
:
"9fb2b32595b6b068d0f5"
,
24
:
"7f4b9892260ae25b3c30"
,
25
:
"004ccd3bd1ab4aa193c2"
,
26
:
"a4d0bb7c4b78f34cd0a1"
,
27
:
"4fcca7b3ae77074e1c39"
,
28
:
"71fffb1cc171d60a67f7"
,
29
:
"069db024deb6b6ba0cb6"
,
30
:
"33c8979c8c80500891de"
,
31
:
"56f8ad78767a7e4e08f5"
,
32
:
"5fbb4fb5cb24601fa8dc"
,
33
:
"0968771fb6a2d3b94208"
,
34
:
"8e82e17774dbd94c6b74"
,
35
:
"389afd12e9343345dc93"
,
36
:
"cb7bcc703da860d76d2e"
,
37
:
"038800fd79e40f469635"
}[
e
]
+
".js"
;
var
t
=
setTimeout
(
b
,
12
e4
);
function
b
(){
d
.
onerror
=
d
.
onload
=
null
,
clearTimeout
(
t
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
d
.
onerror
=
d
.
onload
=
b
,
r
.
appendChild
(
d
),
a
},
n
.
m
=
e
,
n
.
c
=
a
,
n
.
d
=
function
(
e
,
c
,
a
){
n
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
n
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
n
.
d
(
c
,
"a"
,
c
),
c
},
n
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
n
.
p
=
"/"
,
n
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/shop/dialog.vue
View file @
750da27a
...
...
@@ -42,6 +42,17 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
v-if=
"form.goods_type === 4"
>
<el-form-item
label=
"可用商品"
>
<el-select
multiple
v-model=
"goodsYou"
placeholder=
"全部"
>
<el-option
v-for=
"data in goodsList"
:key=
"data.id"
:label=
"data.name"
:value=
"data.id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
v-if=
"form.goods_type === 3"
>
<el-col
:span=
"12"
>
...
...
@@ -267,6 +278,7 @@
data
(){
return
{
loading
:
true
,
goodsYou
:[],
goodsList
:[],
form
:{
name
:
''
,
...
...
@@ -309,6 +321,11 @@
sub
(){
let
_json
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
)
+
''
);
_json
.
desc
.
before_goods_id
=
this
.
goOn_goods_Id
.
before_goods_id
;
if
(
this
.
goodsYou
.
length
<
1
){
_json
.
desc
.
use_goods_ids
=
''
}
else
{
_json
.
desc
.
use_goods_ids
=
this
.
goodsYou
.
toString
()
}
_json
.
desc
.
after_goods_id
=
this
.
goOn_goods_Id
.
after_goods_id
;
_json
.
original_price
=
(
_json
.
original_price
*
100
).
toFixed
(
0
);
_json
.
current_price
=
(
_json
.
current_price
*
100
).
toFixed
(
0
);
...
...
@@ -449,6 +466,7 @@
case
0
:
this
.
loading
=
false
;
this
.
goOn_goods_Id
.
after_goods_id
=
''
;
this
.
goodsYou
=
[];
this
.
goOn_goods_Id
.
before_goods_id
=
''
;
this
.
form
=
{
name
:
''
,
...
...
@@ -484,6 +502,7 @@
case
1
:
case
2
:
this
.
goOn_goods_Id
.
after_goods_id
=
''
;
this
.
goOn_goods_Id
.
before_goods_id
=
''
;
this
.
goodsYou
=
[];
this
.
form
=
{
name
:
''
,
goods_type
:
1
,
...
...
@@ -542,6 +561,12 @@
if
(
this
.
form
.
desc
.
after_goods_id
){
this
.
goOn_goods_Id
.
after_goods_id
=
this
.
form
.
desc
.
after_goods_id
;
}
if
(
this
.
form
.
desc
.
use_goods_ids
){
this
.
goodsYou
=
this
.
form
.
desc
.
use_goods_ids
.
split
(
','
);
this
.
goodsYou
=
this
.
goodsYou
.
map
(
function
(
item
)
{
return
+
item
;
});
}
this
.
getLessonList
()
});
break
;
...
...
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