fix(admin): 修复尾首概率弹窗数据显示 undefined
ThinkPHP success() 返回的数据在 ret.data 而非 ret.msg
This commit is contained in:
@@ -2203,7 +2203,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (ret) {
|
success: function (ret) {
|
||||||
if (ret.code == 1) {
|
if (ret.code == 1) {
|
||||||
var d = ret.msg;
|
var d = ret.data;
|
||||||
var html = '<div style="margin-top:15px;">';
|
var html = '<div style="margin-top:15px;">';
|
||||||
html += '<div style="padding:15px;background:#f0f9ff;border-radius:8px;margin-bottom:12px;">';
|
html += '<div style="padding:15px;background:#f0f9ff;border-radius:8px;margin-bottom:12px;">';
|
||||||
html += '<div style="font-size:14px;font-weight:bold;color:#1565c0;margin-bottom:10px;"><i class="fa fa-bar-chart"></i> 概率统计</div>';
|
html += '<div style="font-size:14px;font-weight:bold;color:#1565c0;margin-bottom:10px;"><i class="fa fa-bar-chart"></i> 概率统计</div>';
|
||||||
|
|||||||
Reference in New Issue
Block a user