From ab3d9985c81834c8fac2fbcfd531010aa906126a Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Tue, 18 Nov 2025 13:57:07 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 20 +++++++++++++++----- config.js | 2 +- hook/useSystemPlayer.js | 1 + index.html | 4 ++-- manifest.json | 5 ++++- pages/login/login.vue | 1 + 6 files changed, 24 insertions(+), 9 deletions(-) diff --git a/App.vue b/App.vue index 87487b0..696a37e 100644 --- a/App.vue +++ b/App.vue @@ -7,10 +7,20 @@ const { $api, navTo, appendScriptTagElement } = inject('globalFunction'); import config from '@/config.js'; onLaunch((options) => { + if (lightAppJssdk.user) { + lightAppJssdk.user.getTicket({ + success: function (data) { + //成功回调 + console.log(data); + }, + fail: function (data) { + $api.msg('获取用户信息失败'); + }, + }); + } useUserStore().initSeesionId(); //更新 useDictStore().getDictData(); // uni.hideTabBar(); - // 登录 let token = uni.getStorageSync('token') || ''; // 同步获取 缓存信息 if (token) { @@ -28,10 +38,10 @@ onLaunch((options) => { onMounted(() => { // #ifndef MP-WEIXIN - appendScriptTagElement('https://qd.zhaopinzao8dian.com/file/csn/jweixin-1.4.0.js').then(() => { - console.log('✅ 微信 JSSDK 加载完成'); - // signatureFn(); - }); + // appendScriptTagElement('https://qd.zhaopinzao8dian.com/file/csn/jweixin-1.4.0.js').then(() => { + // console.log('✅ 微信 JSSDK 加载完成'); + // // signatureFn(); + // }); // #endif }); diff --git a/config.js b/config.js index 729ec75..2af79c7 100644 --- a/config.js +++ b/config.js @@ -13,7 +13,7 @@ export default { // indexedDB DBversion: 2, // 只使用本地缓寸的数据 - OnlyUseCachedDB: true, + OnlyUseCachedDB: false, // 使用模拟定位 UsingSimulatedPositioning: true, // 应用信息 diff --git a/hook/useSystemPlayer.js b/hook/useSystemPlayer.js index a3cac95..ee164c2 100644 --- a/hook/useSystemPlayer.js +++ b/hook/useSystemPlayer.js @@ -49,6 +49,7 @@ export function useTTSPlayer() { const newUtterance = new SpeechSynthesisUtterance(filteredText); // Use filtered text utteranceRef.value = newUtterance; + newUtterance.lang = 'zh-CN'; newUtterance.rate = options.rate || 1; newUtterance.pitch = options.pitch || 1; if (options.voice) { diff --git a/index.html b/index.html index f200838..7f5e093 100644 --- a/index.html +++ b/index.html @@ -18,11 +18,11 @@