赞
踩
- <template>
- <view>
- <view class="tablist">
- <text v-for="item in tablist" :class="item.id==id?'text':''" @click="tabclick(item)">{
- {item.title}}</text>
- </view>
- <h3>{
- {title}}</h3>
- <scroll-view scroll-y="true" :style="`height: calc(100vh - ${top}px);`">
- <view class="list">
- <view class="listitem" v-for="item in list">
- {
- {item.title}}
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
-
- <script>
- import {
- sbsdcat,
- sbsdlist
- } from '@/config/api/index.js'
- export default {
- data() {
- return {
- tablist: [],
- id: 35,
- title: '公共英语',
- list: [],
- top:''
- }
- },
- created() {
- this.getdata()
- },
- mounted() {
- cons
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。