bug--修复banner背景颜色取错字段

This commit is contained in:
taozi
2020-11-23 19:08:01 +08:00
parent b398002e10
commit 9289c1cb67

View File

@ -40,7 +40,7 @@
// 获取轮播图 // 获取轮播图
let item = this.detail[this.swiperCurrent]; let item = this.detail[this.swiperCurrent];
// 获取轮播图颜色 // 获取轮播图颜色
let bgcolor = item.bgcolor; let bgcolor = item.color;
// 颜色不存在 // 颜色不存在
if (bgcolor === '') { if (bgcolor === '') {
that.$set(item, 'bgcolor', '#c40414'); that.$set(item, 'bgcolor', '#c40414');