From d7ca134342a0a2004d9c15fab49fd0a41557e29c Mon Sep 17 00:00:00 2001
From: liuwh <964324856@qq.com>
Date: Sat, 07 Sep 2024 21:59:18 +0800
Subject: [PATCH] 提交

---
 gz-wxparty/app.js |   96 +++++++++++++++++++++++++----------------------
 1 files changed, 51 insertions(+), 45 deletions(-)

diff --git a/gz-wxparty/app.js b/gz-wxparty/app.js
index 4fd9fe2..c164f94 100644
--- a/gz-wxparty/app.js
+++ b/gz-wxparty/app.js
@@ -2,48 +2,54 @@
 const $$ = require('./utils/util');
 
 App({
-	onLaunch() {
-		// 小程序更新
-		const updateManager = wx.getUpdateManager();
-		updateManager.onCheckForUpdate(function (res) {
-			// 请求完新版本信息的回调
-			if (res.hasUpdate == true) {
-				updateManager.onUpdateReady(function () {
-					$$.loginOutClearData();
-					wx.showModal({
-						title: '更新提示',
-						content: '检测到新版本更新',
-						showCancel: false,
-						success(res) {
-							if (res.confirm) {
-								// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
-								updateManager.applyUpdate();
-							}
-						},
-					});
-				});
-			}
-		});
-		updateManager.onUpdateFailed(function () {
-			// 新版本下载失败
-			wx.showModal({
-				title: '已经有新版本了哟~',
-				content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~',
-			});
-		});
-		// 获取缓存的token
-		let userInfo = wx.getStorageSync('userInfo');
-		if (userInfo) {
-			this.globalData.token = userInfo.token;
-		}
-	},
-	globalData: {
-		token: '', // 用户token
-		material: {
-			uploadVisible: false,
-			data: [], // 材料上传的数据
-			person: [], // 申请调解页面进入附件上传页面时,需要传递的申请人,代理人,被申请人的数据,便于身份材料时选择
-		},
-		caseMsg: {}, // 案件详情,用于我的申请时跳转到其他页面传输案件的数据。
-	},
-});
+  onLaunch() {
+    // 字体
+    wx.loadFontFace({
+      family: 'DingTalk', // 字体名称
+      source: 'url("../../font/DingTalk_JinBuTi_Regular.ttf")',
+      global: true, // 是否全局生效
+    })
+    // 小程序更新
+    const updateManager = wx.getUpdateManager();
+    updateManager.onCheckForUpdate(function (res) {
+      // 请求完新版本信息的回调
+      if (res.hasUpdate == true) {
+        updateManager.onUpdateReady(function () {
+          $$.loginOutClearData();
+          wx.showModal({
+            title: '更新提示',
+            content: '检测到新版本更新',
+            showCancel: false,
+            success(res) {
+              if (res.confirm) {
+                // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
+                updateManager.applyUpdate();
+              }
+            },
+          });
+        });
+      }
+    });
+    updateManager.onUpdateFailed(function () {
+      // 新版本下载失败
+      wx.showModal({
+        title: '已经有新版本了哟~',
+        content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~',
+      });
+    });
+    // 获取缓存的token
+    let userInfo = wx.getStorageSync('userInfo');
+    if (userInfo) {
+      this.globalData.token = userInfo.token;
+    }
+  },
+  globalData: {
+    token: '', // 用户token
+    material: {
+      uploadVisible: false,
+      data: [], // 材料上传的数据
+      person: [], // 申请调解页面进入附件上传页面时,需要传递的申请人,代理人,被申请人的数据,便于身份材料时选择
+    },
+    caseMsg: {}, // 案件详情,用于我的申请时跳转到其他页面传输案件的数据。
+  },
+});
\ No newline at end of file

--
Gitblit v1.8.0