From fa81dd5456dab4aa0d4cf4b0d53b7f91708e08ac Mon Sep 17 00:00:00 2001 From: huziyuan Date: Tue, 2 Feb 2021 19:07:45 +0800 Subject: [PATCH] =?UTF-8?q?ios=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/home/index/index.js b/pages/home/index/index.js index f2080ef..a37925e 100644 --- a/pages/home/index/index.js +++ b/pages/home/index/index.js @@ -87,9 +87,9 @@ Component({ userInfo: app.globalData.userInfo, userName: nickname }) - if(this.data.userInfo.isVIP==1){ + if (this.data.userInfo.isVIP == 1) { this.setData({ - 'userInfo.memberExpiredAt':util.formatDate(new Date(app.globalData.userInfo.memberExpiredAt), 'Y-M-D') + 'userInfo.memberExpiredAt': util.formatDate(new Date(app.globalData.userInfo.memberExpiredAt.replace(/\-/g, "/")), 'Y-M-D') }) } }) @@ -219,10 +219,10 @@ Component({ }) } }, - onShareAppMessage:function(){ + onShareAppMessage: function () { return { - title:'分享纸通宝', - path:'/pages/home/index' + title: '分享纸通宝', + path: '/pages/home/index' } } }