WingsJ
WingsJ
  • 发布:2019-08-08 16:06
  • 更新:2019-08-08 16:06
  • 阅读:1454

请求的数据,数组concat,页面v-for无法渲染

分类:uni-app

<view class="propaganda borderTop" v-for="(item, index) in list" :key="item.index" @tap="goTovideo(item.Id)">
<view class="left">
<image class="imageBg" :src="item.VideoCoverPath" mode="aspectFill"></image>
<image class="play" :src="play" mode="aspectFill"></image>
</view>
<view class="right">
<view class="propaganda-title">
{{item.VideoTitle}}
</view>
<view class="propaganda-txt">
{{item.VideoDescription}}
</view>
</view>
</view>

js::
let _self = this;
console.log("文章")
getKnowledgeArticleListByPageByApp(_self.params).then(res => {
if(res.Status === 200){
uni.hideNavigationBarLoading(); //显示加载动画
_self.list.push(res.Data.Entity[0])
//_self.list = _self.list.concat(res.Data.Entity)
//_self.$set(_self.list,0,res.Data.Entity[0])
console.log(this.list.length)
console.log(JSON.stringify(this.list))
if(10 * _self.page >= res.Data.AllCount){
_self.status = "noMore"
}
}
})

2019-08-08 16:06 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复