From 381c97332e567a1b95a9a5220275461d0ae3f74e Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 28 三月 2025 17:30:37 +0800 Subject: [PATCH] fix: 四期需求 --- apps/taro/src/app.ts | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/taro/src/app.ts b/apps/taro/src/app.ts index 2531ecd..f940945 100644 --- a/apps/taro/src/app.ts +++ b/apps/taro/src/app.ts @@ -10,8 +10,9 @@ import Taro from '@tarojs/taro'; import { VueQueryPlugin, VueQueryPluginOptions } from '@tanstack/vue-query'; import { myClient } from '@/constants/query'; -import { VueLifeRechargePlugin } from '@life-payment/components'; -import { blLifeRecharge } from '@/utils/blLifeRecharge'; +import { VueLifeRechargePlugin } from '@life-payment/core-vue'; +import { blLifeRecharge, LifeRechargeOptions } from '@/utils/blLifeRecharge'; +import { isWeChat } from '@/utils/env'; window.uni = Taro; @@ -49,6 +50,10 @@ // 瀵瑰簲 onLaunch onLaunch(options) { + if (options.query?.channelId) { + console.log('options: ', options); + blLifeRecharge.accountModel.setChannlesNum(options.query.channelId); + } // 濡傛灉鏄敹钘忚繘鍏� if (options.query.collect) { Taro.reLaunch({ @@ -64,7 +69,9 @@ // 瀵瑰簲 onShow onShow(options) { - updateVersions(); + if (isWeChat) { + updateVersions(); + } }, // 瀵瑰簲 onHide @@ -86,6 +93,7 @@ App.use(VueLifeRechargePlugin, { blLifeRecharge, + // options: LifeRechargeOptions, }); export default App; -- Gitblit v1.9.1