123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603 |
- <template>
- <view>
- <u-navbar title="用户详情"></u-navbar>
- <view class="gradient-header">
- <view class="jpback">
- </view>
- </view>
- <view class="main">
- <view class="statistics ">
- <view class="data1">
- <view class="imgclass">
- <img class="img" src="@/assets/img/默认头像.png" mode=""></img>
- </view>
- <view class="item">
- <view class="name">
- <view>软件园</view>
- <view class="tag">停车用户</view>
- </view>
- <view class="value">
- <image class="img img1" src="@/assets/img/userTab/index1-2.svg" mode=""></image>
- 123111
- </view>
- <view class="value">
- <image class="img img2" src="@/assets/img/userTab/index1-1.svg" mode=""></image>
- 123111
- </view>
- </view>
- </view>
- </view>
- <!--end-->
- <view class="statistics ">
- <view class="data2">
- <view class="line line1">
- <view class="item1">
- 累计停车时长
- </view>
- <view class="item">
- 使用次数
- </view>
- <view class="item">
- 异常次数
- </view>
- </view>
- <view class="line line2">
- <view class="item1">
- 205h13m
- </view>
- <view class="item">
- 22
- </view>
- <view class="item">
- 2
- </view>
- </view>
- </view>
- </view>
- <!--end-->
- <view class="statistics ">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- <view>常用时段雷达图</view>
- </view>
- </view>
- <view class="contentBody">
- <jpContent :status="jpContentMap.body3">
- <view class="body3">
- <view id="body3echart" class="body3echart">
- </view>
- </view>
- </jpContent>
- </view>
- </view>
- <!--end-->
- <view class="statistics ">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- <view>停留时长次数统计</view>
- </view>
- </view>
- <view class="contentBody">
- <jpContent :status="jpContentMap.body4">
- <view class="body4">
- <view id="body4echart" class="body4echart">
- </view>
- </view>
- </jpContent>
- </view>
- </view>
- <!--end-->
- <view class="statistics ">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- <view>常用停车场</view>
- </view>
- </view>
- <view class="contentBody">
- <jpContent :status="jpContentMap.body5">
- <view class="body5data">
- <view class="line">
- <view class="value value1">
- 停车场
- </view>
- <view class="value value2">
- 车主身份
- </view>
- <view class="value value3">
- 使用次数
- </view>
- <view class="value value4">
- 操作
- </view>
- </view>
- <view class="line line2">
- <view class="value value1">
- 荆鹏软件园荆鹏软件园荆鹏软件园
- </view>
- <view class="value value2">
- 地锁所有人
- </view>
- <view class="value value3">
- 22
- </view>
- <view class="value value4">
- 查看
- </view>
- </view>
- <view class="line line2">
- <view class="value value1">
- 荆州院子
- </view>
- <view class="value value2">
- 白名单用户
- </view>
- <view class="value value3">
- 11
- </view>
- <view class="value value4">
- 查看
- </view>
- </view>
- </view>
- </jpContent>
- </view>
- </view>
- <!--end-->
- <u-divider border-color="#CFD2D5">已经到底了</u-divider>
- </view>
- </view>
- </template>
- <script>
- import jpContent from '@/components/JPcontent.vue'
- import * as echarts from 'echarts';
- export default {
- components: {
- jpContent
- },
- data() {
- return {
- echartsList: {},
- jpContentMap: {
- body1: 2,
- body2: 2,
- body3: 2,
- body4: 2,
- body5: 2,
- body6: 2,
- body7: 2,
- body8: 2,
- body9: 2,
- body10: 2,
- },
- };
- },
- onLoad() {
-
- },
- onReady() {
- this.init();
- },methods: {
- init() {
-
- this.getbody3()
- this.getbody4()
-
- },
- getbody4(){
- var key = "body4echart"
- var myChart = this.echartsList[key];
- if (!myChart) {
- myChart = echarts.init(document.getElementById(key), null, {
- width: uni.upx2px(300 * 2),
- height: uni.upx2px(170 * 2)
- })
-
- }
- myChart.clear()
-
- var data1 = ['0.5小时', '2小时', '2-6小时','6小时以上']
-
- var option = {
- xAxis: {
-
- type: 'category',
-
- data: data1,
-
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- yAxis: {
- type: 'value',
-
-
- },
- grid: {
- top: 20,
- left: 0,
- right: 20,
- bottom: 0,
- containLabel: true
- },
- series: [{
- label: {
- show: true,
- position: 'top',
- color: "#307AF6"
- },
- itemStyle: {
- color: "#5A88E5"
- },
- data: [120, 200, 150,22],
- type: 'bar'
- }]
- };
- myChart.setOption(option);
- this.echartsList[key] = myChart;
- },
- getbody3() {
- var key = "body3echart"
- var myChart = this.echartsList[key];
- if (!myChart) {
- myChart = echarts.init(document.getElementById(key), null, {
- width: uni.upx2px(300 * 2),
- height: uni.upx2px(170 * 2)
- })
-
- }
- myChart.clear()
-
- var data1 = ['0-7点', '7-14点', '14-24点']
-
- var option = {
- xAxis: {
-
- type: 'value',
- boundaryGap: [0, 0.01]
-
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- yAxis: {
-
- type: 'category',
- data: data1,
- },
- grid: {
- top: 20,
- left: 0,
- right: 20,
- bottom: 0,
- containLabel: true
- },
- series: [{
- label: {
- show: true,
- position:'right' ,
- color: "#307AF6"
- },
- itemStyle: {
- color: "#5A88E5"
- },
- data: [120, 200, 150],
- type: 'bar'
- }]
- };
- myChart.setOption(option);
- this.echartsList[key] = myChart;
- },
- }
-
- }
- </script>
- <style lang="scss">
- .gradient-header {
- height: 0px;
- }
- .jpback {
- height: 268rpx;
- background: linear-gradient(180deg, rgba(203, 234, 255, 1) 0%, rgba(203, 234, 255, 0) 100%);
- }
- .main {
- padding: 32rpx;
- .no_statistics {
- margin-bottom: 24rpx;
- }
- .statistics {
- border-radius: 8px;
- background-color: rgba(255, 255, 255, 1);
- box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
- margin-bottom: 24rpx;
- padding: 40rpx;
- .title {
- display: flex;
- align-items: center;
- margin-bottom: 32rpx;
- font-weight: bold;
- .img {
- width: 36rpx;
- height: 36rpx;
- vertical-align: middle;
- border-radius: 999px;
- }
- .change {
- display: flex;
- align-items: center;
- .change-img {
- width: 32rpx;
- height: 32rpx;
- vertical-align: middle;
- }
- text {
- margin-left: 8rpx;
- }
- }
- .text {
- color: rgba(16, 16, 16, 1);
- font-size: 36rpx;
- margin-left: 16rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- .tag {
- border-radius: 4px;
- border: 1px solid rgba(187, 187, 187, 1);
- color: rgba(51, 51, 51, 1);
- font-size: 24rpx;
- padding: 1px 8rpx;
- margin-left: 8rpx;
- }
- }
- .change {
- margin-left: 16rpx;
- font-size: 24rpx;
- color: #838383;
- }
- .check-all {
- margin-left: auto;
- color: rgba(131, 131, 131, 1);
- font-size: 24rpx;
- }
- }
- }
- }
- .data1 {
- display: flex;
- .imgclass {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 160rpx;
- height: 160rpx;
- .img {
- width: 160rpx;
- height: 160rpx;
- }
- border-radius: 4px;
- background-color: #E5E5E5;
- }
- .item {
- margin-left: 16rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- .name {
- font-size: 40rpx;
- color: rgba(16, 16, 16, 1);
- display: flex;
- align-items: center;
- .tag {
- border-radius: 4px;
- background-color: rgba(255, 255, 255, 1);
- color: rgba(22, 119, 255, 1);
- font-size: 12px;
- border: 1px solid rgba(22, 119, 255, 1);
- padding: 1px 2px;
- margin-left: 8rpx;
- }
- }
- .value {
- display: flex;
- align-items: center;
- color: rgba(119, 119, 119, 1);
- font-size: 28rpx;
- .img {
- width: 32rpx;
- height: 32rpx;
- margin-right: 8rpx;
- }
- .img1 {}
- .img2 {}
- }
- }
- }
- .data2 {
- .line {
- display: flex;
- .item1 {
- width: 50%;
- }
- .item {
- width: 25%;
- }
- }
- .line1 {
- color: rgba(51, 51, 51, 1);
- font-size: 16px;
- }
- .line2 {
- color: rgba(16, 16, 16, 1);
- font-weight: bold;
- font-size: 24px;
- }
- }
- .body5data {
-
- .line {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .value {
-
- padding: 16rpx 4rpx;
- color: rgba(51, 51, 51, 1);
- }
- .value1{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .value1{
-
- width: 120px;
- padding-left: 16rpx;
- }
- .value2{
- width: 75px;
- }
- .value3{
- width: 60px;
- text-align: center;
- }
- .value4{
- width: 40px;
-
- }
-
- }
- .line2{
- .value4{
-
- color: #1677FF;
-
- }
- }
- /* 隔行变色: 偶数行设置背景色 */
- .line:nth-child(odd) {
- background-color: #F2F2F2;
- /* 偶数行 */
- }
- .line:nth-child(even) {
- background-color: #FFFFFF
- /* 奇数行 */
- }
- }
- </style>
|