Browse Source

修改

master
lidan 2 years ago
parent
commit
4beeb3780f
  1. 2
      pages.json
  2. 11
      pages/supervise/supervise.vue
  3. 22
      pages/supervise/superviseList.vue

2
pages.json

@ -28,7 +28,7 @@
"path": "pages/supervise/supervise",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
"enablePullDownRefresh": true
}
}, {

11
pages/supervise/supervise.vue

@ -8,7 +8,7 @@
<view style="height: calc(100vh - 24vh);padding: 10px;margin-top: -12px;"
:style="{background: 'url('+applet+'/jg/bg.png) no-repeat',backgroundSize:'100% 100%'}">
<view class="charts-box">
<qiun-data-charts type="arcbar" :opts="opts" :chartData="chartData" />
<qiun-data-charts type="arcbar" :opts="opts" :chartData="chartData" :canvas2d="true"/>
</view>
<view class="home-left-bottom">
<view class="home-left-bottom-item"
@ -129,13 +129,18 @@
url: '/pages/login/index'
})
}
}
},
onPullDownRefresh() {
this.loadData()
//
uni.stopPullDownRefresh();
},
}
</script>
<style scoped lang="scss">
.charts-box {
width: 50%;
width: 200px;
height: 200px;
margin: 30px auto;
// background-color: #fff;

22
pages/supervise/superviseList.vue

@ -14,13 +14,15 @@
<uni-list class="custom-list">
<u-card class="custom-card" v-for="(val,index) in list"
:show-foot="false" :show-head="false">
<view slot="body" class="u-body-title">企业名称{{val.unitName}}</view>
<view slot="body" class="u-body-item-desc">应打卡{{val.sum}}</view>
<view slot="body" class="u-body-item-desc">已打卡{{val.recnum}}</view>
<view slot="body" class="u-body-item-desc">打卡时间</view>
<view slot="body" class="u-body-item-desc" style="display: flex;justify-content: space-between;width: 70%;margin-left: 10%;">
<view class="u-body-item-desc" v-for="item in val.ut.split(',')" >{{item}}</view>
<view slot="body"><span class="u-body-title">企业名称</span><span class="u-body-item-desc">{{val.unitName}}</span></view>
<view slot="body"><span class="u-body-title">应打卡</span><span class="u-body-item-desc">{{val.sum}}</span></view>
<view slot="body"><span class="u-body-title">已打卡</span><span class="u-body-item-desc">{{val.recnum}}</span></view>
<view slot="body"><span class="u-body-title">打卡时间</span>
<span class="u-body-item-desc" v-for="item in val.ut.split(',')" >{{item}}</span>
</view>
<!-- <view slot="body" class="u-body-title" style="display: flex;justify-content: space-between;width: 70%;margin-left: 10%;">
</view> -->
</u-card>
</uni-list>
</view>
@ -112,8 +114,10 @@
}
}
.u-body-title {
font-size: 32rpx;
font-size: 28rpx;
color: #333;
font-weight: 550;
padding: 8rpx 0;
}
.u-body-item {
@ -123,7 +127,9 @@
.u-body-item-desc {
font-size: 28rpx;
color: #555;
padding: 0rpx;
padding: 8rpx;
float: right;
font-weight: 0;
}
.u-body-item image {

Loading…
Cancel
Save