让用户确认数据流到组件没: [debug now=0 max=0 state=1] 如果看不到此行说明组件根本没渲染 / 数据未到达; 看到 now/max 字段为空说明后端字段缺失。
@@ -28,6 +28,7 @@
<view class="na-bottom-left adf" v-if="item.activeState===0||item.activeState===1">
报名中 · 已报{{ item.recruitmentNow || 0 }}{{ item.recruitmentMax ? '/' + item.recruitmentMax : '' }}人
</view>
+ <view class="na-bottom-debug">[debug now={{ item.recruitmentNow }} max={{ item.recruitmentMax }} state={{ item.activeState }}]</view>
<!-- <view class="na-bottom-right" @click.stop="toApply">立即报名</view> -->
@@ -171,6 +172,11 @@
&-count{
color: #70CF52;
}
+ &-debug{
+ font-size: 20rpx;
+ color: #999;
+ margin-top: 4rpx;
+ }
&-right{
background: #B7F358;
border-radius: 27rpx;