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 db354d8a
authored
Jan 30, 2023
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
4b3204fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
12 deletions
miniProject/pages/home/index.wxml
miniProject/pages/index/mall/index.wxml
miniProject/pages/zong/condition/index.wxml
miniProject/pages/zong/selectMall/index.js
miniProject/pages/home/index.wxml
View file @
db354d8
<view class="container" style="padding-top: {{navHeight}}px;height:{{windowHeight}}px;">
<view class="container" style="padding-top: {{navHeight}}px;height:{{windowHeight
-navHeight
}}px;">
<navbar page-name="综合分析" bg-color="#fff" navbar-color="rgba(0, 0, 0, .85)" />
<navbar page-name="综合分析" bg-color="#fff" navbar-color="rgba(0, 0, 0, .85)" />
<
scroll-
view class="part-list" scroll-y>
<view class="part-list" scroll-y>
<!-- 我的 S -->
<!-- 我的 S -->
<!-- <view class="my part">
<!-- <view class="my part">
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</view> -->
</view> -->
<!-- 员工管理 E -->
<!-- 员工管理 E -->
</
scroll-
view>
</view>
<!-- <view class="zong-content">
<!-- <view class="zong-content">
<view wx:for="{{menuItems}}" wx:for-index="index" wx:for-item="n" wx:key="index" class="item" bindtap="goOtherPage" data-value="{{n}}">
<view wx:for="{{menuItems}}" wx:for-index="index" wx:for-item="n" wx:key="index" class="item" bindtap="goOtherPage" data-value="{{n}}">
<image src="{{ '../../images/icon/' + n.icon + '.png' }}" class="img" />
<image src="{{ '../../images/icon/' + n.icon + '.png' }}" class="img" />
...
...
miniProject/pages/index/mall/index.wxml
View file @
db354d8
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<view>{{ deploymentType === 'store' ? '门店排名' : '商场排名' }}</view>
<view>{{ deploymentType === 'store' ? '门店排名' : '商场排名' }}</view>
</view>
</view>
<view class="~tablist" style="width:73%;margin-top:10rpx;">
<view class="~tablist" style="width:73%;margin-top:10rpx;">
<van-tabs bindclick="changeRank" active="{{rankVal}}">
<van-tabs
tab-class='tab-box'
bindclick="changeRank" active="{{rankVal}}">
<van-tab title="客流量" name="total_passenger"></van-tab>
<van-tab title="客流量" name="total_passenger"></van-tab>
<van-tab title="进店率" name="avg_entry_rate"></van-tab>
<van-tab title="进店率" name="avg_entry_rate"></van-tab>
<van-tab title="停留时长" name="custom_residence_time"></van-tab>
<van-tab title="停留时长" name="custom_residence_time"></van-tab>
...
...
miniProject/pages/zong/condition/index.wxml
View file @
db354d8
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<view class="select-item">
<view class="select-item">
<view>日期</view>
<view>日期</view>
<view class="select-item-one">
<view class="select-item-one">
<
view>{{date.startDate}} {{date.endDate && date.endDate !== '' ? (' / ' + date.endDate) : date.endDate}}</view
>
<
!-- <view>{{date.startDate}} {{date.endDate && date.endDate !== '' ? (' / ' + date.endDate) : date.endDate}}</view> --
>
<time-picker
<time-picker
class="picker"
class="picker"
placeholder="请选择时间"
placeholder="请选择时间"
...
...
miniProject/pages/zong/selectMall/index.js
View file @
db354d8
// pages/zong/condition/index.js
// pages/zong/condition/index.js
const
App
=
getApp
();
const
App
=
getApp
();
import
{
getIndexInfo
}
from
'../../../api/index'
;
Page
({
Page
({
/**
/**
...
@@ -12,7 +12,9 @@ Page({
...
@@ -12,7 +12,9 @@ Page({
windowWidth
:
App
.
globalData
.
windowWidth
,
windowWidth
:
App
.
globalData
.
windowWidth
,
accountList
:
[],
accountList
:
[],
gateList
:
[],
selectGate
:
''
,
gateId
:
''
,
selectData
:
[],
selectData
:
[],
},
},
...
@@ -55,17 +57,40 @@ Page({
...
@@ -55,17 +57,40 @@ Page({
radioChange
:
function
(
e
)
{
radioChange
:
function
(
e
)
{
const
{
value
}
=
e
.
detail
const
{
value
}
=
e
.
detail
this
.
setData
({
selectData
:
[
parseInt
(
value
)]
})
this
.
setData
({
selectData
:
[
parseInt
(
value
)]
},()
=>
{
this
.
getGateList
(
value
)
})
},
},
checkboxChange
:
function
(
e
)
{
checkboxChange
:
function
(
e
)
{
const
{
value
}
=
e
.
detail
const
{
value
}
=
e
.
detail
this
.
setData
({
selectData
:
value
})
this
.
setData
({
selectData
:
value
})
},
},
// 获取出入口列表
getGateList
:
function
(
e
)
{
const
atoken
=
wx
.
getStorageSync
(
'atoken'
);
const
id
=
wx
.
getStorageSync
(
'accountId'
);
const
data
=
{
accountId
:
id
,
mallId
:
e
,
status
:
1
,
type_arr
:
'1,3'
}
getIndexInfo
(
'/report/gates'
,
data
,
{
'Authorization'
:
atoken
}).
then
(
res
=>
{
console
.
log
(
res
.
data
)
if
(
res
.
data
.
length
>
0
)
{
this
.
setData
({
gateList
:
res
.
data
,
gateId
:
[
res
.
data
[
0
].
id
],
selectGate
:
res
.
data
[
0
].
name
})
}
})
},
// 返回上一页
// 返回上一页
queding
:
function
(
e
)
{
queding
:
function
(
e
)
{
const
{
selectData
,
accountList
,
reportType
}
=
this
.
data
const
{
selectData
,
accountList
,
reportType
,
gateList
,
gateId
,
selectGate
}
=
this
.
data
let
pages
=
getCurrentPages
();
let
pages
=
getCurrentPages
();
let
prevPage
=
pages
[
pages
.
length
-
2
];
let
prevPage
=
pages
[
pages
.
length
-
2
];
let
selectMall
=
''
let
selectMall
=
''
...
@@ -80,8 +105,11 @@ Page({
...
@@ -80,8 +105,11 @@ Page({
}
}
prevPage
.
setData
({
prevPage
.
setData
({
accountId
:
selectData
,
accountId
:
selectData
,
selectMall
:
selectMall
selectMall
:
selectMall
,
gateList
:
gateList
,
gateId
:
gateId
,
selectGate
:
selectGate
})
})
wx
.
navigateBack
({
delta
:
1
})
wx
.
navigateBack
({
delta
:
1
})
}
}
...
...
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