1234567891011121314151617181920 |
- import { sourceMap } from '@/data'
- export function isDOMElement(obj) {
- return obj && typeof obj === 'object' && obj.nodeType === 1
- }
- export function getSourceInfo(source) {
- const t = sourceMap[source]
- return t || {}
- }
- export function mobileCustomPage(platform) {
- const map = {
- app: '/jyapp/free/customer',
- h5: '/jyapp/free/customer',
- wx: '/big/wx/page/customer'
- }
- return map[platform] || map.app
- }
|