页面完善

This commit is contained in:
@fawn-nine
2023-11-08 17:31:37 +08:00
parent b08bc52662
commit 346ec9d615
5 changed files with 218 additions and 151 deletions

View File

@@ -661,7 +661,7 @@
.then(res => {
if (res.code == 0) {
console.log(res, '任务信息')
if (res.result != {}) {
if (res.result != {} && res.result) {
this.taskInfo = res.result
this.taskInfo.video != '' ? this.poster = this.taskInfo.video +
"?x-oss-process=video/snapshot,t_0,f_jpg" : ''
@@ -735,7 +735,7 @@
return
}
if (!this.taskInfo.id) {
if (this.taskInfo != null && !this.taskInfo.id) {
uni.showToast({
title: '当天未发布打卡任务,不可签到哦',
icon: 'none'