|
|
@ -126,7 +126,7 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// 走马灯商品列表,五个商品为一组
|
|
|
|
// 走马灯商品列表,五个商品为一组
|
|
|
|
getFormatData(list) {
|
|
|
|
getFormatData(list) {
|
|
|
|
const listCopy = [...list, ...list] || _.cloneDeep(list);
|
|
|
|
const listCopy = _.cloneDeep(list);
|
|
|
|
const part = Math.ceil(listCopy.length / CAROUSEL_COUNT);
|
|
|
|
const part = Math.ceil(listCopy.length / CAROUSEL_COUNT);
|
|
|
|
if (part === 1) {
|
|
|
|
if (part === 1) {
|
|
|
|
this.goodsList = [listCopy.splice(0, CAROUSEL_COUNT)];
|
|
|
|
this.goodsList = [listCopy.splice(0, CAROUSEL_COUNT)];
|
|
|
|