diff --git a/public/assets/js/backend/addon.js b/public/assets/js/backend/addon.js index f2d9aa4a..7f0c4d73 100644 --- a/public/assets/js/backend/addon.js +++ b/public/assets/js/backend/addon.js @@ -64,7 +64,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function align: 'left', formatter: Controller.api.formatter.title }, - {field: 'intro', title: __('Intro'), operate: 'LIKE', align: 'left', class:'visible-lg'}, + {field: 'intro', title: __('Intro'), operate: 'LIKE', align: 'left', class: 'visible-lg'}, { field: 'author', title: __('Author'), @@ -278,10 +278,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function } }); } else if (ret && ret.code === -2) { - Fast.api.open(ret.data.payurl, __('Pay now'), { + top.Fast.api.open(ret.data.payurl, __('Pay now'), { area: ["650px", "700px"], end: function () { - Layer.alert(__('Pay tips')); + top.Layer.alert(__('Pay tips')); } }); } else if (ret && ret.code === -3) { @@ -486,7 +486,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function formatter: { title: function (value, row, index) { var title = '' + value + ''; - if (row.screenshots.length > 0) { + if (row.screenshots && row.screenshots.length > 0) { title += ' '; } return title; @@ -501,7 +501,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function return ''; }, author: function (value, row, index) { - return '' + value + ''; + return '' + value + ''; }, price: function (value, row, index) { return parseFloat(value) == 0 ? '' + __('Free') + '' : '¥' + value + '';