shangjia1.1/App.vue

21 lines
419 B
Vue

<style lang="scss">
@import "uni_modules/uview-ui/index.scss";
@import 'src/css/yuledui.scss';
</style>
<script>
export default {
onLaunch: function() {
//判断用户是否登录
const phone = uni.getStorageSync('phone');
if (this.$u.test.isEmpty(phone)) {
uni.reLaunch({
url: '/pages/login/index'
});
return false
}
},
onShow: function() {},
onHide: function() {}
}
</script>