Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
d6612ef4
Commit
d6612ef4
authored
Aug 19, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b5e7e1dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
18 deletions
+33
-18
shareFriend.vue
src/components/Share/shareFriend.vue
+33
-18
No files found.
src/components/Share/shareFriend.vue
View file @
d6612ef4
...
...
@@ -74,10 +74,15 @@
pageSize
:
10
,
},
addMsg
:
{
Id
:
0
,
Name
:
''
,
//分类名称
Level
:
1
,
//层级
ParentId
:
0
,
//父节点编号
Id
:
0
,
//编号
CateId
:
0
,
//分类编号
GoodsId
:
0
,
//商品编号
CoverImg
:
""
,
//封面图
MaterialImg
:
""
,
//素材图片
MaterialInfo
:
""
,
//素材文案
LinkUrl
:
""
,
//链接地址
IsTop
:
0
,
//是否置顶
SortNum
:
0
,
//排序
},
};
},
...
...
@@ -85,7 +90,7 @@
//获取分类列表
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Share/GetShare
Category
List"
,
this
.
msg
,
this
.
apipost
(
"/api/Share/GetShare
FriendPage
List"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
...
...
@@ -98,7 +103,7 @@
},
//新增修改分类
submitform
()
{
this
.
apipost
(
"/api/Share/SetShare
Category
"
,
this
.
addMsg
,
this
.
apipost
(
"/api/Share/SetShare
Friend
"
,
this
.
addMsg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
...
...
@@ -113,9 +118,9 @@
null
);
},
//获取
分类
get
Category
(
Id
)
{
this
.
apipost
(
"/api/Share/GetShare
Category
"
,
{
//获取
实体
get
ShareFriend
(
Id
)
{
this
.
apipost
(
"/api/Share/GetShare
Friend
"
,
{
Id
:
Id
},
res
=>
{
...
...
@@ -123,9 +128,14 @@
var
tempObj
=
res
.
data
.
data
;
if
(
tempObj
)
{
this
.
addMsg
.
Id
=
tempObj
.
Id
;
this
.
addMsg
.
Name
=
tempObj
.
Name
;
this
.
addMsg
.
Level
=
tempObj
.
Level
;
this
.
addMsg
.
ParentId
=
tempObj
.
ParentId
;
this
.
addMsg
.
CateId
=
tempObj
.
CateId
;
this
.
addMsg
.
GoodsId
=
tempObj
.
GoodsId
;
this
.
addMsg
.
CoverImg
=
tempObj
.
CoverImg
;
this
.
addMsg
.
MaterialImg
=
tempObj
.
MaterialImg
;
this
.
addMsg
.
MaterialInfo
=
tempObj
.
MaterialInfo
;
this
.
addMsg
.
LinkUrl
=
tempObj
.
LinkUrl
;
this
.
addMsg
.
IsTop
=
tempObj
.
IsTop
;
this
.
addMsg
.
SortNum
=
tempObj
.
SortNum
;
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
@@ -134,11 +144,11 @@
null
);
},
//删除
分类
remove
Category
(
Id
)
{
//删除
素材
remove
ShareFriend
(
Id
)
{
let
that
=
this
;
that
.
Confirm
(
"确定要删除分类吗?"
,
function
()
{
that
.
apipost
(
"/api/Share/RemoveShare
Category
"
,
{
that
.
apipost
(
"/api/Share/RemoveShare
Friend
"
,
{
Id
:
Id
},
res
=>
{
...
...
@@ -154,9 +164,14 @@
},
clearMsg
()
{
this
.
addMsg
.
Id
=
0
;
this
.
addMsg
.
Name
=
""
;
this
.
addMsg
.
Level
=
1
;
this
.
addMsg
.
ParentId
=
0
;
this
.
addMsg
.
CateId
=
0
;
this
.
addMsg
.
GoodsId
=
0
;
this
.
addMsg
.
CoverImg
=
""
;
this
.
addMsg
.
MaterialImg
=
""
;
this
.
addMsg
.
MaterialInfo
=
""
;
this
.
addMsg
.
LinkUrl
=
""
;
this
.
addMsg
.
IsTop
=
1
;
this
.
addMsg
.
SortNum
=
1
;
},
},
mounted
()
{
...
...
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