Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
05b2f5eb
ShopXO
项目概览
starsw001
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
05b2f5eb
编写于
2月 23, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图表新增主题
上级
ba92f00d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
204 addition
and
3 deletion
+204
-3
application/admin/view/default/index/init.html
application/admin/view/default/index/init.html
+3
-3
application/admin/view/default/public/footer.html
application/admin/view/default/public/footer.html
+3
-0
public/static/common/lib/echarts/macarons.js
public/static/common/lib/echarts/macarons.js
+198
-0
未找到文件。
application/admin/view/default/index/init.html
浏览文件 @
05b2f5eb
...
...
@@ -156,7 +156,7 @@
$
(
function
()
{
// 近7日订单交易走势
var
order_trading_chart
=
echarts
.
init
(
document
.
getElementById
(
'
echarts-order-trading
'
));
var
order_trading_chart
=
echarts
.
init
(
document
.
getElementById
(
'
echarts-order-trading
'
)
,
'
macarons
'
);
var
option
=
{
tooltip
:
{
trigger
:
'
axis
'
,
...
...
@@ -204,7 +204,7 @@ $(function()
// 近7日热销商品
var
goods_hot_chart
=
echarts
.
init
(
document
.
getElementById
(
'
echarts-goods-hot
'
));
var
goods_hot_chart
=
echarts
.
init
(
document
.
getElementById
(
'
echarts-goods-hot
'
)
,
'
macarons
'
);
var
option
=
{
title
:
{
subtext
:
'
只显示前10条商品
'
,
...
...
@@ -248,7 +248,7 @@ $(function()
goods_hot_chart
.
setOption
(
option
);
// 近7日订单支付方式
var
order_pay_type_chart
=
echarts
.
init
(
document
.
getElementById
(
'
echarts-order-pay-type
'
));
var
order_pay_type_chart
=
echarts
.
init
(
document
.
getElementById
(
'
echarts-order-pay-type
'
)
,
'
macarons
'
);
var
option
=
{
tooltip
:
{
trigger
:
'
axis
'
...
...
application/admin/view/default/public/footer.html
浏览文件 @
05b2f5eb
...
...
@@ -6,7 +6,10 @@
<!-- 类库 -->
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/jquery/jquery-2.1.0.js"
></script>
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/assets/js/amazeui.min.js"
></script>
<!-- echarts 图表 -->
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/echarts/echarts.min.js"
></script>
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/echarts/macarons.js"
></script>
<!-- ueditor 编辑器 -->
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/ueditor/ueditor.config.js"
></script>
...
...
public/static/common/lib/echarts/macarons.js
0 → 100644
浏览文件 @
05b2f5eb
(
function
(
root
,
factory
)
{
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
// AMD. Register as an anonymous module.
define
([
'
exports
'
,
'
echarts
'
],
factory
);
}
else
if
(
typeof
exports
===
'
object
'
&&
typeof
exports
.
nodeName
!==
'
string
'
)
{
// CommonJS
factory
(
exports
,
require
(
'
echarts
'
));
}
else
{
// Browser globals
factory
({},
root
.
echarts
);
}
}(
this
,
function
(
exports
,
echarts
)
{
var
log
=
function
(
msg
)
{
if
(
typeof
console
!==
'
undefined
'
)
{
console
&&
console
.
error
&&
console
.
error
(
msg
);
}
};
if
(
!
echarts
)
{
log
(
'
ECharts is not Loaded
'
);
return
;
}
var
colorPalette
=
[
'
#2ec7c9
'
,
'
#b6a2de
'
,
'
#5ab1ef
'
,
'
#ffb980
'
,
'
#d87a80
'
,
'
#8d98b3
'
,
'
#e5cf0d
'
,
'
#97b552
'
,
'
#95706d
'
,
'
#dc69aa
'
,
'
#07a2a4
'
,
'
#9a7fd1
'
,
'
#588dd5
'
,
'
#f5994e
'
,
'
#c05050
'
,
'
#59678c
'
,
'
#c9ab00
'
,
'
#7eb00a
'
,
'
#6f5553
'
,
'
#c14089
'
];
var
theme
=
{
color
:
colorPalette
,
title
:
{
textStyle
:
{
fontWeight
:
'
normal
'
,
color
:
'
#008acd
'
}
},
visualMap
:
{
itemWidth
:
15
,
color
:
[
'
#5ab1ef
'
,
'
#e0ffff
'
]
},
toolbox
:
{
iconStyle
:
{
normal
:
{
borderColor
:
colorPalette
[
0
]
}
}
},
tooltip
:
{
backgroundColor
:
'
rgba(50,50,50,0.5)
'
,
axisPointer
:
{
type
:
'
line
'
,
lineStyle
:
{
color
:
'
#008acd
'
},
crossStyle
:
{
color
:
'
#008acd
'
},
shadowStyle
:
{
color
:
'
rgba(200,200,200,0.2)
'
}
}
},
dataZoom
:
{
dataBackgroundColor
:
'
#efefff
'
,
fillerColor
:
'
rgba(182,162,222,0.2)
'
,
handleColor
:
'
#008acd
'
},
grid
:
{
borderColor
:
'
#eee
'
},
categoryAxis
:
{
axisLine
:
{
lineStyle
:
{
color
:
'
#008acd
'
}
},
splitLine
:
{
lineStyle
:
{
color
:
[
'
#eee
'
]
}
}
},
valueAxis
:
{
axisLine
:
{
lineStyle
:
{
color
:
'
#008acd
'
}
},
splitArea
:
{
show
:
true
,
areaStyle
:
{
color
:
[
'
rgba(250,250,250,0.1)
'
,
'
rgba(200,200,200,0.1)
'
]
}
},
splitLine
:
{
lineStyle
:
{
color
:
[
'
#eee
'
]
}
}
},
timeline
:
{
lineStyle
:
{
color
:
'
#008acd
'
},
controlStyle
:
{
normal
:
{
color
:
'
#008acd
'
},
emphasis
:
{
color
:
'
#008acd
'
}
},
symbol
:
'
emptyCircle
'
,
symbolSize
:
3
},
line
:
{
smooth
:
true
,
symbol
:
'
emptyCircle
'
,
symbolSize
:
3
},
candlestick
:
{
itemStyle
:
{
normal
:
{
color
:
'
#d87a80
'
,
color0
:
'
#2ec7c9
'
,
lineStyle
:
{
color
:
'
#d87a80
'
,
color0
:
'
#2ec7c9
'
}
}
}
},
scatter
:
{
symbol
:
'
circle
'
,
symbolSize
:
4
},
map
:
{
label
:
{
normal
:
{
textStyle
:
{
color
:
'
#d87a80
'
}
}
},
itemStyle
:
{
normal
:
{
borderColor
:
'
#eee
'
,
areaColor
:
'
#ddd
'
},
emphasis
:
{
areaColor
:
'
#fe994e
'
}
}
},
graph
:
{
color
:
colorPalette
},
gauge
:
{
axisLine
:
{
lineStyle
:
{
color
:
[[
0.2
,
'
#2ec7c9
'
],[
0.8
,
'
#5ab1ef
'
],[
1
,
'
#d87a80
'
]],
width
:
10
}
},
axisTick
:
{
splitNumber
:
10
,
length
:
15
,
lineStyle
:
{
color
:
'
auto
'
}
},
splitLine
:
{
length
:
22
,
lineStyle
:
{
color
:
'
auto
'
}
},
pointer
:
{
width
:
5
}
}
};
echarts
.
registerTheme
(
'
macarons
'
,
theme
);
}));
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录