Commit e9ad221c authored by zhengke's avatar zhengke

修改

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