From 700eb98db0151940cc91abcc5b3149ce23ec42de Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期四, 08 八月 2024 08:55:49 +0800 Subject: [PATCH] 提交 --- pages/tabBar/count/count.vue | 52 +++++++++++----------------------------------------- 1 files changed, 11 insertions(+), 41 deletions(-) diff --git a/pages/tabBar/count/count.vue b/pages/tabBar/count/count.vue index fc0f45f..731455e 100644 --- a/pages/tabBar/count/count.vue +++ b/pages/tabBar/count/count.vue @@ -29,9 +29,9 @@ <span>{{user.name}}</span> </view> - <view class="info-id"> - ID:<span>{{user.idNo}}</span> - </view> +<!-- <view class="info-id">--> +<!-- ID:<span>{{user.idNo}}</span>--> +<!-- </view>--> </view> </view> <view class="card-list"> @@ -94,7 +94,6 @@ this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight']; // uni.hideTabBar(); this.getUserInfo() - this.getExamList() }, methods: { @@ -114,22 +113,6 @@ }) }, - getExamList(){ - getExamList(this.examParams).then(res => { - if(res.code == 200) { - let list = res.data.list?res.data.list: []; - if (res.pageNum != 1) { - this.examList = this.examList.concat(list) - } else { - this.examList = res.data.list - } - this.totalPage = res.data.totalPage - }else{ - uni.$u.toast(res.message) - } - }) - }, - toDetail(item,type){ uni.setStorageSync("prevPage", '/pages/tabBar/count/count'); uni.navigateTo({ @@ -139,9 +122,10 @@ toMyScore(){ uni.setStorageSync("prevPage", '/pages/tabBar/count/count'); uni.navigateTo({ - url: `/pages/tabBar/count/countDetail` + url: '/pages/tabBar/count/countDetail' }) }, + loginOut(){ uni.showModal({ title: '提示', @@ -152,7 +136,7 @@ if(res.code == 200){ uni.showToast({ title: '账户已退出', - duration: 1000 + duration: 800 }) setTimeout(()=>{ uni.clearStorageSync(); @@ -160,7 +144,7 @@ uni.navigateTo({ url: '/pages/index/index' }) - },1000) + },800) } }) } else if (res.cancel) { @@ -170,22 +154,6 @@ }) }, - upper(e) { - // console.log(e) - }, - lower(e) { - //并且让页码+1,调用获取数据的方法获取第二页数据 - this.examParams.pageNum++ - //此处调用自己获取数据列表的方法 - if (this.examParams.pageNum > this.totalPage){ - uni.$u.toast('已加载全部数据') - return - } - this.getExamList() - }, - scrollView(e) { - // console.log(e) - }, getPhoneNumber(phone) { const firstThree = phone?phone.slice(0, 3):'' const lastFour = phone?phone.slice(-4):'' @@ -302,12 +270,11 @@ width: calc(100% - 60px); background: #fff; border-radius: 20px; - padding: 15px 15px 20px; + padding: 15px 15px 5px; margin: 0 auto 15px; box-sizing: border-box; box-shadow: 0 3px 8px rgba(150,150,150,.1); .company-info{ - margin-bottom: 15px; border-bottom: 1px solid #e6e6e6; .company-i{ display: flex; @@ -331,6 +298,9 @@ display: flex; align-items: center; justify-content: space-between; + padding: 15px 0; + box-sizing: border-box; + cursor: pointer; .menu-l{ display: flex; -- Gitblit v1.9.2