提交
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
</swiper>
|
||||
<view class="wp100 flex jc-sb ai-c p14 bc-fff" v-if="isShowAll" style="position: fixed;bottom: 0;left: 0;">
|
||||
<view style="width: 220rpx;">
|
||||
<button v-if="type==='practice'" class="btn">四步学科一</button>
|
||||
<view v-if="type==='practice'" style="width: 220rpx;height: 80rpx;"></view>
|
||||
<view v-else class="btn" style="text-align: center;" @tap="submitPaper">
|
||||
<u-count-down ref="countDown_1" :time=" 1*60*60 * 1000" format="HH:mm:ss" @change="timeChange"></u-count-down>
|
||||
<text>交卷</text>
|
||||
@@ -117,7 +117,7 @@
|
||||
<view>
|
||||
<view class="wp100 flex jc-sb p14 bc-fff">
|
||||
<view style="width: 220rpx;">
|
||||
<button v-if="type==='practice'" class="btn">四步学科一</button>
|
||||
<view v-if="type==='practice'" style="width: 220rpx;height: 80rpx;"></view>
|
||||
<view v-else class="btn" style="text-align: center;" @tap="submitPaper">
|
||||
<u-count-down ref="countDown_2" :time="1 * 60 * 60 * 1000" format="HH:mm:ss"></u-count-down>
|
||||
<text>交卷</text>
|
||||
@@ -508,8 +508,9 @@ export default {
|
||||
},
|
||||
sectionChange(index) {
|
||||
this.tCurrent = index
|
||||
this.getQuestionList()
|
||||
this.renderSwiper(0)
|
||||
// this.getQuestionList()
|
||||
// this.renderSwiper(0)
|
||||
this.$emit('changeTab',index)
|
||||
},
|
||||
getQuestionList(val) {
|
||||
const arr = JSON.parse(val)
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
</view>
|
||||
<view class="mt14 p14 bc-fff" style="border-radius: 20rpx;">
|
||||
<text class="fs18 cor-000 fw600">常见考点</text>
|
||||
<view class="flex ai-c wp100 mt10" style="flex-wrap: wrap;">
|
||||
<view class="wp50 flex ai-c mb10" v-for="(item,index) of testCenterList" :key="index">
|
||||
<view class="flex ai-c wp100 mt15" style="flex-wrap: wrap;">
|
||||
<view class="wp50 flex ai-c mb15" v-for="(item,index) of testCenterList" :key="index">
|
||||
<view class="dot_item">{{index+1}}</view>
|
||||
<text class="ml5">{{item.label}}</text>
|
||||
</view>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<!-- <u-navbar :title="navTitle" @rightClick="rightClick" :autoBack="true">
|
||||
</u-navbar> -->
|
||||
<j-navbar>{{navTitle}}</j-navbar>
|
||||
<Question ref="question" :tabsList="tabsList" :isShowAll="isShowAll" :subject="subject" :navTitle="navTitle"></Question>
|
||||
<Question ref="question" :tabsList="tabsList" :isShowAll="isShowAll" :subject="subject" :navTitle="navTitle" @changeTab="changeTab"></Question>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -93,6 +93,20 @@
|
||||
},
|
||||
methods: {
|
||||
...mapActions(useUserStore,['searchUserVip']),
|
||||
changeTab(val){
|
||||
if(val==1){
|
||||
let list =JSON.parse(JSON.stringify(this.questionArr))
|
||||
list=list.map(item=>{
|
||||
return{
|
||||
...item,
|
||||
clickAnswer:item.trueAnswer
|
||||
}
|
||||
})
|
||||
this.$refs.question.getQuestionList(JSON.stringify(list))
|
||||
}else{
|
||||
this.$refs.question.getQuestionList(JSON.stringify(this.questionArr))
|
||||
}
|
||||
},
|
||||
rightClick() {
|
||||
console.log('返回');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user