Commit f7540ccd by 谢中龙

业绩默认值展示

parent 347ffe71
......@@ -52,6 +52,8 @@ wxService.page({
return ;
}
// currentUserInfo = { member: { qiyeInfo: { name : '张三'}}}
let userInfo = wx.getStorageSync('guidInfo');
if (currentUserInfo.member) {
if (!currentUserInfo.member.qiyeInfo.name) {
......@@ -67,23 +69,7 @@ wxService.page({
});
//获取导购业绩
// this.echartsComponnet = this.selectComponent('#barChart');
this.getGuidAchievement();
// let series = [
// {
// name: '本月',
// color: 'rgba(0,145,255,0.2)',
// data: [10, 15, 100],
// },
// {
// name: '累计',
// color: 'rgba(0, 145, 255, 1)',
// data: [20, 30, 300],
// }
// ];
// this.initBarChart(series);
},
/**
......@@ -135,6 +121,8 @@ wxService.page({
wxService.post('/marketing/shoppingguide/achievement').then(res => {
if(!res) return ;
this.data.currentOrderData = res.data.data.monthAchievement[this.data.current];
res.data.data.rank = res.data.data.rank ? res.data.data.rank : '暂无';
this.setData({
achievement: res.data.data,
currentOrderData: this.data.currentOrderData,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment