统计
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
"lcb-listmore": "/components/listMore/index",
|
||||
"lcb-channelTabBarNav": "/components/channel-tab-bar/index",
|
||||
"lcb-shopTabBarNav": "/components/shop-tab-bar/index",
|
||||
"lcb-backChannel": "/components/backChannel/index",
|
||||
"QYWXcontact": "plugin://contactPlugin/cell",
|
||||
"kefuSuccess": "/components/kefuSuccess/index"
|
||||
},
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
.bg-e4{background-color:#e4e4e4;}
|
||||
.bg-ccc{background-color:#ccc;}
|
||||
.bg-666{background-color:#666;}
|
||||
.bg-999{background-color:#999;}
|
||||
.bg-333{background-color:#333;}
|
||||
.bg-36afa2{background-color:#36afa2;}
|
||||
.bg-f9394d{background-color:#f9394d;}
|
||||
@@ -28,4 +29,5 @@
|
||||
.bg-f1f9f8{background-color:#f1f9f8;}
|
||||
.bg-fff6f8{background-color:#fff6f8;}
|
||||
|
||||
.bg-e3f5f3{background-color:#e3f5f3;}
|
||||
.bg-e3f5f3{background-color:#e3f5f3;}
|
||||
.bg-2e3246{background-color:#2e3246;}
|
||||
Vendored
+55
-3
File diff suppressed because one or more lines are too long
@@ -0,0 +1,57 @@
|
||||
import _ from '../../commons/js/commons'
|
||||
const app = getApp()
|
||||
Component({
|
||||
//组件的属性列表
|
||||
properties: {
|
||||
isShow: {
|
||||
type: Boolean,
|
||||
value: true,
|
||||
},
|
||||
},
|
||||
|
||||
//组件的初始数据
|
||||
data: {
|
||||
isAdmin:false,
|
||||
},
|
||||
|
||||
//生命周期方法
|
||||
lifetimes: {
|
||||
//在组件实例进入页面节点树时执行
|
||||
attached: function () {
|
||||
if(app.getStorageByKey("userInfo").group_id==2){
|
||||
this.setData({
|
||||
isAdmin:true,
|
||||
})
|
||||
}
|
||||
},
|
||||
//在组件实例被从页面节点树移除时执行
|
||||
detached: function () {
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
//组件所在页面的生命周期
|
||||
pageLifetimes: {
|
||||
//组件所在的页面被展示时执行
|
||||
show: function () {
|
||||
|
||||
},
|
||||
//组件所在的页面被隐藏时执行
|
||||
hide: function () {
|
||||
|
||||
},
|
||||
//组件所在的页面尺寸变化时执行
|
||||
resize: function () {
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
//组件的方法列表
|
||||
methods: {
|
||||
backChannel(){
|
||||
wx.reLaunch({
|
||||
url: '/pages/channel/index'
|
||||
})
|
||||
},
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<view class="fixed left-0 box-middle mb200 box-60x120 bg-2e3246 ulib-rr750" wx:if="{{isShow&&isAdmin}}" bindtap="backChannel">
|
||||
<view class="absolute left-0 ml10 box-middle line-height-13 font-22 color-fff">
|
||||
<view>返</view>
|
||||
<view>回</view>
|
||||
</view>
|
||||
<i class="absolute right-0 box-middle mr5 iconfont icon-jiantou-left font-22 color-fff"></i>
|
||||
</view>
|
||||
@@ -0,0 +1,5 @@
|
||||
@import "../../commons/css/common.wxss";
|
||||
.box-60x120{
|
||||
width: 60rpx;
|
||||
height: 120rpx;
|
||||
}
|
||||
@@ -76,6 +76,7 @@
|
||||
|
||||
</view>
|
||||
<!-- <lcb-footer></lcb-footer> -->
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
<lcb-shopTabBarNav currentIndex='1'></lcb-shopTabBarNav>
|
||||
|
||||
<lcb-msg isShow="{{isShowMessage}}">
|
||||
|
||||
@@ -44,13 +44,79 @@ Page({
|
||||
tab:[
|
||||
{
|
||||
id: 1,
|
||||
title: '王五'
|
||||
title: '客户数据'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: '王五'
|
||||
title: '订单数据'
|
||||
},
|
||||
],
|
||||
|
||||
custom:[
|
||||
{
|
||||
title:'订单客户',
|
||||
value:'12.23w',
|
||||
icon:'icon-statistics-custom-1',
|
||||
},
|
||||
{
|
||||
title:'到店客户',
|
||||
value:'15',
|
||||
icon:'icon-statistics-custom-2',
|
||||
},
|
||||
{
|
||||
title:'未见客户',
|
||||
value:'12.2',
|
||||
icon:'icon-statistics-custom-3',
|
||||
},
|
||||
{
|
||||
title:'未联潜客',
|
||||
value:'12.23',
|
||||
icon:'icon-statistics-custom-4',
|
||||
},
|
||||
{
|
||||
title:'战败客户',
|
||||
value:'9996',
|
||||
icon:'icon-statistics-custom-5',
|
||||
},
|
||||
],
|
||||
order:[
|
||||
{
|
||||
title:'合同签订',
|
||||
value:'12.23w',
|
||||
icon:'icon-statistics-order-1',
|
||||
},
|
||||
{
|
||||
title:'分期办理',
|
||||
value:'12.23w',
|
||||
icon:'icon-statistics-order-1',
|
||||
},
|
||||
{
|
||||
title:'车辆确认',
|
||||
value:'12.23w',
|
||||
icon:'icon-statistics-order-1',
|
||||
},
|
||||
{
|
||||
title:'申请开票',
|
||||
value:'12.23w',
|
||||
icon:'icon-statistics-order-1',
|
||||
},
|
||||
{
|
||||
title:'待办服务',
|
||||
value:'12.23w',
|
||||
icon:'icon-statistics-order-1',
|
||||
},
|
||||
{
|
||||
title:'交付确认',
|
||||
value:'12.23w',
|
||||
icon:'icon-statistics-order-1',
|
||||
},
|
||||
{
|
||||
title:'交付完成',
|
||||
value:'12.23w',
|
||||
icon:'icon-statistics-order-1',
|
||||
},
|
||||
],
|
||||
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
|
||||
@@ -35,18 +35,62 @@
|
||||
<!-- 客户数据 / 订单数据 -->
|
||||
<view class="mt40 bg-fff box-shadow-000-10-10 ulib-r10 overflowhidden">
|
||||
<view class="fn-flex font-36 text-center">
|
||||
<block wx:for='{{tab}}' wx:key='list'>
|
||||
<view class="fn-flex-item pt20 pb20 {{ tabId == item.id?'active color-36afa2':''}}" data-id="{{item.id}}" bindtap="changeTab">
|
||||
<block wx:for='{{tab}}' wx:key='index'>
|
||||
<view class="fn-flex-item pt20 pb20 {{ tabId == item.id?'':'bg-ffedeb'}}" data-id="{{item.id}}" bindtap="changeTab">
|
||||
<view class="relative">{{item.title}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="inner30">
|
||||
|
||||
<view class="pl30 pb30" wx:if="{{tabId==1}}">
|
||||
<view class="fn-flex fn-flex-wrap text-left">
|
||||
<block wx:for='{{custom}}' wx:key='index'>
|
||||
<view class="wp33 mt30 pr25">
|
||||
<view class="relative pt15 pb15 pl75 bg-f6 ulib-r10 overflowhidden line-height-13">
|
||||
<view class="absolute top-0 left-0 bottom-0 pl60 bg-999">
|
||||
<i class="absolute box-center-middle iconfont font-30 color-fff {{item.icon}}"></i>
|
||||
</view>
|
||||
<view class="font-28 text-bold">{{item.value}}</view>
|
||||
<view class="font-22 color-666">{{item.title}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="mt30 mr30 inner30 bg-f6 ulib-r10">
|
||||
<view class="font-32 text-bold">通话数据</view>
|
||||
<view class="mt10 fn-flex text-center">
|
||||
<view class="fn-flex-item">
|
||||
<view class="font-22 color-666">通话总时长/min</view>
|
||||
<view class="text-bold font-28 color-f9394d">233.23w</view>
|
||||
</view>
|
||||
<view class="fn-flex-item">
|
||||
<view class="font-22 color-666">平均通话/min</view>
|
||||
<view class="text-bold font-28 color-f9394d">9996</view>
|
||||
</view>
|
||||
<view class="fn-flex-item">
|
||||
<view class="font-22 color-666">未接通/次</view>
|
||||
<view class="text-bold font-28 color-999">411.24w</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pl30 pb30" wx:if="{{tabId==2}}">
|
||||
<view class="fn-flex fn-flex-wrap text-left">
|
||||
<block wx:for='{{order}}' wx:key='index'>
|
||||
<view class="wp33 mt30 pr25">
|
||||
<view class="relative pt15 pb15 pl75 bg-f6 ulib-r10 overflowhidden line-height-13">
|
||||
<view class="absolute top-0 left-0 bottom-0 pl60 bg-999">
|
||||
<i class="absolute box-center-middle iconfont font-30 color-fff {{item.icon}}"></i>
|
||||
</view>
|
||||
<view class="font-28 text-bold">{{item.value}}</view>
|
||||
<view class="font-22 color-666">{{item.title}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 数据分析·客户 -->
|
||||
<view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
|
||||
<view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10" wx:if="{{tabId==1}}">
|
||||
<view class="relative">
|
||||
<view class="font-36">数据分析·客户</view>
|
||||
</view>
|
||||
@@ -57,7 +101,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 数据分析·订单 -->
|
||||
<view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
|
||||
<view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10" wx:if="{{tabId==2}}">
|
||||
<view class="relative">
|
||||
<view class="font-36">数据分析·订单</view>
|
||||
</view>
|
||||
|
||||
@@ -1 +1 @@
|
||||
/* pages/dataAnalysis/index.wxss */
|
||||
.bg-ffedeb{background-color:#ffedeb;}
|
||||
@@ -107,4 +107,5 @@
|
||||
|
||||
</view>
|
||||
<!-- <lcb-footer></lcb-footer> -->
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
<lcb-shopTabBarNav currentIndex='0'></lcb-shopTabBarNav>
|
||||
@@ -32,5 +32,6 @@
|
||||
|
||||
</view>
|
||||
<!-- <lcb-footer></lcb-footer> -->
|
||||
<lcb-backChannel isShow='{{source=="shop"?true:false}}'></lcb-backChannel>
|
||||
<lcb-channelTabBarNav currentIndex='2' wx:if="{{source=='channel'}}"></lcb-channelTabBarNav>
|
||||
<lcb-shopTabBarNav currentIndex='3' wx:if="{{source=='shop'}}"></lcb-shopTabBarNav>
|
||||
@@ -66,6 +66,7 @@
|
||||
|
||||
</view>
|
||||
<!-- <lcb-footer></lcb-footer> -->
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
<lcb-shopTabBarNav currentIndex='2'></lcb-shopTabBarNav>
|
||||
|
||||
<lcb-msg isShow="{{isShowMessage}}">
|
||||
|
||||
Reference in New Issue
Block a user