Commit e9ad221c authored by zhengke's avatar zhengke

修改

parent 07c37eca
...@@ -123,14 +123,14 @@ ...@@ -123,14 +123,14 @@
void-color="#EBEBEB" void-icon="star" icon="star" :count="3" /> void-color="#EBEBEB" void-icon="star" icon="star" :count="3" />
</view> </view>
</view> </view>
<view class="Course_Two" v-if="item.isShow"> <view class="Course_Two" v-if="item.isShow" @click="goWordStudy(item,1)">
<view> <view>
<view> <view>
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/review.png" alt="" /> <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/review.png" alt="" />
</view> </view>
<view class="Course_Opera">课程回顾</view> <view class="Course_Opera">课程回顾</view>
</view> </view>
<view @click="goWordStudy(item)"> <view @click="goWordStudy(item,2)">
<view> <view>
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/fuxi.png" alt="" /> <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/fuxi.png" alt="" />
</view> </view>
...@@ -229,9 +229,9 @@ ...@@ -229,9 +229,9 @@
url: url, url: url,
}); });
}, },
goWordStudy(obj){ goWordStudy(obj,Type){
if(obj){ if(obj){
let url = `/pages/word/wordStudy?CourseId=${obj.ChapterTree.CourseId}&&ChapterId=${obj.ChapterTree.ChapterId}&&ReviewChapterId=0}` let url = `/pages/word/wordStudy?CourseId=${obj.ChapterTree.CourseId}&&ChapterId=${obj.ChapterTree.ChapterId}&&ReviewChapterId=0&&Type=${Type}`
uni.navigateTo({ uni.navigateTo({
url: url url: url
}); });
......
<template> <template>
<view class="word"> <view class="word">
<swiper class="swiper" next-margin="60rpx" @change="swiperChange" :current="current"> <swiper class="swiper" next-margin="60rpx" @change="swiperChange" :current="current">
<swiper-item v-for="(item,index) in StudyList" :key="index" class="swiper-item"> <swiper-item v-for="(item,index) in StudyList" v-if="Type==2" :key="index" class="swiper-item">
<Pronunciation :item="item" :cur="index+1" :total="StudyList.length"></Pronunciation> <Pronunciation :item="item" :cur="index+1" :total="StudyList.length"></Pronunciation>
</swiper-item> </swiper-item>
<swiper-item v-for="(item,index) in ReviewList" :key="index" class="swiper-item"> <swiper-item v-for="(item,index) in ReviewList" v-if="Type==1" :key="index" class="swiper-item">
<Pronunciation :item="item" :cur="index+1" :total="ReviewList.length" :type="1"></Pronunciation> <Pronunciation :item="item" :cur="index+1" :total="ReviewList.length" :type="1"></Pronunciation>
</swiper-item> </swiper-item>
<swiper-item></swiper-item> <swiper-item></swiper-item>
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
StudyNum: 0, //学习总单词数量 StudyNum: 0, //学习总单词数量
StudyType: 1, //1-预习,2-复习 StudyType: 1, //1-预习,2-复习
}, },
Type:1, //1复习 2 单词
}) })
let methods = { let methods = {
...@@ -119,6 +120,9 @@ ...@@ -119,6 +120,9 @@
if (options.ChapterId && options.CourseId && options.ReviewChapterId) { if (options.ChapterId && options.CourseId && options.ReviewChapterId) {
this.getData(); this.getData();
} }
if(options.Type){
this.Type=options.Type
}
const userInfo = uni.getStorageSync('userInfo'); const userInfo = uni.getStorageSync('userInfo');
this.readMsg.Stu_Account_Id = userInfo.Id ?? 0; this.readMsg.Stu_Account_Id = userInfo.Id ?? 0;
this.readMsg.CourseId = options.CourseId ?? 0; this.readMsg.CourseId = options.CourseId ?? 0;
......
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