From 9b09d13712c0c005891450a3bf4b6d848ec0ff37 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 29 十一月 2023 10:28:24 +0800
Subject: [PATCH] 2023.11.29
---
app.js | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/app.js b/app.js
index 0372651..dd6e5ff 100644
--- a/app.js
+++ b/app.js
@@ -1,21 +1,19 @@
// app.js
-import moment from './utils/moment.min'
-import $f from "./service/baserequest"
+import moment from './utils/moment.min';
+import $f from './service/baserequest';
App({
onLaunch() {
- console.log('onLaunch');
-
moment.updateLocale('en', {
- weekdays: '鏄熸湡鏃鏄熸湡涓�_鏄熸湡浜宊鏄熸湡涓塤鏄熸湡鍥沖鏄熸湡浜擾鏄熸湡鍏�'.split('_')
+ weekdays: '鏄熸湡鏃鏄熸湡涓�_鏄熸湡浜宊鏄熸湡涓塤鏄熸湡鍥沖鏄熸湡浜擾鏄熸湡鍏�'.split('_'),
});
wx.getStorage({
key: 'userProfile',
- success: (res) => {
- this.globalData.userProfile = res.data
+ success: res => {
+ this.globalData.userProfile = res.data;
},
- })
+ });
},
globalData: {
perPage: 5,
@@ -23,28 +21,30 @@
accessToken: null,
isLogin: false,
version: '浣撻獙鐗� 1.0.0',
- agreement: $f.baseFileUrl + '/agreement/涓皬寰紒涓氱敓鎬佺幆澧冨畧娉曟櫤鑳芥湇鍔″井淇″皬绋嬪簭鏈嶅姟鍗忚.docx',
- newUser: false,//鏄惁涓烘敞鍐屼竴涓湀浠ュ唴鐨勬柊鐢ㄦ埛
+ agreement:
+ $f.baseFileUrl +
+ '/agreement/涓皬寰紒涓氱敓鎬佺幆澧冨畧娉曟櫤鑳芥湇鍔″井淇″皬绋嬪簭鏈嶅姟鍗忚.docx',
+ newUser: false, //鏄惁涓烘敞鍐屼竴涓湀浠ュ唴鐨勬柊鐢ㄦ埛
},
// 鏅鸿兘鍜ㄨ缁撴灉绫诲瀷鏂囨湰杞崲
- cosultTypeName: (typeId) => {
- let name = ''
+ cosultTypeName: typeId => {
+ let name = '';
switch (typeId) {
case 1:
- name = '鐩稿叧鏂囦欢'
+ name = '鐩稿叧鏂囦欢';
break;
case 2:
- name = '鐩稿叧鏉$洰'
+ name = '鐩稿叧鏉$洰';
break;
case 3:
- name = '鎵ф硶妗堜緥'
+ name = '鎵ф硶妗堜緥';
break;
case 4:
- name = '鐜繚闂'
+ name = '鐜繚闂';
break;
default:
break;
}
- return name
- }
-})
\ No newline at end of file
+ return name;
+ },
+});
--
Gitblit v1.9.3