From b45a01a8bee4a9bff5f9c248ead301b8675d1099 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 28 十月 2022 17:22:35 +0800
Subject: [PATCH] 2022.10.28
---
app.js | 30 ++++++++++++++++++------------
1 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/app.js b/app.js
index 583cc38..0372651 100644
--- a/app.js
+++ b/app.js
@@ -1,24 +1,30 @@
// app.js
+import moment from './utils/moment.min'
+import $f from "./service/baserequest"
+
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,
userInfo: null,
accessToken: null,
- isLogin: false
+ isLogin: false,
+ version: '浣撻獙鐗� 1.0.0',
+ agreement: $f.baseFileUrl + '/agreement/涓皬寰紒涓氱敓鎬佺幆澧冨畧娉曟櫤鑳芥湇鍔″井淇″皬绋嬪簭鏈嶅姟鍗忚.docx',
+ newUser: false,//鏄惁涓烘敞鍐屼竴涓湀浠ュ唴鐨勬柊鐢ㄦ埛
},
// 鏅鸿兘鍜ㄨ缁撴灉绫诲瀷鏂囨湰杞崲
cosultTypeName: (typeId) => {
--
Gitblit v1.9.3