This commit is contained in:
@fawn-nine
2024-09-20 16:41:08 +08:00
parent eec954c991
commit f8f03010c7
3 changed files with 15 additions and 10 deletions

View File

@@ -64,8 +64,8 @@
{{item}}
</text>
</view>
</view>
<view class="btn_box ">
</view>
<view class="btn_box " v-if="classState != '2' && classState != '0'">
<button class="submit" @click="onSubmit"> </button>
</view>
</template>
@@ -103,12 +103,14 @@
score: undefined, //分数
id: undefined,
},
classState:undefined,
}
},
onLoad(e) {
console.log('e', e);
this.classId = e.classId
this.pageType = e.type
this.classState = e.classState
this.roleCode = e.roleCode
if (e.type == '0') {
this.pageName = '作业列表'
@@ -205,8 +207,9 @@
}).catch(e => {
uni.showToast({
title: '操作失败',
icon: 'error'
title: e.errMsg,
icon: 'error',
duration:3000
})
});
},