|
@@ -1,8 +1,18 @@
|
|
<template>
|
|
<template>
|
|
<div class="mta-card-lv1">
|
|
<div class="mta-card-lv1">
|
|
<div class="mta-card-content-pc mta-hidden-xs">
|
|
<div class="mta-card-content-pc mta-hidden-xs">
|
|
- <img src="#">
|
|
|
|
- <div class="card-info"></div>
|
|
|
|
|
|
+ <img :src="img">
|
|
|
|
+ <div class="card-info">
|
|
|
|
+ <h5>{{title}}</h5>
|
|
|
|
+ <p>{{description}}</p>
|
|
|
|
+ <div class="mta-card-row" v-for="(rowList,index) in tages" :key="`pc-${index}`">
|
|
|
|
+ <template v-for="(des,ind) in rowList">
|
|
|
|
+ <!-- 站位div -->
|
|
|
|
+ <span v-if="des.empty" :key="ind"></span>
|
|
|
|
+ <span :key="ind"><i></i><span>{{des.value}}</span></span>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="mta-card-content-h5 mta-hidden-sm">
|
|
<div class="mta-card-content-h5 mta-hidden-sm">
|
|
<img src="#">
|
|
<img src="#">
|
|
@@ -32,7 +42,7 @@ export default {
|
|
title() {
|
|
title() {
|
|
return this.option.title;
|
|
return this.option.title;
|
|
},
|
|
},
|
|
- des() {
|
|
|
|
|
|
+ description() {
|
|
return this.option.des;
|
|
return this.option.des;
|
|
},
|
|
},
|
|
tages() {
|
|
tages() {
|
|
@@ -43,7 +53,7 @@ export default {
|
|
for (let i = 1; i <= row; i++) {
|
|
for (let i = 1; i <= row; i++) {
|
|
const start = (i - 1) * count;
|
|
const start = (i - 1) * count;
|
|
const end = (i * count)
|
|
const end = (i * count)
|
|
- const curList = this.list.slice(start, end);
|
|
|
|
|
|
+ const curList = list.slice(start, end);
|
|
if (curList.length < count) {
|
|
if (curList.length < count) {
|
|
curList.push({type: 'empty'});
|
|
curList.push({type: 'empty'});
|
|
}
|
|
}
|