Explorar o código

修改学分接口

littleblue55 hai 1 día
pai
achega
d494d4d114

+ 4 - 4
pages/goOnEdu/course/courseMine/mineCredits/mineCredits.vue

@@ -20,9 +20,9 @@
 					{{item.year}}
 				</view>
 				<view class="list-item">
-					{{item.credit}}
+					{{item.gotCredit}}/{{item.credit}}
 				</view>
-				<view class="list-item" v-html="item.annIns!=='学分未达标不能申请年检' ? '完成学分' : '学分未达标,<br/>不能申请年检'"></view>
+				<view class="list-item" v-html="item.annIns!=='学分未达标不能申请年检' ? item.annIns : '学分未达标,<br/>不能申请年检'"></view>
 				<view class="list-item">
 					<view class="button" :class="[item.finish ? 'primary' : 'error']">
 						{{item.finish ? '已完成观看' : '未完成'}}
@@ -41,13 +41,13 @@
 	const initList = () => {
 		loadCredit().then(res=>{
 			if(res && res?.code ===0){
-				list.value = res.data
+				list.value = res.data.creditList
 			}
 		})
 	}
 	onLoad(() => {
 		initList()
-		console.log('onLoad')
+		// console.log('onLoad')
 	})
 </script>