Commit 8785da84 by caoyanzhi

update: 微信图文升级

parent 34d2cefa
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
图文消息(共{{ total }}条) 图文消息(共{{ total }}条)
<el-input v-model="listParams.searchName" clearable class="w200 ml10" placeholder="请输入标题/作者" @change="loadImgTextList"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input> <el-input v-model="listParams.searchName" clearable class="w200 ml10" placeholder="请输入标题/作者" @change="loadImgTextList"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf && showSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="loadImgTextList" /> <el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf && showSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="loadImgTextList" />
<el-checkbox class="vertical-middle ml0" v-model="listParams.wxscType" :true-label="3" :false-label="1" label="仅看历史图文" border @change="loadImgTextList" /> <el-checkbox class="vertical-middle ml0" v-model="listParams.wxscType" :true-label="3" :false-label="4" label="仅看历史图文" border @change="loadImgTextList" />
</div> </div>
<div> <div>
<el-button type="primary" @click="add">新建图文</el-button> <el-button type="primary" @click="add">新建图文</el-button>
...@@ -19,15 +19,16 @@ ...@@ -19,15 +19,16 @@
<div class="label-hidden"><el-radio :label="scope.row"></el-radio></div> <div class="label-hidden"><el-radio :label="scope.row"></el-radio></div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="图" align="left"> <el-table-column label="图文信息" align="left">
<template slot-scope="scope"> <div class="media-info" slot-scope="scope">
<img width="100" height="100" :src="scope.row.itemList.length ? scope.row.itemList[0].qcloudImageUrl || '' : ''" alt="" /> <img width="100" height="100" :src="scope.row.itemList.length ? scope.row.itemList[0].qcloudImageUrl || '' : ''" alt="" />
</template> <div class="media-title">
</el-table-column> <p>
<el-table-column label="图文标题" align="left"> 标题:<a class="blue" :href="scope.row.itemList.length ? scope.row.itemList[0].mediaUrl || '' : ''" target="_blank">{{ scope.row.itemList.length ? scope.row.itemList[0].titleName || '' : '' }}</a>
<template slot-scope="scope"> </p>
<a class="blue" :href="scope.row.itemList.length ? scope.row.itemList[0].mediaUrl || '' : ''" target="_blank">{{ scope.row.itemList.length ? scope.row.itemList[0].titleName || '' : '' }}</a> <p>图文m_id:{{ scope.row.draftMediaId }}</p>
</template> </div>
</div>
</el-table-column> </el-table-column>
<el-table-column label="作者" prop="authorName" align="left"> <el-table-column label="作者" prop="authorName" align="left">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -110,7 +111,7 @@ export default { ...@@ -110,7 +111,7 @@ export default {
pageSize: 20, pageSize: 20,
searchName: '', searchName: '',
showSelfFlag: this.showSelfFlag || '', showSelfFlag: this.showSelfFlag || '',
wxscType: '' wxscType: 4
}, },
total: 0, total: 0,
loading: false, loading: false,
...@@ -207,6 +208,16 @@ export default { ...@@ -207,6 +208,16 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.media-info {
display: flex;
align-items: center;
.media-title {
display: flex;
flex-direction: column;
justify-content: space-around;
padding-left: 15px;
}
}
.dm-imgtext_head { .dm-imgtext_head {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
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