|
@@ -40,7 +40,7 @@
|
|
|
</view>
|
|
|
|
|
|
<template v-if="questionLists.length">
|
|
|
- <view v-for="(item, index) in questionLists" :key="index" class="course_item">
|
|
|
+ <view v-for="(item, index) in questionLists" :key="index" class="course_item" @click="studyques(item)">
|
|
|
<view>
|
|
|
<view class="cou_titles">{{ item.goodsName }}</view>
|
|
|
<view v-if="item.serviceStartTime && item.serviceEndTime" class="learn_ranges">
|
|
@@ -63,9 +63,6 @@
|
|
|
<u-line-progress :show-percent="false" height="22" active-color="#ff9900" :percent="(item.doNum/item.totalNum)*100"></u-line-progress>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="progress_down">
|
|
|
- <view class="enter_into" @click="studyques(item,index)">进入练习</view>
|
|
|
- </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -73,8 +70,7 @@
|
|
|
<view class="study_btns">
|
|
|
<view v-for="(child, c_index) in item.paperVos" :key="c_index" class="exam_word intos"
|
|
|
@click.stop="toDailyPractice(item, child)">{{ child.paperName }}</view>
|
|
|
- <!-- <view class="exam_word intos" @click.stop="toRandomPractice(item)">随机联系</view> -->
|
|
|
- <view class="exam_word intos" @click="studyques(item)">章节练习</view>
|
|
|
+ <!-- <view class="exam_word intos" @click="studyques(item)">章节练习</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -155,11 +151,11 @@ export default {
|
|
|
url: '/pages2/randomPractice/index?goodsId=' + item.goodsId + '&orderGoodsId=' + item.orderGoodsId
|
|
|
})
|
|
|
} else {
|
|
|
- this.studyques(item)
|
|
|
+ this.studyques(item, child)
|
|
|
}
|
|
|
},
|
|
|
// 进入练习
|
|
|
- studyques(item){
|
|
|
+ studyques(item, child){
|
|
|
let sysTime = this.$method.timest()
|
|
|
if (item.serviceStartTime && item.serviceEndTime && (sysTime <= item.serviceStartTime || sysTime >= item.serviceEndTime)) {
|
|
|
uni.showToast({
|
|
@@ -168,8 +164,9 @@ export default {
|
|
|
})
|
|
|
return;
|
|
|
}
|
|
|
+ let paperId = child && child.paperId || ''
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages2/bank/question_detail?id='+item.goodsId+'&orderGoodsId='+item.orderGoodsId
|
|
|
+ url:'/pages2/bank/question_detail?id='+item.goodsId+'&orderGoodsId='+item.orderGoodsId + '&paperId=' + paperId
|
|
|
})
|
|
|
},
|
|
|
},
|