frontend/examking-app/App.vue

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<script>
	import Vue from 'vue'

	export default {
		onLaunch: function() {
			console.log('App Lanuch')
		},
		onShow: function() {
			console.log('App Show')
			try {
				// 判断是否登录
				var token = uni.getStorageSync('token');
				if (token != "") {
					// 已经登录
					this.$store.dispatch('student/getStudentInfo')
				} else {
					// 未登录
					this.$store.dispatch('student/Logout')
				}
			} catch (e) {
				console.log(e)
				this.$store.dispatch('student/Logout')
			}
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>
<style>
	page {
		background: #F5F6F7;
	}

	uni-button::after {
		border: none;
	}

	.ellipse-line {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ellipse-2 {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.footer-block {
		width: 100vw;
		padding-bottom: env(safe-area-inset-bottom);
	}

	.header-block {
		width: 100vw;
		padding-top: env(safe-area-inset-top);
	}
后面还有 14 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。