Commit 1d1f08c6 by caoyanzhi

update: 微信图文升级

parent ead5a679
......@@ -66,6 +66,7 @@ export default {
},
created() {
this.loadImgList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理' }, { name: '微信营销', path: '' }, { name: '素材库', path: '' }, { name: '图文', path: '' }]);
},
data() {
return {
......
......@@ -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));
......
......@@ -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');
}
}
}
......
......@@ -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 => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment