|
@@ -2,6 +2,7 @@
|
|
<loading v-if="loading"></loading>
|
|
<loading v-if="loading"></loading>
|
|
|
|
|
|
<view v-else class="carVideo">
|
|
<view v-else class="carVideo">
|
|
|
|
+
|
|
<!-- <topbar>
|
|
<!-- <topbar>
|
|
<van-search shape="round" placeholder="搜索学车视频" @search="search" />
|
|
<van-search shape="round" placeholder="搜索学车视频" @search="search" />
|
|
</topbar>
|
|
</topbar>
|
|
@@ -73,8 +74,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<view class="tab">
|
|
<view class="tab">
|
|
- <van-tabs animated class="custom-tabs " :active="active" id="tabs"
|
|
|
|
- @change="changeSubject" :sticky="true">
|
|
|
|
|
|
+ <van-tabs animated class="custom-tabs " :active="active" id="tabs" @change="changeSubject" :sticky="true">
|
|
<van-tab class="uni-app-fontsize-paragraph" v-if="xcx_video_open" title="教学视频">
|
|
<van-tab class="uni-app-fontsize-paragraph" v-if="xcx_video_open" title="教学视频">
|
|
<subjectVideoSelect></subjectVideoSelect>
|
|
<subjectVideoSelect></subjectVideoSelect>
|
|
</van-tab>
|
|
</van-tab>
|
|
@@ -179,8 +179,13 @@
|
|
</swiper-item>
|
|
</swiper-item>
|
|
</swiper>
|
|
</swiper>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
|
+ <view class="splitLine">
|
|
|
|
+
|
|
|
|
+ </view>
|
|
<view v-if="tabQuery.name !== '教学视频'" class="two">
|
|
<view v-if="tabQuery.name !== '教学视频'" class="two">
|
|
|
|
+
|
|
<view @click="
|
|
<view @click="
|
|
goPath(
|
|
goPath(
|
|
'/otherPages/selectRulePaper/index',
|
|
'/otherPages/selectRulePaper/index',
|
|
@@ -247,8 +252,10 @@ import newRulesBg from "@/assets/img/newRulesPaperBg.png";
|
|
import utils from "@/utils/index";
|
|
import utils from "@/utils/index";
|
|
import api from '@/api'
|
|
import api from '@/api'
|
|
import subjectVideoSelect from './components/subjectVideoSelect.vue'
|
|
import subjectVideoSelect from './components/subjectVideoSelect.vue'
|
|
|
|
+import userInfoAuth from './components/userInfoAuth.vue';
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
|
|
+ userInfoAuth,
|
|
shortVideo,
|
|
shortVideo,
|
|
branchOne,
|
|
branchOne,
|
|
branchTwo,
|
|
branchTwo,
|
|
@@ -260,6 +267,7 @@ export default {
|
|
subjectVideoSelect
|
|
subjectVideoSelect
|
|
},
|
|
},
|
|
data: () => ({
|
|
data: () => ({
|
|
|
|
+ userInfoAuthVisible: false,
|
|
xcx_video_open: 0,
|
|
xcx_video_open: 0,
|
|
freeUseBg,
|
|
freeUseBg,
|
|
newRulesBg,
|
|
newRulesBg,
|
|
@@ -271,7 +279,7 @@ export default {
|
|
liceTruck: "",
|
|
liceTruck: "",
|
|
liceBus: "",
|
|
liceBus: "",
|
|
liceMoto: "",
|
|
liceMoto: "",
|
|
- name: "教学视频",
|
|
|
|
|
|
+ name: "",
|
|
gs: "xc",
|
|
gs: "xc",
|
|
cert: "C1/C2/C3",
|
|
cert: "C1/C2/C3",
|
|
vehicle: "轿车",
|
|
vehicle: "轿车",
|
|
@@ -283,22 +291,22 @@ export default {
|
|
rightList1: [
|
|
rightList1: [
|
|
{
|
|
{
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/LocalTopics%402x.png",
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/LocalTopics%402x.png",
|
|
- text: "地方专题",
|
|
|
|
|
|
+ text: "地方专题\n ",
|
|
path: "/otherPages/classifyArea/index",
|
|
path: "/otherPages/classifyArea/index",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/WrongTopicCollection%402x.png",
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/WrongTopicCollection%402x.png",
|
|
- text: "错题·收藏",
|
|
|
|
|
|
+ text: "错题·收藏\n ",
|
|
path: "/otherPages/collection/index",
|
|
path: "/otherPages/collection/index",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/NotesBeforeExamination%402x.png",
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/NotesBeforeExamination%402x.png",
|
|
- text: "考前须知",
|
|
|
|
|
|
+ text: "考前须知\n ",
|
|
path: "/otherPages/marked/index?markdown=考前须知",
|
|
path: "/otherPages/marked/index?markdown=考前须知",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/LearnToSee@2x.png",
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/LearnToSee@2x.png",
|
|
- text: "学车必看",
|
|
|
|
|
|
+ text: "学车必看\n ",
|
|
path: "/otherPages/marked/index?markdown=学车必看",
|
|
path: "/otherPages/marked/index?markdown=学车必看",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -406,7 +414,7 @@ export default {
|
|
{
|
|
{
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/kc.png",
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/kc.png",
|
|
typeName: "客车",
|
|
typeName: "客车",
|
|
- title: "A1/A2/B1",
|
|
|
|
|
|
+ title: "A1/A3/B1",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/hc.png",
|
|
img: "https://ct.zzxcx.net/ctjk/mp-wx/carVideo/hc.png",
|
|
@@ -480,26 +488,36 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
async mounted() {
|
|
async mounted() {
|
|
- // let { data } = await this.$api.carVideo.getTreeList();
|
|
|
|
- // console.log(data);
|
|
|
|
- // this.typeList = data;
|
|
|
|
- // this.recomVideos0 = data[0].children[0];
|
|
|
|
- // this.recomVideos3 = data[3].children[0];
|
|
|
|
|
|
+
|
|
this.loading = false;
|
|
this.loading = false;
|
|
- this.$store.dispatch("GetInfo");
|
|
|
|
api.system.systemConfigConfigKey('xcx_video_open').then(res => {
|
|
api.system.systemConfigConfigKey('xcx_video_open').then(res => {
|
|
-
|
|
|
|
this.xcx_video_open = Number(res.data)
|
|
this.xcx_video_open = Number(res.data)
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.selectComponent("#tabs").resize() // 需要延迟
|
|
this.selectComponent("#tabs").resize() // 需要延迟
|
|
})
|
|
})
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
console.log(this.xcx_video_open)
|
|
console.log(this.xcx_video_open)
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+ api.user.getInfo().then(res => {
|
|
|
|
+ uni.setStorageSync("userInfo", res.data);
|
|
|
|
+ this.$store.commit('SET_USERINFO', res.data)
|
|
|
|
+ // if (!res.data.nickName) {
|
|
|
|
+ // uni.showModal({
|
|
|
|
+ // title: "新用户更新信息",
|
|
|
|
+ // confirmText: "去更新",
|
|
|
|
+ // success: function (res) {
|
|
|
|
+ // if (res.confirm) {
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url:"/otherPages/userInfoAuth/index"
|
|
|
|
+ // })
|
|
|
|
+ // } else if (res.cancel) {
|
|
|
|
+
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // }
|
|
|
|
+ })
|
|
// this.$nextTick(() => {
|
|
// this.$nextTick(() => {
|
|
// this.selectComponent("#tabs").resize();
|
|
// this.selectComponent("#tabs").resize();
|
|
// });
|
|
// });
|
|
@@ -534,8 +552,8 @@ export default {
|
|
break;
|
|
break;
|
|
case "货车":
|
|
case "货车":
|
|
this.tabQuery.liceCar = "";
|
|
this.tabQuery.liceCar = "";
|
|
- this.tabQuery.liceTruck = "";
|
|
|
|
- this.tabQuery.liceBus = 1;
|
|
|
|
|
|
+ this.tabQuery.liceTruck = 1;
|
|
|
|
+ this.tabQuery.liceBus = "";
|
|
this.tabQuery.liceMoto = "";
|
|
this.tabQuery.liceMoto = "";
|
|
this.tabQuery.gs = "hc";
|
|
this.tabQuery.gs = "hc";
|
|
break;
|
|
break;
|
|
@@ -583,12 +601,21 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.splitLine {
|
|
|
|
+ width: 750rpx;
|
|
|
|
+ height: 20rpx;
|
|
|
|
+ background: #F2F3F5;
|
|
|
|
+}
|
|
|
|
+
|
|
.two {
|
|
.two {
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 140rpx;
|
|
|
|
- padding: 0 30rpx;
|
|
|
|
|
|
+ padding: 40rpx 30rpx;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ background: #fff;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
.two-item {
|
|
.two-item {
|
|
position: relative;
|
|
position: relative;
|