This commit is contained in:
lin
2024-07-07 02:42:35 +08:00
parent cde5a7572c
commit 8b7281ccf0
11 changed files with 226 additions and 367 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const env = "d";
const env = "p";
const version = 1,
+2 -4
View File
@@ -57,16 +57,14 @@
</view>
</picker>
</view>
<view>
<block wx:for="{{shoplist}}" wx:key='index'>
<view class="mt20 inner30 bg-2e3246-8058fe ulib-r10" bindtap="pushLink" data-url="/pages/index/index?biz_id={{item.id}}">
<view class="relative pr40 font-32 color-fff">{{item.name}}<i class="absolute right-0 box-middle iconfont icon-gengduo text-middle font-26"></i></view>
<view class="font-22">
<block wx:for="{{item.auto_brands}}" wx:for-item="auto_brands" wx:key='index'>
<text class="inline-block mt10 mr10 pl20 pr20 bg-fff ulib-r750" style="background-color:{{auto_brands.bg_color}};">{{auto_brands.name}}</text>
<block wx:for="{{item.orders}}" wx:for-item="orders" wx:key='index'>
<text class="inline-block mt10 mr10 pl20 pr20 bg-fff ulib-r750" style="background-color:{{orders.bg_color}};">{{orders.name}}</text>
</block>
</view>
</view>
+6 -8
View File
@@ -75,9 +75,7 @@ Page({
}
this.getAppArea()
let that = this
//消息通讯
_.eventBus.on("customerstats", this, function(res){
let that = this;
@@ -292,7 +290,7 @@ Page({
},
//订单数据
//数据
getAppStatisticsStats_customer(){
this.setData({
showPie1Chart:false,
@@ -413,9 +411,9 @@ Page({
data: []
},
grid: {
top: '1%',
left: '5%',
right: '5%',
top: '2%',
left: '2%',
right: '2%',
bottom: '35',
containLabel: true
},
@@ -442,7 +440,7 @@ Page({
BarChartData.yAxis.data = yAxis_data
BarChartData.series[0].data = res.data.bar.series_data
this.setData({
Barheight:100 + 60*(res.data.bar.xAxis_data.length),
Barheight:120 + 60*(res.data.bar.xAxis_data.length),
Bartitle:res.data.bar.title,
showBarChart:true,
['ecBar.onInit']:BarChart,
+2
View File
@@ -43,7 +43,9 @@
<view class="mb30 pl30 pr30">
<view class="relative inner30 pb60 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="font-36">转化漏斗</view>
<view class="mt50 mb20 relative height-400 z-index-0">
<view class="absolute wp100 height-400" wx:if="{{showFunnelChart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecFunnel }}"></ec-canvas>
</view>
+23 -14
View File
@@ -15,7 +15,7 @@
</view>
</view>
</view>
<view class="mb30 pt40 pb40 bg-fff box-shadow-000-10-10 ulib-r10 text-center">
<view wx:if="{{0}}" class="mb30 pt40 pb40 bg-fff box-shadow-000-10-10 ulib-r10 text-center">
<view class="pl20 pr20 fn-flex font-22 color-666">
<view class="relative fn-flex-item" bindtap="pushLink" data-url="/pages/inventory/list/index">
<view class="absolute peg-tip box-center ml30 bg-f9394d bds-2-fff img-24x24 text-center font-18 color-fff ulib-r750 z-index-1" wx:if="{{pandianNum}}"><text class="absolute box-center-middle">{{pandianNum}}</text></view>
@@ -40,7 +40,16 @@
</view>
<!-- 数据看板 -->
<view class="bg-fff mb30 inner30 box-shadow-000-10-10 ulib-r10">
<view class="font-36">数据看板</view>
<view bindtap="pushLink" data-url="/pages/storeData/index" wx:if="{{userInfo.group_id>1}}">
<view class="fn-flex fn-flex-middle">
<text class="font-36">数据看板</text>
<view class="fn-flex-item text-right pt10">
<view class="font-22 color-999">详细
<i class="iconfont icon-gengduo ml5 text-middle font-26"></i>
</view>
</view>
</view>
</view>
<view class="fn-flex fn-flex-wrap pt20 pb10 text-center">
<block wx:for="{{userCal.statistics}}" wx:key='index'>
<view class="wp25 relative pt20 pb20 {{index>3?'bts-1-eb':''}} {{index%4<3?'brs-1-eb':''}}" bindtap="pushLink" data-url="{{item.today.url}}">
@@ -86,7 +95,7 @@
<view class="font-36">客户跟进</view>
<view class="fn-flex pt20 pb20 color-fff">
<view class="fn-flex-item relative mr15 pt25 pb25 pl110 bg-1c89fd-8058fe ulib-r10" bindtap="pushLink" data-url="{{userCal.wl_count.url}}" >
<view class="fn-flex-item relative mr15 pt25 pb25 pl110 bg-1c89fd-8058fe ulib-r10" bindtap="pushLink" data-url="{{userCal.wl_count.url}}">
<i class="absolute left-0 box-middle ml35 iconfont icon-qianke font-60"></i>
<view class="text-left">
<view class="font-40">{{userCal.wl_count.num}}</view>
@@ -160,7 +169,7 @@
<view class="fn-flex-item text-right pr10">
<view class="font-38">{{item.total}}
<i class="iconfont icon-gengduo ml5 text-middle font-26"></i>
</view>
</view>
</view>
</view>
</block>
@@ -218,7 +227,7 @@
<!-- 客服提示 -->
<lcb-msg isShow="{{!isShowVersionInfo&&isShowNotice}}" isCustomTabBar="{{true}}">
<view slot="content">
<view slot="content">
<view class="mt40 text-center relative overflowhidden" style="height:100px;">
<!-- <image class='img-w-280' show-menu-by-longpress='true' lazy-load="{{true}}" mode="widthFix" src="https://qs.haodian.cn/wechat_app/lichebao/index/jrKF-code2.jpg"></image> -->
<view style="margin-top:-22px;">
@@ -226,7 +235,7 @@
</view>
<!-- <view class="text-bold font-24">截图并识别二维码关注服务号</view> -->
</view>
<view class="inner40 pt0 pb20 font-28 color-666">
<view class="inner40 pt0 pb20 font-28 color-666">
亲爱的用户,关注 “理车宝”公众号。后续关于客户、订单以及其他相关资讯,将逐步通过服务号通知的形式进行消息通知,请提前关注~
</view>
<view class="pl40 pr40 pb20 font-28 color-666">联系电话:<text bindtap="call">18965133055</text></view>
@@ -234,12 +243,12 @@
<i class="mr5 iconfont {{stopNotice?'icon-fuxuansel color-36afa2':'icon-fuxuankuang color-999'}}"></i> 不再提示
</view>
<view class="bts-1-eb pt30 pb30 text-center font-32 color-666" bindtap="closeNotice">知道了</view>
</view>
</view>
</lcb-msg>
<!-- 调拨提醒 盘点提醒 -->
<lcb-msg isShow="{{!isShowVersionInfo&&isShowReport}}" isCustomTabBar="{{true}}">
<view slot="content">
<view slot="content">
<swiper class='wp100' style="height:550rpx;" autoplay circular bindchange="bannerChange">
<swiper-item class="relative" wx:for="{{remindMsg}}" wx:key="index">
<view class="pt40 pl40 pr40">
@@ -260,12 +269,12 @@
<view class="inline-block indicator-pin {{banneractive==j?'active':''}}"></view>
</block>
</view>
</view>
</view>
</lcb-msg>
<!-- 库存提醒 -->
<lcb-msg isShow="{{!isShowVersionInfo&&!isShowReport&&isShowGoods}}" isCustomTabBar="{{true}}">
<view slot="content" class="inner40" style="width:550rpx;">
<view slot="content" class="inner40" style="width:550rpx;">
<view class="text-center font-36">{{warning.title}}</view>
<view class="mt10 text-center font-22 color-f9394d">{{warning.note}}</view>
<view class="relative">
@@ -293,15 +302,15 @@
<button bindtap="optShowGoods" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">取消</button>
<button bindtap="pushLink" data-url="/pages/inventory/warning/index" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">点击查看</button>
</view>
</view>
</view>
</lcb-msg>
<!-- 更新新版本提醒 -->
<lcb-msg isShow="{{isShowVersionInfo}}" isBottomOpt="{{true}}" closeWord="我知道了" bind:closeevent="closeVersionInfo" isCustomTabBar="{{true}}">
<view slot="content" class="inner40 text-center" style="width:550rpx;">
<view slot="content" class="inner40 text-center" style="width:550rpx;">
<view class="font-36">理车宝 {{versionInfo.number}} 更新说明</view>
<view class="inline-block mt10 font-28 color-666">
<view class="mt15 text-left" wx:for-items="{{versionInfo.list}}" wx:key='index'>{{index+1}}、{{item}}</view>
</view>
</view>
</view>
</view>
</lcb-msg>
+1
View File
@@ -275,6 +275,7 @@
<view class="fixed left-0 right-0 bottom-0 pt20 pl30 pr30 pb40 bg-000-op80 fn-flex" style="z-index:999" wx:if="{{userInfo.group_id==4 && info.status<3}}">
<button bindtap="bindShowConfirm" class="fn-flex-item ml20 mr20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">{{info.bt_cn}}</button>
</view>
</view>
<lcb-backChannel></lcb-backChannel>
+153 -316
View File
@@ -1,11 +1,11 @@
import _ from '../../../commons/js/commons';
import popularData from '../../../commons/js/lib/popularData';
import * as echarts from '../../../ecCanvas/components/ec-canvas/echarts';
const app = getApp()
let BarChartData;
let Pie1ChartData;
let Pie2ChartData;
function BarChart(canvas, width, height, dpr) {
const chart = echarts.init(canvas, null, {
width: width,
@@ -32,7 +32,6 @@ function Pie1Chart(canvas, width, height, dpr) {
chart.on('click',function(e){
if(e.data.id>0){
let obj = {}
obj.type = 1
obj.id = e.data.id
_.eventBus.emit("customerstats",obj)
}
@@ -49,12 +48,7 @@ function Pie2Chart(canvas, width, height, dpr) {
let option = Pie2ChartData
chart.setOption(option);
chart.on('click',function(e){
if(e.data.id>0){
let obj = {}
obj.type = 0
obj.id = e.data.id
_.eventBus.emit("customerstats",obj)
}
console.log(e)
});
return chart;
}
@@ -68,6 +62,9 @@ Page({
ecPie2:{},
showBarChart:false,//是否显示Bar图表
ecBar:{},
Pie1title:'',
Pie2title:'',
Bartitle:'',
},
onLoad: function (options) {
@@ -77,23 +74,94 @@ Page({
})
}
// popularData.getDateLater(0,0).then(res => {
// this.setData({
// s_date:res[0],
// e_date:res[1],
// current_date:res[1],
// })
// })
this.getAppBizStats_customer()
this.getUserInfo()
let that = this
//消息通讯 是否显示授权用户信息按钮
//消息通讯
_.eventBus.on("customerstats", this, function(res){
let url = '/pages/storeData/subData/index?from=customer&type=' + res.type + '&id=' + res.id + '&s_date=' + that.data.s_date + '&e_date=' + that.data.e_date + '&current_date=' + that.data.current_date
_.$router.openUrlScheme(url)
let that = this;
let params = {};
params['id'] = res.id;
params['type'] = that.data.type;
params['province_id'] = that.data.province_id;
params['city_id'] = that.data.city_id;
params['s_time'] = that.data.s_date;
params['e_time'] = that.data.e_date;
_.apiQuery.getAppBizStats_customer_pid(params, that).then(res => {
if(that.data.Pie2title){
this.setData({
pie2noData:true,
})
}
this.setData({
Pie2title:res.data.title,
})
if(res.data.series_data.length==0){
this.setData({
pie2noData:true,
})
}else{
Pie2ChartData = {
tooltip: {
trigger: 'item',
formatter: '{b}: {c} ({d}%)'
},
series: [
{
name: 'Access From',
type: 'pie',
bottom:'12%',
radius: ['0', '55%'],
avoidLabelOverlap: false,
labelLine: {
fontSize:5,
length:10
},
label: {
formatter: '{b| {b} }{abg|}\n{hr|}\n{c| {c}({d}%) }',
backgroundColor: '#F6F8FC',
borderColor: '#8C8D8E',
borderWidth: 1,
borderRadius: 4,
rich: {
hr: {
borderColor: '#8C8D8E',
width: '100%',
borderWidth: 1,
height: 0
},
b: {
color: '#4C5058',
fontSize:10,
lineHeight:20,
align: 'center',
},
c: {
color: '#4C5058',
fontSize:8,
lineHeight:20,
align: 'center',
},
}
},
data: []
}
]
};
Pie2ChartData.series[0].data = res.data.series_data
this.setData({
pie2noData:false,
showPie2Chart:true,
['ecPie2.onInit']:Pie2Chart,
pie2Bottom:res.data.bottom,
})
}
wx.stopPullDownRefresh()
});
})
},
//生命周期函数--监听页面卸载
@@ -102,6 +170,15 @@ Page({
_.eventBus.remove("customerstats",this);
},
//获取用户信息
getUserInfo(){
_.apiQuery.getUserInfo().then(res => {
this.setData({
userInfo: res
})
});
},
//选择日期
changeDate(e){
if(e.currentTarget.dataset.type=="s_date"){
@@ -174,6 +251,7 @@ Page({
})
let params = {};
params['type'] = this.data.type;
params['s_time'] = this.data.s_date;
params['e_time'] = this.data.e_date;
_.apiQuery.getAppBizStats_customer(params).then(res => {
@@ -184,11 +262,10 @@ Page({
this.setData({
Pie1title:res.data.pie1.title,
//Pie2title:res.data.pie2.title,
Pie2title:res.data.pie2?res.data.pie2.title:'',
Bartitle:res.data.bar.title,
})
// Pie1ChartData = getPie1Option()
if(res.data.pie1.series_data_1.length==0){
this.setData({
pie1noData:true,
@@ -260,127 +337,65 @@ Page({
pie1noData:false,
showPie1Chart:true,
['ecPie1.onInit']:Pie1Chart,
pie1Bottom:res.data.pie1.bottom,
})
}
// Pie2ChartData = getPie2Option()
// if(res.data.pie2.series_data_1.length==0){
// this.setData({
// pie2noData:true,
// })
// }else{
// Pie2ChartData = {
// tooltip: {
// trigger: 'item',
// formatter: '{b}: {c} ({d}%)'
// },
// series: [
// {
// name: 'Access From',
// type: 'pie',
// selectedMode: 'single',
// radius: [0, '30%'],
// label: {
// position: 'inner',
// fontSize: 10
// },
// labelBar: {
// show: false
// },
// data: []
// },
// {
// name: 'Access From',
// type: 'pie',
// radius: ['45%', '65%'],
// labelLine: {
// fontSize:5,
// length:10
// },
// label: {
// formatter: '{b| {b} }{abg|}\n{hr|}\n{c| {c}({d}%) }',
// backgroundColor: '#F6F8FC',
// borderColor: '#8C8D8E',
// borderWidth: 1,
// borderRadius: 4,
// rich: {
// hr: {
// borderColor: '#8C8D8E',
// width: '100%',
// borderWidth: 1,
// height: 0
// },
// b: {
// color: '#4C5058',
// fontSize:10,
// lineHeight:20,
// align: 'center',
// },
// c: {
// color: '#4C5058',
// fontSize:8,
// lineHeight:20,
// align: 'center',
// },
// }
// },
// data: []
// },
// ]
// };
// Pie2ChartData.series[0].data = res.data.pie2.series_data_1
// Pie2ChartData.series[1].data = res.data.pie2.series_data_2
// this.setData({
// pie2noData:false,
// showPie2Chart:true,
// ['ecPie2.onInit']:Pie2Chart,
// })
// }
if(res.data.bar){
BarChartData = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
xAxis: {
type: 'value',
data: []
},
yAxis: {
type: 'category',
data: []
},
grid: {
top: '2%',
left: '2%',
right: '2%',
bottom: '35',
containLabel: true
},
series: [
{
data: [],
type: 'bar',
top: 0,
bottom:'0',
}
]
};
//BarChartData = getBarOption()
BarChartData = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
let xAxis_data = res.data.bar.xAxis_data
let yAxis_data = []
xAxis_data.forEach(item => {
if(item.length > 6){
yAxis_data.push(item.substring(0,6)+'...')
}else{
yAxis_data.push(item)
}
},
xAxis: {
type: 'value',
data: []
},
yAxis: {
type: 'category',
data: []
},
grid: {
top: '1%',
left: '2%',
right: '5%',
bottom: '1%',
containLabel: true
},
series: [
{
data: [],
type: 'bar',
top: 0,
bottom:'0',
}
]
};
BarChartData.yAxis.data = res.data.bar.xAxis_data
BarChartData.series[0].data = res.data.bar.series_data
this.setData({
Barheight:100 + 50*(res.data.bar.xAxis_data.length),
showBarChart:true,
['ecBar.onInit']:BarChart,
})
})
BarChartData.yAxis.data = yAxis_data
BarChartData.series[0].data = res.data.bar.series_data
this.setData({
Barheight:120 + 60*(res.data.bar.xAxis_data.length),
Bartitle:res.data.bar.title,
showBarChart:true,
['ecBar.onInit']:BarChart,
barBottom:res.data.bar.bottom,
})
}
wx.stopPullDownRefresh()
});
},
@@ -391,187 +406,9 @@ Page({
}
},
//页面相关事件处理函数--监听用户下拉动作
onPullDownRefresh: function () {
this.getAppBizStats_customer()
},
})
function getPie1Option() {
return {
tooltip: {
trigger: 'item',
formatter: '{b}: {c} ({d}%)'
},
series: [
{
name: 'Access From',
type: 'pie',
selectedMode: 'single',
radius: [0, '30%'],
label: {
position: 'inner',
fontSize: 10
},
labelBar: {
show: false
},
data: [
{ value: 1548, name: 'H' },
{ value: 775, name: 'A' },
{ value: 679, name: 'B', }
]
},
{
name: 'Access From',
type: 'pie',
radius: ['45%', '65%'],
labelLine: {
fontSize:5,
length:10
},
label: {
formatter: '{b| {b} }{abg|}\n{hr|}\n{c| {c}({d}%) }',
backgroundColor: '#F6F8FC',
borderColor: '#8C8D8E',
borderWidth: 1,
borderRadius: 4,
rich: {
hr: {
borderColor: '#8C8D8E',
width: '100%',
borderWidth: 1,
height: 0
},
b: {
color: '#4C5058',
fontSize:10,
lineHeight:20,
align: 'center',
},
c: {
color: '#4C5058',
fontSize:8,
lineHeight:20,
align: 'center',
},
}
},
data: [
{ value: 1048, name: '转介绍' },
{ value: 335, name: '网络推广' },
{ value: 310, name: '外展外拓' },
{ value: 251, name: '自媒体' },
]
},
]
};
}
function getPie2Option() {
return {
tooltip: {
trigger: 'item',
formatter: '{b}: {c} ({d}%)'
},
series: [
{
name: 'Access From',
type: 'pie',
selectedMode: 'single',
radius: [0, '30%'],
label: {
position: 'inner',
fontSize: 10
},
labelLine: {
show: false
},
data: [
{ value: 258, name: 'H' },
{ value: 77, name: 'A' },
{ value: 67, name: 'B', }
]
},
{
name: 'Access From',
type: 'pie',
radius: ['45%', '65%'],
labelLine: {
fontSize:5,
length:10
},
label: {
formatter: '{b|{b}}{abg|}\n{hr|}\n{c| {c}({d}%) }',
backgroundColor: '#F6F8FC',
borderColor: '#8C8D8E',
borderWidth: 1,
borderRadius: 4,
rich: {
hr: {
borderColor: '#8C8D8E',
width: '100%',
borderWidth: 1,
height: 0
},
b: {
color: '#4C5058',
fontSize:10,
lineHeight:20,
align: 'center',
},
c: {
color: '#4C5058',
fontSize:8,
lineHeight:20,
align: 'center',
},
}
},
data: [
{ value: 48, name: '转介绍' },
{ value: 35, name: '网络推广' },
{ value: 30, name: '外展外拓' },
{ value: 21, name: '自媒体' },
]
},
]
};
}
function getBarOption() {
return{
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
xAxis: {
type: 'value',
data: []
},
yAxis: {
type: 'category',
data: ['张三', '李四', '王五', '赵六', '孙七', '周八', '吴九','郑十']
},
grid: {
top: '5%',
left: '2%',
right: '5%',
bottom: '3%',
containLabel: true
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130, 10],
type: 'bar',
top: 0,
bottom:'0',
}
]
};
}
})
+21 -18
View File
@@ -1,6 +1,7 @@
<view class="container img-top-cover" style="background-image:url({{imgUrl}}storedata/theme.png);">
<view class="text-center pt30 pb30">
<view class="inline-block bg-fff-op20 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750">
<view class="text-center pt20 pb40 pl30 pr30 fn-clear">
<text class="fn-fl bg-fff-op20 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750">{{userInfo.biz_name}}</text>
<view class="fn-fr bg-fff-op20 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750">
<picker class="inline-block" mode="date" value="{{s_date}}" end="{{current_date}}" bindchange="changeDate" data-type="s_date">
<view>
<text>{{s_date}}</text>
@@ -24,41 +25,43 @@
</view>
<lcb-listmore isNoData='{{pie1noData}}' noDataMsg='暂无数据'></lcb-listmore>
<view class="mt50 mb20 relative height-400 z-index-0" wx:if="{{!pie1noData}}">
<view class="absolute wp100 height-400" wx:if="{{showPie1Chart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecPie1 }}"></ec-canvas>
<view class="absolute wp100 height-400" wx:if="{{showPie1Chart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecPie1 }}"></ec-canvas>
</view>
<view class="absolute left-0 bottom-0 right-0 text-center font-22 color-888">{{pie1Bottom}}</view>
</view>
</view>
<view class="text-center font-22 color-f9394d" wx:if='{{!pie1noData}}'>点击分类卡片查看具体数据</view>
<view class="text-center font-22 color-f9394d" wx:if='{{!pie1noData}}'>点击分类扇区可查看下级来源数据</view>
</view>
</view>
<!--view class="mb30 pl30 pr30">
<view class="mb30 pl30 pr30" wx:if="{{Pie2title != ''}}">
<view class="inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="relative">
<view class="font-36">{{Pie2title}}</view>
</view>
<lcb-listmore isNoData='{{pie2noData}}' noDataMsg='暂无数据'></lcb-listmore>
<view class="mt50 mb20 relative height-400 z-index-0" wx:if="{{!pie2noData}}">
<view class="absolute wp100 height-400" wx:if="{{showPie2Chart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecPie2 }}"></ec-canvas>
<view class="mt50 mb20 relative height-600 z-index-0" wx:if="{{!pie2noData}}">
<view class="absolute wp100 height-600" wx:if="{{showPie2Chart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecPie2 }}"></ec-canvas>
</view>
<view class="absolute left-0 bottom-0 right-0 text-center font-22 color-888" >{{pie2Bottom}}</view>
</view>
</view>
<view class="text-center font-22 color-f9394d" wx:if='{{!pie2noData}}'>点击分类卡片查看具体数据</view>
</view>
</view-->
</view>
<view class="mb30 pl30 pr30">
<view class="mb30 pl30 pr30" wx:if="{{Bartitle != ''}}">
<view class="inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="relative">
<view class="font-36">{{Bartitle}}</view>
</view>
<view class="mt50 mb20 relative z-index-0" style="height:{{Barheight}}rpx;">
<view class="absolute wp100" style="height:{{Barheight}}rpx;" wx:if="{{showBarChart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecBar }}"></ec-canvas>
</view>
<view class="absolute wp100" style="height:{{Barheight}}rpx;" wx:if="{{showBarChart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecBar }}"></ec-canvas>
</view>
<view class="absolute left-0 bottom-0 right-0 text-center font-22 color-888" >{{barBottom}}</view>
</view>
</view>
</view>
</view>
<lcb-footer></lcb-footer>
+11 -1
View File
@@ -60,7 +60,8 @@ Page({
this.getAppBizStats()
this.getAppBizStats_days()
})
this.getUserInfo()
},
//选择日期
@@ -267,6 +268,15 @@ Page({
this.getAppBizStats_days()
},
//获取用户信息
getUserInfo(){
_.apiQuery.getUserInfo().then(res => {
this.setData({
userInfo: res
})
});
},
//显示隐藏提示
optShowTip(e) {
this.setData({
+4 -3
View File
@@ -1,6 +1,7 @@
<view class="container img-top-cover" style="background-image:url({{imgUrl}}storedata/theme.png);">
<view class="text-center pt30 pb30">
<view class="inline-block bg-fff-op20 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750">
<view class="text-center pt20 pb40 pl30 pr30 fn-clear">
<text class="fn-fl bg-fff-op20 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750">{{userInfo.biz_name}}</text>
<view class="fn-fr bg-fff-op20 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750">
<picker class="inline-block" mode="date" value="{{s_date}}" end="{{current_date}}" bindchange="changeDate" data-type="s_date">
<view>
<text>{{s_date}}</text>
@@ -24,7 +25,7 @@
<view class="text-center">
<text class="font-40">{{item.value_1}}</text>
</view>
<view class="pt10 font-22 pl20" bindtap="pushLink" data-url="{{item.url}}?s_date={{s_date}}&e_date={{e_date}}&current_date={{current_date}}">
<view class="pt10 font-22 pl20" bindtap="pushLink" data-url="{{item.url}}&s_date={{s_date}}&e_date={{e_date}}&current_date={{current_date}}">
<text>{{item.title}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</view>
+2 -2
View File
@@ -29,7 +29,7 @@
</view>
<view class="absolute left-0 bottom-0 right-0 text-center font-22 color-888">{{pie1Bottom}}</view>
</view>
<view class="text-center font-22 color-f9394d" wx:if='{{!pie1noData}}'>点击分类卡片查看具体数据</view>
<view class="text-center font-22 color-f9394d" wx:if='{{!pie1noData}}'>点击分类扇区可查看下级来源数据</view>
</view>
</view>
@@ -45,7 +45,7 @@
</view>
<view class="absolute left-0 bottom-0 right-0 text-center font-22 color-888">{{pie2Bottom}}</view>
</view>
<view class="text-center font-22 color-f9394d" wx:if='{{!pie2noData}}'>点击分类卡片查看具体数据</view>
<view class="text-center font-22 color-f9394d" wx:if='{{!pie2noData}}'>点击分类扇区可查看下级来源数据</view>
</view>
</view>