master
chen 2022-08-17 18:20:07 +08:00
parent 8c01b361dd
commit 002e2daf18
2 changed files with 11 additions and 2 deletions

View File

@ -9,7 +9,10 @@
<video :src="item.video" :controls="false" object-fit="contain" :show-center-play-btn="false" style="height: 388rpx;" class="width100"></video> <video :src="item.video" :controls="false" object-fit="contain" :show-center-play-btn="false" style="height: 388rpx;" class="width100"></video>
<image class="posia" src="/static/tabbar/icon-play.png" mode="" style="width: 70rpx;height: 70rpx;" lazy-load></image> <image class="posia" src="/static/tabbar/icon-play.png" mode="" style="width: 70rpx;height: 70rpx;" lazy-load></image>
</view> </view>
<view class="fon24 pad20" style="color: #7f7f7f;">{{item.created_at.split('-').join('.')}}</view> <view class="disjbac fon24 pad20" style="padding-bottom: 10rpx;">
<view class="">{{item.title}}</view>
<view class="" style="color: #7f7f7f;">{{item.created_at.split('-').join('.')}}</view>
</view>
</view> </view>
<view class="" v-if="loading"> <view class="" v-if="loading">
<pitera :textStr="`${noMore && total > dataList.length?'上滑加载更多':'到底了'}~~`" textColor="#b0aaa9" paddingStr="40rpx 0 20rpx 0"></pitera> <pitera :textStr="`${noMore && total > dataList.length?'上滑加载更多':'到底了'}~~`" textColor="#b0aaa9" paddingStr="40rpx 0 20rpx 0"></pitera>
@ -42,7 +45,7 @@
this.getPractice(); this.getPractice();
}, },
onReachBottom() { onReachBottom() {
if(this.total!=this.dataList){ if(this.total!=this.dataList.length){
this.page++; this.page++;
this.getPractice(); this.getPractice();
} }

View File

@ -9,6 +9,9 @@
<view class="mar-s40">视频上传</view> <view class="mar-s40">视频上传</view>
<input @tap="uploadVideo" class="width100 radius4 mar-s20 pad-zy20 tcenter" type="text" placeholder="浏览..." disabled <input @tap="uploadVideo" class="width100 radius4 mar-s20 pad-zy20 tcenter" type="text" placeholder="浏览..." disabled
style="border: 2rpx solid #ececec;background-color: #f5f5f5;height: 70rpx;box-sizing: border-box;"> style="border: 2rpx solid #ececec;background-color: #f5f5f5;height: 70rpx;box-sizing: border-box;">
<view class="pad-s20" v-if="videoInfo.full_src">
<video :src="videoInfo.full_src" :controls="true" object-fit="contain" :show-center-play-btn="true" style="height: 180rpx;" class="width100"></video>
</view>
<input @tap="submitEv" class="width100 radius4 mar-s60 tcenter" type="text" placeholder="立即上传" placeholder-style="color:#FFFFFF;" disabled <input @tap="submitEv" class="width100 radius4 mar-s60 tcenter" type="text" placeholder="立即上传" placeholder-style="color:#FFFFFF;" disabled
style="border: 2rpx solid #e42417;background-color: #e42417;height: 70rpx;box-sizing: border-box;"> style="border: 2rpx solid #e42417;background-color: #e42417;height: 70rpx;box-sizing: border-box;">
</view> </view>
@ -77,6 +80,9 @@
this.title = ''; this.title = '';
this.videoInfo.full_src = ''; this.videoInfo.full_src = '';
this.$toolAll.tools.showToast('上传练习视频成功'); this.$toolAll.tools.showToast('上传练习视频成功');
setTimeout(()=>{
uni.navigateBack({delta:1})
},1000)
} }
setTimeout(()=>{ setTimeout(()=>{
uni.hideToast(); uni.hideToast();