|
@@ -85,6 +85,7 @@
|
|
|
></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- #ifdef MP-WEIXIN -->
|
|
|
<view class="tab">
|
|
|
<van-tabs
|
|
|
animated
|
|
@@ -123,7 +124,11 @@
|
|
|
</van-tab>
|
|
|
<van-tab title="科目三">
|
|
|
<van-grid column-num="4">
|
|
|
- <van-grid-item @click="goLightMock" icon="https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/lightmock.png" text="灯光模拟">
|
|
|
+ <van-grid-item
|
|
|
+ @click="goLightMock"
|
|
|
+ icon="https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/lightmock.png"
|
|
|
+ text="灯光模拟"
|
|
|
+ >
|
|
|
</van-grid-item>
|
|
|
</van-grid>
|
|
|
<view v-for="(item, index) in typeList" :key="index">
|
|
@@ -135,13 +140,108 @@
|
|
|
</van-tab>
|
|
|
<van-tab title="科目四">
|
|
|
<view class="tab-container">
|
|
|
- <tab-left :query="tabQuery" :subject="4" :leftList="leftList4"></tab-left>
|
|
|
- <tab-center :query="tabQuery" :subject="4" :centerList="centerList4"></tab-center>
|
|
|
- <tab-right :query="tabQuery" :subject="4" :rightList="rightList4"></tab-right>
|
|
|
+ <tab-left
|
|
|
+ :query="tabQuery"
|
|
|
+ :subject="4"
|
|
|
+ :leftList="leftList4"
|
|
|
+ ></tab-left>
|
|
|
+ <tab-center
|
|
|
+ :query="tabQuery"
|
|
|
+ :subject="4"
|
|
|
+ :centerList="centerList4"
|
|
|
+ ></tab-center>
|
|
|
+ <tab-right
|
|
|
+ :query="tabQuery"
|
|
|
+ :subject="4"
|
|
|
+ :rightList="rightList4"
|
|
|
+ ></tab-right>
|
|
|
</view>
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
</view>
|
|
|
+ <!-- #endif -->
|
|
|
+ <!-- #ifdef MP-TOUTIAO -->
|
|
|
+ <view class="tabTitle">
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="tab">
|
|
|
+ <swiper
|
|
|
+ :current="active"
|
|
|
+ @change="
|
|
|
+ (e) => {
|
|
|
+ active = e.detail.current;
|
|
|
+ }
|
|
|
+ "
|
|
|
+ style="height: 800rpx"
|
|
|
+ >
|
|
|
+ <swiper-item id="tab1" style="display: inline-block">
|
|
|
+ <view class="tab-container">
|
|
|
+ <tab-left
|
|
|
+ :subject="1"
|
|
|
+ :query="tabQuery"
|
|
|
+ :leftList="leftList1"
|
|
|
+ ></tab-left>
|
|
|
+ <tab-center
|
|
|
+ :subject="1"
|
|
|
+ :query="tabQuery"
|
|
|
+ :centerList="centerList1"
|
|
|
+ ></tab-center>
|
|
|
+ <tab-right
|
|
|
+ :subject="1"
|
|
|
+ :query="tabQuery"
|
|
|
+ :rightList="rightList1"
|
|
|
+ ></tab-right>
|
|
|
+ </view>
|
|
|
+ </swiper-item>
|
|
|
+
|
|
|
+ <swiper-item id="tab2" style="display: inline-block">
|
|
|
+ <view v-for="(item, index) in typeList" :key="index">
|
|
|
+ <branch-two
|
|
|
+ v-if="index == 1"
|
|
|
+ :carVideoList="item.children"
|
|
|
+ ></branch-two>
|
|
|
+ </view>
|
|
|
+ </swiper-item>
|
|
|
+
|
|
|
+ <swiper-item id="tab3" style="display: inline-block">
|
|
|
+ <van-grid column-num="4">
|
|
|
+ <van-grid-item
|
|
|
+ @click="goLightMock"
|
|
|
+ icon="https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/lightmock.png"
|
|
|
+ text="灯光模拟"
|
|
|
+ >
|
|
|
+ </van-grid-item>
|
|
|
+ </van-grid>
|
|
|
+ <view v-for="(item, index) in typeList" :key="index">
|
|
|
+ <branch-two
|
|
|
+ v-if="index == 2"
|
|
|
+ :carVideoList="item.children"
|
|
|
+ ></branch-two>
|
|
|
+ </view>
|
|
|
+ </swiper-item>
|
|
|
+ <swiper-item id="tab4" style="display: inline-block">
|
|
|
+ <view class="tab-container">
|
|
|
+ <tab-left
|
|
|
+ :query="tabQuery"
|
|
|
+ :subject="4"
|
|
|
+ :leftList="leftList4"
|
|
|
+ ></tab-left>
|
|
|
+ <tab-center
|
|
|
+ :query="tabQuery"
|
|
|
+ :subject="4"
|
|
|
+ :centerList="centerList4"
|
|
|
+ ></tab-center>
|
|
|
+ <tab-right
|
|
|
+ :query="tabQuery"
|
|
|
+ :subject="4"
|
|
|
+ :rightList="rightList4"
|
|
|
+ ></tab-right>
|
|
|
+ </view>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
+ </view>
|
|
|
+ <!-- #endif -->
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -170,9 +270,9 @@ export default {
|
|
|
data: () => ({
|
|
|
tabQuery: {
|
|
|
liceCar: 1,
|
|
|
- liceTruck: '',
|
|
|
- liceBus: '',
|
|
|
- liceMoto: '',
|
|
|
+ liceTruck: "",
|
|
|
+ liceBus: "",
|
|
|
+ liceMoto: "",
|
|
|
name: "科目一",
|
|
|
cert: "C1/C2/C3",
|
|
|
vehicle: "轿车",
|
|
@@ -207,12 +307,12 @@ export default {
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/SelectedTestQuestions@2x.png",
|
|
|
text: "精选考题",
|
|
|
- path:"/otherPages/classifyChoose/index"
|
|
|
+ path: "/otherPages/classifyChoose/index",
|
|
|
},
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/SimulationTestTopics@2x.png",
|
|
|
text: "模拟考试\n仿真题目",
|
|
|
- path:"/otherPages/beforeMockExam/index"
|
|
|
+ path: "/otherPages/beforeMockExam/index",
|
|
|
},
|
|
|
],
|
|
|
leftList1: [
|
|
@@ -248,7 +348,7 @@ export default {
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/WrongTopicCollection@2x.png",
|
|
|
text: "错题·收藏",
|
|
|
- path: "/otherPages/marked/index?markdown=考前须知",
|
|
|
+ path: "/otherPages/marked/index?markdown=考前须知",
|
|
|
},
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/NotesBeforeExamination@2x.png",
|
|
@@ -265,24 +365,24 @@ export default {
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/SelectedTestQuestions@2x.png",
|
|
|
text: "精选考题",
|
|
|
- path:"/otherPages/classifyChoose/index"
|
|
|
+ path: "/otherPages/classifyChoose/index",
|
|
|
},
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/SimulationTestTopics@2x.png",
|
|
|
text: "模拟考试\n仿真题目",
|
|
|
- path:"/otherPages/beforeMockExam/index"
|
|
|
+ path: "/otherPages/beforeMockExam/index",
|
|
|
},
|
|
|
],
|
|
|
leftList4: [
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/SequentialPractice@2x.png",
|
|
|
text: "顺序练习",
|
|
|
- path: "/otherPages/classifyOrder/index",
|
|
|
+ path: "/otherPages/classifyOrder/index",
|
|
|
},
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/ClassificationExercise@2x.png",
|
|
|
text: "分类练习",
|
|
|
- path: "/otherPages/classifyKind/index",
|
|
|
+ path: "/otherPages/classifyKind/index",
|
|
|
},
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/RealExaminationRoomSimulation@2x.png",
|
|
@@ -293,7 +393,7 @@ export default {
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/SimulationResults@2x.png",
|
|
|
text: "模拟成绩",
|
|
|
- path: "/otherPages/testScores/index",
|
|
|
+ path: "/otherPages/testScores/index",
|
|
|
},
|
|
|
],
|
|
|
active: 0,
|
|
@@ -396,26 +496,26 @@ export default {
|
|
|
switch (item.typeName) {
|
|
|
case "轿车":
|
|
|
this.tabQuery.liceCar = 1;
|
|
|
- this.tabQuery.liceTruck = '';
|
|
|
- this.tabQuery.liceBus = '';
|
|
|
- this.tabQuery.liceMoto = '';
|
|
|
+ this.tabQuery.liceTruck = "";
|
|
|
+ this.tabQuery.liceBus = "";
|
|
|
+ this.tabQuery.liceMoto = "";
|
|
|
break;
|
|
|
case "货车":
|
|
|
- this.tabQuery.liceCar = '';
|
|
|
- this.tabQuery.liceTruck = '';
|
|
|
+ this.tabQuery.liceCar = "";
|
|
|
+ this.tabQuery.liceTruck = "";
|
|
|
this.tabQuery.liceBus = 1;
|
|
|
- this.tabQuery.liceMoto = '';
|
|
|
+ this.tabQuery.liceMoto = "";
|
|
|
break;
|
|
|
case "客车":
|
|
|
- this.tabQuery.liceCar = '';
|
|
|
- this.tabQuery.liceTruck = '';
|
|
|
+ this.tabQuery.liceCar = "";
|
|
|
+ this.tabQuery.liceTruck = "";
|
|
|
this.tabQuery.liceBus = 1;
|
|
|
- this.tabQuery.liceMoto = '';
|
|
|
+ this.tabQuery.liceMoto = "";
|
|
|
break;
|
|
|
case "摩托车":
|
|
|
- this.tabQuery.liceCar = '';
|
|
|
- this.tabQuery.liceTruck = '';
|
|
|
- this.tabQuery.liceBus = '';
|
|
|
+ this.tabQuery.liceCar = "";
|
|
|
+ this.tabQuery.liceTruck = "";
|
|
|
+ this.tabQuery.liceBus = "";
|
|
|
this.tabQuery.liceMoto = 1;
|
|
|
break;
|
|
|
default:
|