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
09c04b78
Commit
09c04b78
authored
Aug 20, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
2610bd18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
12 deletions
+36
-12
shareFriend.vue
src/components/Share/shareFriend.vue
+36
-12
No files found.
src/components/Share/shareFriend.vue
View file @
09c04b78
...
...
@@ -40,7 +40,10 @@
</el-tag>
</
template
>
</el-table-column>
<el-table-column
prop=
"MaterialInfo"
label=
"发圈文案"
width=
"300"
>
<el-table-column
label=
"发圈文案"
width=
"300"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
MaterialInfo
}}
<img
@
click=
"getMaterInfo(scope.row)"
style=
"margin-left:3px;"
src=
"../../assets/img/userman/edit1.png"
alt=
""
>
</
template
>
</el-table-column>
<el-table-column
prop=
"MaterialImg"
label=
"图片视频"
width=
"300"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -58,7 +61,7 @@
<div
v-if=
"sort_goods_id != scope.row.Id"
flex=
"dir:left cross:center"
>
<span>
{{
scope
.
row
.
SortNum
}}
</span>
<el-button
class=
"edit-sort"
type=
"text"
@
click=
"sort_goods_id=scope.row.Id"
>
<img
s
rc=
"../../assets/img/userman/edit
.png"
alt=
""
>
<img
s
tyle=
"margin-left:3px;"
src=
"../../assets/img/userman/edit1
.png"
alt=
""
>
</el-button>
</div>
<div
style=
"display: flex;align-items: center"
v-else
>
...
...
@@ -108,7 +111,7 @@
<div
class=
"conten_indder"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"选择商品"
>
<el-button
type=
"text"
>
(
{{
addMsg
.
GoodsId
}}
)
{{
g
oodsName
}}
</el-button>
<el-button
type=
"text"
>
(
{{
addMsg
.
GoodsId
}}
)
{{
addMsg
.
G
oodsName
}}
</el-button>
<el-button
type=
"text"
@
click=
"isShowGoods=true"
>
选择商品
</el-button>
</el-form-item>
<el-form-item
label=
"动态文案"
prop=
"MaterialInfo"
>
...
...
@@ -202,7 +205,18 @@
<el-button
size=
"small"
type=
"danger"
@
click=
"getGoodsChoice()"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 修改发圈文案 -->
<el-dialog
title=
"编辑发圈文案"
:visible
.
sync=
"isShowText"
width=
"800px"
>
<el-form
label-width=
"80px"
>
<el-form-item
label=
"文案内容"
>
<el-input
type=
"textarea"
v-model=
"updateTextInfo.MaterialInfo"
:rows=
"10"
></el-input>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"isShowText=false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"danger"
@
click=
"updateMaterialInfo()"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -237,7 +251,7 @@
CateId
:
0
,
//分类编号
GoodsId
:
0
,
//商品编号
CoverImg
:
""
,
//封面图
GoodsName
:
''
,
MaterialInfo
:
""
,
//素材文案
LinkUrl
:
""
,
//链接地址
IsTop
:
0
,
//是否置顶
...
...
@@ -258,7 +272,11 @@
isSearch
:
-
1
,
//判断选择查询还是新增的
isShowGoods
:
false
,
//选择商品弹窗
goodsName
:
''
,
//商品名称
isShowText
:
false
,
//发圈文案弹窗
updateTextInfo
:{
Id
:
0
,
MaterialInfo
:
''
}
};
},
methods
:
{
...
...
@@ -417,16 +435,22 @@
null
);
},
//更新文案
updateMaterialInfo
(
item
)
{
this
.
apipost
(
"/api/Share/SetShareFriendMaterialInfo"
,
{
Id
:
item
.
Id
,
MaterialInfo
:
item
.
MaterialInfo
getMaterInfo
(
item
){
this
.
isShowText
=
true
;
this
.
updateTextInfo
.
Id
=
item
.
Id
;
this
.
updateTextInfo
.
MaterialInfo
=
item
.
MaterialInfo
;
},
//更新文案
updateMaterialInfo
()
{
if
(
this
.
updateTextInfo
.
MaterialInfo
==
''
){
this
.
Error
(
'请输入文案内容'
);
}
this
.
apipost
(
"/api/Share/SetShareFriendMaterialInfo"
,
this
.
updateTextInfo
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
this
.
isShowText
=
false
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -483,7 +507,7 @@
this
.
addMsg
.
ImgList
.
push
(
x
.
Path
);
})
}
this
.
g
oodsName
=
chooseGoods
[
0
].
Name
;
this
.
G
oodsName
=
chooseGoods
[
0
].
Name
;
this
.
addMsg
.
GoodsId
=
chooseGoods
[
0
].
Id
this
.
isShowGoods
=
false
;
this
.
$refs
.
choiceGood
.
toggleSelection
();
...
...
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