diff --git a/pages_tool/contact/contact.vue b/pages_tool/contact/contact.vue index 19c539d..f9719da 100644 --- a/pages_tool/contact/contact.vue +++ b/pages_tool/contact/contact.vue @@ -99,10 +99,13 @@ @@ -214,6 +217,16 @@ export default { fileList: [], // 企业文件 videoList: [], // 企业视频 channelList: [], // 视频号 + + diyChannelSettings: { + channel_display_style: 'fixed', + channel_aspect_ratio: '16:9', + channel_show_view_count: true, + channel_row_count: 2, + channel_title_line_clamp: 2, + channel_show_play_btn: true, + }, // 自定义设置 + ismessage: 0, currentVideo: null, // 当前播放的视频 Form: { @@ -283,6 +296,13 @@ export default { this.showVideoListDiy = res.diy.is_video == 1; this.showFileListDiy = res.diy.is_file == 1; this.showChannelListDiy = res.diy.is_channel == 1; + + // 遍历res.diy所有key,然后判断key前缀包含channel_,如果包含,就赋值给diyChannelSettings + for (let key in res.diy) { + if (key.startsWith('channel_')) { + this.diyChannelSettings[key] = res.diy[key]; + } + } } }, fail: res => {}