cardList: [
{
menuName: "当日挂号",
path: "/pages/comm/quryOtpHosp"
},
{
menuName: "预约挂号"
},
{
menuName: "预约报到"
},
{
menuName: "门诊缴费"
},
{
menuName: "电子凭条"
},
{
menuName: "缴费记录"
},
{
menuName: "报告查询"
},
{
menuName: "核酸预约"
},
{
menuName: "我的排号"
},
{
menuName: "预约护理"
},
{
menuName: "病案复印"
},
{
menuName: "院内导航"
},
{
menuName: "智能分诊"
},
{
menuName: "医技预约"
},
{
menuName: "住院清单"
},
{
menuName: "住院押金"
},
]
<!-- #ifdef MP-WEIXIN -->
<swiper class="swiper full" indicator-dots="true" interval="3000" duration="500" >
<swiper-item v-for="count in (cardList.length / 8)" :key="count" class="box full" >
<view class="card box" v-for="(card, index) in cardList.slice(count*8, (count+1)*8)" :key="index" @tap="toMenu(card)">
{{card.menuName}}
</view>
</swiper-item>
</swiper>
<!-- #endif -->
toMenu(card){
console.log(card);
}
2 个回复
DCloud_UNI_Anne
请提供简单、可稳定复现、能直接运行的完整示例(上传附件),方便我们快速排查问题哦。
【bug优先处理规则】https://ask.dcloud.net.cn/article/38139
不想你丶 - 90IT男
我也出现了这种情况,点击的时候提示这个错误,不带参数就没有问题