Commit 73910377 authored by zhengke's avatar zhengke

修改

parent 0366f2e3
...@@ -143,6 +143,16 @@ ...@@ -143,6 +143,16 @@
data.dataList = [...data.dataList, ...val]; data.dataList = [...data.dataList, ...val];
}) })
let methods = { let methods = {
clickImg(src) {
console.log(src);
wx.previewImage({
urls: [src], //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
current: '', // 当前显示图片的http链接,默认是第一个
success: function(res) {},
fail: function(res) {},
complete: function(res) {},
})
},
jumpPage() { jumpPage() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/exam/examPaper", url: "/pages/exam/examPaper",
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
"backgroundColor": "#f5f5f5", "backgroundColor": "#f5f5f5",
"navigationBarBackgroundColor": "#f5f5f5" "navigationBarBackgroundColor": "#f5f5f5"
} }
},{
"path": "pages/activity/MyExam"
}], }],
"subPackages": [{ "subPackages": [{
"root": "pages/course", //课程分包 "root": "pages/course", //课程分包
...@@ -92,8 +94,6 @@ ...@@ -92,8 +94,6 @@
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{
"path": "MyExam"
},{ },{
"path": "examStart", "path": "examStart",
"style": { "style": {
...@@ -180,10 +180,10 @@ ...@@ -180,10 +180,10 @@
"selectedIconPath": "static/image/course_a.png", "selectedIconPath": "static/image/course_a.png",
"text": "课表" "text": "课表"
}, { }, {
"pagePath": "pages/activity/activityList", "pagePath": "pages/activity/MyExam",
"iconPath": "static/image/active.png", "iconPath": "static/image/active.png",
"selectedIconPath": "static/image/active_a.png", "selectedIconPath": "static/image/active_a.png",
"text": "活动" "text": "日语题库"
}, { }, {
"pagePath": "pages/person/person", "pagePath": "pages/person/person",
"iconPath": "static/image/person.png", "iconPath": "static/image/person.png",
......
...@@ -234,6 +234,12 @@ ...@@ -234,6 +234,12 @@
</view> </view>
<view class="Janpa_Level" style="margin-top:20rpx;"> <view class="Janpa_Level" style="margin-top:20rpx;">
<view class="Ques_Title">日语真题演练</view> <view class="Ques_Title">日语真题演练</view>
<view class="JanpaTrueTi" style="margin:26rpx 0 20rpx 0" @click="goWrong()">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/true2.png" alt="" />
<view class="Join_Content">
<view class="Join_Linian">我的错题</view>
</view>
</view>
<view class="JanpaTrueTi" style="margin:26rpx 0 20rpx 0" @click="goJpGrade(6)"> <view class="JanpaTrueTi" style="margin:26rpx 0 20rpx 0" @click="goJpGrade(6)">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/true2.png" alt="" /> <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/true2.png" alt="" />
<view class="Join_Content"> <view class="Join_Content">
...@@ -338,6 +344,12 @@ ...@@ -338,6 +344,12 @@
uni.navigateTo({ uni.navigateTo({
url: '/pages/exam/examGradeList?BankType='+Type+'&&StudentId='+ data.TypeMsg.StudentId url: '/pages/exam/examGradeList?BankType='+Type+'&&StudentId='+ data.TypeMsg.StudentId
}); });
},
//跳转我的错题
goWrong(){
uni.navigateTo({
url: '/pages/exam/wrong'
});
} }
}; };
let that = methods; let that = methods;
......
...@@ -115,19 +115,15 @@ ...@@ -115,19 +115,15 @@
this.setPractise(Id); this.setPractise(Id);
} }
if(data.current+1==data.dataList.length){ if(data.current+1==data.dataList.length){
Id = data.dataList[data.current].Id Id = data.dataList[data.current].Id
this.setPractise(Id); this.setPractise(Id);
} }
} }
} }
}, },
//设置已答题 //设置已答题
setPractise(Id){ setPractise(Id){
// if(data.current>=1){
data.setMsg.Id = Id; data.setMsg.Id = Id;
// if(data.current+1==data.dataList.length){
// data.setMsg.Id = data.dataList[data.current].Id;
// }
SetPracticeReview(data.setMsg).then(res=>{ SetPracticeReview(data.setMsg).then(res=>{
}) })
...@@ -174,6 +170,10 @@ ...@@ -174,6 +170,10 @@
if(res.Code==1){ if(res.Code==1){
data.dataList = res.Data.PageData; data.dataList = res.Data.PageData;
data.Count = res.Data.Count; data.Count = res.Data.Count;
//第一次进来调用一次
if(data.dataList&&data.dataList.length>0){
this.setPractise(data.dataList[0].Id);
}
} }
}) })
}, },
...@@ -228,28 +228,28 @@ ...@@ -228,28 +228,28 @@
if(options.Type==3){ if(options.Type==3){
this.wrongMsg.StudentId = UserInfo.AccountId; this.wrongMsg.StudentId = UserInfo.AccountId;
this.wrongMsg.QCategoryIds = '3,4,5'; this.wrongMsg.QCategoryIds = '3,4,5';
this.wrongMsg.StartId = options.StartId; // this.wrongMsg.StartId = options.StartId;
this.getWrongWord(); this.getWrongWord();
this.isShowJx=true; this.isShowJx=true;
} }
if(options.Type==4){ if(options.Type==4){
this.wrongMsg.StudentId = UserInfo.AccountId; this.wrongMsg.StudentId = UserInfo.AccountId;
this.wrongMsg.QCategoryIds = '6'; this.wrongMsg.QCategoryIds = '6';
this.wrongMsg.StartId = options.StartId; // this.wrongMsg.StartId = options.StartId;
this.getWrongWord(); this.getWrongWord();
this.isShowJx=true; this.isShowJx=true;
} }
if(options.Type==5){ if(options.Type==5){
this.wrongMsg.StudentId = UserInfo.AccountId; this.wrongMsg.StudentId = UserInfo.AccountId;
this.wrongMsg.QCategoryIds = '8'; this.wrongMsg.QCategoryIds = '8';
this.wrongMsg.StartId = options.StartId; // this.wrongMsg.StartId = options.StartId;
this.getWrongWord(); this.getWrongWord();
this.isShowJx=true; this.isShowJx=true;
} }
if(options.Type==6){ if(options.Type==6){
this.wrongMsg.StudentId = UserInfo.AccountId; this.wrongMsg.StudentId = UserInfo.AccountId;
this.wrongMsg.QCategoryIds = '9'; this.wrongMsg.QCategoryIds = '9';
this.wrongMsg.StartId = options.StartId; // this.wrongMsg.StartId = options.StartId;
this.getWrongWord(); this.getWrongWord();
this.isShowJx=true; this.isShowJx=true;
} }
......
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