|
@@ -10,18 +10,18 @@
|
|
|
<view class="ezy-xueke-tab-box">
|
|
<view class="ezy-xueke-tab-box">
|
|
|
<!-- 动画按钮 -->
|
|
<!-- 动画按钮 -->
|
|
|
<ezyActiveVue class="ezy-btn-active tab-item" v-for="item in data.list"
|
|
<ezyActiveVue class="ezy-btn-active tab-item" v-for="item in data.list"
|
|
|
- :key="item.value"
|
|
|
|
|
- :class="{active: item.value == data.chanpinActiveSelect}"
|
|
|
|
|
|
|
+ :key="item.key"
|
|
|
|
|
+ :class="{active: item.key == data.chanpinActiveSelect}"
|
|
|
@aclick="handleSelectChanpin(item)">
|
|
@aclick="handleSelectChanpin(item)">
|
|
|
- {{ item.name }}
|
|
|
|
|
|
|
+ {{ item.label }}
|
|
|
</ezyActiveVue>
|
|
</ezyActiveVue>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 数学列表 -->
|
|
<!-- 数学列表 -->
|
|
|
- <shuxueListVue v-if="data.chanpinActiveSelect == 1" :list="data.shuxueList"></shuxueListVue>
|
|
|
|
|
|
|
+ <shuxueListVue v-if="data.chanpinActiveSelect == 'shuxue'" :list="data.shuxueList"></shuxueListVue>
|
|
|
<!-- 英语列表 -->
|
|
<!-- 英语列表 -->
|
|
|
- <yingyuListVue v-if="data.chanpinActiveSelect == 2" :list="data.yingyuList"></yingyuListVue>
|
|
|
|
|
|
|
+ <yingyuListVue v-if="data.chanpinActiveSelect == 'yingyu'" :list="data.yingyuList"></yingyuListVue>
|
|
|
<!-- 语文列表 -->
|
|
<!-- 语文列表 -->
|
|
|
- <yuwenListVue v-if="data.chanpinActiveSelect == 3" :list="data.yuwenList"></yuwenListVue>
|
|
|
|
|
|
|
+ <yuwenListVue v-if="data.chanpinActiveSelect == 'yuwen'" :list="data.yuwenList"></yuwenListVue>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<custom-tab-bar :show="true" :current-index="currentTabIndex"/>
|
|
<custom-tab-bar :show="true" :current-index="currentTabIndex"/>
|
|
@@ -46,21 +46,12 @@ import {getFullTimer} from "../../utils/common";
|
|
|
|
|
|
|
|
let currentTabIndex = ref(0)
|
|
let currentTabIndex = ref(0)
|
|
|
const data = reactive({
|
|
const data = reactive({
|
|
|
- list: [
|
|
|
|
|
- {
|
|
|
|
|
- name: '数学',
|
|
|
|
|
- value: 1
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '英语',
|
|
|
|
|
- value: 2
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '语文',
|
|
|
|
|
- value: 3
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ list:[
|
|
|
|
|
+ { key: 'shuxue', label: '数学' },
|
|
|
|
|
+ { key: 'yingyu', label: '英语' },
|
|
|
|
|
+ { key: 'yuwen', label: '语文' }
|
|
|
],
|
|
],
|
|
|
- chanpinActiveSelect: 1,
|
|
|
|
|
|
|
+ chanpinActiveSelect: 'shuxue',
|
|
|
|
|
|
|
|
shuxueList: [],
|
|
shuxueList: [],
|
|
|
})
|
|
})
|
|
@@ -99,7 +90,7 @@ function handleSelectChanpin(item) {
|
|
|
|
|
|
|
|
onShow(() => {
|
|
onShow(() => {
|
|
|
currentTabIndex.value = 0;
|
|
currentTabIndex.value = 0;
|
|
|
- data.chanpinActiveSelect = 1;
|
|
|
|
|
|
|
+ data.chanpinActiveSelect = 'shuxue';
|
|
|
|
|
|
|
|
if (getFullTimer() !== `2026-01-28`) {
|
|
if (getFullTimer() !== `2026-01-28`) {
|
|
|
//每日刷新
|
|
//每日刷新
|