| | |
| | | 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; |
| | | |
| | |
| | | |
| | | // 对应 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); |
| | | |
| | | const blLifeRecharge = new BlLifeRecharge(); |
| | | |
| | | App.use(VueLifeRechargePlugin, { |
| | | blLifeRecharge, |