This commit is contained in:
王创世 2025-08-09 18:33:13 +08:00
parent de61f9db80
commit afdf4267a2
8 changed files with 905 additions and 871 deletions

View File

@ -39,72 +39,43 @@
<view class=""> <view class="">
<!-- 功能列表 start --> <!-- 功能列表 start -->
<view class="about-shadow tn-padding-top-sm tn-padding-bottom-sm"> <view class="about-shadow">
<view style="display: flex;justify-content: center;align-items: center;gap: 12px;"> <view style="display: flex;justify-content: center;align-items: center;gap: 36px;">
<view v-if="classes_show == 1" class="tn-padding-sm tn-margin-xs" <!-- <view v-if="classes_show == 1" class="tn-padding-sm tn-margin-xs"
@click="goPage('/pagesSubject/video/index')"> @click="goPage('/pagesSubject/video/index')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"> <view class="tn-flex tn-flex-row-center tn-flex-col-center">
<view class="tn-text-center" style="padding-right: 20rpx;">
<view class="tn-text-ellipsis" style="font-size: 28rpx">课程中心</view>
</view>
<view <view
class="icon15__item--image tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-color-white"> class="icon15__item--image tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-color-white">
<image src="/static/img/1.png" style="width: 100%;height: 100%"></image> <image src="/static/img/1.png" style="width: 100%;height: 100%"></image>
</view> </view>
<view class="tn-text-center">
<text class="tn-text-ellipsis" style="font-size: 28rpx">课程中心</text>
</view>
</view>
</view>
<view class="tn-padding-sm tn-margin-xs" @click="goPage('/pages/wrong/index')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
<view
class="icon15__item--image tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-color-white">
<image src="/static/img/3.png" style="width: 100%;height: 100%"></image>
</view>
<view class="tn-text-center">
<text class="tn-text-ellipsis" style="font-size: 28rpx">错题本</text>
</view>
</view>
</view> </view>
</view> -->
<view class="tn-padding-sm tn-margin-xs" @click="goPage('/pages/index/news-detail?id=1')"> <view class="tn-padding-sm tn-margin-xs" @click="goPage('/pages/index/news-detail?id=1')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"> <view class="tn-flex tn-flex-row-center tn-flex-col-center">
<view class="tn-text-center" style="padding-right: 20rpx;">
<text class="tn-text-ellipsis" style="font-size: 28rpx">关于我们</text>
</view>
<view <view
class="icon15__item--image tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-color-white"> class="icon15__item--image tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-color-white">
<image src="/static/img/5.png" style="width: 100%;height: 100%"></image> <image src="/static/img/5.png" style="width: 100%;height: 100%"></image>
</view> </view>
<view class="tn-text-center">
<text class="tn-text-ellipsis" style="font-size: 28rpx">关于我们</text>
</view>
</view> </view>
</view> </view>
<view class="tn-padding-sm tn-margin-xs" @click="goPage('/pagesSubject/sign_up')"> <view class="tn-padding-sm tn-margin-xs" @click="goPage('/pagesSubject/sign_up')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"> <view class="tn-flex tn-flex-row-center tn-flex-col-center">
<view class="tn-text-center" style="padding-right: 20rpx;">
<text class="tn-text-ellipsis" style="font-size: 28rpx">预约报名</text>
</view>
<view <view
class="icon15__item--image tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-color-white"> class="icon15__item--image tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-color-white">
<image src="/static/img/4.png" style="width: 100%;height: 100%"></image> <image src="/static/img/4.png" style="width: 100%;height: 100%"></image>
</view> </view>
<view class="tn-text-center">
<text class="tn-text-ellipsis" style="font-size: 28rpx">预约报名</text>
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="tn-padding-sm tn-margin-xs" @click="goPage('/pages/train/index?page=train')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
<view
class="icon15__item--image tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-color-white">
<image src="/static/img/2.png" style="width: 100%;height: 100%"></image>
</view>
<view class="tn-text-center">
<text class="tn-text-ellipsis" style="font-size: 28rpx">平台题库</text>
</view>
</view>
</view> -->
</view>
</view> </view>
<!-- 功能列表 end --> <!-- 功能列表 end -->
<!-- 题库列表 --> <!-- 题库列表 -->
@ -267,10 +238,10 @@
</template> </template>
<script> <script>
import template_page_mixin from "@/libs/mixin/template_page_mixin.js"; import template_page_mixin from "@/libs/mixin/template_page_mixin.js";
// import NavIndexButton from '@/libs/components/nav-index-button.vue' // import NavIndexButton from '@/libs/components/nav-index-button.vue'
import cateApi from "@/common/api/cate.js" import cateApi from "@/common/api/cate.js"
export default { export default {
name: "kz-page-index-list1", name: "kz-page-index-list1",
mixins: [template_page_mixin], mixins: [template_page_mixin],
components: { components: {
@ -372,7 +343,7 @@ export default {
* 监听rooms * 监听rooms
* @param list * @param list
*/ */
rooms(list) { }, rooms(list) {},
/** /**
* 监听modules * 监听modules
* @param list * @param list
@ -512,7 +483,9 @@ export default {
if (uni.getStorageSync("token")) { if (uni.getStorageSync("token")) {
userApi.getUserInfo(this).then((res) => { userApi.getUserInfo(this).then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.user = { ...res.data }; this.user = {
...res.data
};
uni.setStorageSync("user", this.user); uni.setStorageSync("user", this.user);
} }
}); });
@ -569,16 +542,16 @@ export default {
}) })
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-index-list { .page-index-list {
background-color: #ffffff; background-color: #ffffff;
} }
/* 自定义导航栏内容 start */ /* 自定义导航栏内容 start */
.custom-nav { .custom-nav {
height: 100%; height: 100%;
&__back { &__back {
@ -613,36 +586,36 @@ export default {
color: #aaaaaa; color: #aaaaaa;
} }
} }
} }
/*logo start */ /*logo start */
.logo-image { .logo-image {
width: 65rpx; width: 65rpx;
height: 65rpx; height: 65rpx;
position: relative; position: relative;
} }
.logo-pic { .logo-pic {
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
// background-attachment:fixed; // background-attachment:fixed;
background-position: top; background-position: top;
border-radius: 50%; border-radius: 50%;
} }
/* 自定义导航栏内容 end */ /* 自定义导航栏内容 end */
/* 内容布局 start*/ /* 内容布局 start*/
.course-shadow { .course-shadow {
box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.07); box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.07);
} }
.course-radius { .course-radius {
border-radius: 15rpx; border-radius: 15rpx;
} }
/* 图标容器15 start */ /* 图标容器15 start */
.icon15 { .icon15 {
&__item { &__item {
width: 30%; width: 30%;
background-color: #ffffff; background-color: #ffffff;
@ -680,7 +653,6 @@ export default {
&--image { &--image {
width: 72rpx; width: 72rpx;
height: 72rpx; height: 72rpx;
margin-bottom: 18rpx;
position: relative; position: relative;
background-position: center; background-position: center;
background-size: 100% 100%; background-size: 100% 100%;
@ -691,10 +663,10 @@ export default {
} }
} }
} }
} }
/* 业务展示 start */ /* 业务展示 start */
.tn-info { .tn-info {
&__container { &__container {
margin-top: 10rpx; margin-top: 10rpx;
margin-bottom: 50rpx; margin-bottom: 50rpx;
@ -774,12 +746,12 @@ export default {
} }
} }
} }
} }
/* 业务展示 end */ /* 业务展示 end */
/* 文章内容 start*/ /* 文章内容 start*/
.tn-blogger-content { .tn-blogger-content {
&__wrap { &__wrap {
box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.07); box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.07);
border-radius: 20rpx; border-radius: 20rpx;
@ -835,36 +807,36 @@ export default {
font-size: 30rpx; font-size: 30rpx;
padding-right: 5rpx; padding-right: 5rpx;
} }
} }
.image-music { .image-music {
padding: 100rpx 0rpx; padding: 100rpx 0rpx;
font-size: 16rpx; font-size: 16rpx;
font-weight: 300; font-weight: 300;
position: relative; position: relative;
} }
.image-pic { .image-pic {
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
// background-attachment:fixed; // background-attachment:fixed;
background-position: top; background-position: top;
border-radius: 20rpx 20rpx 0 0; border-radius: 20rpx 20rpx 0 0;
} }
/* 文章内容 end*/ /* 文章内容 end*/
/* 底部tabbar start*/ /* 底部tabbar start*/
.footerfixed { .footerfixed {
position: fixed; position: fixed;
width: 100%; width: 100%;
bottom: 0; bottom: 0;
z-index: 999; z-index: 999;
background-color: #ffffff; background-color: #ffffff;
box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07); box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
} }
.tabbar { .tabbar {
display: flex; display: flex;
align-items: center; align-items: center;
min-height: 110rpx; min-height: 110rpx;
@ -872,9 +844,9 @@ export default {
padding: 0; padding: 0;
height: calc(110rpx + env(safe-area-inset-bottom) / 2); height: calc(110rpx + env(safe-area-inset-bottom) / 2);
padding-bottom: calc(env(safe-area-inset-bottom) / 2); padding-bottom: calc(env(safe-area-inset-bottom) / 2);
} }
.tabbar .action { .tabbar .action {
font-size: 22rpx; font-size: 22rpx;
position: relative; position: relative;
flex: 1; flex: 1;
@ -885,9 +857,9 @@ export default {
line-height: 1; line-height: 1;
margin: 0; margin: 0;
overflow: initial; overflow: initial;
} }
.tabbar .action .bar-icon { .tabbar .action .bar-icon {
width: 100rpx; width: 100rpx;
position: relative; position: relative;
display: block; display: block;
@ -895,54 +867,54 @@ export default {
margin: 0 auto 10rpx; margin: 0 auto 10rpx;
text-align: center; text-align: center;
font-size: 42rpx; font-size: 42rpx;
} }
.tabbar .action .bar-icon image { .tabbar .action .bar-icon image {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
display: inline-block; display: inline-block;
} }
/*scroll-view外层*/ /*scroll-view外层*/
.skill-sequence-panel-content-wrapper { .skill-sequence-panel-content-wrapper {
position: relative; position: relative;
white-space: nowrap; white-space: nowrap;
padding: 10rpx 0 10rpx 10rpx; padding: 10rpx 0 10rpx 10rpx;
// background-color: #f2f5f9; // background-color: #f2f5f9;
} }
/*左右渐变遮罩*/ /*左右渐变遮罩*/
.hide-content-box { .hide-content-box {
position: absolute; position: absolute;
top: 0; top: 0;
height: 100%; height: 100%;
width: 10px; width: 10px;
z-index: 2; z-index: 2;
} }
.hide-content-box-left { .hide-content-box-left {
left: 0; left: 0;
background-image: linear-gradient(to left, background-image: linear-gradient(to left,
rgba(255, 255, 255, 0), rgba(255, 255, 255, 0),
#f3f3f3 60%); #f3f3f3 60%);
} }
.hide-content-box-right { .hide-content-box-right {
right: 0; right: 0;
background-image: linear-gradient(to right, background-image: linear-gradient(to right,
rgba(255, 255, 255, 0), rgba(255, 255, 255, 0),
#f3f3f3 60%); #f3f3f3 60%);
} }
.kite-classify-scroll { .kite-classify-scroll {
width: 100%; width: 100%;
height: 380rpx; height: 380rpx;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
padding-top: 15rpx; padding-top: 15rpx;
} }
.kite-classify-cell { .kite-classify-cell {
display: inline-block; display: inline-block;
width: 266rpx; width: 266rpx;
height: 350rpx; height: 350rpx;
@ -951,15 +923,15 @@ export default {
border-radius: 20rpx; border-radius: 20rpx;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 3px rgba(26, 26, 26, 0.2); box-shadow: 2px 2px 3px rgba(26, 26, 26, 0.2);
} }
/* 垂直布局样式 */ /* 垂直布局样式 */
.skill-sequence-panel-content-wrapper-vertical { .skill-sequence-panel-content-wrapper-vertical {
position: relative; position: relative;
padding: 10rpx 20rpx; padding: 10rpx 20rpx;
} }
.kite-classify-cell-vertical { .kite-classify-cell-vertical {
display: block; display: block;
width: 100%; width: 100%;
height: 280rpx; height: 280rpx;
@ -968,9 +940,9 @@ export default {
border-radius: 20rpx; border-radius: 20rpx;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 3px rgba(26, 26, 26, 0.2); box-shadow: 2px 2px 3px rgba(26, 26, 26, 0.2);
} }
.nav-li { .nav-li {
padding: 40rpx 30rpx; padding: 40rpx 30rpx;
width: 100%; width: 100%;
background-image: url(https://s1.ax1x.com/2020/06/27/NyU04x.png); background-image: url(https://s1.ax1x.com/2020/06/27/NyU04x.png);
@ -979,18 +951,18 @@ export default {
position: relative; position: relative;
z-index: 1; z-index: 1;
margin: 0 !important; margin: 0 !important;
} }
.nav-name { .nav-name {
font-size: 30rpx; font-size: 30rpx;
text-transform: Capitalize; text-transform: Capitalize;
margin-top: 20upx; margin-top: 20upx;
position: relative; position: relative;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
} }
.nav-name::before { .nav-name::before {
content: ""; content: "";
position: absolute; position: absolute;
display: block; display: block;
@ -1000,9 +972,9 @@ export default {
bottom: 0; bottom: 0;
right: 0; right: 0;
opacity: 0.5; opacity: 0.5;
} }
.nav-name::after { .nav-name::after {
content: ""; content: "";
position: absolute; position: absolute;
display: block; display: block;
@ -1012,70 +984,70 @@ export default {
bottom: 0; bottom: 0;
right: 40rpx; right: 40rpx;
opacity: 0.3; opacity: 0.3;
} }
.nav-content { .nav-content {
width: 100%; width: 100%;
padding: 15rpx; padding: 15rpx;
display: inline-block; display: inline-block;
overflow-wrap: break-word; overflow-wrap: break-word;
white-space: normal; white-space: normal;
} }
.nav-btn { .nav-btn {
width: 200rpx; width: 200rpx;
height: 60rpx; height: 60rpx;
margin-right: 30rpx; margin-right: 30rpx;
text-align: center; text-align: center;
line-height: 60rpx; line-height: 60rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
.bg-index1 { .bg-index1 {
background-color: #19cf8a; background-color: #19cf8a;
color: #fff; color: #fff;
} }
.bg-index2 { .bg-index2 {
background-color: #954ff6; background-color: #954ff6;
color: #fff; color: #fff;
} }
.bg-index3 { .bg-index3 {
font-size: 30rpx; font-size: 30rpx;
background-color: #5177ee; background-color: #5177ee;
color: #fff; color: #fff;
} }
.bg-index4 { .bg-index4 {
background-color: #f49a02; background-color: #f49a02;
color: #fff; color: #fff;
} }
.bg-index5 { .bg-index5 {
background-color: #ff4f94; background-color: #ff4f94;
color: #fff; color: #fff;
} }
.bg-index6 { .bg-index6 {
background-color: #7fd02b; background-color: #7fd02b;
color: #fff; color: #fff;
} }
/* 页面阴影 start*/ /* 页面阴影 start*/
.wallpaper-shadow { .wallpaper-shadow {
border-radius: 15rpx; border-radius: 15rpx;
box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07); box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
} }
/* 用户头像 start */ /* 用户头像 start */
.logo-image { .logo-image {
width: 100rpx; width: 100rpx;
height: 100rpx; height: 100rpx;
position: relative; position: relative;
} }
.logo-pic { .logo-pic {
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
// background-attachment:fixed; // background-attachment:fixed;
@ -1085,10 +1057,10 @@ export default {
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
// background-color: #FFFFFF; // background-color: #FFFFFF;
} }
/*公告*/ /*公告*/
.tui-rolling-news { .tui-rolling-news {
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
padding: 12rpx 20rpx; padding: 12rpx 20rpx;
box-sizing: border-box; box-sizing: border-box;
@ -1099,56 +1071,56 @@ export default {
background: #fff; background: #fff;
border-radius: 10rpx; border-radius: 10rpx;
margin: 0 20rpx 30rpx; margin: 0 20rpx 30rpx;
} }
.tui-swiper { .tui-swiper {
font-size: 28rpx; font-size: 28rpx;
height: 50rpx; height: 50rpx;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.tui-swiper-item { .tui-swiper-item {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.tui-news-item { .tui-news-item {
line-height: 24rpx; line-height: 24rpx;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
/*公告*/ /*公告*/
/* 题库卡片样式 start */ /* 题库卡片样式 start */
.question-bank-card { .question-bank-card {
background-color: #ffffff; background-color: #ffffff;
border-radius: 15rpx; border-radius: 15rpx;
} }
.question-bank-image-wrapper { .question-bank-image-wrapper {
width: 100%; width: 100%;
height: 200rpx; height: 200rpx;
overflow: hidden; overflow: hidden;
border-radius: 15rpx; border-radius: 15rpx;
} }
.question-bank-image { .question-bank-image {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
} }
.question-bank-title { .question-bank-title {
padding: 15rpx; padding: 15rpx;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
text-align: center; text-align: center;
} }
/* 题库卡片样式 end */ /* 题库卡片样式 end */
</style> </style>

View File

@ -99,8 +99,8 @@
<view class="about-shadow tn-margin-top-xl tn-padding-top-sm tn-padding-bottom-sm tn-bg-white"> <view class="about-shadow tn-margin-top-xl tn-padding-top-sm tn-padding-bottom-sm tn-bg-white">
<!-- 方式12 start--> <!-- 方式12 start-->
<view class="tn-flex tn-flex-row-center tn-radius tn-padding-top"> <view class="tn-flex tn-radius tn-padding-top" style="justify-content: space-around;">
<view class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pages/wrong/index')"> <!-- <view class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pages/wrong/index')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"> <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
<view <view
class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-blue--light"> class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-blue--light">
@ -110,8 +110,18 @@
<text class="tn-text-ellipsis">我的错题</text> <text class="tn-text-ellipsis">我的错题</text>
</view> </view>
</view> </view>
</view> -->
<view v-if="classesShow==1" class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pagesSubject/video/index')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
<view
class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-blue--light">
<view class="tn-color-wallpaper tn-icon-video-square"></view>
</view>
<view class="tn-text-center" style="font-size: 28rpx;">
<text class="tn-text-ellipsis">课程中心</text>
</view>
</view>
</view> </view>
<view class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pages/collect/index')"> <view class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pages/collect/index')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"> <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
<view <view
@ -147,7 +157,7 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pages/paper/grade')"> <!-- <view class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pages/paper/grade')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"> <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
<view <view
class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-blue--light"> class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-blue--light">
@ -157,7 +167,7 @@
<text class="tn-text-ellipsis">考试成绩</text> <text class="tn-text-ellipsis">考试成绩</text>
</view> </view>
</view> </view>
</view> </view> -->
<view class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pagesSubject/video/user')"> <view class="tn-padding-sm tn-margin-xs tn-radius" @click="goTo('/pagesSubject/video/user')">
<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"> <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
<view <view
@ -433,6 +443,10 @@
type: Array, type: Array,
default: () => [] default: () => []
}, },
classesShow:{
type: String,
default: () => null
}
}, },
watch: { watch: {
/** /**
@ -517,7 +531,7 @@
} }
}, },
methods: { methods: {
openPhone(){ openPhone() {
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: '18903795988' // phoneNumber: '18903795988' //
}); });

View File

@ -39,6 +39,7 @@
<swiper :current="swiperIndex - 1" @change="swiperChange" class="questions-cont"> <swiper :current="swiperIndex - 1" @change="swiperChange" class="questions-cont">
<swiper-item v-for="(item, index) in list" :key="index" class="swiper-item"> <swiper-item v-for="(item, index) in list" :key="index" class="swiper-item">
<!-- <view>{{item.id}}</view> -->
<view v-if="Math.abs(swiperIndex - 1 - index) <= 30"> <view v-if="Math.abs(swiperIndex - 1 - index) <= 30">
<block v-if="index == swiperIndex - 1"> <block v-if="index == swiperIndex - 1">
<!-- 材料题标题 --> <!-- 材料题标题 -->

View File

@ -149,7 +149,7 @@
}, { }, {
"path": "pages/index/news-detail", "path": "pages/index/news-detail",
"style": { "style": {
"navigationBarTitleText": "关于我们", "navigationBarTitleText": "详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { }, {

View File

@ -8,6 +8,7 @@
</view> </view>
<!-- 地图区域 --> <!-- 地图区域 -->
<view v-if="id==1">
<view class="mapSection margin-top-lg"> <view class="mapSection margin-top-lg">
<view class="mapTitle text-xl text-black text-bold margin-bottom-sm"> <view class="mapTitle text-xl text-black text-bold margin-bottom-sm">
<text class="cuIcon-locationfill text-blue margin-right-xs"></text> <text class="cuIcon-locationfill text-blue margin-right-xs"></text>
@ -26,6 +27,7 @@
</tn-button> </tn-button>
</view> </view>
</view> </view>
</view>
<!-- <view class="cu-bar justify-left bg-white margin-top-sm"> <!-- <view class="cu-bar justify-left bg-white margin-top-sm">
<view class="action border-title"> <view class="action border-title">
@ -102,11 +104,13 @@ export default {
display: 'ALWAYS' display: 'ALWAYS'
} }
}] }]
} },
id:0
} }
}, },
onLoad(option) { onLoad(option) {
console.log(option) console.log(option)
this.id=option.id;
this.getData(option.id); this.getData(option.id);
}, },
methods: { methods: {

View File

@ -34,6 +34,34 @@ export default {
ajax(){ ajax(){
this.getQuestion() this.getQuestion()
}, },
// options_jsonvalueID
getEmptyValueQuestionIds(dataArray) {
if (!Array.isArray(dataArray)) {
return ''
}
const emptyValueQuestions = dataArray.filter(item => {
// options_json
if (!item.options_json || !Array.isArray(item.options_json)) {
return false
}
// options_jsonvalue
return item.options_json.some(option => {
const value = option.value
// valuenullundefined
return value.length==0 ||value === null ||
value === undefined ||
value === '' ||
(typeof value === 'string' && value.trim() === '')
})
})
// ID
const ids = emptyValueQuestions.map(item => item.id).filter(id => id !== undefined && id !== null)
return ids.join(',')
},
// //
getQuestion (page = 1, callback = null) { getQuestion (page = 1, callback = null) {
console.log('getQuestion', page, this.currentPage, this.lastPage) console.log('getQuestion', page, this.currentPage, this.lastPage)
@ -52,6 +80,15 @@ export default {
} }
this.http('question/train', params).then(res => { this.http('question/train', params).then(res => {
// options_jsonvalueID
// console.log(res.data.data);
// const emptyValueIds = this.getEmptyValueQuestionIds(res.data.data)
// if (emptyValueIds) {
// console.log('valueID:', emptyValueIds)
// }
if (res.code == 1) { if (res.code == 1) {
// //
if (this.mode == 'normal') { if (this.mode == 'normal') {

View File

@ -18,6 +18,7 @@
<kz-page-my-color-1 <kz-page-my-color-1
:user="user" :user="user"
:friendApps="friendApps" :friendApps="friendApps"
:classesShow="classes_show"
@login="login" @login="login"
@goTo="goTo" @goTo="goTo"
@clearStorage="clearStorage" @clearStorage="clearStorage"
@ -56,9 +57,11 @@ export default {
user: null, user: null,
ad: {}, ad: {},
pageStyle: "", pageStyle: "",
system:{},
showMonster: false, showMonster: false,
isLogin: false, isLogin: false,
friendApps: [], friendApps: [],
classes_show:'',
}; };
}, },
onLoad() { onLoad() {
@ -128,6 +131,7 @@ export default {
getSetting() { getSetting() {
this.http("common/index", "", "get").then((res) => { this.http("common/index", "", "get").then((res) => {
console.log(res);
if (!res.code) { if (!res.code) {
uni.showToast({ uni.showToast({
title: "获取数据失败,请刷新重试", title: "获取数据失败,请刷新重试",
@ -135,7 +139,7 @@ export default {
}); });
return; return;
} }
this.classes_show=res.data.classes_show;
// //
let system = res.data.system; let system = res.data.system;
if (system) { if (system) {

View File

@ -581,18 +581,20 @@ export default {
// //
openUserAgreement() { openUserAgreement() {
// //
uni.showToast({ // uni.showToast({
title: '打开用户服务协议', // title: '',
icon: 'none' // icon: 'none'
// })
uni.navigateTo({
url:"/pages/index/news-detail?id=3"
}) })
}, },
// //
openPrivacyPolicy() { openPrivacyPolicy() {
// //
uni.showToast({ uni.navigateTo({
title: '打开隐私政策', url:"/pages/index/news-detail?id=4"
icon: 'none'
}) })
}, },