Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 40d0d38f
authored
Jun 14, 2023
by
tianlonglong
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
ff73527c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
miniProject/index/index2.js
miniProject/index/index2.wxml
miniProject/index/index2.wxss
miniProject/index/index2.js
View file @
40d0d38
...
@@ -114,6 +114,9 @@ Component({
...
@@ -114,6 +114,9 @@ Component({
methods
:
{
methods
:
{
// 关闭自定义日期选择
// 关闭自定义日期选择
onClose
()
{
onClose
()
{
this
.
getTabBar
().
setData
({
show
:
true
});
this
.
setData
({
this
.
setData
({
show
:
false
show
:
false
});
});
...
@@ -126,6 +129,9 @@ Component({
...
@@ -126,6 +129,9 @@ Component({
},
},
// 点击自定义日期选择器的确定
// 点击自定义日期选择器的确定
onConfirm
(
event
)
{
onConfirm
(
event
)
{
this
.
getTabBar
().
setData
({
show
:
true
});
const
[
start
,
end
]
=
event
.
detail
;
const
[
start
,
end
]
=
event
.
detail
;
let
startDate
=
moment
(
start
).
format
(
"YYYY-MM-DD"
)
let
startDate
=
moment
(
start
).
format
(
"YYYY-MM-DD"
)
let
endDate
=
moment
(
end
).
format
(
"YYYY-MM-DD"
)
let
endDate
=
moment
(
end
).
format
(
"YYYY-MM-DD"
)
...
@@ -159,6 +165,9 @@ Component({
...
@@ -159,6 +165,9 @@ Component({
show
:
true
,
show
:
true
,
types
:
e
.
target
.
dataset
.
type
,
types
:
e
.
target
.
dataset
.
type
,
})
})
this
.
getTabBar
().
setData
({
show
:
false
,
});
break
;
break
;
}
}
if
(
dateType
!=
5
)
{
if
(
dateType
!=
5
)
{
...
@@ -315,8 +324,8 @@ Component({
...
@@ -315,8 +324,8 @@ Component({
getLineConfig
(
res
)
{
getLineConfig
(
res
)
{
let
xasix
=
res
.
xaxis
.
data
let
xasix
=
res
.
xaxis
.
data
// let legendList = res.series.map(item => item.name)
// let legendList = res.series.map(item => item.name)
let
seriesList
=
res
.
series
||
[]
let
seriesList
=
res
.
series
||
[]
if
(
seriesList
[
0
].
data
.
every
(
item
=>
!
item
))
{
if
(
seriesList
[
0
].
data
.
every
(
item
=>
!
item
))
{
return
{
return
{
title
:
{
title
:
{
text
:
'暂无数据'
,
text
:
'暂无数据'
,
...
@@ -442,7 +451,7 @@ Component({
...
@@ -442,7 +451,7 @@ Component({
// ["侧轨3", 15, 200],
// ["侧轨3", 15, 200],
// ["出样", 18, 200]
// ["出样", 18, 200]
// ];
// ];
if
(
confingData
.
series
.
length
<=
0
)
{
if
(
confingData
.
series
.
length
<=
0
)
{
return
{
return
{
title
:
{
title
:
{
text
:
'暂无数据'
,
text
:
'暂无数据'
,
...
@@ -556,7 +565,7 @@ Component({
...
@@ -556,7 +565,7 @@ Component({
// "type": "pie"
// "type": "pie"
// }]
// }]
// }
// }
if
(
faceGender
.
series
[
0
]
&&
faceGender
.
series
[
0
].
data
.
every
(
item
=>
item
))
{
if
(
faceGender
.
series
[
0
]
&&
faceGender
.
series
[
0
].
data
.
every
(
item
=>
item
))
{
return
{
return
{
title
:
{
title
:
{
text
:
'暂无数据'
,
text
:
'暂无数据'
,
...
@@ -688,7 +697,7 @@ Component({
...
@@ -688,7 +697,7 @@ Component({
// ]
// ]
// }
// }
// }
// }
if
(
faceAge
.
series
.
length
<=
0
)
{
if
(
faceAge
.
series
.
length
<=
0
)
{
return
{
return
{
title
:
{
title
:
{
text
:
'暂无数据'
,
text
:
'暂无数据'
,
...
...
miniProject/index/index2.wxml
View file @
40d0d38
...
@@ -30,22 +30,22 @@
...
@@ -30,22 +30,22 @@
<view class="card_passage">
<view class="card_passage">
<image src="../images/keliulaing.png" class="card_image"></image>
<image src="../images/keliulaing.png" class="card_image"></image>
<view class="er"> 客流量</view>
<view class="er"> 客流量</view>
<view class="er
fonts
"> {{traffic}}</view>
<view class="er
" style="font-size:48rpx
"> {{traffic}}</view>
</view>
</view>
<view class="card_passage">
<view class="card_passage">
<image src="../images/keliuliangyellow.png" class="card_image"></image>
<image src="../images/keliuliangyellow.png" class="card_image"></image>
<view class="er"> 曝光量</view>
<view class="er"> 曝光量</view>
<view class="er
fonts
"> {{exposure}}</view>
<view class="er
" style="font-size:48rpx
"> {{exposure}}</view>
</view>
</view>
<view class="card_passage">
<view class="card_passage">
<image src="../images/customer.png" class="card_image"></image>
<image src="../images/customer.png" class="card_image"></image>
<view class="er"> 顾客人数</view>
<view class="er"> 顾客人数</view>
<view class="er
fonts
"> {{customer}}</view>
<view class="er
" style="font-size:48rpx
"> {{customer}}</view>
</view>
</view>
<view class="card_passage">
<view class="card_passage">
<image src="../images/jindianlv.png" class="card_image"></image>
<image src="../images/jindianlv.png" class="card_image"></image>
<view class="er"> 进店率</view>
<view class="er"> 进店率</view>
<view class="er
fonts
"> {{entryRate}}%</view>
<view class="er
" style="font-size:48rpx
"> {{entryRate}}%</view>
</view>
</view>
</view>
</view>
<!-- 客流趋势分析 -->
<!-- 客流趋势分析 -->
...
...
miniProject/index/index2.wxss
View file @
40d0d38
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
background-color: #D5E2FF;
background-color: #D5E2FF;
height: 1
6
0rpx;
height: 1
4
0rpx;
font-size: 34rpx;
font-size: 34rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
font-weight: 500;
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
}
}
.container {
.container {
margin-top: 1
6
0rpx;
margin-top: 1
4
0rpx;
padding: 10rpx 20rpx 60px;
padding: 10rpx 20rpx 60px;
background: linear-gradient(154deg, #C7D3FF 0%, #E9F9FF 48%, #FFFFFF 100%);
background: linear-gradient(154deg, #C7D3FF 0%, #E9F9FF 48%, #FFFFFF 100%);
}
}
...
@@ -51,7 +51,9 @@
...
@@ -51,7 +51,9 @@
position: relative;
position: relative;
z-index: 1;
z-index: 1;
}
}
.fonts{
font-size: 48rpx;
}
.shop_name::after {
.shop_name::after {
content: '';
content: '';
width: 0;
width: 0;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment