| | |
| | | */ |
| | | |
| | | import Taro, { getCurrentInstance, getCurrentPages } from '@tarojs/taro'; |
| | | import { Fetcher } from './Fetcher'; |
| | | import { Tools } from '@components/common/Tools'; |
| | | import { $hostBoot } from '@components/bases/HostBoot'; |
| | | import project from '@project'; |
| | | |
| | | export class Pilot { |
| | |
| | | static createPoster($vm) { |
| | | return (pageType, action, data) => { |
| | | // 解除引用关系 |
| | | const nextData = JSON.parse(JSON.stringify(data)); |
| | | const nextData = JSON.parse(JSON.stringify(data || {})); |
| | | // 下一页 |
| | | if (pageType === 'nextPage') { |
| | | // 持续 3 秒,检测下一页是否存在 |
| | |
| | | } |
| | | // 小程序 |
| | | else if (process.env.TARO_ENV === 'weapp') { |
| | | assets2[key] = Fetcher.host + project.host.assetsPath + asset; |
| | | assets2[key] = $hostBoot.getHost() + project.host.assetsPath + asset; |
| | | } |
| | | }); |
| | | return assets2; |