From 2a990d3cebadcfc7e864c9bc2496f06b6ba1a62b Mon Sep 17 00:00:00 2001 From: Karson Date: Mon, 7 May 2018 12:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8F=92=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=94=AF=E4=BB=98=E5=BC=B9=E7=AA=97=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/backend/addon.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 + '';