<template v-for="item in list">
<uni-card spacing="0" padding="0">
<view class="card-body">
<view class="card-body-title">
<text>{{item.name}}</text>
</view>
<view class="card-body-subTitle">
<text>{{item.date}}</text>
</view>
<view class="card-body-content">
<text>
<text class="card-body-content-days">{{item.date|calcDays}}</text><text>天后</text>
</text>
</view>
</view>
<view slot="actions" class="card-actions">
<view class="card-actions-item" @click="openDialog(item)">
<uni-icons type="info" color="#999" size="18"></uni-icons>
<text class="card-actions-item-text">详情</text>
</view>
<view class="card-actions-item-line"></view>
<view class="card-actions-item" @click="modifyItem(item)">
<uni-icons type="compose" color="#999" size="18"></uni-icons>
<text class="card-actions-item-text">修改</text>
</view>
<view class="card-actions-item-line"></view>
<view class="card-actions-item">
<uni-icons type="fire" color="#999" size="18"></uni-icons>
<text class="card-actions-item-text">开始学习</text>
</view>
</view>
</uni-card>
</template>
openDialog(item) {
this.currentItem = {
...item
}
this.$refs.alertDialog.open()
}