chore: 根据后端API设置相关模块的显示
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
<!-- 企业视频 -->
|
<!-- 企业视频 -->
|
||||||
|
|
||||||
<!-- 视频号视频列表 -->
|
<!-- 视频号视频列表 -->
|
||||||
<view class="view_channel_container">
|
<view class="view_channel_container" v-if="showChannelListDiy">
|
||||||
<diy-channel-list :value="{
|
<diy-channel-list :value="{
|
||||||
showStyle: 'fixed',
|
showStyle: 'fixed',
|
||||||
rowCount: 3,
|
rowCount: 3,
|
||||||
@@ -168,6 +168,14 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
minScrollTop: 100,
|
minScrollTop: 100,
|
||||||
|
|
||||||
|
showKefuDiy: false, // 是否显示客服及留言
|
||||||
|
showContactListDiy: false, // 是否显示联系人列表
|
||||||
|
showMapDiy: false, // 是否显示地图
|
||||||
|
showVideoListDiy: false, // 是否显示企业视频
|
||||||
|
showFileListDiy: false, // 是否显示企业文件
|
||||||
|
showChannelListDiy: false, // 是否显示视频号
|
||||||
|
|
||||||
dataList: [], // 电子名片信息
|
dataList: [], // 电子名片信息
|
||||||
fileList: [], // 企业文件
|
fileList: [], // 企业文件
|
||||||
videoList: [], // 企业视频
|
videoList: [], // 企业视频
|
||||||
@@ -219,6 +227,14 @@ export default {
|
|||||||
latitude: this.shop.latitude,
|
latitude: this.shop.latitude,
|
||||||
longitude: this.shop.longitude
|
longitude: this.shop.longitude
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
// 设置是否展示各模块
|
||||||
|
this.showKefuDiy = res.diy.is_kefu == 1;
|
||||||
|
this.showContactListDiy = res.diy.is_contact == 1;
|
||||||
|
this.showMapDiy = res.diy.is_map == 1;
|
||||||
|
this.showVideoListDiy = res.diy.is_video == 1;
|
||||||
|
this.showFileListDiy = res.diy.is_file == 1;
|
||||||
|
this.showChannelListDiy = res.diy.is_channel == 1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: res => {}
|
fail: res => {}
|
||||||
|
|||||||
Reference in New Issue
Block a user