From 84e2009fdc067e8d0a7d9ce18ef0fa0d7e43d495 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 13 三月 2025 14:55:17 +0800 Subject: [PATCH] release: @life-payment/components v0.0.12 --- apps/taro/src/app.ts | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/taro/src/app.ts b/apps/taro/src/app.ts index 97fc876..fcdd16e 100644 --- a/apps/taro/src/app.ts +++ b/apps/taro/src/app.ts @@ -10,7 +10,9 @@ import Taro from '@tarojs/taro'; import { VueQueryPlugin, VueQueryPluginOptions } from '@tanstack/vue-query'; import { myClient } from '@/constants/query'; -import { VueLifeRechargePlugin, BlLifeRecharge } from '@life-payment/components'; +import { VueLifeRechargePlugin } from '@life-payment/core-vue'; +import { blLifeRecharge } from '@/utils/blLifeRecharge'; +import { isWeChat } from '@/utils/env'; window.uni = Taro; @@ -48,6 +50,9 @@ // 瀵瑰簲 onLaunch onLaunch(options) { + if (options.query?.channelId) { + console.log('options: ', options); + } // 濡傛灉鏄敹钘忚繘鍏� if (options.query.collect) { Taro.reLaunch({ @@ -63,7 +68,9 @@ // 瀵瑰簲 onShow onShow(options) { - updateVersions(); + if (isWeChat) { + updateVersions(); + } }, // 瀵瑰簲 onHide @@ -82,8 +89,6 @@ }; App.use(VueQueryPlugin, vueQueryPluginOptions); - -const blLifeRecharge = new BlLifeRecharge(); App.use(VueLifeRechargePlugin, { blLifeRecharge, -- Gitblit v1.9.1