|
@@ -4,9 +4,9 @@
|
|
|
<!-- 考试列表 -->
|
|
<!-- 考试列表 -->
|
|
|
<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
|
|
<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
|
|
|
:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh" @scrolltolower="onScrolltolower"
|
|
:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh" @scrolltolower="onScrolltolower"
|
|
|
- class="phone-scroll-view">
|
|
|
|
|
|
|
+ :style="{ height: `calc(100vh - ${statusBarHeight}px - 212rpx);`}" class="phone-scroll-overflow">
|
|
|
<uni-list class="admin-list-box">
|
|
<uni-list class="admin-list-box">
|
|
|
- <uni-list-item v-for="item in data.list" class="admin-list-item-box">
|
|
|
|
|
|
|
+ <uni-list-item v-for="item in data.list" class="admin-list-item-box" >
|
|
|
<template v-slot:body style="width: 100%;">
|
|
<template v-slot:body style="width: 100%;">
|
|
|
<!-- 考试项 -->
|
|
<!-- 考试项 -->
|
|
|
<view class="item-card-row">
|
|
<view class="item-card-row">
|
|
@@ -22,10 +22,12 @@
|
|
|
<!-- 分数 -->
|
|
<!-- 分数 -->
|
|
|
<view class="ks-score-content">
|
|
<view class="ks-score-content">
|
|
|
<view class="ks-score">
|
|
<view class="ks-score">
|
|
|
- <icon class="phone-zongfen-icon" />总分:<text>{{item.ksScore}}</text>
|
|
|
|
|
|
|
+ <icon class="phone-zongfen-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.phoneZongfenIcon + ')' }"/>
|
|
|
|
|
+ 总分:<text>{{item.ksScore}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="ks-okScore">
|
|
<view class="ks-okScore">
|
|
|
- <icon class="phone-jigefen-icon" />及格分:<text>{{item.okScore}}</text>
|
|
|
|
|
|
|
+ <icon class="phone-jigefen-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.phoneJigefenIcon + ')' }"/>
|
|
|
|
|
+ 及格分:<text>{{item.okScore}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<button type="primary" size="mini" @click="checkKsXz(item)"
|
|
<button type="primary" size="mini" @click="checkKsXz(item)"
|
|
@@ -44,21 +46,19 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
|
|
+ import cacheManager from '@/utils/cacheManager.js';
|
|
|
import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
|
|
import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
|
|
|
import * as lianxiApi from "@/api/lianxi.js";
|
|
import * as lianxiApi from "@/api/lianxi.js";
|
|
|
import customTabbarClientVue from "@/components/custom-tabbar/custom-tabbar-client.vue";
|
|
import customTabbarClientVue from "@/components/custom-tabbar/custom-tabbar-client.vue";
|
|
|
import lianxixuzhi from "@/components/kaoshixuzhi/lianxixuzhi.vue";
|
|
import lianxixuzhi from "@/components/kaoshixuzhi/lianxixuzhi.vue";
|
|
|
- import {
|
|
|
|
|
- ref,
|
|
|
|
|
- reactive
|
|
|
|
|
- } from "vue";
|
|
|
|
|
|
|
+ import {ref,onMounted,reactive} from "vue";
|
|
|
import {
|
|
import {
|
|
|
onLoad,
|
|
onLoad,
|
|
|
onShow
|
|
onShow
|
|
|
} from "@dcloudio/uni-app";
|
|
} from "@dcloudio/uni-app";
|
|
|
|
|
|
|
|
const lxxzRef = ref(null);
|
|
const lxxzRef = ref(null);
|
|
|
-
|
|
|
|
|
|
|
+ const statusBarHeight = ref(0);
|
|
|
const data = reactive({
|
|
const data = reactive({
|
|
|
zyName: '', // 职业名称
|
|
zyName: '', // 职业名称
|
|
|
list: [], // 考试列表
|
|
list: [], // 考试列表
|
|
@@ -71,7 +71,11 @@
|
|
|
contentrefresh: '加载中',
|
|
contentrefresh: '加载中',
|
|
|
contentnomore: '没有更多'
|
|
contentnomore: '没有更多'
|
|
|
},
|
|
},
|
|
|
- from: ''
|
|
|
|
|
|
|
+ from: '',
|
|
|
|
|
+ imgsArr: {
|
|
|
|
|
+ phoneZongfenIcon: '',
|
|
|
|
|
+ phoneJigefenIcon: '',
|
|
|
|
|
+ },
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
function onScrolltolower() {
|
|
function onScrolltolower() {
|
|
@@ -176,8 +180,18 @@
|
|
|
|
|
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
|
data.from = options.from;
|
|
data.from = options.from;
|
|
|
|
|
+ data.imgsArr.phoneZongfenIcon = cacheManager.get('projectImg').zongfen_icon;
|
|
|
|
|
+ data.imgsArr.phoneJigefenIcon = cacheManager.get('projectImg').jigefen_icon;
|
|
|
|
|
+ console.log(data,'data');
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+ onMounted(() => {
|
|
|
|
|
+ uni.getSystemInfo({
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ statusBarHeight.value = res.statusBarHeight;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
onShow(() => {
|
|
onShow(() => {
|
|
|
getMore()
|
|
getMore()
|
|
|
})
|
|
})
|