Commit 67568518 authored by zhengke's avatar zhengke

修改

parent a6717728
...@@ -177,6 +177,11 @@ ...@@ -177,6 +177,11 @@
if(data.dataList&&data.dataList.length>0){ if(data.dataList&&data.dataList.length>0){
this.setPractise(data.dataList[0].Id); this.setPractise(data.dataList[0].Id);
} }
setTimeout(x=>{
if(data.dataList.length>0){
data.loading=false;
}
})
} }
}) })
}, },
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<template> <template>
<view class="WrongContent"> <view class="WrongContent">
<view class="Wrong_Top"> <view class="Wrong_Top">
<view @click="goWrongTopic(3)"> <view @click="goWrongTopic(3,dataObj.wordsWrongTotalCount)">
<view class="Wr_Name">单词</view> <view class="Wr_Name">单词</view>
<view class="img_Box"> <view class="img_Box">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word.png" <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word.png"
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</view> </view>
</view> </view>
</view> </view>
<view style="margin-right:0;" @click="goWrongTopic(4)"> <view style="margin-right:0;" @click="goWrongTopic(4,dataObj.grammarWrongTotalCount)">
<view class="Wr_Name">语法</view> <view class="Wr_Name">语法</view>
<view class="img_Box"> <view class="img_Box">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/gramer.png" <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/gramer.png"
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="Wrong_Top" @click="goWrongTopic(5)"> <view class="Wrong_Top" @click="goWrongTopic(5,dataObj.readingWrongTotalCount)">
<view> <view>
<view class="Wr_Name">阅读理解</view> <view class="Wr_Name">阅读理解</view>
<view class="img_Box"> <view class="img_Box">
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</view> </view>
</view> </view>
</view> </view>
<view style="margin-right:0;" @click="goWrongTopic(6)"> <view style="margin-right:0;" @click="goWrongTopic(6,dataObj.listeningWrongTotalCount)">
<view class="Wr_Name">听力</view> <view class="Wr_Name">听力</view>
<view class="img_Box"> <view class="img_Box">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/listen.png" <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/listen.png"
...@@ -163,24 +163,26 @@ ...@@ -163,24 +163,26 @@
}) })
}, },
//跳转 //跳转
goWrongTopic(Type){ goWrongTopic(Type,count){
let StartId=0; if(count>0){
//3单词 4语法 5阅读理解 6听力 let StartId=0;
if(Type==3){ //3单词 4语法 5阅读理解 6听力
StartId = data.dataObj.wordsWrongStartId; if(Type==3){
} StartId = data.dataObj.wordsWrongStartId;
if(Type==4){ }
StartId = data.dataObj.grammarWrongStartId; if(Type==4){
} StartId = data.dataObj.grammarWrongStartId;
if(Type==5){ }
StartId = data.dataObj.readingWrongStartId; if(Type==5){
} StartId = data.dataObj.readingWrongStartId;
if(Type==6){ }
StartId = data.dataObj.listeningWrongStartId; if(Type==6){
StartId = data.dataObj.listeningWrongStartId;
}
uni.navigateTo({
url: "/pages/exam/examGongu?StartId="+StartId+'&&Type='+Type
});
} }
uni.navigateTo({
url: "/pages/exam/examGongu?StartId="+StartId+'&&Type='+Type
});
} }
}; };
let that = methods; let that = methods;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment