Commit c5b4129e by 李君

集团首页

1 parent f5a7da44
let http = require('../utils/request'); let http = require('../utils/request');
module.exports = { module.exports = {
// 获取卡片数据 // 获取卡片数据
getCardData(userId, params) { getCardData(userId, params) {
return http.get(`/report/users/${userId}`, params); return http.get(`/report/users/${userId}`, params);
}, },
// 获取业态客流趋势 // 获取业态客流趋势
getTrendData(userId, params) { getTrendData(userId, params) {
return http.get(`/report/users/${userId}`, params); return http.get(`/report/users/${userId}`, params);
}, },
// 获取停留时长统计 // 获取停留时长统计
getStopTimeData(userId, params) { getStopTimeData(userId, params) {
return http.get(`/report/users/${userId}`, params); return http.get(`/report/users/${userId}`, params);
}, },
// 获取客群性别和年龄 // 获取客群性别和年龄
getAgeSexData(userId, params) { getAgeSexData(userId, params) {
return http.get(`/report/users/${userId}`, params); return http.get(`/report/users/${userId}`, params);
}, },
// 获取店铺位置,面积,天气 // 获取店铺位置,面积,天气
getShopDetailData(userId, params) { getShopDetailData(userId, params) {
return http.get(`/report/users/${userId}`, params); return http.get(`/report/users/${userId}`, params);
}, },
getPermission(id){ getPermission(id) {
return http.get(`/report/auth/api/v1/auth/users/${id}`); return http.get(`/report/auth/api/v1/auth/users/${id}`);
}, },
editUserInfo(params){ editUserInfo(params) {
return http.post(`/report/users/${params.userId}`, params); return http.post(`/report/users/${params.userId}`, params);
},
editUserPwd(params) {
return http.post(`/report/users/updateUser`, params);
},
// 集团首页卡片信息
getAccountCard(params) {
return http.get(`/report/wechat/account/index/info`, params);
},
// 集团首页客流趋势分析
getAccountTrafficTrend(params) {
return http.get(`/report/wechat/account/index/trafficTrend`, params);
},
// 集团首页门店排行
getAccountMallRank(params) {
return http.get(`/report/wechat/account/index/mall/rank`, params);
}, },
editUserPwd(params){
return http.post(`/report/users/updateUser`, params);
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<image src="../images/banner.png" class='images'></image> <image src="../images/banner.png" class='images'></image>
<view class="shop_name">{{selectName}}</view> <view class="shop_name">{{selectName}}</view>
<view class="shop_time"> <view class="shop_time">
<text>开业门店总数:254个</text> <text>开业门店总数:{{openMllNum}}个</text>
</view> </view>
</view> </view>
<!-- 选择时间 --> <!-- 选择时间 -->
...@@ -27,40 +27,40 @@ ...@@ -27,40 +27,40 @@
<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="cardName"> 路过客流量</view> <view class="cardName"> 路过客流量</view>
<view class="cardNum"> 35480</view> <view class="cardNum"> {{exposure}}</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="cardName"> 客流量</view> <view class="cardName"> 客流量</view>
<view class="cardNum"> 35480</view> <view class="cardNum"> {{traffic}}</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="cardName"> 顾客人数</view> <view class="cardName"> 顾客人数</view>
<view class="cardNum"> 35480</view> <view class="cardNum"> {{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="cardName"> 进店率</view> <view class="cardName"> 进店率</view>
<view class="cardNum"> 35480</view> <view class="cardNum"> {{entryRate}} %</view>
</view> </view>
</view> </view>
<!-- 客流趋势分析 --> <!-- 客流趋势分析 -->
<view class="keliuliang"> <view class="keliuliang">
<text class="title_chart">客流趋势分析</text> <text class="title_chart">客流趋势分析</text>
<view class="tab_tll"> <view class="tab_tll">
<text class="text_tltle {{trendtypes==1?'actives':'defaults'}}" bindtap="ClickPassageFlow" data-type='1'>过店客流</text> <text class="text_tltle {{trendtypes=='PassengerFlow'?'actives':'defaults'}}" bindtap="ClickPassageFlow" data-type='PassengerFlow'>过店客流</text>
<text class="text_tltle {{trendtypes==2?'actives':'defaults'}}" bindtap="ClickPassageFlow" data-type='2'>进店客流</text> <text class="text_tltle {{trendtypes=='Exposure'?'actives':'defaults'}}" bindtap="ClickPassageFlow" data-type='Exposure'>进店客流</text>
<text class="text_tltle {{trendtypes==3?'actives':'defaults'}}" bindtap="ClickPassageFlow" data-type='3'>顾客人数</text> <text class="text_tltle {{trendtypes=='CustomerNum'?'actives':'defaults'}}" bindtap="ClickPassageFlow" data-type='CustomerNum'>顾客人数</text>
<text class="text_tltle {{trendtypes==4?'actives':'defaults'}}" bindtap="ClickPassageFlow" data-type='4'>进店率</text> <text class="text_tltle {{trendtypes=='IntoStoreRate'?'actives':'defaults'}}" bindtap="ClickPassageFlow" data-type='IntoStoreRate'>进店率</text>
</view> </view>
<basic chartId='chartDatatrend' chartData="{{chartData}}" height="500rpx"></basic> <basic chartId='chartDatatrend' chartData="{{chartData}}" height="500rpx"></basic>
</view> </view>
<!-- 停留时长统计 --> <!-- 停留时长统计 -->
<view class="keliuliang"> <!-- <view class="keliuliang">
<text class="title_chart">停留时长统计</text> <text class="title_chart">停留时长统计</text>
<basic chartId='chartDatastop' chartData="{{chartDatastop}}" height="500rpx"></basic> <basic chartId='chartDatastop' chartData="{{chartDatastop}}" height="500rpx"></basic>
</view> </view> -->
<!-- 门店排行 --> <!-- 门店排行 -->
<view class="keliuliang"> <view class="keliuliang">
<text class="title_chart">门店排行</text> <text class="title_chart">门店排行</text>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</view> </view>
<view class="progress progressCustom"> <view class="progress progressCustom">
<view class="bar"> <view class="bar">
<van-progress show-pivot="{{false}}" percentage="{{item.percentage}}" stroke-width="10" /> <van-progress custom-class='customColor' show-pivot="{{false}}" percentage="{{item.percentage}}" stroke-width="10" />
</view> </view>
</view> </view>
</view> </view>
......
...@@ -162,7 +162,12 @@ ...@@ -162,7 +162,12 @@
margin-bottom: 10rpx; margin-bottom: 10rpx;
border-radius: 100rpx; border-radius: 100rpx;
} }
.desc_content{
background-color: #F5F5F7 !important;
}
.desc_content_active{
background: linear-gradient(254deg, #78B3FB 0%, #487EF7 100%) !important;
}
.indexList .desc_info:nth-child(4) { .indexList .desc_info:nth-child(4) {
margin-right: 0 !important; margin-right: 0 !important;
} }
...@@ -242,4 +247,7 @@ ...@@ -242,4 +247,7 @@
text-align: right; text-align: right;
font-size: 28rpx; font-size: 28rpx;
font-weight: 900; font-weight: 900;
}
.customColor .van-progress__portion{
background: linear-gradient(152deg, #597CFF 0%, #7998FF 100%) !important;
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!