123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <!--资格申请-->
- <template>
- <view id="transportPerson">
- <scroll-view scroll-y @scrolltolower="scrollGet" class="scroll-box">
- <view class="list">
- <view class="list_li" v-for="(item,index) in dataList" @click="goInfo(item)">
- <img class="for-back-img" src="@/pages_manage/images/icon_yqsq_sys.png">
- <text class="list_li_text">{{item.room}}</text>
- <text :class="item.remark=='1'?'list_li_text2':(item.remark=='0'?'colorA':(item.remark=='2'?'colorB':''))">{{item.remark=='1'?'有效期:'+item.startTime+'至'+item.endTime+'':(item.remark=='0'?'审核中':(item.remark=='2'?'审核驳回':''))}}</text>
- </view>
- </view>
- </scroll-view>
- <view class="empty" v-if="pageType==4">
- <img class="for-back-img" src="@/pages_manage/images/img_ysrygl_zwsj.png">
- <view>暂无数据</view>
- </view>
- <view class="sub_btn" @click="subBtn()">申请资格</view>
- </view>
- </template>
- <script>
- import { qualificationList } from '@/api/apiDemo/index.js'
- export default {
- name: "transportPerson",
- data() {
- return {
- pageType:0,
- //列表请求参数
- getData:{
- pageNum:1,
- pageSize:20,
- },
- dataList:[],
- status:0,
- }
- },
- onLoad() {
- },
- onShow() {
- //今天页面返回,清除存储气瓶信息
- uni.removeStorageSync('listDetail');
- },
- methods: {
- subBtn(){
- uni.redirectTo({
- url:'/pages_manage/gasBottle/examination/examinationAdd?status=0'
- });
- },
- goInfo(d){
- uni.redirectTo({
- url:'/pages_manage/gasBottle/examination/examinationDetail?item='+encodeURIComponent(JSON.stringify(d))
- });
- },
- //滚动加载事件
- scrollGet(){
- this.getData.pageNum += 1;
- this.getList();
- },
- //查询实验室
- async getList(){
- const {data} = await qualificationList()
- if(data.code == 200){
- let _this=this;
- let res=data.rows
- if(_this.getData.pageNum==1){
- _this.dataList=res;
- if(res.length>0){
- _this.pageType=0;
- }else{
- _this.pageType=4;
- }
- }else{
- _this.dataList=_this.dataList.concat(res);
- }
- }
- },
- },
- mounted(){
- this.getList();
- },
- }
- </script>
- <style lang="stylus" scoped>
- #transportPerson {
- height: auto;
- width: 100%;
- flex :1;
- display flex;
- flex-direction column
- overflow hidden;
- padding-bottom: 220rpx;
- .scroll-box{
- // flex:1;
- overflow-y scroll;
- .list{
- background: #FFFFFF;
- border-radius: 20rpx;
- margin: 20rpx 20rpx 0;
- padding: 0 20rpx;
- box-sizing: border-box;
- .list_li{
- height: 110rpx;
- display: flex;
- align-items: center;
- border-bottom:1px solid #f5f5f5;
- >img{
- width: 60rpx;
- height: 60rpx;
- }
- >text{
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 28rpx;
- display: inline-block;
- }
- .list_li_text{
- margin-left: 30rpx;
- width: 150rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 28rpx;
- }
- .list_li_text2{
- flex: 1;
- text-align: right;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 24rpx;
- }
- .colorA{
- flex: 1;
- text-align: right;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF8A00;
- line-height: 24rpx;
- }
- .colorB{
- flex: 1;
- text-align: right;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF6F6F;
- line-height: 24rpx;
- }
- }
- }
- }
- .empty{
- text-align: center;
- margin-top: 316rpx;
- >img{
- width: 336rpx;
- height: 222rpx;
- margin-left: 208rpx;
- }
- >view{
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #E0E0E0;
- line-height: 30rpx;
- margin-top: 48rpx;
- }
- }
- /* 按钮 */
- .sub_btn{
- width: 650rpx;
- height: 100rpx;
- background: #0183FA;
- border-radius: 20rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- line-height: 100rpx;
- text-align: center;
- margin-left: 50rpx;
- position: fixed;
- bottom:30rpx;
- z-index: 1000;
- }
- }
- </style>
|