123456789101112131415161718 |
- // import platform from './platform.js'
- // import {getWxUserInfo} from "./wxAuth";
- // if (platform() === 'H5') {
- // const getWxQuery = (name) => {
- // const url = window.location.href;
- // const reg = /code=([^&]*)/;
- // const arr = url.match(reg);
- // return arr ? arr[1] : null;
- // }
- // const code = getWxQuery('code')
- // console.log('code',code)
- // if(!code){
- // if (!uni.getStorageSync('token')) {
- // console.log('preCheck-login')
- // getWxUserInfo()
- // }
- // }
- // }
|