|
@@ -4,13 +4,6 @@
|
|
|
<view @click="goUpPage" class="nav-bar-icon"></view>
|
|
|
<text class="nav-bar-title">课程管理</text>
|
|
|
</view>
|
|
|
- <!-- 查询职业 -->
|
|
|
- <view class="phone-search-box">
|
|
|
- <input class="search-input" placeholder="请输入职业名称" v-model="data.zyName" />
|
|
|
- <view class="search-icon" @click="handleSearch">
|
|
|
- <uni-icons type="search" size="24" color="#fff"></uni-icons>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
<!-- 课程列表 -->
|
|
|
<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
|
|
|
:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh"
|
|
@@ -23,7 +16,7 @@
|
|
|
<view class="item-card-row">
|
|
|
<!-- 数量 -->
|
|
|
<view class="ks-item-top">
|
|
|
- <view class="kc-name">{{item.zyName}} [{{item.zyLevelName}}]</view>
|
|
|
+ <view class="kc-name">{{item.name}}</view>
|
|
|
</view>
|
|
|
<view class="ks-totalTm kc-totalTm">
|
|
|
<icon class="phone-time-icon" />时间:{{formatDuration(item.period)}}分钟
|
|
@@ -56,7 +49,6 @@
|
|
|
import {formatDuration} from "@/utils/common.js"
|
|
|
|
|
|
const data = reactive({
|
|
|
- zyName: '', // 职业名称
|
|
|
list: [], // 考试列表
|
|
|
loading: false,
|
|
|
page: 0,
|
|
@@ -97,7 +89,6 @@
|
|
|
const opt = {
|
|
|
page: 1,
|
|
|
size: 10, // 固定查询10条
|
|
|
- zyName: data.zyName
|
|
|
}
|
|
|
data.list = [];
|
|
|
// 数学
|
|
@@ -126,7 +117,6 @@
|
|
|
const opt = {
|
|
|
page: 1,
|
|
|
size: 10, // 固定查询10条
|
|
|
- zyName: data.zyName
|
|
|
}
|
|
|
if (data.state == 'no-more') return;
|
|
|
data.state = 'loading';
|