wangfukang 3 years ago
parent
commit
3e4ecb4410
  1. 44
      pages/index/home.vue

44
pages/index/home.vue

@ -0,0 +1,44 @@
<template>
</template>
<script>
export default {
data() {
return {
}
},
onLoad() {
uni.showLoading({
title: '加载中...'
})
if (uni.getStorageSync('hiver_token')) {
if (uni.getStorageSync('wayValue') == 1) {
uni.reLaunch({
url: '/pages/other/logistics'
})
} else if (uni.getStorageSync('wayValue') == 0) {
uni.reLaunch({
url: '/pages/index/index'
})
} else if (uni.getStorageSync('wayValue') == 2) {
uni.reLaunch({
url: '/pages/other/custom'
})
}
} else {
uni.reLaunch({
url: '/pages/login/login'
})
}
uni.hideLoading();
},
methods: {
}
}
</script>
<style>
</style>
Loading…
Cancel
Save