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

@@ -65,7 +65,7 @@
</text>
</view>
</view>
<view class="btn_box ">
<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
})
});
},

View File

@@ -125,7 +125,7 @@
</view>
</view>
{{curReplay.haveGiveScore}}
<view class="btn_box ">
<view class="btn_box " v-if="classState != '2' && classState != '0'">
<button class="submit" @click="onSubmit" v-show="!form.hasGiveScore">提 交</button>
</view>
</template>
@@ -596,8 +596,9 @@
}).catch(e => {
uni.showToast({
title: '操作失败',
icon: 'error'
title: e.errMsg,
icon: 'error',
duration:3000
})
});
// }).catch(err => {

View File

@@ -78,7 +78,7 @@
</uni-forms-item>
</uni-forms> -->
</view>
<view class="btn_box"><button @click="onSubmit">提 交</button></view>
<view class="btn_box" v-if="classState != '2' && classState != '0'"><button @click="onSubmit">提 交</button></view>
</template>
</view>
</view>
@@ -198,8 +198,9 @@
}).catch(e => {
uni.showToast({
title: '操作失败',
icon: 'error'
title: e.errMsg,
icon: 'error',
duration:3000
})
});
// }).catch(err => {