chore(电子名片): 针对上传的封面及头像,转换图片路径
This commit is contained in:
@@ -253,7 +253,16 @@ export default {
|
|||||||
this.dataList = res.data; // 电子名片信息
|
this.dataList = res.data; // 电子名片信息
|
||||||
this.fileList = res.file_list; // 企业文件
|
this.fileList = res.file_list; // 企业文件
|
||||||
this.videoList = res.video_list; // 企业视频
|
this.videoList = res.video_list; // 企业视频
|
||||||
this.channelList = res.channel_list.map(item => this.$util.snakeToCamelForObj(item)); // 视频号
|
this.channelList = res.channel_list.map(item => this.$util.snakeToCamelForObj(item)).map(item => {
|
||||||
|
if (item.coverImageType === 'upload') {
|
||||||
|
item.coverUrl = this.$util.img(item.coverUrl);
|
||||||
|
}
|
||||||
|
if (item.avatarImageType === 'upload') {
|
||||||
|
item.avatarUrl = this.$util.img(item.avatarUrl);
|
||||||
|
}
|
||||||
|
return item;
|
||||||
|
}); // 视频号
|
||||||
|
|
||||||
this.shop = res.shop;
|
this.shop = res.shop;
|
||||||
this.personnel_bg = res.set.personnel_bg ? res.set.personnel_bg : 'public/static/img/diy_view/member_info_bg.png';
|
this.personnel_bg = res.set.personnel_bg ? res.set.personnel_bg : 'public/static/img/diy_view/member_info_bg.png';
|
||||||
this.markers = [{
|
this.markers = [{
|
||||||
|
|||||||
Reference in New Issue
Block a user