Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
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
marketing-web
marketing
Commits
1d1f08c6
Commit
1d1f08c6
authored
Dec 22, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 微信图文升级
parent
ead5a679
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
+21
-3
index.vue
src/components/libs/imgTemp/index.vue
+1
-0
index.vue
src/components/libs/imgTextTemp/index.vue
+4
-2
syncImgtext.vue
src/components/libs/imgTextTemp/syncImgtext.vue
+4
-0
editor.vue
src/views/wechat/editor.vue
+12
-1
No files found.
src/components/libs/imgTemp/index.vue
View file @
1d1f08c6
...
...
@@ -66,6 +66,7 @@ export default {
},
created
()
{
this
.
loadImgList
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
},
{
name
:
'微信营销'
,
path
:
''
},
{
name
:
'素材库'
,
path
:
''
},
{
name
:
'图文'
,
path
:
''
}]);
},
data
()
{
return
{
...
...
src/components/libs/imgTextTemp/index.vue
View file @
1d1f08c6
...
...
@@ -82,7 +82,7 @@
</el-table>
</el-radio-group>
<dm-pagination
v-show=
"textImgList.length"
background
class=
"dm-pagination"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"listParams.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"listParams.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"total"
></dm-pagination>
<sync-imgtext
:wxsc-type=
"getWxscType"
:show
.
sync=
"syncImgTextShow"
></sync-imgtext>
<sync-imgtext
:wxsc-type=
"getWxscType"
:show
.
sync=
"syncImgTextShow"
@
syncSuccess=
"loadImgTextList"
></sync-imgtext>
</section>
</template>
...
...
@@ -138,8 +138,10 @@ export default {
</span>
</div>`
);
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
},
{
name
:
'微信营销'
,
path
:
''
},
{
name
:
'素材库'
,
path
:
''
},
{
name
:
'图文发草稿箱'
,
path
:
''
}]);
}
else
{
this
.
$store
.
commit
(
'mutations_layoutTips'
,
''
);
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
},
{
name
:
'微信营销'
,
path
:
''
},
{
name
:
'素材库'
,
path
:
''
},
{
name
:
'图文发布列表'
,
path
:
''
}]);
}
this
.
loadImgTextList
();
},
...
...
@@ -199,7 +201,7 @@ export default {
this
.
$set
(
row
,
'loading'
,
true
);
wechatDraftPublish
({
imageTextId
:
row
.
imageTextId
})
.
then
(
res
=>
{
this
.
$message
.
success
(
'发布
成功!
'
);
this
.
$message
.
success
(
'发布
中
'
);
this
.
loadImgTextList
();
})
.
finally
(()
=>
this
.
$set
(
row
,
'loading'
,
false
));
...
...
src/components/libs/imgTextTemp/syncImgtext.vue
View file @
1d1f08c6
...
...
@@ -55,6 +55,9 @@ export default {
methods
:
{
close
()
{
this
.
$emit
(
'update:show'
,
false
);
this
.
$nextTick
(()
=>
{
this
.
size
=
5
;
});
},
async
getSyncInfo
()
{
this
.
loading
=
true
;
...
...
@@ -71,6 +74,7 @@ export default {
this
.
$tips
({
type
:
'success'
,
message
:
'同步成功'
});
this
.
loadStatus
=
1
;
this
.
close
();
this
.
$emit
(
'syncSuccess'
);
}
}
}
...
...
src/views/wechat/editor.vue
View file @
1d1f08c6
...
...
@@ -221,7 +221,18 @@ export default {
},
created
()
{
this
.
getMarketingUserInfo
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
},
{
name
:
'微信营销'
,
path
:
''
},
{
name
:
'素材库'
,
path
:
'/wechat/temp'
}]);
// editor
// editor:id
// check-imgtext:id
const
bread
=
[{
name
:
'营销管理'
},
{
name
:
'微信营销'
,
path
:
''
},
{
name
:
'素材库'
,
path
:
'/wechat/temp'
}];
if
(
this
.
$route
.
path
==
'/wechat/editor'
)
{
bread
.
push
({
name
:
'新建图文'
,
path
:
''
});
}
else
if
(
this
.
$route
.
path
.
indexOf
(
'check-imgtext'
)
>=
0
)
{
bread
.
push
({
name
:
'查看图文'
,
path
:
''
});
}
else
{
bread
.
push
({
name
:
'编辑图文'
,
path
:
''
});
}
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
bread
);
//监听获取图片 封面图或者正文图片
// eslint-disable-next-line
$bus
.
$on
(
'img-temp-choose'
,
val
=>
{
...
...
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