From e97cbd81486e8737d66855faa8be109bd114c022 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 24 七月 2024 17:30:46 +0800
Subject: [PATCH] 提交
---
pages/tabBar/wearhouse/wearhouse.vue | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/pages/tabBar/wearhouse/wearhouse.vue b/pages/tabBar/wearhouse/wearhouse.vue
index 533143a..4a4f463 100644
--- a/pages/tabBar/wearhouse/wearhouse.vue
+++ b/pages/tabBar/wearhouse/wearhouse.vue
@@ -18,6 +18,7 @@
<view class="cardList">
<scroll-view scroll-y="true" class="scroll-Y" @scrolltoupper="upper"
@scrolltolower="lower" lower-threshold="150" @scroll="scrollView" style="height:100%">
+ <view style="padding: 20px 0 20px">
<view class="card-i" v-for="(item,index) in quizList" :key="index">
<view class="card-i-l">
<view>{{item.name}}</view>
@@ -30,6 +31,7 @@
<u-button class="study-button" type="error" text="查看错题" shape="circle" size="small" @click="getQuestionIds(item,3)"></u-button>
<u-button class="study-button" text="重置" shape="circle" size="small" @click="reSet(item.id)"></u-button>
</view>
+ </view>
</view>
</scroll-view>
</view>
@@ -69,6 +71,9 @@
onShow() {
// this.role = uni.getStorageSync('roleName');
},
+ created(){
+ uni.hideTabBar()
+ },
mounted(){
},
@@ -85,6 +90,7 @@
url:'/pages/tabBar/firstPage/firstPage'
});
},
+
getQuizList(){
const t = this
getQuizHouse(t.classParams).then(res => {
@@ -110,13 +116,13 @@
});
return
}
- if(type == 2 && item.totalCount == item.exerciseCount){
- uni.showToast({
- title: '该题库所有题目已刷完',
- duration: 1000
- });
- return
- }
+ // if(type == 2 && item.totalCount == item.exerciseCount){
+ // uni.showToast({
+ // title: '该题库所有题目已刷完',
+ // duration: 1000
+ // });
+ // return
+ // }
uni.setStorageSync("prevPage", '/pages/tabBar/wearhouse/wearhouse');
uni.navigateTo({
url: `/pages/tabBar/wearhouse/questions?bank=` + encodeURIComponent(JSON.stringify(item)) + `&type=` + encodeURIComponent(JSON.stringify(type))
@@ -209,13 +215,13 @@
}
.cardList{
width: 100%;
- height: calc(100vh - 160px);
- margin: 20px 0;
+ height: calc(100vh - 130px);
+ box-sizing: border-box;
.card-i{
width: calc(100% - 30px);
background: #fff;
- border-radius: 16px;
+ border-radius: 20px;
padding: 15px;
margin: 0 auto 15px;
position: relative;
--
Gitblit v1.9.2