From 437144f41c74505d362a5214a18cec3d01b3ce4b Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 10 十月 2022 17:51:30 +0800
Subject: [PATCH] 2022.10.10

---
 app.js |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/app.js b/app.js
index 583cc38..7011527 100644
--- a/app.js
+++ b/app.js
@@ -1,18 +1,20 @@
 // app.js
+import moment from './utils/moment.min'
+
 App({
   onLaunch() {
-    // 灞曠ず鏈湴瀛樺偍鑳藉姏
-    // const logs = wx.getStorageSync('logs') || []
-    // logs.unshift(Date.now())
-    // wx.setStorageSync('logs', logs)
-
-    // 鐧诲綍
-    // wx.login({
-    //   success: res => {
-    //     // 鍙戦�� res.code 鍒板悗鍙版崲鍙� openId, sessionKey, unionId
-    //   }
-    // })
     console.log('onLaunch');
+
+    moment.updateLocale('en', {
+      weekdays: '鏄熸湡鏃鏄熸湡涓�_鏄熸湡浜宊鏄熸湡涓塤鏄熸湡鍥沖鏄熸湡浜擾鏄熸湡鍏�'.split('_')
+    });
+
+    wx.getStorage({
+      key: 'userProfile',
+      success: (res) => {
+        this.globalData.userProfile = res.data
+      },
+    })
   },
   globalData: {
     perPage: 5,

--
Gitblit v1.9.3