From 47e86f543415585ab1e1b2b1ed1d98830817a1be Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 19 九月 2022 09:41:07 +0800
Subject: [PATCH] 2022.9.16

---
 app.js |   45 +++++++++++++++++++++++++++++++++++----------
 1 files changed, 35 insertions(+), 10 deletions(-)

diff --git a/app.js b/app.js
index 1ed57c4..583cc38 100644
--- a/app.js
+++ b/app.js
@@ -2,18 +2,43 @@
 App({
   onLaunch() {
     // 灞曠ず鏈湴瀛樺偍鑳藉姏
-    const logs = wx.getStorageSync('logs') || []
-    logs.unshift(Date.now())
-    wx.setStorageSync('logs', logs)
+    // const logs = wx.getStorageSync('logs') || []
+    // logs.unshift(Date.now())
+    // wx.setStorageSync('logs', logs)
 
     // 鐧诲綍
-    wx.login({
-      success: res => {
-        // 鍙戦�� res.code 鍒板悗鍙版崲鍙� openId, sessionKey, unionId
-      }
-    })
+    // wx.login({
+    //   success: res => {
+    //     // 鍙戦�� res.code 鍒板悗鍙版崲鍙� openId, sessionKey, unionId
+    //   }
+    // })
+    console.log('onLaunch');
   },
   globalData: {
-    userInfo: null
+    perPage: 5,
+    userInfo: null,
+    accessToken: null,
+    isLogin: false
+  },
+  // 鏅鸿兘鍜ㄨ缁撴灉绫诲瀷鏂囨湰杞崲
+  cosultTypeName: (typeId) => {
+    let name = ''
+    switch (typeId) {
+      case 1:
+        name = '鐩稿叧鏂囦欢'
+        break;
+      case 2:
+        name = '鐩稿叧鏉$洰'
+        break;
+      case 3:
+        name = '鎵ф硶妗堜緥'
+        break;
+      case 4:
+        name = '鐜繚闂'
+        break;
+      default:
+        break;
+    }
+    return name
   }
-})
+})
\ No newline at end of file

--
Gitblit v1.9.3