| | |
| | | <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"> |
| | |
| | | this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight']; |
| | | // uni.hideTabBar(); |
| | | this.getUserInfo() |
| | | this.getExamList() |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | }) |
| | | }, |
| | | |
| | | 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({ |
| | |
| | | toMyScore(){ |
| | | uni.setStorageSync("prevPage", '/pages/tabBar/count/count'); |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/count/countDetail` |
| | | url: '/pages/tabBar/count/countDetail' |
| | | }) |
| | | }, |
| | | |
| | | loginOut(){ |
| | | uni.showModal({ |
| | | title: '提示', |
| | |
| | | if(res.code == 200){ |
| | | uni.showToast({ |
| | | title: '账户已退出', |
| | | duration: 1000 |
| | | duration: 800 |
| | | }) |
| | | setTimeout(()=>{ |
| | | uni.clearStorageSync(); |
| | |
| | | uni.navigateTo({ |
| | | url: '/pages/index/index' |
| | | }) |
| | | },1000) |
| | | },800) |
| | | } |
| | | }) |
| | | } else if (res.cancel) { |
| | |
| | | }) |
| | | }, |
| | | |
| | | 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):'' |
| | |
| | | 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; |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 15px 0; |
| | | box-sizing: border-box; |
| | | cursor: pointer; |
| | | |
| | | .menu-l{ |
| | | display: flex; |