This commit is contained in:
@fawn-nine
2024-08-09 17:10:39 +08:00
parent c753ab18a3
commit 7c7c96f630
13 changed files with 1674 additions and 314 deletions

View File

@@ -52,6 +52,7 @@
<u-divider v-show="status == 3" text="暂无数据"></u-divider>
<u-divider v-show="status == 1" text="加载中..."></u-divider>
</view>
<z-navigation></z-navigation>
</view>
</template>
@@ -67,13 +68,15 @@
status: 88,
loadFlag: false,
pageName: '',
taskList: []
taskList: [],
roleCode:'',
}
},
onLoad(e) {
// console.log('taskLIst1',taskLIst1);
console.log('e',e);
this.classId = e.classId
this.pageType = e.type
this.roleCode = e.roleCode
if (e.type == '0') {
this.pageName = '作业列表'
} else if (this.pageName = '医案列表') {
@@ -81,7 +84,7 @@
} else {
this.pageName = '心得列表'
}
this.getList()
// this.getList()
},
onPullDownRefresh() {
this.pPage = 0
@@ -95,6 +98,9 @@
}
},
onShow() {
this.pPage = 0
this.taskList = []
this.getList()
// this.getList()
},
onBackPress() {
@@ -109,7 +115,7 @@
clickTask(item){
// console.log('options',options);
uni.navigateTo({
url:`/pages/miniClass/taskDetailForMan?id=${item.id}`
url:`/pages/miniClass/taskDetailForMan?id=${item.id}&roleCode=${this.roleCode}&type=${this.pageType}`
})
},
getList() {
@@ -209,7 +215,7 @@
box-shadow: none !important;
// border-bottom: 1px solid #eee;
border-radius: 20rpx;
padding: 20rpx;
padding: 20rpx ;
margin-bottom: 20rpx;
.leve1 {
align-items: center;
@@ -222,7 +228,7 @@
.leve2 { justify-content: space-between;
color: #666; font-size: 24rpx;
.item{text-align: center;}
.item{text-align: center; padding-top: 0; padding-bottom: 0; margin-bottom: 0;}
}
.leve3 {