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
4ee498c0
Commit
4ee498c0
authored
Sep 29, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build
parent
423eefff
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
5 deletions
+23
-5
index.html
dist/index.html
+1
-1
app.22a4b2b68a3d0b3493dd90e87937f9f9.css
dist/static/css/app.22a4b2b68a3d0b3493dd90e87937f9f9.css
+1
-1
10.0ec29420d8973c5765a0.js
dist/static/js/10.0ec29420d8973c5765a0.js
+0
-1
10.f66381e5776834ae6413.js
dist/static/js/10.f66381e5776834ae6413.js
+12
-0
9.4068c1c0351b38cdfbed.js
dist/static/js/9.4068c1c0351b38cdfbed.js
+1
-0
app.150ffe5c6f2cbbd00380.js
dist/static/js/app.150ffe5c6f2cbbd00380.js
+1
-1
manifest.44d6d87346f0d186273f.js
dist/static/js/manifest.44d6d87346f0d186273f.js
+1
-1
index.vue
src/components/weChat/index.vue
+6
-0
No files found.
dist/index.html
View file @
4ee498c0
<!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.227a3e2b81df79bb8f52d9f75181d7c5.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.70333f16c92593320e48.js
></script><script
type=
text/javascript
src=
/static/js/vendor.0b35d0c5581d0a6334a7.js
></script><script
type=
text/javascript
src=
/static/js/app.2823f982bca40889d62e.js
></script></body></html>
<!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.22a4b2b68a3d0b3493dd90e87937f9f9.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.44d6d87346f0d186273f.js
></script><script
type=
text/javascript
src=
/static/js/vendor.0b35d0c5581d0a6334a7.js
></script><script
type=
text/javascript
src=
/static/js/app.150ffe5c6f2cbbd00380.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.22
7a3e2b81df79bb8f52d9f75181d7c5
.css
→
dist/static/css/app.22
a4b2b68a3d0b3493dd90e87937f9f9
.css
View file @
4ee498c0
This diff is collapsed.
Click to expand it.
dist/static/js/10.0ec29420d8973c5765a0.js
deleted
100644 → 0
View file @
423eefff
webpackJsonp
([
10
],{
"0LCO"
:
function
(
e
,
t
){},
B31M
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"CCn6"
),
i
=
a
(
"kmJW"
),
o
=
{
name
:
"dialogObj"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
show
:
!
1
,
id
:
""
,
loading
:
!
0
,
uploadShow
:
!
0
,
type
:
0
,
title
:
""
,
form
:{
name
:
""
,
num
:
0
,
cover
:
""
},
imageList
:[],
rules
:{},
inputVisible
:
!
1
,
inputValue
:
""
,
teacherDetail
:{}}},
methods
:{
handleClose
:
function
(
e
){
this
.
form
.
category_name
.
splice
(
this
.
form
.
category_name
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
this
.
inputVisible
=!
0
,
this
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
form
.
category_name
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
sub
:
function
(){
var
e
=
this
;
switch
(
this
.
dialogObj
.
type
){
case
0
:
this
.
$refs
.
form
.
validate
(
function
(
t
){
if
(
t
){
e
.
imageList
.
length
>
0
&&
(
console
.
log
(
"this.imageList"
,
e
.
imageList
),
e
.
form
.
cover
=
e
.
imageList
[
0
].
name
);
var
a
=
e
.
form
;
a
.
category_name
=
a
.
category_name
.
join
(
","
),
Object
(
n
.
m
)(
a
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
show
=!
1
})}});
break
;
case
1
:
this
.
$refs
.
form
.
validate
(
function
(
t
){
if
(
t
){
console
.
log
(
"this.imageList"
,
e
.
imageList
),
e
.
imageList
.
length
>
0
&&
(
e
.
form
.
cover
=
e
.
imageList
[
0
].
name
);
var
a
=
e
.
form
;
a
.
category_name
=
a
.
category_name
.
join
(
","
),
Object
(
n
.
S
)(
e
.
id
,
a
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
show
=!
1
})}})}},
handleAvatarSuccess
:
function
(
e
){
this
.
imageList
=
[{
name
:
e
.
data
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
data
.
url
}]},
beforeAvatarUpload
:
function
(){
this
.
uploadShow
=!
1
},
uploadFile
:
function
(
e
){
var
t
=
this
;
this
.
loading
=!
0
,
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
n
.
_44
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
imageList
=
[{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
}],
t
.
loading
=!
1
,
t
.
$message
({
type
:
"success"
,
message
:
"上传成功!"
})}).
catch
(
function
(){
t
.
loading
=!
1
})},
handleRemove
:
function
(){
this
.
uploadShow
=!
0
},
initDialog
:
function
(){
var
e
=
this
;
switch
(
this
.
dialogObj
.
type
){
case
0
:
this
.
title
=
"新增单品"
,
this
.
show
=
this
.
dialogObj
.
show
,
this
.
type
=
0
,
this
.
imageList
=
[],
this
.
form
=
{
name
:
""
,
num
:
0
,
cover
:
""
,
category_name
:[]},
this
.
uploadShow
=!
0
,
this
.
loading
=!
1
;
break
;
case
1
:
this
.
title
=
"编辑"
,
this
.
show
=
this
.
dialogObj
.
show
,
this
.
id
=
this
.
dialogObj
.
id
,
this
.
type
=
1
,
Object
(
n
.
_24
)(
this
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
loading
=!
1
,
e
.
form
=
{
name
:
t
.
name
,
num
:
t
.
num
,
cover
:
t
.
cover
,
category_name
:
t
.
category_name
?
t
.
category_name
.
split
(
","
):[]},
e
.
form
.
cover
&&
""
!==
e
.
form
.
cover
?(
e
.
imageList
=
[{
name
:
t
.
cover
,
url
:
"http://cdn.singsingenglish.com/"
+
t
.
cover
}],
e
.
uploadShow
=!
1
):(
e
.
imageList
=
[],
e
.
uploadShow
=!
0
)})}}},
watch
:{
dialogObj
:{
handler
:
function
(){
this
.
loading
=!
0
,
this
.
initDialog
()},
deep
:
!
0
},
show
:
function
(
e
){
this
.
$emit
(
"changeShow"
,
e
)}}},
s
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
show
=
t
}}},[
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
}},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"label"
,[
e
.
_v
(
"单品名称"
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
8
}},[
a
(
"el-form-item"
,[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"规则:主题名+单品名"
},
model
:{
value
:
e
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"name"
,
t
)},
expression
:
"form.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"label"
,[
e
.
_v
(
"库存数量"
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
8
}},[
a
(
"el-form-item"
,[
a
(
"el-input-number"
,{
model
:{
value
:
e
.
form
.
num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"num"
,
t
)},
expression
:
"form.num"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"label"
,[
e
.
_v
(
"标签"
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
20
}},[
a
(
"el-form-item"
,[
e
.
_l
(
e
.
form
.
category_name
,
function
(
t
,
n
){
return
a
(
"el-tag"
,{
key
:
n
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
)
+
"
\n
"
)])}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 新增"
)])],
2
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"label"
,[
e
.
_v
(
"封面图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
20
}},[
a
(
"div"
,{
staticClass
:
"upload-block"
},[
a
(
"el-upload"
,{
class
:{
disabled
:
!
e
.
uploadShow
},
attrs
:{
action
:
"/api/public/upload/zone"
,
"http-request"
:
e
.
uploadFile
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"list-type"
:
"picture-card"
,
"file-list"
:
e
.
imageList
,
"on-success"
:
e
.
handleAvatarSuccess
,
"on-remove"
:
e
.
handleRemove
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)])},
staticRenderFns
:[]};
var
l
=
a
(
"VU/8"
)(
o
,
s
,
!
1
,
function
(
e
){
a
(
"mqBB"
),
a
(
"p8CR"
)},
"data-v-54da9536"
,
null
).
exports
,
r
=
{
name
:
"index"
,
components
:{
page
:
i
.
a
,
dialogCom
:
l
},
data
:
function
(){
return
{
total
:
0
,
nowPage
:
1
,
limit
:
10
,
searchFrom
:{
name
:
""
},
tableData
:[],
dialogObj
:{
type
:
0
,
show
:
!
1
,
id
:
""
}}},
created
:
function
(){
this
.
initPage
()},
methods
:{
initPage
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
name
&&
(
t
.
name
=
this
.
searchFrom
.
name
),
this
.
searchFrom
.
category_name
&&
(
t
.
category_name
=
this
.
searchFrom
.
category_name
),
Object
(
n
.
_25
)(
t
).
then
(
function
(
t
){
e
.
tableData
=
t
.
list
,
e
.
total
=
t
.
total
})},
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
initPage
()},
changeShow
:
function
(){},
delthat
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该单品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
n
.
C
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})}),
t
.
initPage
()})},
onAdd
:
function
(){
this
.
dialogObj
=
{
type
:
0
,
show
:
!
0
}},
edit
:
function
(
e
){
this
.
dialogObj
=
{
type
:
1
,
show
:
!
0
,
id
:
e
.
id
}}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"single"
},[
a
(
"el-form"
,{
ref
:
"searchFrom"
,
attrs
:{
model
:
e
.
searchFrom
,
"label-width"
:
"80px"
}},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"分类名称"
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"名称"
,
size
:
"small"
},
model
:{
value
:
e
.
searchFrom
.
category_name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"category_name"
,
t
)},
expression
:
"searchFrom.category_name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"单品名称"
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"名称"
,
size
:
"small"
},
model
:{
value
:
e
.
searchFrom
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"name"
,
t
)},
expression
:
"searchFrom.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
size
:
"small"
},
on
:{
click
:
e
.
initPage
}},[
e
.
_v
(
"
\n
搜索
\n
"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
4
,
offset
:
8
}},[
a
(
"el-form-item"
,[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"success"
,
plain
:
""
,
size
:
"small"
},
on
:{
click
:
e
.
onAdd
}},[
e
.
_v
(
"
\n
添加单品
\n
"
)])],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"default-sort"
:{
prop
:
"num"
,
order
:
"descending"
}}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"id"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"category_name"
,
label
:
"分类"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"num"
,
sortable
:
""
,
label
:
"库存"
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
a
(
"el-table-column"
,{
attrs
:{
width
:
"200"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"warning"
},
on
:{
click
:
function
(
a
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
?
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"danger"
},
on
:{
click
:
function
(
a
){
e
.
delthat
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"page"
,{
attrs
:{
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
}}),
e
.
_v
(
" "
),
a
(
"dialog-com"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
changeShow
:
e
.
changeShow
,
reflash
:
e
.
initPage
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
r
,
c
,
!
1
,
function
(
e
){
a
(
"0LCO"
)},
"data-v-af12a014"
,
null
);
t
.
default
=
m
.
exports
},
mqBB
:
function
(
e
,
t
){},
p8CR
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/
9.218b90d90909c9039614
.js
→
dist/static/js/
10.f66381e5776834ae6413
.js
View file @
4ee498c0
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/9.4068c1c0351b38cdfbed.js
0 → 100644
View file @
4ee498c0
webpackJsonp
([
9
],{
"0LCO"
:
function
(
e
,
t
){},
B31M
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"CCn6"
),
i
=
a
(
"kmJW"
),
o
=
{
name
:
"dialogObj"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
show
:
!
1
,
id
:
""
,
loading
:
!
0
,
uploadShow
:
!
0
,
type
:
0
,
title
:
""
,
form
:{
name
:
""
,
num
:
0
,
cover
:
""
},
imageList
:[],
rules
:{},
inputVisible
:
!
1
,
inputValue
:
""
,
teacherDetail
:{}}},
methods
:{
handleClose
:
function
(
e
){
this
.
form
.
category_name
.
splice
(
this
.
form
.
category_name
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
this
.
inputVisible
=!
0
,
this
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
form
.
category_name
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
sub
:
function
(){
var
e
=
this
;
switch
(
this
.
dialogObj
.
type
){
case
0
:
this
.
$refs
.
form
.
validate
(
function
(
t
){
if
(
t
){
e
.
imageList
.
length
>
0
&&
(
console
.
log
(
"this.imageList"
,
e
.
imageList
),
e
.
form
.
cover
=
e
.
imageList
[
0
].
name
);
var
a
=
e
.
form
;
a
.
category_name
=
a
.
category_name
.
join
(
","
),
Object
(
n
.
m
)(
a
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
show
=!
1
})}});
break
;
case
1
:
this
.
$refs
.
form
.
validate
(
function
(
t
){
if
(
t
){
console
.
log
(
"this.imageList"
,
e
.
imageList
),
e
.
imageList
.
length
>
0
&&
(
e
.
form
.
cover
=
e
.
imageList
[
0
].
name
);
var
a
=
e
.
form
;
a
.
category_name
=
a
.
category_name
.
join
(
","
),
Object
(
n
.
S
)(
e
.
id
,
a
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
show
=!
1
})}})}},
handleAvatarSuccess
:
function
(
e
){
this
.
imageList
=
[{
name
:
e
.
data
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
data
.
url
}]},
beforeAvatarUpload
:
function
(){
this
.
uploadShow
=!
1
},
uploadFile
:
function
(
e
){
var
t
=
this
;
this
.
loading
=!
0
,
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
n
.
_44
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
imageList
=
[{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
}],
t
.
loading
=!
1
,
t
.
$message
({
type
:
"success"
,
message
:
"上传成功!"
})}).
catch
(
function
(){
t
.
loading
=!
1
})},
handleRemove
:
function
(){
this
.
uploadShow
=!
0
},
initDialog
:
function
(){
var
e
=
this
;
switch
(
this
.
dialogObj
.
type
){
case
0
:
this
.
title
=
"新增单品"
,
this
.
show
=
this
.
dialogObj
.
show
,
this
.
type
=
0
,
this
.
imageList
=
[],
this
.
form
=
{
name
:
""
,
num
:
0
,
cover
:
""
,
category_name
:[]},
this
.
uploadShow
=!
0
,
this
.
loading
=!
1
;
break
;
case
1
:
this
.
title
=
"编辑"
,
this
.
show
=
this
.
dialogObj
.
show
,
this
.
id
=
this
.
dialogObj
.
id
,
this
.
type
=
1
,
Object
(
n
.
_24
)(
this
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
loading
=!
1
,
e
.
form
=
{
name
:
t
.
name
,
num
:
t
.
num
,
cover
:
t
.
cover
,
category_name
:
t
.
category_name
?
t
.
category_name
.
split
(
","
):[]},
e
.
form
.
cover
&&
""
!==
e
.
form
.
cover
?(
e
.
imageList
=
[{
name
:
t
.
cover
,
url
:
"http://cdn.singsingenglish.com/"
+
t
.
cover
}],
e
.
uploadShow
=!
1
):(
e
.
imageList
=
[],
e
.
uploadShow
=!
0
)})}}},
watch
:{
dialogObj
:{
handler
:
function
(){
this
.
loading
=!
0
,
this
.
initDialog
()},
deep
:
!
0
},
show
:
function
(
e
){
this
.
$emit
(
"changeShow"
,
e
)}}},
s
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
show
=
t
}}},[
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
}},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"label"
,[
e
.
_v
(
"单品名称"
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
8
}},[
a
(
"el-form-item"
,[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"规则:主题名+单品名"
},
model
:{
value
:
e
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"name"
,
t
)},
expression
:
"form.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"label"
,[
e
.
_v
(
"库存数量"
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
8
}},[
a
(
"el-form-item"
,[
a
(
"el-input-number"
,{
model
:{
value
:
e
.
form
.
num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"num"
,
t
)},
expression
:
"form.num"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"label"
,[
e
.
_v
(
"标签"
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
20
}},[
a
(
"el-form-item"
,[
e
.
_l
(
e
.
form
.
category_name
,
function
(
t
,
n
){
return
a
(
"el-tag"
,{
key
:
n
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
)
+
"
\n
"
)])}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 新增"
)])],
2
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"label"
,[
e
.
_v
(
"封面图片"
)])]),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
20
}},[
a
(
"div"
,{
staticClass
:
"upload-block"
},[
a
(
"el-upload"
,{
class
:{
disabled
:
!
e
.
uploadShow
},
attrs
:{
action
:
"/api/public/upload/zone"
,
"http-request"
:
e
.
uploadFile
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"list-type"
:
"picture-card"
,
"file-list"
:
e
.
imageList
,
"on-success"
:
e
.
handleAvatarSuccess
,
"on-remove"
:
e
.
handleRemove
}},[
a
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)])},
staticRenderFns
:[]};
var
l
=
a
(
"VU/8"
)(
o
,
s
,
!
1
,
function
(
e
){
a
(
"mqBB"
),
a
(
"p8CR"
)},
"data-v-54da9536"
,
null
).
exports
,
r
=
{
name
:
"index"
,
components
:{
page
:
i
.
a
,
dialogCom
:
l
},
data
:
function
(){
return
{
total
:
0
,
nowPage
:
1
,
limit
:
10
,
searchFrom
:{
name
:
""
},
tableData
:[],
dialogObj
:{
type
:
0
,
show
:
!
1
,
id
:
""
}}},
created
:
function
(){
this
.
initPage
()},
methods
:{
initPage
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
name
&&
(
t
.
name
=
this
.
searchFrom
.
name
),
this
.
searchFrom
.
category_name
&&
(
t
.
category_name
=
this
.
searchFrom
.
category_name
),
Object
(
n
.
_25
)(
t
).
then
(
function
(
t
){
e
.
tableData
=
t
.
list
,
e
.
total
=
t
.
total
})},
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
initPage
()},
changeShow
:
function
(){},
delthat
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该单品?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
n
.
C
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})}),
t
.
initPage
()})},
onAdd
:
function
(){
this
.
dialogObj
=
{
type
:
0
,
show
:
!
0
}},
edit
:
function
(
e
){
this
.
dialogObj
=
{
type
:
1
,
show
:
!
0
,
id
:
e
.
id
}}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"single"
},[
a
(
"el-form"
,{
ref
:
"searchFrom"
,
attrs
:{
model
:
e
.
searchFrom
,
"label-width"
:
"80px"
}},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"分类名称"
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"名称"
,
size
:
"small"
},
model
:{
value
:
e
.
searchFrom
.
category_name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"category_name"
,
t
)},
expression
:
"searchFrom.category_name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"单品名称"
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"名称"
,
size
:
"small"
},
model
:{
value
:
e
.
searchFrom
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"name"
,
t
)},
expression
:
"searchFrom.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
size
:
"small"
},
on
:{
click
:
e
.
initPage
}},[
e
.
_v
(
"
\n
搜索
\n
"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
4
,
offset
:
8
}},[
a
(
"el-form-item"
,[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"success"
,
plain
:
""
,
size
:
"small"
},
on
:{
click
:
e
.
onAdd
}},[
e
.
_v
(
"
\n
添加单品
\n
"
)])],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"default-sort"
:{
prop
:
"num"
,
order
:
"descending"
}}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"id"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"category_name"
,
label
:
"分类"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"num"
,
sortable
:
""
,
label
:
"库存"
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
a
(
"el-table-column"
,{
attrs
:{
width
:
"200"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"warning"
},
on
:{
click
:
function
(
a
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
?
a
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"danger"
},
on
:{
click
:
function
(
a
){
e
.
delthat
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"page"
,{
attrs
:{
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
}}),
e
.
_v
(
" "
),
a
(
"dialog-com"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
changeShow
:
e
.
changeShow
,
reflash
:
e
.
initPage
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
r
,
c
,
!
1
,
function
(
e
){
a
(
"0LCO"
)},
"data-v-af12a014"
,
null
);
t
.
default
=
m
.
exports
},
mqBB
:
function
(
e
,
t
){},
p8CR
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/app.
2823f982bca40889d62e
.js
→
dist/static/js/app.
150ffe5c6f2cbbd00380
.js
View file @
4ee498c0
This diff is collapsed.
Click to expand it.
dist/static/js/manifest.
70333f16c92593320e48
.js
→
dist/static/js/manifest.
44d6d87346f0d186273f
.js
View file @
4ee498c0
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
t
,
o
){
for
(
var
d
,
f
,
b
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
f
=
c
[
i
],
n
[
f
]
&&
u
.
push
(
n
[
f
][
0
]),
n
[
f
]
=
0
;
for
(
d
in
t
)
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
d
)
&&
(
e
[
d
]
=
t
[
d
]);
for
(
a
&&
a
(
c
,
t
,
o
);
u
.
length
;)
u
.
shift
()();
if
(
o
)
for
(
i
=
0
;
i
<
o
.
length
;
i
++
)
b
=
r
(
r
.
s
=
o
[
i
]);
return
b
};
var
c
=
{},
n
=
{
32
:
0
};
function
r
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
n
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
n
.
exports
,
n
,
n
.
exports
,
r
),
n
.
l
=!
0
,
n
.
exports
}
r
.
e
=
function
(
e
){
var
a
=
n
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
r
){
a
=
n
[
e
]
=
[
c
,
r
]});
a
[
2
]
=
c
;
var
t
=
document
.
getElementsByTagName
(
"head"
)[
0
],
o
=
document
.
createElement
(
"script"
);
o
.
type
=
"text/javascript"
,
o
.
charset
=
"utf-8"
,
o
.
async
=!
0
,
o
.
timeout
=
12
e4
,
r
.
nc
&&
o
.
setAttribute
(
"nonce"
,
r
.
nc
),
o
.
src
=
r
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"628788216be384bdd489"
,
1
:
"8276eb3d59ad27d96362"
,
2
:
"b28a476185ce8e8ee12b"
,
3
:
"d8159d2c1c896d843cb7"
,
4
:
"dadb9914d57593144c72"
,
5
:
"a9589664261766a0f666"
,
6
:
"6c4c194abd4f6fe872e5"
,
7
:
"a6b95f93351558969522"
,
8
:
"8f4597dfccf8f798060d"
,
9
:
"218b90d90909c9039614"
,
10
:
"0ec29420d8973c5765a0"
,
11
:
"b0130e787fffd62940ba"
,
12
:
"8b9a3042e0559dc22db6"
,
13
:
"e4d0634ec03ba49143cc"
,
14
:
"a590db5ba6d8ca51284a"
,
15
:
"34a6969f52872e8b0900"
,
16
:
"504a23ecb7bc480bcb3e"
,
17
:
"6a89d947caf4a8ffa5de"
,
18
:
"a08a9874c9dab8a03961"
,
19
:
"a3641f22c19a2a504ed6"
,
20
:
"086e067c0c2706ef004f"
,
21
:
"18cb46e33bb4e4bc4ed7"
,
22
:
"8747a6bf3a5ef9a7e7ad"
,
23
:
"e42ea14709ad6cdcbfa7"
,
24
:
"72446b84d7251c65c1ce"
,
25
:
"9e869307f7f09a0ee962"
,
26
:
"fce7eb70db18bbe74362"
,
27
:
"9c3e2670fd0635b3d86d"
,
28
:
"580f57c6c0128419ee97"
,
29
:
"c1a272d7957aa76e58e4"
}[
e
]
+
".js"
;
var
d
=
setTimeout
(
f
,
12
e4
);
function
f
(){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
d
);
var
a
=
n
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
n
[
e
]
=
void
0
)}
return
o
.
onerror
=
o
.
onload
=
f
,
t
.
appendChild
(
o
),
c
},
r
.
m
=
e
,
r
.
c
=
c
,
r
.
d
=
function
(
e
,
a
,
c
){
r
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
r
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
r
.
d
(
a
,
"a"
,
a
),
a
},
r
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
r
.
p
=
"/"
,
r
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
t
,
o
){
for
(
var
f
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
d
=
c
[
i
],
n
[
d
]
&&
u
.
push
(
n
[
d
][
0
]),
n
[
d
]
=
0
;
for
(
f
in
t
)
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
f
)
&&
(
e
[
f
]
=
t
[
f
]);
for
(
a
&&
a
(
c
,
t
,
o
);
u
.
length
;)
u
.
shift
()();
if
(
o
)
for
(
i
=
0
;
i
<
o
.
length
;
i
++
)
b
=
r
(
r
.
s
=
o
[
i
]);
return
b
};
var
c
=
{},
n
=
{
32
:
0
};
function
r
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
n
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
n
.
exports
,
n
,
n
.
exports
,
r
),
n
.
l
=!
0
,
n
.
exports
}
r
.
e
=
function
(
e
){
var
a
=
n
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
r
){
a
=
n
[
e
]
=
[
c
,
r
]});
a
[
2
]
=
c
;
var
t
=
document
.
getElementsByTagName
(
"head"
)[
0
],
o
=
document
.
createElement
(
"script"
);
o
.
type
=
"text/javascript"
,
o
.
charset
=
"utf-8"
,
o
.
async
=!
0
,
o
.
timeout
=
12
e4
,
r
.
nc
&&
o
.
setAttribute
(
"nonce"
,
r
.
nc
),
o
.
src
=
r
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"628788216be384bdd489"
,
1
:
"8276eb3d59ad27d96362"
,
2
:
"b28a476185ce8e8ee12b"
,
3
:
"d8159d2c1c896d843cb7"
,
4
:
"dadb9914d57593144c72"
,
5
:
"a9589664261766a0f666"
,
6
:
"6c4c194abd4f6fe872e5"
,
7
:
"a6b95f93351558969522"
,
8
:
"8f4597dfccf8f798060d"
,
9
:
"4068c1c0351b38cdfbed"
,
10
:
"f66381e5776834ae6413"
,
11
:
"b0130e787fffd62940ba"
,
12
:
"8b9a3042e0559dc22db6"
,
13
:
"e4d0634ec03ba49143cc"
,
14
:
"a590db5ba6d8ca51284a"
,
15
:
"34a6969f52872e8b0900"
,
16
:
"504a23ecb7bc480bcb3e"
,
17
:
"6a89d947caf4a8ffa5de"
,
18
:
"a08a9874c9dab8a03961"
,
19
:
"a3641f22c19a2a504ed6"
,
20
:
"086e067c0c2706ef004f"
,
21
:
"18cb46e33bb4e4bc4ed7"
,
22
:
"8747a6bf3a5ef9a7e7ad"
,
23
:
"e42ea14709ad6cdcbfa7"
,
24
:
"72446b84d7251c65c1ce"
,
25
:
"9e869307f7f09a0ee962"
,
26
:
"fce7eb70db18bbe74362"
,
27
:
"9c3e2670fd0635b3d86d"
,
28
:
"580f57c6c0128419ee97"
,
29
:
"c1a272d7957aa76e58e4"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
d
,
12
e4
);
function
d
(){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
f
);
var
a
=
n
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
n
[
e
]
=
void
0
)}
return
o
.
onerror
=
o
.
onload
=
d
,
t
.
appendChild
(
o
),
c
},
r
.
m
=
e
,
r
.
c
=
c
,
r
.
d
=
function
(
e
,
a
,
c
){
r
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
r
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
r
.
d
(
a
,
"a"
,
a
),
a
},
r
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
r
.
p
=
"/"
,
r
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/weChat/index.vue
View file @
4ee498c0
...
@@ -947,14 +947,17 @@
...
@@ -947,14 +947,17 @@
this
.
buttonList
[
selectedIndex
].
key
=
`menuKey_
${
_menuIndex
}
`
this
.
buttonList
[
selectedIndex
].
key
=
`menuKey_
${
_menuIndex
}
`
if
(
_type
===
'image'
)
{
if
(
_type
===
'image'
)
{
this
.
buttonList
[
selectedIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_info
.
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_info
.
content
=
val
.
url
;
this
.
buttonList
[
selectedIndex
].
media_info
.
content
=
val
.
url
;
}
else
if
(
_type
===
'news'
){
}
else
if
(
_type
===
'news'
){
this
.
buttonList
[
selectedIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_info
.
content
=
val
.
content
;
this
.
buttonList
[
selectedIndex
].
media_info
.
content
=
val
.
content
;
this
.
buttonList
[
selectedIndex
].
media_info
.
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_info
.
type
=
'news'
;
this
.
buttonList
[
selectedIndex
].
media_info
.
type
=
'news'
;
}
else
if
(
_type
===
'video'
){
}
else
if
(
_type
===
'video'
){
this
.
buttonList
[
selectedIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_info
.
content
=
val
.
info
;
this
.
buttonList
[
selectedIndex
].
media_info
.
content
=
val
.
info
;
this
.
buttonList
[
selectedIndex
].
media_info
.
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
media_info
.
type
=
'video'
;
this
.
buttonList
[
selectedIndex
].
media_info
.
type
=
'video'
;
}
}
this
.
showMedia
=
false
;
this
.
showMedia
=
false
;
...
@@ -968,13 +971,16 @@
...
@@ -968,13 +971,16 @@
if
(
_type
===
'image'
)
{
if
(
_type
===
'image'
)
{
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
content
=
val
.
url
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
content
=
val
.
url
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
media_id
=
val
.
media_id
;
}
else
if
(
_type
===
'news'
){
}
else
if
(
_type
===
'news'
){
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
content
=
val
.
content
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
content
=
val
.
content
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
type
=
'news'
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
type
=
'news'
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
media_id
=
val
.
media_id
;
}
else
if
(
_type
===
'video'
){
}
else
if
(
_type
===
'video'
){
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
content
=
val
.
info
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
content
=
val
.
info
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
media_id
=
val
.
media_id
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
type
=
'video'
;
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
type
=
'video'
;
}
}
this
.
showMedia
=
false
;
this
.
showMedia
=
false
;
...
...
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