From 9a9d1893bfa4e2a421e9494aacd454dc56eb91a3 Mon Sep 17 00:00:00 2001 From: hdm Date: Thu, 30 Jun 2022 17:06:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=8D=B0=E7=AB=A0=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E6=8C=89=E9=92=AE=E6=97=A0=E5=93=8D=E5=BA=94=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/article/view/index/list.html | 2 +- app/home/view/cate/seal_cate.html | 2 +- app/home/view/conf/token.html | 4 ++-- app/note/view/index/index.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/article/view/index/list.html b/app/article/view/index/list.html index cef2146..bb06746 100644 --- a/app/article/view/index/list.html +++ b/app/article/view/index/list.html @@ -120,7 +120,7 @@ }, function(index) { let callback = function (e) { layer.msg(res.msg); - if (res.code == 1) { + if (res.code == 0) { obj.del(); } } diff --git a/app/home/view/cate/seal_cate.html b/app/home/view/cate/seal_cate.html index efa7a0d..91bdcbf 100644 --- a/app/home/view/cate/seal_cate.html +++ b/app/home/view/cate/seal_cate.html @@ -85,7 +85,7 @@ } }); - $('.body-table').on('click','.addNew',function(){ + $('body').on('click','.addNew',function(){ addExpense(0,''); }); diff --git a/app/home/view/conf/token.html b/app/home/view/conf/token.html index b3c6724..a73e7d6 100644 --- a/app/home/view/conf/token.html +++ b/app/home/view/conf/token.html @@ -125,7 +125,7 @@ success: function (res) { $('#res').html(JSON.stringify(res)); layer.msg(res.msg); - if (res.code == 1) { + if (res.code == 0) { token = res.data.token; layer.close(idx); } @@ -169,7 +169,7 @@ success: function (res) { $('#res').html(JSON.stringify(res)); layer.msg(res.msg); - if (res.code == 1) { + if (res.code == 0) { token = res.data.token; layer.close(idx); } diff --git a/app/note/view/index/index.html b/app/note/view/index/index.html index b057762..22e499e 100644 --- a/app/note/view/index/index.html +++ b/app/note/view/index/index.html @@ -102,7 +102,7 @@ }, function(index) { let callback = function (e) { layer.msg(res.msg); - if (res.code == 1) { + if (res.code == 0) { obj.del(); } }