Files
lcb/pages/score/detail.js
T

146 lines
2.9 KiB
JavaScript

// pages/score/detail.js
import _ from '../../commons/js/commons'
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
data_bg_img: _.config.licheImgUrl + 'score/index-panel-bg.png',
icon_trend_up: _.config.licheImgUrl + 'score/score-trend-up.png',
icon_trend_down: _.config.licheImgUrl + 'score/score-trend-down.png',
icon_score_top_1: _.config.licheImgUrl + 'score/score-top-1.png',
icon_score_top_2: _.config.licheImgUrl + 'score/score-top-2.png',
icon_score_top_3: _.config.licheImgUrl + 'score/score-top-3.png',
score_index_bg_up: _.config.licheImgUrl + 'score/score-bg-up.jpg',
score_index_bg_down: _.config.licheImgUrl + 'score/score-bg-down.jpg',
score_detail_bg_up: _.config.licheImgUrl + 'score/score-detail-up.png',
score_detail_bg_down: _.config.licheImgUrl + 'score/score-detail-down.png',
score_up_color: '#31cbad',
score_down_color: '#ff895b',
score_trend: 1, //用这个参数控制样式:1 上升 、2 下降
list: [{
name: '基础分',
score: 60,
trend: 1,
data: [{
name: '正常开工',
score: '+180'
}]
}, {
name: '线索分',
score: 660,
trend: 1,
data: [{
name: '线索建档',
score: '+180'
},{
name: '添加微信',
score: '+180'
},{
name: '跟进小记',
score: '+180'
},{
name: '语音通话',
score: '+180'
},{
name: '二次派发',
score: '+180'
},{
name: '首次跟进',
score: '+180'
}]
}, {
name: '订单分',
score: 260,
trend: 1,
data: [{
name: '成交数',
score: '+180'
},{
name: '成交率',
score: '+180'
},{
name: '开票率',
score: '+180'
},{
name: '交付率',
score: '+180'
}]
}, {
name: '扣分项',
score: 260,
trend: 2,
data: [{
name: '逾期未跟进',
score: '-80'
},{
name: '战败未处理',
score: '-180'
},{
name: '开票后录单',
score: '-180'
},{
name: '建档即订单',
score: '-180'
}]
}]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})