|
@@ -65,8 +65,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <cuoti ref="wrongRef" :cardId="cardId" :list="data.wrongList" @back="handleBackFromCuoti"></cuoti>
|
|
|
- <CustomTabBar :cardId="cardId+''" :nianji="nianji" :zhangId="zhangId"></CustomTabBar>
|
|
|
+ <cuoti ref="wrongRef" :subjectId="subjectId" :list="data.wrongList" @back="handleBackFromCuoti"></cuoti>
|
|
|
+ <CustomTabBar></CustomTabBar>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -89,7 +89,7 @@
|
|
|
|
|
|
const zhangId = ref(null);
|
|
|
const nianji = ref(null);
|
|
|
- const cardId = ref(null);
|
|
|
+ const subjectId = ref(null);
|
|
|
|
|
|
const wrongRef = ref(null);
|
|
|
|
|
@@ -121,7 +121,7 @@
|
|
|
},
|
|
|
wrongList: [],
|
|
|
})
|
|
|
- cardId.value = data.current+1;
|
|
|
+ subjectId.value = data.current+1;
|
|
|
function handleBack() {
|
|
|
uni.redirectTo({
|
|
|
url: '/pages/my/index'
|
|
@@ -137,7 +137,7 @@
|
|
|
function onChangeTab(e) {
|
|
|
if (data.current !== e.currentIndex) {
|
|
|
data.current = e.currentIndex;
|
|
|
- cardId.value = data.current+1;
|
|
|
+ subjectId.value = data.current+1;
|
|
|
if (data.current == 0) {
|
|
|
data.shuxue.page = 0
|
|
|
} else if (data.current == 1) {
|
|
@@ -151,7 +151,7 @@
|
|
|
const opt = {
|
|
|
page: 1,
|
|
|
size: 10, // 固定查询10条
|
|
|
- cardId: data.current + 1 // 前台索引加1为学科cardId
|
|
|
+ subjectId: data.current + 1 // 前台索引加1为学科cardId
|
|
|
}
|
|
|
|
|
|
if (code == 0) {
|
|
@@ -214,7 +214,7 @@
|
|
|
const opt = {
|
|
|
page: 1,
|
|
|
size: 10, // 固定查询10条
|
|
|
- cardId: data.current + 1 // 前台索引加1为学科cardId
|
|
|
+ subjectId: data.current + 1 // 前台索引加1为学科cardId
|
|
|
}
|
|
|
|
|
|
if (code == 0) {
|
|
@@ -300,7 +300,7 @@
|
|
|
|
|
|
function getCuotiData(item) {
|
|
|
getWrongInfo({
|
|
|
- cardId: data.current + 1,
|
|
|
+ subjectId: data.current + 1,
|
|
|
cdate: item.cdate
|
|
|
}).then(res => {
|
|
|
formatListToUse(res.data)
|