mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-09-17 17:26:40 +08:00
取消后台图表,更新开发文档说明
This commit is contained in:
parent
fb3609738a
commit
7f0b0ec9e6
@ -14,6 +14,11 @@ class IndexController
|
|||||||
}
|
}
|
||||||
return View::fetch();
|
return View::fetch();
|
||||||
}
|
}
|
||||||
|
public function doc()
|
||||||
|
{
|
||||||
|
View::assign('domain', \request()->domain());
|
||||||
|
return View::fetch();
|
||||||
|
}
|
||||||
public function test()
|
public function test()
|
||||||
{
|
{
|
||||||
$key = "0383d7088b6947b68e4a626af119e2bd";
|
$key = "0383d7088b6947b68e4a626af119e2bd";
|
||||||
|
@ -21,3 +21,6 @@ Route::rule('validatePayResult', 'Pay/validatePayResult');
|
|||||||
|
|
||||||
// API多级控制器
|
// API多级控制器
|
||||||
Route::rule('api/:controller/:methon', 'api.:controller/:methon');
|
Route::rule('api/:controller/:methon', 'api.:controller/:methon');
|
||||||
|
|
||||||
|
// 开发文档
|
||||||
|
Route::rule('doc', 'Index/doc');
|
@ -202,43 +202,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
|
<!-- 统计图表预留 -->
|
||||||
<div class="layui-card">
|
|
||||||
<div class="layui-card-header header-tite">
|
|
||||||
<div>收益趋势</div>
|
|
||||||
<div class="layui-btn-group">
|
|
||||||
<button type="button" class="layui-btn layui-btn-primary layui-btn-xs">7天</button>
|
|
||||||
<button type="button" class="layui-btn layui-btn-primary layui-btn-xs">15天</button>
|
|
||||||
<button type="button" class="layui-btn layui-btn-primary layui-btn-xs">30天</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-card-body">
|
|
||||||
<div class="layui-tab custom-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
|
||||||
<div id="echarts-records"
|
|
||||||
style="background-color:#ffffff;min-height:220px;padding: 10px">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
|
|
||||||
<div class="layui-card">
|
|
||||||
<div class="layui-card-header header-tite">
|
|
||||||
<div>订单趋势</div>
|
|
||||||
<div class="layui-btn-group">
|
|
||||||
<button type="button" class="layui-btn layui-btn-primary layui-btn-xs">7天</button>
|
|
||||||
<button type="button" class="layui-btn layui-btn-primary layui-btn-xs">15天</button>
|
|
||||||
<button type="button" class="layui-btn layui-btn-primary layui-btn-xs">30天</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-card-body">
|
|
||||||
<div class="layui-tab custom-tab layui-tab-brief">
|
|
||||||
<div style="background-color:#ffffff;min-height:220px;padding: 10px">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-col-xs12">
|
<div class="layui-col-xs12">
|
||||||
<div class="layui-row layui-col-space16 order-container">
|
<div class="layui-row layui-col-space16 order-container">
|
||||||
<div class="layui-col-xs12 layui-col-sm6">
|
<div class="layui-col-xs12 layui-col-sm6">
|
||||||
@ -465,94 +429,7 @@
|
|||||||
skin: 'line',
|
skin: 'line',
|
||||||
});
|
});
|
||||||
// 折线图
|
// 折线图
|
||||||
var echartsRecords = echarts.init(document.getElementById('echarts-records'), 'walden');
|
/* 统计图表代码 */
|
||||||
const colorList = ["#9E87FF", '#73DDFF', '#fe9a8b', '#F56948', '#9E87FF']
|
|
||||||
var option = {
|
|
||||||
backgroundColor: '#fff',
|
|
||||||
tooltip: {
|
|
||||||
show: false
|
|
||||||
},
|
|
||||||
grid: { top: '10%', bottom: '6%', left: '6%', right: '6%', containLabel: true },
|
|
||||||
xAxis: [{
|
|
||||||
type: 'category', boundaryGap: false,
|
|
||||||
axisLine: { show: false },
|
|
||||||
axisTick: { show: false },
|
|
||||||
axisLabel: { margin: 10, fontSize: 14, color: 'rgba(#999)' },
|
|
||||||
splitLine: { show: true, lineStyle: { color: '#939ab6', opacity: .15 } },
|
|
||||||
data: ['10:00', '10:10', '10:10', '10:30', '10:40', '10:50']
|
|
||||||
},],
|
|
||||||
yAxis: [{
|
|
||||||
type: 'value', offset: 15, max: 100, min: 0,
|
|
||||||
axisTick: { show: false }, axisLine: { show: false },
|
|
||||||
axisLabel: { margin: 10, fontSize: 14, color: '#999' },
|
|
||||||
splitLine: { show: false }
|
|
||||||
}],
|
|
||||||
series: [{
|
|
||||||
name: '2', type: 'line', z: 3, showSymbol: false, smoothMonotone: 'x',
|
|
||||||
lineStyle: {
|
|
||||||
width: 3, color: {
|
|
||||||
type: 'linear', x: 0, y: 0, x2: 0, y2: 1,
|
|
||||||
colorStops: [{
|
|
||||||
offset: 0, color: 'rgba(59,102,246)' // 0% 处的颜色
|
|
||||||
}, {
|
|
||||||
offset: 1, color: 'rgba(118,237,252)' // 100% 处的颜色
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
shadowBlur: 4,
|
|
||||||
shadowColor: 'rgba(69,126,247,.2)',
|
|
||||||
shadowOffsetY: 4
|
|
||||||
},
|
|
||||||
areaStyle: {
|
|
||||||
color: {
|
|
||||||
type: 'linear', x: 0, y: 0, x2: 0, y2: 1,
|
|
||||||
colorStops: [{
|
|
||||||
offset: 0,
|
|
||||||
color: 'rgba(227,233,250,.9)' // 0% 处的颜色
|
|
||||||
}, {
|
|
||||||
offset: 1,
|
|
||||||
color: 'rgba(248,251,252,.3)' // 100% 处的颜色
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
smooth: true,
|
|
||||||
data: [20, 56, 17, 40, 68, 42]
|
|
||||||
}, {
|
|
||||||
name: '1',
|
|
||||||
type: 'line',
|
|
||||||
showSymbol: false,
|
|
||||||
smoothMonotone: 'x',
|
|
||||||
|
|
||||||
lineStyle: {
|
|
||||||
width: 3,
|
|
||||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
||||||
offset: 0,
|
|
||||||
color: 'rgba(255,84,108)'
|
|
||||||
}, {
|
|
||||||
offset: 1,
|
|
||||||
color: 'rgba(252,140,118)'
|
|
||||||
}], false),
|
|
||||||
shadowBlur: 4,
|
|
||||||
shadowColor: 'rgba(253,121,128,.2)',
|
|
||||||
shadowOffsetY: 4
|
|
||||||
},
|
|
||||||
areaStyle: {
|
|
||||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
||||||
offset: 0,
|
|
||||||
color: 'rgba(255,84,108,.15)'
|
|
||||||
}, {
|
|
||||||
offset: 1,
|
|
||||||
color: 'rgba(252,140,118,0)'
|
|
||||||
}], false),
|
|
||||||
},
|
|
||||||
smooth: true,
|
|
||||||
data: [20, 71, 8, 50, 57, 32]
|
|
||||||
},]
|
|
||||||
|
|
||||||
};
|
|
||||||
echartsRecords.setOption(option);
|
|
||||||
window.onresize = function () {
|
|
||||||
echartsRecords.resize();
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
1364
view/index/doc.html
Normal file
1364
view/index/doc.html
Normal file
File diff suppressed because it is too large
Load Diff
@ -83,8 +83,7 @@
|
|||||||
<div id="navigation" class="active">
|
<div id="navigation" class="active">
|
||||||
<ul class="navigation-menu">
|
<ul class="navigation-menu">
|
||||||
<li class="active"><a href="/">首页</a></li>
|
<li class="active"><a href="/">首页</a></li>
|
||||||
<li><a href="https://yi-pay.com/doc.html">开发文档</a></li>
|
<li><a href="/doc.html" target="_blank">开发文档</a></li>
|
||||||
<li><a href="http://paya.stspwsc.com/user/test.php">支付测试</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="login-menu">
|
<ul class="login-menu">
|
||||||
<?php if(isset($nickname)){ ?>
|
<?php if(isset($nickname)){ ?>
|
||||||
@ -116,7 +115,7 @@
|
|||||||
<path fill="currentColor"
|
<path fill="currentColor"
|
||||||
d="M13 9h8L11 24v-9H4l9-15v9zm-2 2V7.22L7.532 13H13v4.394L17.263 11H11z"></path>
|
d="M13 9h8L11 24v-9H4l9-15v9zm-2 2V7.22L7.532 13H13v4.394L17.263 11H11z"></path>
|
||||||
</svg>快速开始</a>
|
</svg>快速开始</a>
|
||||||
<a href="https://mazfu.com/doc" class="btn btn-outline-primary" target="_blank"><svg
|
<a href="/doc.html" class="btn btn-outline-primary" target="_blank"><svg
|
||||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
aria-hidden="true" role="img" class="iconify iconify--ri w-5 h-5 mr-2" width="1em"
|
aria-hidden="true" role="img" class="iconify iconify--ri w-5 h-5 mr-2" width="1em"
|
||||||
height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"
|
height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"
|
||||||
|
Loading…
Reference in New Issue
Block a user