...
|
...
|
@@ -96,7 +96,7 @@ class FamilyIndex extends Page { |
|
|
|
|
|
this.selector.$trendWord.width(this.selector.$trendWord.width() + 40);
|
|
|
|
|
|
this.selector.$wordOuter.append('<span class="trend-word">' + this.selector.$trendWord.html() + '</span>').css({
|
|
|
this.selector.$wordOuter.append('<span class="trend-word">' + this.selector.$trendWord.html() + '</span>').css({ // eslint-disable-line
|
|
|
width: 2 * this.selector.$trendWord.width()
|
|
|
});
|
|
|
|
...
|
...
|
@@ -118,36 +118,34 @@ class FamilyIndex extends Page { |
|
|
|
|
|
// 积分乐园图表
|
|
|
integralCharts() {
|
|
|
let integralData = {
|
|
|
total: 18922,
|
|
|
totalHref: location.protocol + '//m.yohobuy.com/home/family/coinDetail?openby:yohobuy={"action":"go.h5","params":{"url":"' + location.protocol + '//m.yohobuy.com/home/family/coinDetail"}}', // eslint-disable-line
|
|
|
data: [
|
|
|
{value: 50, name: 'rose2', color: '#000', percent: '20%', plateType: 1},
|
|
|
{value: 35, name: 'rose3', plateType: 2},
|
|
|
{value: 30, name: 'rose4', plateType: 3},
|
|
|
{value: 25, name: 'rose5'},
|
|
|
{value: 20, name: 'rose6'},
|
|
|
{value: 15, name: 'yoho!Bowb'},
|
|
|
]
|
|
|
};
|
|
|
|
|
|
this.selector.$integralContent.append(this.view.integral(integralData));
|
|
|
|
|
|
this.selector.integralCh.setOption({
|
|
|
calculable: true,
|
|
|
color: ['#C1232B', '#B5C334', '#FCCE10'],
|
|
|
series: [
|
|
|
{
|
|
|
type: 'pie',
|
|
|
radius: [this.selector.chartWidth * 3 / 10, this.selector.chartWidth * 23 / 50],
|
|
|
roseType: 'radius',
|
|
|
center: ['48%', '50%'],
|
|
|
label: {
|
|
|
normal: false
|
|
|
},
|
|
|
data: integralData.data
|
|
|
}
|
|
|
]
|
|
|
this.ajax({
|
|
|
type: 'GET',
|
|
|
url: location.protocol + '//m.yohobuy.com/home/family/integralCharts'
|
|
|
}).then(result => {
|
|
|
if (result) {
|
|
|
result.totalHref = location.protocol + '//m.yohobuy.com/home/family/coinDetail?openby:yohobuy={"action":"go.h5","params":{"url":"' + location.protocol + '//m.yohobuy.com/home/family/coinDetail"}}', // eslint-disable-line
|
|
|
|
|
|
this.selector.$integralContent.append(this.view.integral(result));
|
|
|
|
|
|
this.selector.integralCh.setOption({
|
|
|
calculable: true,
|
|
|
color: result.colorList,
|
|
|
series: [
|
|
|
{
|
|
|
type: 'pie',
|
|
|
radius: [this.selector.chartWidth * 3 / 10, this.selector.chartWidth * 11 / 25],
|
|
|
roseType: 'radius',
|
|
|
center: ['50%', '50%'],
|
|
|
label: {
|
|
|
normal: false
|
|
|
},
|
|
|
data: result.list
|
|
|
}
|
|
|
]
|
|
|
});
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
tip.show('服务异常,请稍后重试');
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|