|  |  | 
 |  |  | import Taro from '@tarojs/taro'; | 
 |  |  | import { VueQueryPlugin, VueQueryPluginOptions } from '@tanstack/vue-query'; | 
 |  |  | import { myClient } from '@/constants/query'; | 
 |  |  | import { VueLifeRechargePlugin } from '@life-payment/core-vue'; | 
 |  |  | import { blLifeRecharge, LifeRechargeOptions } from '@/utils/blLifeRecharge'; | 
 |  |  | import { isWeChat } from '@/utils/env'; | 
 |  |  |  | 
 |  |  | window.uni = Taro; | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |   // 对应 onLaunch | 
 |  |  |   onLaunch(options) { | 
 |  |  |     if (options.query?.channelId) { | 
 |  |  |       console.log('options: ', options); | 
 |  |  |       blLifeRecharge.accountModel.setChannlesNum(options.query.channelId); | 
 |  |  |     } | 
 |  |  |     // 如果是收藏进入 | 
 |  |  |     if (options.query.collect) { | 
 |  |  |       Taro.reLaunch({ | 
 |  |  | 
 |  |  |  | 
 |  |  |   // 对应 onShow | 
 |  |  |   onShow(options) { | 
 |  |  |     updateVersions(); | 
 |  |  |     if (isWeChat) { | 
 |  |  |       updateVersions(); | 
 |  |  |     } | 
 |  |  |   }, | 
 |  |  |  | 
 |  |  |   // 对应 onHide | 
 |  |  | 
 |  |  |  | 
 |  |  | App.use(VueQueryPlugin, vueQueryPluginOptions); | 
 |  |  |  | 
 |  |  | App.use(VueLifeRechargePlugin, { | 
 |  |  |   blLifeRecharge, | 
 |  |  |   // options: LifeRechargeOptions, | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | export default App; |